@vendure/core 2.2.0-next.1 → 2.2.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/common/validate-custom-field-value.d.ts +2 -2
- package/dist/api/common/validate-custom-field-value.js +5 -5
- package/dist/api/common/validate-custom-field-value.js.map +1 -1
- package/dist/api/config/get-custom-fields-config-without-interfaces.d.ts +1 -1
- package/dist/api/config/get-custom-fields-config-without-interfaces.js +2 -1
- package/dist/api/config/get-custom-fields-config-without-interfaces.js.map +1 -1
- package/dist/api/config/graphql-custom-fields.js +14 -0
- package/dist/api/config/graphql-custom-fields.js.map +1 -1
- package/dist/api/middleware/exception-logger.filter.d.ts +5 -2
- package/dist/api/middleware/exception-logger.filter.js +21 -2
- package/dist/api/middleware/exception-logger.filter.js.map +1 -1
- package/dist/api/middleware/id-codec-plugin.js +2 -0
- package/dist/api/middleware/id-codec-plugin.js.map +1 -1
- package/dist/api/middleware/validate-custom-fields-interceptor.js +7 -7
- package/dist/api/middleware/validate-custom-fields-interceptor.js.map +1 -1
- package/dist/api/resolvers/admin/global-settings.resolver.d.ts +1 -0
- package/dist/api/resolvers/admin/global-settings.resolver.js +27 -3
- package/dist/api/resolvers/admin/global-settings.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/order.resolver.d.ts +2 -1
- package/dist/api/resolvers/admin/order.resolver.js +13 -0
- package/dist/api/resolvers/admin/order.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/administrator-entity.resolver.d.ts +3 -3
- package/dist/api/resolvers/entity/administrator-entity.resolver.js +9 -9
- package/dist/api/resolvers/entity/administrator-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-variant-entity.resolver.js +2 -1
- package/dist/api/resolvers/entity/product-variant-entity.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/order.api.graphql +41 -0
- package/dist/api/schema/common/history-entry.type.graphql +1 -0
- package/dist/common/error/generated-graphql-admin-errors.d.ts +9 -0
- package/dist/common/error/generated-graphql-admin-errors.js +12 -2
- package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
- package/dist/config/catalog/default-product-variant-price-update-strategy.d.ts +62 -0
- package/dist/config/catalog/default-product-variant-price-update-strategy.js +60 -0
- package/dist/config/catalog/default-product-variant-price-update-strategy.js.map +1 -0
- package/dist/config/catalog/product-variant-price-update-strategy.d.ts +83 -0
- package/dist/config/catalog/product-variant-price-update-strategy.js +3 -0
- package/dist/config/catalog/product-variant-price-update-strategy.js.map +1 -0
- package/dist/config/config.module.js +4 -2
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/custom-field/custom-field-types.d.ts +7 -3
- package/dist/config/default-config.js +6 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.js +3 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/system/error-handler-strategy.d.ts +75 -0
- package/dist/config/system/error-handler-strategy.js +3 -0
- package/dist/config/system/error-handler-strategy.js.map +1 -0
- package/dist/config/vendure-config.d.ts +21 -0
- package/dist/entity/custom-entity-fields.d.ts +2 -0
- package/dist/entity/custom-entity-fields.js +4 -1
- package/dist/entity/custom-entity-fields.js.map +1 -1
- package/dist/entity/product-variant/product-variant-price.entity.d.ts +4 -1
- package/dist/entity/product-variant/product-variant-price.entity.js +5 -0
- package/dist/entity/product-variant/product-variant-price.entity.js.map +1 -1
- package/dist/entity/refund/refund.entity.d.ts +12 -0
- package/dist/entity/refund/refund.entity.js.map +1 -1
- package/dist/entity/register-custom-entity-fields.js +43 -55
- package/dist/entity/register-custom-entity-fields.js.map +1 -1
- package/dist/event-bus/events/product-variant-price-event.d.ts +16 -0
- package/dist/event-bus/events/product-variant-price-event.js +19 -0
- package/dist/event-bus/events/product-variant-price-event.js.map +1 -0
- package/dist/event-bus/index.d.ts +1 -0
- package/dist/event-bus/index.js +1 -0
- package/dist/event-bus/index.js.map +1 -1
- package/dist/i18n/messages/de.json +3 -3
- package/dist/i18n/messages/en.json +2 -0
- package/dist/job-queue/job-queue.service.d.ts +5 -0
- package/dist/job-queue/job-queue.service.js +22 -0
- package/dist/job-queue/job-queue.service.js.map +1 -1
- package/dist/job-queue/polling-job-queue-strategy.d.ts +34 -1
- package/dist/job-queue/polling-job-queue-strategy.js +54 -24
- package/dist/job-queue/polling-job-queue-strategy.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.d.ts +12 -0
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js +2 -1
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js.map +1 -1
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.d.ts +4 -3
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js +12 -3
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js.map +1 -1
- package/dist/plugin/default-search-plugin/indexer/search-index.service.js +2 -2
- package/dist/plugin/default-search-plugin/indexer/search-index.service.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +7 -6
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -7
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +9 -7
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +9 -4
- package/dist/service/helpers/order-modifier/order-modifier.js +118 -34
- package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
- package/dist/service/helpers/translatable-saver/translatable-saver.js +1 -0
- package/dist/service/helpers/translatable-saver/translatable-saver.js.map +1 -1
- package/dist/service/services/collection.service.js +3 -0
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/history.service.d.ts +7 -0
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/order.service.d.ts +12 -8
- package/dist/service/services/order.service.js +58 -67
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/payment.service.d.ts +8 -2
- package/dist/service/services/payment.service.js +54 -25
- package/dist/service/services/payment.service.js.map +1 -1
- package/dist/service/services/product-variant.service.d.ts +1 -0
- package/dist/service/services/product-variant.service.js +68 -22
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAK8C;AAE9C,iGAA2F;AAC3F,4FAAqF;AACrF,yHAAiH;AAEjH,yGAAmG;AACnG,yGAAmG;AACnG,kGAA4F;AAC5F,kGAA4F;AAC5F,8FAAwF;AACxF,sGAAgG;AAChG,0FAAqF;AACrF,qFAAgF;AAChF,qIAA6H;AAC7H,iIAAyH;AACzH,6FAAuF;AACvF,+FAAyF;AACzF,oFAA8E;AAC9E,4EAAuE;AACvE,2FAAsF;AACtF,yFAAoF;AACpF,4DAAwD;AACxD,yFAAmF;AACnF,6GAAsG;AACtG,6FAAuF;AACvF,yHAAiH;AACjH,yFAAmF;AACnF,yEAAoE;AACpE,yFAAmF;AACnF,iGAA2F;AAC3F,yEAAoE;AACpE,yFAAyF;AACzF,qEAAuE;AACvE,mEAA8D;AAC9D,+EAA0E;AAC1E,2CAAkF;AAClF,uGAAgG;AAChG,+FAA0F;AAC1F,iHAA2G;AAC3G,2HAAoH;AACpH,uGAAgG;AAChG,+EAAyE;AAGzE;;;;;GAKG;AACU,QAAA,aAAa,GAAyB;IAC/C,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,8BAAY,CAAC,EAAE;IACpC,MAAM,EAAE,IAAI,8BAAa,EAAE;IAC3B,UAAU,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,WAAW;QACzB,kBAAkB,EAAE,KAA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B,cAAc,EAAE,EAAE;QAClB,SAAS,EAAE,EAAE;QACb,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE;QACjB,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;KACX;IACD,OAAO,EAAE,EAAE;IACX,aAAa,EAAE;QACX,YAAY,EAAE,CAAC,IAAI,0DAA0B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAK8C;AAE9C,iGAA2F;AAC3F,4FAAqF;AACrF,yHAAiH;AAEjH,yGAAmG;AACnG,yGAAmG;AACnG,kGAA4F;AAC5F,kGAA4F;AAC5F,8FAAwF;AACxF,sGAAgG;AAChG,0FAAqF;AACrF,qFAAgF;AAChF,qIAA6H;AAC7H,iIAAyH;AACzH,2HAAmH;AACnH,6FAAuF;AACvF,+FAAyF;AACzF,oFAA8E;AAC9E,4EAAuE;AACvE,2FAAsF;AACtF,yFAAoF;AACpF,4DAAwD;AACxD,yFAAmF;AACnF,6GAAsG;AACtG,6FAAuF;AACvF,yHAAiH;AACjH,yFAAmF;AACnF,yEAAoE;AACpE,yFAAmF;AACnF,iGAA2F;AAC3F,yEAAoE;AACpE,yFAAyF;AACzF,qEAAuE;AACvE,mEAA8D;AAC9D,+EAA0E;AAC1E,2CAAkF;AAClF,uGAAgG;AAChG,+FAA0F;AAC1F,iHAA2G;AAC3G,2HAAoH;AACpH,uGAAgG;AAChG,+EAAyE;AAGzE;;;;;GAKG;AACU,QAAA,aAAa,GAAyB;IAC/C,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,8BAAY,CAAC,EAAE;IACpC,MAAM,EAAE,IAAI,8BAAa,EAAE;IAC3B,UAAU,EAAE;QACR,QAAQ,EAAE,EAAE;QAC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;QAClB,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,EAAE;QACjB,kBAAkB,EAAE,EAAE;QACtB,cAAc,EAAE,EAAE;QAClB,mBAAmB,EAAE,EAAE;QACvB,SAAS,EAAE,EAAE;QACb,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE;QACjB,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;KACX;IACD,OAAO,EAAE,EAAE;IACX,aAAa,EAAE;QACX,YAAY,EAAE,CAAC,IAAI,0DAA0B,EAAE,CAAC;QAChD,aAAa,EAAE,EAAE;KACpB;CACJ,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -12,10 +12,12 @@ export * from './auth/password-validation-strategy';
|
|
|
12
12
|
export * from './catalog/collection-filter';
|
|
13
13
|
export * from './catalog/default-collection-filters';
|
|
14
14
|
export * from './catalog/default-product-variant-price-selection-strategy';
|
|
15
|
+
export * from './catalog/default-product-variant-price-update-strategy';
|
|
15
16
|
export * from './catalog/default-stock-display-strategy';
|
|
16
17
|
export * from './catalog/default-stock-location-strategy';
|
|
17
18
|
export * from './catalog/product-variant-price-calculation-strategy';
|
|
18
19
|
export * from './catalog/product-variant-price-selection-strategy';
|
|
20
|
+
export * from './catalog/product-variant-price-update-strategy';
|
|
19
21
|
export * from './catalog/stock-display-strategy';
|
|
20
22
|
export * from './catalog/stock-location-strategy';
|
|
21
23
|
export * from './config.module';
|
|
@@ -78,6 +80,7 @@ export * from './shipping-method/shipping-calculator';
|
|
|
78
80
|
export * from './shipping-method/shipping-eligibility-checker';
|
|
79
81
|
export * from './shipping-method/shipping-line-assignment-strategy';
|
|
80
82
|
export * from './system/health-check-strategy';
|
|
83
|
+
export * from './system/error-handler-strategy';
|
|
81
84
|
export * from './tax/default-tax-line-calculation-strategy';
|
|
82
85
|
export * from './tax/default-tax-zone-strategy';
|
|
83
86
|
export * from './tax/tax-line-calculation-strategy';
|
package/dist/config/index.js
CHANGED
|
@@ -28,10 +28,12 @@ __exportStar(require("./auth/password-validation-strategy"), exports);
|
|
|
28
28
|
__exportStar(require("./catalog/collection-filter"), exports);
|
|
29
29
|
__exportStar(require("./catalog/default-collection-filters"), exports);
|
|
30
30
|
__exportStar(require("./catalog/default-product-variant-price-selection-strategy"), exports);
|
|
31
|
+
__exportStar(require("./catalog/default-product-variant-price-update-strategy"), exports);
|
|
31
32
|
__exportStar(require("./catalog/default-stock-display-strategy"), exports);
|
|
32
33
|
__exportStar(require("./catalog/default-stock-location-strategy"), exports);
|
|
33
34
|
__exportStar(require("./catalog/product-variant-price-calculation-strategy"), exports);
|
|
34
35
|
__exportStar(require("./catalog/product-variant-price-selection-strategy"), exports);
|
|
36
|
+
__exportStar(require("./catalog/product-variant-price-update-strategy"), exports);
|
|
35
37
|
__exportStar(require("./catalog/stock-display-strategy"), exports);
|
|
36
38
|
__exportStar(require("./catalog/stock-location-strategy"), exports);
|
|
37
39
|
__exportStar(require("./config.module"), exports);
|
|
@@ -94,6 +96,7 @@ __exportStar(require("./shipping-method/shipping-calculator"), exports);
|
|
|
94
96
|
__exportStar(require("./shipping-method/shipping-eligibility-checker"), exports);
|
|
95
97
|
__exportStar(require("./shipping-method/shipping-line-assignment-strategy"), exports);
|
|
96
98
|
__exportStar(require("./system/health-check-strategy"), exports);
|
|
99
|
+
__exportStar(require("./system/error-handler-strategy"), exports);
|
|
97
100
|
__exportStar(require("./tax/default-tax-line-calculation-strategy"), exports);
|
|
98
101
|
__exportStar(require("./tax/default-tax-zone-strategy"), exports);
|
|
99
102
|
__exportStar(require("./tax/tax-line-calculation-strategy"), exports);
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../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iEAA+C;AAC/C,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D;AAC9D,gFAA8D;AAC9D,wFAAsE;AACtE,kFAAgE;AAChE,kFAAgE;AAChE,iEAA+C;AAC/C,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,mEAAiD;AACjD,sEAAoD;AACpD,8DAA4C;AAC5C,uEAAqD;AACrD,6FAA2E;AAC3E,0FAAwE;AACxE,2EAAyD;AACzD,4EAA0D;AAC1D,uFAAqE;AACrE,qFAAmE;AACnE,kFAAgE;AAChE,mEAAiD;AACjD,oEAAkD;AAClD,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,sEAAoD;AACpD,kEAAgD;AAChD,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,4DAA0C;AAC1C,6EAA2D;AAC3D,4EAA0D;AAC1D,oEAAkD;AAClD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,iEAA+C;AAC/C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,iDAA+B;AAC/B,gEAA8C;AAC9C,0EAAwD;AACxD,wEAAsD;AACtD,kFAAgE;AAChE,wEAAsD;AACtD,gEAA8C;AAC9C,wEAAsD;AACtD,4EAA0D;AAC1D,0EAAwD;AACxD,kEAAgD;AAChD,gEAA8C;AAC9C,8DAA4C;AAC5C,gFAA8D;AAC9D,+DAA6C;AAC7C,gEAA8C;AAC9C,wDAAsC;AACtC,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,+EAA6D;AAC7D,6DAA2C;AAC3C,oEAAkD;AAClD,yEAAuD;AACvD,2EAAyD;AACzD,+EAA6D;AAC7D,mEAAiD;AACjD,4DAA0C;AAC1C,8CAA4B;AAC5B,mFAAiE;AACjE,8EAA4D;AAC5D,yEAAuD;AACvD,gFAA8D;AAC9D,yFAAuE;AACvE,8FAA4E;AAC5E,wEAAsD;AACtD,iFAA+D;AAC/D,sFAAoE;AACpE,iEAA+C;AAC/C,kEAAgD;AAChD,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ArgumentsHost } from '@nestjs/common';
|
|
2
|
+
import { InjectableStrategy } from '../../common/index';
|
|
3
|
+
import { Job } from '../../job-queue/job';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* This strategy defines logic for handling errors thrown during on both the server
|
|
7
|
+
* and the worker. It can be used for additional logging & monitoring, or for sending error
|
|
8
|
+
* reports to external services.
|
|
9
|
+
*
|
|
10
|
+
* :::info
|
|
11
|
+
*
|
|
12
|
+
* This is configured via the `systemOptions.errorHandlers` property of
|
|
13
|
+
* your VendureConfig.
|
|
14
|
+
*
|
|
15
|
+
* :::
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { ArgumentsHost, ExecutionContext } from '\@nestjs/common';
|
|
20
|
+
* import { GqlContextType, GqlExecutionContext } from '\@nestjs/graphql';
|
|
21
|
+
* import { ErrorHandlerStrategy, I18nError, Injector, Job, LogLevel } from '\@vendure/core';
|
|
22
|
+
*
|
|
23
|
+
* import { MonitoringService } from './monitoring.service';
|
|
24
|
+
*
|
|
25
|
+
* export class CustomErrorHandlerStrategy implements ErrorHandlerStrategy {
|
|
26
|
+
* private monitoringService: MonitoringService;
|
|
27
|
+
*
|
|
28
|
+
* init(injector: Injector) {
|
|
29
|
+
* this.monitoringService = injector.get(MonitoringService);
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* handleServerError(error: Error, { host }: { host: ArgumentsHost }) {
|
|
33
|
+
* const errorContext: any = {};
|
|
34
|
+
* if (host?.getType<GqlContextType>() === 'graphql') {
|
|
35
|
+
* const gqlContext = GqlExecutionContext.create(host as ExecutionContext);
|
|
36
|
+
* const info = gqlContext.getInfo();
|
|
37
|
+
* errorContext.graphQlInfo = {
|
|
38
|
+
* fieldName: info.fieldName,
|
|
39
|
+
* path: info.path,
|
|
40
|
+
* };
|
|
41
|
+
* }
|
|
42
|
+
* this.monitoringService.captureException(error, errorContext);
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* handleWorkerError(error: Error, { job }: { job: Job }) {
|
|
46
|
+
* const errorContext = {
|
|
47
|
+
* queueName: job.queueName,
|
|
48
|
+
* jobId: job.id,
|
|
49
|
+
* };
|
|
50
|
+
* this.monitoringService.captureException(error, errorContext);
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @since 2.2.0
|
|
56
|
+
* @docsCategory Errors
|
|
57
|
+
*/
|
|
58
|
+
export interface ErrorHandlerStrategy extends InjectableStrategy {
|
|
59
|
+
/**
|
|
60
|
+
* @description
|
|
61
|
+
* This method will be invoked for any error thrown during the execution of the
|
|
62
|
+
* server.
|
|
63
|
+
*/
|
|
64
|
+
handleServerError(exception: Error, context: {
|
|
65
|
+
host: ArgumentsHost;
|
|
66
|
+
}): void | Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @description
|
|
69
|
+
* This method will be invoked for any error thrown during the execution of a
|
|
70
|
+
* job on the worker.
|
|
71
|
+
*/
|
|
72
|
+
handleWorkerError(exception: Error, context: {
|
|
73
|
+
job: Job;
|
|
74
|
+
}): void | Promise<void>;
|
|
75
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-handler-strategy.js","sourceRoot":"","sources":["../../../src/config/system/error-handler-strategy.ts"],"names":[],"mappings":""}
|
|
@@ -18,6 +18,7 @@ import { PasswordValidationStrategy } from './auth/password-validation-strategy'
|
|
|
18
18
|
import { CollectionFilter } from './catalog/collection-filter';
|
|
19
19
|
import { ProductVariantPriceCalculationStrategy } from './catalog/product-variant-price-calculation-strategy';
|
|
20
20
|
import { ProductVariantPriceSelectionStrategy } from './catalog/product-variant-price-selection-strategy';
|
|
21
|
+
import { ProductVariantPriceUpdateStrategy } from './catalog/product-variant-price-update-strategy';
|
|
21
22
|
import { StockDisplayStrategy } from './catalog/stock-display-strategy';
|
|
22
23
|
import { StockLocationStrategy } from './catalog/stock-location-strategy';
|
|
23
24
|
import { CustomFields } from './custom-field/custom-field-types';
|
|
@@ -48,6 +49,7 @@ import { SessionCacheStrategy } from './session-cache/session-cache-strategy';
|
|
|
48
49
|
import { ShippingCalculator } from './shipping-method/shipping-calculator';
|
|
49
50
|
import { ShippingEligibilityChecker } from './shipping-method/shipping-eligibility-checker';
|
|
50
51
|
import { ShippingLineAssignmentStrategy } from './shipping-method/shipping-line-assignment-strategy';
|
|
52
|
+
import { ErrorHandlerStrategy } from './system/error-handler-strategy';
|
|
51
53
|
import { HealthCheckStrategy } from './system/health-check-strategy';
|
|
52
54
|
import { TaxLineCalculationStrategy } from './tax/tax-line-calculation-strategy';
|
|
53
55
|
import { TaxZoneStrategy } from './tax/tax-zone-strategy';
|
|
@@ -677,6 +679,16 @@ export interface CatalogOptions {
|
|
|
677
679
|
* @default DefaultTaxCalculationStrategy
|
|
678
680
|
*/
|
|
679
681
|
productVariantPriceCalculationStrategy?: ProductVariantPriceCalculationStrategy;
|
|
682
|
+
/**
|
|
683
|
+
* @description
|
|
684
|
+
* Defines the strategy which determines what happens to a ProductVariant's prices
|
|
685
|
+
* when one of the prices gets updated. For instance, this can be used to synchronize
|
|
686
|
+
* prices across multiple Channels.
|
|
687
|
+
*
|
|
688
|
+
* @default DefaultProductVariantPriceUpdateStrategy
|
|
689
|
+
* @since 2.2.0
|
|
690
|
+
*/
|
|
691
|
+
productVariantPriceUpdateStrategy?: ProductVariantPriceUpdateStrategy;
|
|
680
692
|
/**
|
|
681
693
|
* @description
|
|
682
694
|
* Defines how the `ProductVariant.stockLevel` value is obtained. It is usually not desirable
|
|
@@ -993,6 +1005,15 @@ export interface SystemOptions {
|
|
|
993
1005
|
* @since 1.6.0
|
|
994
1006
|
*/
|
|
995
1007
|
healthChecks?: HealthCheckStrategy[];
|
|
1008
|
+
/**
|
|
1009
|
+
* @description
|
|
1010
|
+
* Defines an array of {@link ErrorHandlerStrategy} instances which are used to define logic to be executed
|
|
1011
|
+
* when an error occurs, either on the server or the worker.
|
|
1012
|
+
*
|
|
1013
|
+
* @default []
|
|
1014
|
+
* @since 2.2.0
|
|
1015
|
+
*/
|
|
1016
|
+
errorHandlers?: ErrorHandlerStrategy[];
|
|
996
1017
|
}
|
|
997
1018
|
/**
|
|
998
1019
|
* @description
|
|
@@ -50,6 +50,8 @@ export declare class CustomProductVariantFields {
|
|
|
50
50
|
}
|
|
51
51
|
export declare class CustomProductVariantFieldsTranslation {
|
|
52
52
|
}
|
|
53
|
+
export declare class CustomProductVariantPriceFields {
|
|
54
|
+
}
|
|
53
55
|
export declare class CustomPromotionFields {
|
|
54
56
|
}
|
|
55
57
|
export declare class CustomPromotionFieldsTranslation {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomZoneFields = exports.CustomUserFields = exports.CustomTaxRateFields = exports.CustomTaxCategoryFields = exports.CustomStockLocationFields = exports.CustomShippingMethodFieldsTranslation = exports.CustomShippingMethodFields = exports.CustomSellerFields = exports.CustomRegionFieldsTranslation = exports.CustomRegionFields = exports.CustomPromotionFieldsTranslation = exports.CustomPromotionFields = exports.CustomProductVariantFieldsTranslation = exports.CustomProductVariantFields = exports.CustomProductOptionGroupFieldsTranslation = exports.CustomProductOptionGroupFields = exports.CustomProductOptionFieldsTranslation = exports.CustomProductOptionFields = exports.CustomProductFieldsTranslation = exports.CustomProductFields = exports.CustomPaymentMethodFieldsTranslation = exports.CustomPaymentMethodFields = exports.CustomOrderLineFields = exports.CustomOrderFields = exports.CustomGlobalSettingsFields = exports.CustomFulfillmentFields = exports.CustomFacetValueFieldsTranslation = exports.CustomFacetValueFields = exports.CustomFacetFieldsTranslation = exports.CustomFacetFields = exports.CustomCustomerGroupFields = exports.CustomCustomerFields = exports.CustomCollectionFieldsTranslation = exports.CustomCollectionFields = exports.CustomChannelFields = exports.CustomAssetFields = exports.CustomAdministratorFields = exports.CustomAddressFields = void 0;
|
|
3
|
+
exports.CustomZoneFields = exports.CustomUserFields = exports.CustomTaxRateFields = exports.CustomTaxCategoryFields = exports.CustomStockLocationFields = exports.CustomShippingMethodFieldsTranslation = exports.CustomShippingMethodFields = exports.CustomSellerFields = exports.CustomRegionFieldsTranslation = exports.CustomRegionFields = exports.CustomPromotionFieldsTranslation = exports.CustomPromotionFields = exports.CustomProductVariantPriceFields = exports.CustomProductVariantFieldsTranslation = exports.CustomProductVariantFields = exports.CustomProductOptionGroupFieldsTranslation = exports.CustomProductOptionGroupFields = exports.CustomProductOptionFieldsTranslation = exports.CustomProductOptionFields = exports.CustomProductFieldsTranslation = exports.CustomProductFields = exports.CustomPaymentMethodFieldsTranslation = exports.CustomPaymentMethodFields = exports.CustomOrderLineFields = exports.CustomOrderFields = exports.CustomGlobalSettingsFields = exports.CustomFulfillmentFields = exports.CustomFacetValueFieldsTranslation = exports.CustomFacetValueFields = exports.CustomFacetFieldsTranslation = exports.CustomFacetFields = exports.CustomCustomerGroupFields = exports.CustomCustomerFields = exports.CustomCollectionFieldsTranslation = exports.CustomCollectionFields = exports.CustomChannelFields = exports.CustomAssetFields = exports.CustomAdministratorFields = exports.CustomAddressFields = void 0;
|
|
4
4
|
class CustomAddressFields {
|
|
5
5
|
}
|
|
6
6
|
exports.CustomAddressFields = CustomAddressFields;
|
|
@@ -79,6 +79,9 @@ exports.CustomProductVariantFields = CustomProductVariantFields;
|
|
|
79
79
|
class CustomProductVariantFieldsTranslation {
|
|
80
80
|
}
|
|
81
81
|
exports.CustomProductVariantFieldsTranslation = CustomProductVariantFieldsTranslation;
|
|
82
|
+
class CustomProductVariantPriceFields {
|
|
83
|
+
}
|
|
84
|
+
exports.CustomProductVariantPriceFields = CustomProductVariantPriceFields;
|
|
82
85
|
class CustomPromotionFields {
|
|
83
86
|
}
|
|
84
87
|
exports.CustomPromotionFields = CustomPromotionFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-entity-fields.js","sourceRoot":"","sources":["../../src/entity/custom-entity-fields.ts"],"names":[],"mappings":";;;AAAA,MAAa,mBAAmB;CAAG;AAAnC,kDAAmC;AACnC,MAAa,yBAAyB;CAAG;AAAzC,8DAAyC;AACzC,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC;AACjC,MAAa,mBAAmB;CAAG;AAAnC,kDAAmC;AACnC,MAAa,sBAAsB;CAAG;AAAtC,wDAAsC;AACtC,MAAa,iCAAiC;CAAG;AAAjD,8EAAiD;AACjD,MAAa,oBAAoB;CAAG;AAApC,oDAAoC;AACpC,MAAa,yBAAyB;CAAG;AAAzC,8DAAyC;AACzC,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC;AACjC,MAAa,4BAA4B;CAAG;AAA5C,oEAA4C;AAC5C,MAAa,sBAAsB;CAAG;AAAtC,wDAAsC;AACtC,MAAa,iCAAiC;CAAG;AAAjD,8EAAiD;AACjD,MAAa,uBAAuB;CAAG;AAAvC,0DAAuC;AACvC,MAAa,0BAA0B;CAAG;AAA1C,gEAA0C;AAC1C,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC;AACjC,MAAa,qBAAqB;CAAG;AAArC,sDAAqC;AACrC,MAAa,yBAAyB;CAAG;AAAzC,8DAAyC;AACzC,MAAa,oCAAoC;CAAG;AAApD,oFAAoD;AACpD,MAAa,mBAAmB;CAAG;AAAnC,kDAAmC;AACnC,MAAa,8BAA8B;CAAG;AAA9C,wEAA8C;AAC9C,MAAa,yBAAyB;CAAG;AAAzC,8DAAyC;AACzC,MAAa,oCAAo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
|
|
1
1
|
import { CurrencyCode } from '@vendure/common/lib/generated-types';
|
|
2
2
|
import { DeepPartial, ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { HasCustomFields } from '../../config/custom-field/custom-field-types';
|
|
3
4
|
import { VendureEntity } from '../base/base.entity';
|
|
5
|
+
import { CustomProductVariantPriceFields } from '../custom-entity-fields';
|
|
4
6
|
import { ProductVariant } from './product-variant.entity';
|
|
5
7
|
/**
|
|
6
8
|
* @description
|
|
@@ -9,10 +11,11 @@ import { ProductVariant } from './product-variant.entity';
|
|
|
9
11
|
*
|
|
10
12
|
* @docsCategory entities
|
|
11
13
|
*/
|
|
12
|
-
export declare class ProductVariantPrice extends VendureEntity {
|
|
14
|
+
export declare class ProductVariantPrice extends VendureEntity implements HasCustomFields {
|
|
13
15
|
constructor(input?: DeepPartial<ProductVariantPrice>);
|
|
14
16
|
price: number;
|
|
15
17
|
channelId: ID;
|
|
16
18
|
currencyCode: CurrencyCode;
|
|
17
19
|
variant: ProductVariant;
|
|
20
|
+
customFields: CustomProductVariantPriceFields;
|
|
18
21
|
}
|
|
@@ -13,6 +13,7 @@ exports.ProductVariantPrice = void 0;
|
|
|
13
13
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const base_entity_1 = require("../base/base.entity");
|
|
16
|
+
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
16
17
|
const entity_id_decorator_1 = require("../entity-id.decorator");
|
|
17
18
|
const money_decorator_1 = require("../money.decorator");
|
|
18
19
|
const product_variant_entity_1 = require("./product-variant.entity");
|
|
@@ -45,6 +46,10 @@ __decorate([
|
|
|
45
46
|
(0, typeorm_1.ManyToOne)(type => product_variant_entity_1.ProductVariant, variant => variant.productVariantPrices, { onDelete: 'CASCADE' }),
|
|
46
47
|
__metadata("design:type", product_variant_entity_1.ProductVariant)
|
|
47
48
|
], ProductVariantPrice.prototype, "variant", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)(type => custom_entity_fields_1.CustomProductVariantPriceFields),
|
|
51
|
+
__metadata("design:type", custom_entity_fields_1.CustomProductVariantPriceFields)
|
|
52
|
+
], ProductVariantPrice.prototype, "customFields", void 0);
|
|
48
53
|
ProductVariantPrice = __decorate([
|
|
49
54
|
(0, typeorm_1.Entity)(),
|
|
50
55
|
__metadata("design:paramtypes", [Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variant-price.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;
|
|
1
|
+
{"version":3,"file":"product-variant-price.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAA2D;AAG3D,qDAAoD;AACpD,kEAA0E;AAC1E,gEAAkD;AAClD,wDAA2C;AAE3C,qEAA0D;AAE1D;;;;;;GAMG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,2BAAa;IAClD,YAAY,KAAwC;QAChD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAeJ,CAAA;AAbG;IAAC,IAAA,uBAAK,GAAE;;kDAAe;AAEvB;IAAC,IAAA,8BAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAAe;AAE5C;IAAC,IAAA,gBAAM,EAAC,SAAS,CAAC;;yDACS;AAE3B;IAAC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,uCAAc,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC3F,uCAAc;oDAAC;AAExB;IAAC,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,sDAA+B,CAAC;8BAClC,sDAA+B;yDAAC;AAjBrC,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;;GACI,mBAAmB,CAkB/B;AAlBY,kDAAmB"}
|
|
@@ -6,8 +6,20 @@ import { RefundLine } from '../order-line-reference/refund-line.entity';
|
|
|
6
6
|
import { Payment } from '../payment/payment.entity';
|
|
7
7
|
export declare class Refund extends VendureEntity {
|
|
8
8
|
constructor(input?: DeepPartial<Refund>);
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Since v2.2, the `items` field will not be used by default. Instead, the `total` field
|
|
11
|
+
* alone will be used to determine the refund amount.
|
|
12
|
+
*/
|
|
9
13
|
items: number;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Since v2.2, the `shipping` field will not be used by default. Instead, the `total` field
|
|
16
|
+
* alone will be used to determine the refund amount.
|
|
17
|
+
*/
|
|
10
18
|
shipping: number;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Since v2.2, the `adjustment` field will not be used by default. Instead, the `total` field
|
|
21
|
+
* alone will be used to determine the refund amount.
|
|
22
|
+
*/
|
|
11
23
|
adjustment: number;
|
|
12
24
|
total: number;
|
|
13
25
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refund.entity.js","sourceRoot":"","sources":["../../../src/entity/refund/refund.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6F;AAI7F,qDAAoD;AACpD,gEAAkD;AAClD,wDAA2C;AAC3C,mFAAwE;AACxE,8DAAoD;AAG7C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAa;IACrC,YAAY,KAA2B;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"refund.entity.js","sourceRoot":"","sources":["../../../src/entity/refund/refund.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6F;AAI7F,qDAAoD;AACpD,gEAAkD;AAClD,wDAA2C;AAC3C,mFAAwE;AACxE,8DAAoD;AAG7C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAa;IACrC,YAAY,KAA2B;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA2CJ,CAAA;AArCG;IAAC,IAAA,uBAAK,GAAE;;qCAAe;AAMvB;IAAC,IAAA,uBAAK,GAAE;;wCAAkB;AAM1B;IAAC,IAAA,uBAAK,GAAE;;0CAAoB;AAE5B;IAAC,IAAA,uBAAK,GAAE;;qCAAe;AAEvB;IAAC,IAAA,gBAAM,GAAE;;sCAAgB;AAEzB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAAgB;AAE3C;IAAC,IAAA,gBAAM,EAAC,SAAS,CAAC;;qCAAoB;AAEtC;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAAuB;AAElD;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,+BAAU,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IAClD,IAAA,mBAAS,GAAE;;qCACQ;AAEpB;IAAC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,CAAC;IAC1B,IAAA,oBAAU,GAAE;8BACJ,wBAAO;uCAAC;AAEjB;IAAC,IAAA,8BAAQ,GAAE;;yCACG;AAEd;IAAC,IAAA,gBAAM,EAAC,aAAa,CAAC;;wCAA2B;AA7CxC,MAAM;IADlB,IAAA,gBAAM,GAAE;;GACI,MAAM,CA8ClB;AA9CY,wBAAM"}
|
|
@@ -5,7 +5,6 @@ const shared_utils_1 = require("@vendure/common/lib/shared-utils");
|
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const DateUtils_1 = require("typeorm/util/DateUtils");
|
|
7
7
|
const vendure_logger_1 = require("../config/logger/vendure-logger");
|
|
8
|
-
const custom_entity_fields_1 = require("./custom-entity-fields");
|
|
9
8
|
/**
|
|
10
9
|
* The maximum length of the "length" argument of a MySQL varchar column.
|
|
11
10
|
*/
|
|
@@ -197,60 +196,49 @@ function assertLocaleFieldsNotSpecified(config, entityName) {
|
|
|
197
196
|
* stage of the app lifecycle, before the AppModule is initialized.
|
|
198
197
|
*/
|
|
199
198
|
function registerCustomEntityFields(config) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
assertLocaleFieldsNotSpecified(config, 'GlobalSettings');
|
|
244
|
-
registerCustomFieldsForEntity(config, 'Region', custom_entity_fields_1.CustomRegionFields);
|
|
245
|
-
registerCustomFieldsForEntity(config, 'Region', custom_entity_fields_1.CustomRegionFieldsTranslation, true);
|
|
246
|
-
registerCustomFieldsForEntity(config, 'Seller', custom_entity_fields_1.CustomSellerFields);
|
|
247
|
-
assertLocaleFieldsNotSpecified(config, 'Seller');
|
|
248
|
-
registerCustomFieldsForEntity(config, 'ShippingMethod', custom_entity_fields_1.CustomShippingMethodFields);
|
|
249
|
-
registerCustomFieldsForEntity(config, 'ShippingMethod', custom_entity_fields_1.CustomShippingMethodFieldsTranslation, true);
|
|
250
|
-
registerCustomFieldsForEntity(config, 'StockLocation', custom_entity_fields_1.CustomStockLocationFields);
|
|
251
|
-
assertLocaleFieldsNotSpecified(config, 'StockLocation');
|
|
252
|
-
registerCustomFieldsForEntity(config, 'Zone', custom_entity_fields_1.CustomZoneFields);
|
|
253
|
-
assertLocaleFieldsNotSpecified(config, 'Zone');
|
|
199
|
+
var _a;
|
|
200
|
+
// In order to determine the classes used for the custom field embedded types, we need
|
|
201
|
+
// to introspect the metadata args storage.
|
|
202
|
+
const metadataArgsStorage = (0, typeorm_1.getMetadataArgsStorage)();
|
|
203
|
+
for (const [entityName, customFieldsConfig] of Object.entries((_a = config.customFields) !== null && _a !== void 0 ? _a : {})) {
|
|
204
|
+
if (customFieldsConfig && customFieldsConfig.length) {
|
|
205
|
+
const customFieldsMetadata = getCustomFieldsMetadata(entityName);
|
|
206
|
+
const customFieldsClass = customFieldsMetadata.type();
|
|
207
|
+
if (customFieldsClass && typeof customFieldsClass !== 'string') {
|
|
208
|
+
registerCustomFieldsForEntity(config, entityName, customFieldsClass);
|
|
209
|
+
}
|
|
210
|
+
const translationsMetadata = metadataArgsStorage
|
|
211
|
+
.filterRelations(customFieldsMetadata.target)
|
|
212
|
+
.find(m => m.propertyName === 'translations');
|
|
213
|
+
if (translationsMetadata) {
|
|
214
|
+
// This entity is translatable, which means that we should
|
|
215
|
+
// also register any localized custom fields on the related
|
|
216
|
+
// EntityTranslation entity.
|
|
217
|
+
const translationType = translationsMetadata.type();
|
|
218
|
+
const customFieldsTranslationsMetadata = getCustomFieldsMetadata(translationType);
|
|
219
|
+
const customFieldsTranslationClass = customFieldsTranslationsMetadata.type();
|
|
220
|
+
if (customFieldsTranslationClass && typeof customFieldsTranslationClass !== 'string') {
|
|
221
|
+
registerCustomFieldsForEntity(config, entityName, customFieldsTranslationClass, true);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
assertLocaleFieldsNotSpecified(config, entityName);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function getCustomFieldsMetadata(entity) {
|
|
230
|
+
const entityName = typeof entity === 'string' ? entity : entity.name;
|
|
231
|
+
const metadataArgs = metadataArgsStorage.embeddeds.find(item => {
|
|
232
|
+
if (item.propertyName === 'customFields') {
|
|
233
|
+
const targetName = typeof item.target === 'string' ? item.target : item.target.name;
|
|
234
|
+
return targetName === entityName;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
if (!metadataArgs) {
|
|
238
|
+
throw new Error(`Could not find embedded CustomFields property on entity "${entityName}"`);
|
|
239
|
+
}
|
|
240
|
+
return metadataArgs;
|
|
241
|
+
}
|
|
254
242
|
}
|
|
255
243
|
exports.registerCustomEntityFields = registerCustomEntityFields;
|
|
256
244
|
//# sourceMappingURL=register-custom-entity-fields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-custom-entity-fields.js","sourceRoot":"","sources":["../../src/entity/register-custom-entity-fields.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"register-custom-entity-fields.js","sourceRoot":"","sources":["../../src/entity/register-custom-entity-fields.ts"],"names":[],"mappings":";;;AAEA,mEAA+D;AAC/D,qCAWiB;AAEjB,sDAAmD;AAGnD,oEAAyD;AAGzD;;GAEG;AACH,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAEhC;;GAEG;AACH,SAAS,6BAA6B,CAClC,MAAqB,EACrB,UAA8B;AAC9B,mEAAmE;AACnE,IAAqB,EACrB,WAAW,GAAG,KAAK;IAEnB,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAC5E,MAAM,QAAQ,GAAG,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC;IACjD,IAAI,YAAY,EAAE;QACd,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;YACpC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,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DAA4D,UAAU,GAAG,CAAC,CAAC;SAC9F;QACD,OAAO,YAAY,CAAC;IACxB,CAAC;AACL,CAAC;AAlDD,gEAkDC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
2
|
+
import { ProductVariantPrice } from '../../entity';
|
|
3
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
4
|
+
type ProductVariantInputTypes = undefined;
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductVariantPrice} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 2.2.0
|
|
12
|
+
*/
|
|
13
|
+
export declare class ProductVariantPriceEvent extends VendureEntityEvent<ProductVariantPrice[], ProductVariantInputTypes> {
|
|
14
|
+
constructor(ctx: RequestContext, entity: ProductVariantPrice[], type: 'created' | 'updated' | 'deleted', input?: ProductVariantInputTypes);
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductVariantPriceEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductVariantPrice} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 2.2.0
|
|
12
|
+
*/
|
|
13
|
+
class ProductVariantPriceEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ProductVariantPriceEvent = ProductVariantPriceEvent;
|
|
19
|
+
//# sourceMappingURL=product-variant-price-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-variant-price-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-variant-price-event.ts"],"names":[],"mappings":";;;AAIA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,wBAAyB,SAAQ,yCAG7C;IACG,YACI,GAAmB,EACnB,MAA6B,EAC7B,IAAuC,EACvC,KAAgC;QAEhC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AAZD,4DAYC"}
|
|
@@ -44,6 +44,7 @@ export * from './events/product-option-group-change-event';
|
|
|
44
44
|
export * from './events/product-option-group-event';
|
|
45
45
|
export * from './events/product-variant-channel-event';
|
|
46
46
|
export * from './events/product-variant-event';
|
|
47
|
+
export * from './events/product-variant-price-event';
|
|
47
48
|
export * from './events/promotion-event';
|
|
48
49
|
export * from './events/refund-state-transition-event';
|
|
49
50
|
export * from './events/role-change-event';
|
package/dist/event-bus/index.js
CHANGED
|
@@ -60,6 +60,7 @@ __exportStar(require("./events/product-option-group-change-event"), exports);
|
|
|
60
60
|
__exportStar(require("./events/product-option-group-event"), exports);
|
|
61
61
|
__exportStar(require("./events/product-variant-channel-event"), exports);
|
|
62
62
|
__exportStar(require("./events/product-variant-event"), exports);
|
|
63
|
+
__exportStar(require("./events/product-variant-price-event"), exports);
|
|
63
64
|
__exportStar(require("./events/promotion-event"), exports);
|
|
64
65
|
__exportStar(require("./events/refund-state-transition-event"), exports);
|
|
65
66
|
__exportStar(require("./events/role-change-event"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event-bus/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,yDAAuC;AAEvC,sEAAoD;AACpD,kEAAgD;AAChD,+DAA6C;AAC7C,+DA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,iEAA+C;AAC/C,+DAA6C;AAC7C,mEAAiD;AACjD,2EAAyD;AACzD,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,4DAA0C;AAC1C,8DAA4C;AAC5C,wEAAsD;AACtD,gEAA8C;AAC9C,yEAAuD;AACvD,gEAA8C;AAC9C,0EAAwD;AACxD,iEAA+C;AAC/C,yDAAuC;AACvC,gEAA8C;AAC9C,6EAA2D;AAC3D,sEAAoD;AACpD,yEAAuD;AACvD,iEAA+C;AAC/C,uEAAqD;AACrD,2DAAyC;AACzC,yEAAuD;AACvD,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,iEAA+C;AAC/C,gEAA8C;AAC9C,8DAA4C;AAC5C,0DAAwC;AACxC,uEAAqD;AACrD,sDAAoC;AACpC,8DAA4C"}
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"ORDER_LIMIT_ERROR": "Der Artikel konnte nicht hinzugefügt werden. Eine Bestellung kann maximal { maxItems } Artikel enthalten",
|
|
74
74
|
"ORDER_MODIFICATION_ERROR": "Der Inhalt der Bestellung kann nur im Status \"AddingItems\" geändert werden",
|
|
75
75
|
"ORDER_PAYMENT_STATE_ERROR": "Eine Zahlung kann nur im Status \"ArrangingPayment\" hinzugefügt werden",
|
|
76
|
-
"ORDER_STATE_TRANSITION_ERROR": "Der Status der Bestellung
|
|
76
|
+
"ORDER_STATE_TRANSITION_ERROR": "Der Status der Bestellung kann nicht von \"{ fromState }\" zu \"{ toState }\" geändert werden",
|
|
77
77
|
"PASSWORD_ALREADY_SET_ERROR": "Ein Passwort wurde während der Registrierung bereits festgelegt",
|
|
78
|
-
"PASSWORD_RESET_TOKEN_EXPIRED_ERROR": "Das Token zum
|
|
79
|
-
"PASSWORD_RESET_TOKEN_INVALID_ERROR": "Das Token zum
|
|
78
|
+
"PASSWORD_RESET_TOKEN_EXPIRED_ERROR": "Das Token zum Zurücksetzen des Passwortes ist leider abgelaufen",
|
|
79
|
+
"PASSWORD_RESET_TOKEN_INVALID_ERROR": "Das Token zum Zurücksetzen des Passwortes ist leider falsch",
|
|
80
80
|
"PAYMENT_DECLINED_ERROR": "Die Zahlung wurde abgelehnt",
|
|
81
81
|
"PAYMENT_FAILED_ERROR": "Zahlung fehlgeschlagen",
|
|
82
82
|
"PAYMENT_ORDER_MISMATCH_ERROR": "Die Zahlung und OrderLines gehören nicht zueinander",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"promotion-channels-can-only-be-changed-from-default-channel": "Promotions channels may only be changed from the Default Channel",
|
|
51
51
|
"stockonhand-cannot-be-negative": "stockOnHand cannot be a negative value",
|
|
52
52
|
"superadmin-must-have-superadmin-role": "Cannot remove the SuperAdmin role from the sole SuperAdmin",
|
|
53
|
+
"target-customer-not-assigned-to-order-channels": "The target Customer is not assigned to the same Channels as the Order. Missing channels IDs: { missingChannelIds }",
|
|
53
54
|
"unauthorized": "The credentials did not match. Please check and try again"
|
|
54
55
|
},
|
|
55
56
|
"errorResult": {
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"PAYMENT_STATE_TRANSITION_ERROR": "Cannot transition Payment from \"{ fromState }\" to \"{ toState }\"",
|
|
95
96
|
"PRODUCT_OPTION_IN_USE_ERROR": "Cannot remove ProductOptionGroup \"{ optionGroupCode }\" as it is used by {productVariantCount, plural, one {1 ProductVariant} other {# ProductVariants}}. Use the `force` argument to remove it anyway",
|
|
96
97
|
"QUANTITY_TOO_GREAT_ERROR": "The specified quantity is greater than the available OrderItems",
|
|
98
|
+
"REFUND_AMOUNT_ERROR": "The amount specified exceeds the refundable amount for this payment",
|
|
97
99
|
"REFUND_ORDER_STATE_ERROR": "Cannot refund an Order in the \"{ orderState }\" state",
|
|
98
100
|
"SETTLE_PAYMENT_ERROR": "Settling the payment failed",
|
|
99
101
|
"VERIFICATION_TOKEN_EXPIRED_ERROR": "Verification token has expired. Use refreshCustomerVerification to send a new token.",
|