diff --git a/cfg/config.json b/cfg/config.json index 647898f..91d1fd3 100644 --- a/cfg/config.json +++ b/cfg/config.json @@ -23,7 +23,8 @@ "timezone", "customer", "shop", - "unit_code" + "unit_code", + "template" ], "customQueries": [ { @@ -258,7 +259,8 @@ "shop", "tax", "tax_type", - "timezone" + "timezone", + "template" ] } }, @@ -446,7 +448,8 @@ "timezones", "customers", "shops", - "unit_codes" + "unit_codes", + "templates" ] } ], diff --git a/package-lock.json b/package-lock.json index 65133fa..0f83c36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "1.5.1", "license": "MIT", "dependencies": { - "@restorecommerce/acs-client": "^1.6.0", + "@restorecommerce/acs-client": "^1.6.6", "@restorecommerce/chassis-srv": "^1.6.0", "@restorecommerce/cluster-service": "^1.0.3", "@restorecommerce/grpc-client": "^2.2.1", - "@restorecommerce/kafka-client": "^1.2.1", - "@restorecommerce/rc-grpc-clients": "^5.1.23", + "@restorecommerce/kafka-client": "^1.2.5", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "@restorecommerce/resource-base-interface": "^1.6.0", "@restorecommerce/service-config": "^1.0.12", "lodash-es": "^4.17.21", @@ -2389,15 +2389,16 @@ } }, "node_modules/@restorecommerce/acs-client": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@restorecommerce/acs-client/-/acs-client-1.6.0.tgz", - "integrity": "sha512-Y7mr8E3+qij6YxP7Nkw6dndMlQtsY76GhTmi+nInVTEpP6o/VKwqCFe7fY8wbP3S+rmnzjmvZBvbnSWGPOvUyw==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/@restorecommerce/acs-client/-/acs-client-1.6.6.tgz", + "integrity": "sha512-6UfcleChboHqAMoX3GnXymhDAch3zP0qNrDLju31HV1LPtX8vbHfYlpctHmr/+a30GWHgK0a2keHZrHrUZF52g==", "dependencies": { "@restorecommerce/grpc-client": "^2.2.1", - "@restorecommerce/kafka-client": "^1.2.1", + "@restorecommerce/kafka-client": "^1.2.5", "@restorecommerce/logger": "^1.2.10", - "@restorecommerce/rc-grpc-clients": "^5.1.23", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "@restorecommerce/service-config": "^1.0.12", + "deepdash": "^5.3.9", "lodash": "^4.17.21", "nconf": "^0.12.1", "node-eval": "^2.0.0", @@ -2704,12 +2705,12 @@ } }, "node_modules/@restorecommerce/kafka-client": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.1.tgz", - "integrity": "sha512-BQ7g55hro9hYq3PtTQYdnPzLg7+eW9MiosEUITH2/VjAz/cgWnzLzhavsw283lbsCh/iLgTK//MEe35fvzGF2w==", + "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.23", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "async": "^3.2.5", "cls-rtracer": "^2.6.3", "events": "^3.3.0", @@ -2745,9 +2746,9 @@ "integrity": "sha512-id/ojKw2yRH++fmUabhpBc1jc/RUO2WIfMcvX88AX8u5GSzKElqjsXGKnl9GMs/duiBnATEYrWkeMztZk+5GmQ==" }, "node_modules/@restorecommerce/rc-grpc-clients": { - "version": "5.1.23", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.23.tgz", - "integrity": "sha512-n6bLx55PP86MIa6obzbNvfs1cRUNwu42zAyMNPCIZ+KkO0sYgK2WmQfdB/uhKRCMDOkMM3fCYDVo8yzQw9Kgrg==", + "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", @@ -5964,6 +5965,15 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/deepdash": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/deepdash/-/deepdash-5.3.9.tgz", + "integrity": "sha512-GRzJ0q9PDj2T+J2fX+b+TlUa2NlZ11l6vJ8LHNKVGeZ8CfxCuJaCychTq07iDRTvlfO8435jlvVS1QXBrW9kMg==", + "dependencies": { + "lodash": "^4.17.21", + "lodash-es": "^4.17.21" + } + }, "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", @@ -23500,15 +23510,16 @@ "requires": {} }, "@restorecommerce/acs-client": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@restorecommerce/acs-client/-/acs-client-1.6.0.tgz", - "integrity": "sha512-Y7mr8E3+qij6YxP7Nkw6dndMlQtsY76GhTmi+nInVTEpP6o/VKwqCFe7fY8wbP3S+rmnzjmvZBvbnSWGPOvUyw==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/@restorecommerce/acs-client/-/acs-client-1.6.6.tgz", + "integrity": "sha512-6UfcleChboHqAMoX3GnXymhDAch3zP0qNrDLju31HV1LPtX8vbHfYlpctHmr/+a30GWHgK0a2keHZrHrUZF52g==", "requires": { "@restorecommerce/grpc-client": "^2.2.1", - "@restorecommerce/kafka-client": "^1.2.1", + "@restorecommerce/kafka-client": "^1.2.5", "@restorecommerce/logger": "^1.2.10", - "@restorecommerce/rc-grpc-clients": "^5.1.23", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "@restorecommerce/service-config": "^1.0.12", + "deepdash": "^5.3.9", "lodash": "^4.17.21", "nconf": "^0.12.1", "node-eval": "^2.0.0", @@ -23705,12 +23716,12 @@ } }, "@restorecommerce/kafka-client": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.1.tgz", - "integrity": "sha512-BQ7g55hro9hYq3PtTQYdnPzLg7+eW9MiosEUITH2/VjAz/cgWnzLzhavsw283lbsCh/iLgTK//MEe35fvzGF2w==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.5.tgz", + "integrity": "sha512-tvEhiWsTewnoA9kEFLqE1op+62ItGOKjoV6pF85zisznxin7BYXXcn7zCd3d4JQpao0HHBPuzgILCYRyaIdn9w==", "requires": { "@restorecommerce/logger": "^1.2.10", - "@restorecommerce/rc-grpc-clients": "^5.1.23", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "async": "^3.2.5", "cls-rtracer": "^2.6.3", "events": "^3.3.0", @@ -23740,9 +23751,9 @@ "integrity": "sha512-id/ojKw2yRH++fmUabhpBc1jc/RUO2WIfMcvX88AX8u5GSzKElqjsXGKnl9GMs/duiBnATEYrWkeMztZk+5GmQ==" }, "@restorecommerce/rc-grpc-clients": { - "version": "5.1.23", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.23.tgz", - "integrity": "sha512-n6bLx55PP86MIa6obzbNvfs1cRUNwu42zAyMNPCIZ+KkO0sYgK2WmQfdB/uhKRCMDOkMM3fCYDVo8yzQw9Kgrg==", + "version": "5.1.27", + "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.27.tgz", + "integrity": "sha512-zjPI8/CSjV93yDWVei2NiidblleFjQwD7NfgjchKkFc1rgzFJTd7ZHyOqoP6EV5VdbMgc3B3DRodxn0vlt1EtQ==", "requires": { "@grpc/grpc-js": "^1.10.6", "@restorecommerce/grpc-client": "^2.2.1", @@ -26196,6 +26207,15 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "deepdash": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/deepdash/-/deepdash-5.3.9.tgz", + "integrity": "sha512-GRzJ0q9PDj2T+J2fX+b+TlUa2NlZ11l6vJ8LHNKVGeZ8CfxCuJaCychTq07iDRTvlfO8435jlvVS1QXBrW9kMg==", + "requires": { + "lodash": "^4.17.21", + "lodash-es": "^4.17.21" + } + }, "defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", diff --git a/package.json b/package.json index b18c6f3..b04c570 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,12 @@ ], "type": "module", "dependencies": { - "@restorecommerce/acs-client": "^1.6.0", + "@restorecommerce/acs-client": "^1.6.6", "@restorecommerce/chassis-srv": "^1.6.0", "@restorecommerce/cluster-service": "^1.0.3", "@restorecommerce/grpc-client": "^2.2.1", - "@restorecommerce/kafka-client": "^1.2.1", - "@restorecommerce/rc-grpc-clients": "^5.1.23", + "@restorecommerce/kafka-client": "^1.2.5", + "@restorecommerce/rc-grpc-clients": "^5.1.27", "@restorecommerce/resource-base-interface": "^1.6.0", "@restorecommerce/service-config": "^1.0.12", "lodash-es": "^4.17.21", diff --git a/src/worker.ts b/src/worker.ts index 89beefc..d5d7971 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -76,6 +76,10 @@ import { protoMetadata as unitCodeMeta, UnitCodeServiceDefinition as unit_code } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/unit_code.js'; +import { + protoMetadata as templateMeta, + TemplateServiceDefinition as template +} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/template.js'; import { protoMetadata as notificationMeta, NotificationServiceDefinition as notification @@ -130,6 +134,7 @@ registerProtoMeta( timezoneMeta, customerMeta, shopMeta, + templateMeta, commandInterfaceMeta, reflectionMeta, graphMeta, @@ -155,6 +160,7 @@ const ServiceDefinitions: any = [ customer, shop, unit_code, + template, notification, notification_channel, ];