From 486c51679c296cfaca7c54ae776727da5ada4977 Mon Sep 17 00:00:00 2001 From: Gerald Baulig Date: Fri, 26 Apr 2024 15:06:24 +0200 Subject: [PATCH] fix(deps): upgrade deps, adds pdf-rendering and templates --- cfg/config.json | 5 +++++ cfg/config_production.json | 5 +++++ package-lock.json | 26 +++++++++++++------------- package.json | 2 +- src/worker.ts | 4 +++- 5 files changed, 27 insertions(+), 15 deletions(-) diff --git a/cfg/config.json b/cfg/config.json index 523b5ca..33768c7 100644 --- a/cfg/config.json +++ b/cfg/config.json @@ -83,6 +83,11 @@ "address": "127.0.0.1:50066" } }, + "pdf_rendering": { + "client": { + "address": "127.0.0.1:50067" + } + }, "events": { "kafka": { "provider": "kafka", diff --git a/cfg/config_production.json b/cfg/config_production.json index 1666e77..44f926b 100644 --- a/cfg/config_production.json +++ b/cfg/config_production.json @@ -90,6 +90,11 @@ "address": "ostorage-srv:50051" } }, + "pdf_rendering": { + "client": { + "address": "access-control-srv:50051" + } + }, "events": { "kafka": { "kafka": { diff --git a/package-lock.json b/package-lock.json index cf65a34..857d3e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "dependencies": { "@apollo/federation": "^0.38.1", "@apollo/gateway": "2.3.6", - "@restorecommerce/facade": "^1.13.14", + "@restorecommerce/facade": "^1.13.19", "@restorecommerce/logger": "^1.2.10", "@restorecommerce/service-config": "^1.0.12", "array.prototype.flat": "^1.3.2", @@ -3461,9 +3461,9 @@ } }, "node_modules/@restorecommerce/facade": { - "version": "1.13.14", - "resolved": "https://registry.npmjs.org/@restorecommerce/facade/-/facade-1.13.14.tgz", - "integrity": "sha512-ef2qT4m76IgzfD/JXWZ/dNvwsA9N2JtwxEgtlONTEaO6R0BrcIUa4vVO5ndFkblruQQtcI7oJmnCXu4Uy6j9fQ==", + "version": "1.13.19", + "resolved": "https://registry.npmjs.org/@restorecommerce/facade/-/facade-1.13.19.tgz", + "integrity": "sha512-9oLzW+hIchvortdioFynTe3AY/Bx3sUU6wN6V/7EtoX+sA8U0/JMtsz4wZs0Sug1n9Rwj15mSJvhPpzWTpBlLQ==", "hasInstallScript": true, "dependencies": { "@apollo/federation": "^0.38.1", @@ -3475,9 +3475,9 @@ "@grpc/proto-loader": "^0.7.12", "@koa/cors": "^5.0.0", "@restorecommerce/grpc-client": "^2.2.1", - "@restorecommerce/kafka-client": "^1.2.3", + "@restorecommerce/kafka-client": "^1.2.5", "@restorecommerce/logger": "^1.2.10", - "@restorecommerce/rc-grpc-clients": "^5.1.25", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "@restorecommerce/service-config": "^1.0.12", "array.prototype.flat": "^1.3.1", "co": "^4.6.0", @@ -3550,12 +3550,12 @@ } }, "node_modules/@restorecommerce/kafka-client": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.3.tgz", - "integrity": "sha512-NeIRF10IqbUboC7EiDHpQor4FozOkli5iRcUjtYQ3zu66NHt3OZ3gmxUog8BCm4K2/sUXcvlAZZS65Cylh8p3A==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.5.tgz", + "integrity": "sha512-tvEhiWsTewnoA9kEFLqE1op+62ItGOKjoV6pF85zisznxin7BYXXcn7zCd3d4JQpao0HHBPuzgILCYRyaIdn9w==", "dependencies": { "@restorecommerce/logger": "^1.2.10", - "@restorecommerce/rc-grpc-clients": "^5.1.25", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "async": "^3.2.5", "cls-rtracer": "^2.6.3", "events": "^3.3.0", @@ -3586,9 +3586,9 @@ } }, "node_modules/@restorecommerce/rc-grpc-clients": { - "version": "5.1.25", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.25.tgz", - "integrity": "sha512-CvCtT/XxYaYeRA6uYIsD4NraN3XL2285BeJFb7HVNKVXfR7h2qbNc8/HH8hIo7S0reeIjioajq/MUBR4pM27Jg==", + "version": "5.1.27", + "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.27.tgz", + "integrity": "sha512-zjPI8/CSjV93yDWVei2NiidblleFjQwD7NfgjchKkFc1rgzFJTd7ZHyOqoP6EV5VdbMgc3B3DRodxn0vlt1EtQ==", "dependencies": { "@grpc/grpc-js": "^1.9.11", "@restorecommerce/grpc-client": "^2.2.1", diff --git a/package.json b/package.json index c4df863..516cf32 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "dependencies": { "@apollo/federation": "^0.38.1", "@apollo/gateway": "2.3.6", - "@restorecommerce/facade": "^1.13.14", + "@restorecommerce/facade": "^1.13.19", "@restorecommerce/logger": "^1.2.10", "@restorecommerce/service-config": "^1.0.12", "array.prototype.flat": "^1.3.2", diff --git a/src/worker.ts b/src/worker.ts index cf6f778..851ec73 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -14,7 +14,8 @@ import { orderingModule, ostorageModule, paymentModule, - schedulingModule + schedulingModule, + pdfRenderingModule, } from '@restorecommerce/facade'; export class Worker { @@ -56,6 +57,7 @@ export class Worker { .useModule(ostorageModule({config: this.cfg.get('ostorage')})) .useModule(paymentModule({config: this.cfg.get('payment')})) .useModule(schedulingModule({config: this.cfg.get('scheduling')})) + .useModule(pdfRenderingModule({config: this.cfg.get('pdf_rendering')})) .useMiddleware(reqResLogger({logger: this.logger})); return await this.facade.start();