@vendure/core 3.2.4 → 3.3.1
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/api-internal-modules.js +4 -0
- package/dist/api/api-internal-modules.js.map +1 -1
- package/dist/api/middleware/asset-interceptor-plugin.js +17 -2
- package/dist/api/middleware/asset-interceptor-plugin.js.map +1 -1
- package/dist/api/resolvers/admin/draft-order.resolver.d.ts +1 -1
- package/dist/api/resolvers/admin/order.resolver.d.ts +1 -1
- package/dist/api/resolvers/admin/product.resolver.d.ts +1 -1
- package/dist/api/resolvers/admin/product.resolver.js +1 -1
- package/dist/api/resolvers/admin/product.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/scheduled-task.resolver.d.ts +9 -0
- package/dist/api/resolvers/admin/scheduled-task.resolver.js +62 -0
- package/dist/api/resolvers/admin/scheduled-task.resolver.js.map +1 -0
- package/dist/api/schema/admin-api/scheduled-task.api.graphql +25 -0
- package/dist/cache/cache.service.js +2 -0
- package/dist/cache/cache.service.js.map +1 -1
- package/dist/common/index.d.ts +6 -5
- package/dist/common/index.js +6 -5
- package/dist/common/index.js.map +1 -1
- package/dist/common/instrument-decorator.d.ts +41 -0
- package/dist/common/instrument-decorator.js +103 -0
- package/dist/common/instrument-decorator.js.map +1 -0
- package/dist/config/config.module.js +4 -1
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/config.service.d.ts +2 -1
- package/dist/config/config.service.js +3 -0
- package/dist/config/config.service.js.map +1 -1
- package/dist/config/default-config.js +9 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/index.d.ts +8 -7
- package/dist/config/index.js +8 -7
- package/dist/config/index.js.map +1 -1
- package/dist/config/system/instrumentation-strategy.d.ts +56 -0
- package/dist/config/system/instrumentation-strategy.js +3 -0
- package/dist/config/system/instrumentation-strategy.js.map +1 -0
- package/dist/config/system/noop-instrumentation-strategy.d.ts +4 -0
- package/dist/config/system/noop-instrumentation-strategy.js +10 -0
- package/dist/config/system/noop-instrumentation-strategy.js.map +1 -0
- package/dist/config/vendure-config.d.ts +47 -1
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/event-bus/event-bus.js +2 -0
- package/dist/event-bus/event-bus.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/job-queue/job-queue.js +17 -2
- package/dist/job-queue/job-queue.js.map +1 -1
- package/dist/job-queue/job-queue.service.js +4 -1
- package/dist/job-queue/job-queue.service.js.map +1 -1
- package/dist/plugin/default-cache-plugin/sql-cache-strategy.js +16 -2
- package/dist/plugin/default-cache-plugin/sql-cache-strategy.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/clean-jobs-task.d.ts +11 -0
- package/dist/plugin/default-job-queue-plugin/clean-jobs-task.js +51 -0
- package/dist/plugin/default-job-queue-plugin/clean-jobs-task.js.map +1 -0
- package/dist/plugin/default-job-queue-plugin/constants.d.ts +2 -0
- package/dist/plugin/default-job-queue-plugin/constants.js +6 -0
- package/dist/plugin/default-job-queue-plugin/constants.js.map +1 -0
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.d.ts +24 -81
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js +34 -0
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/types.d.ts +101 -0
- package/dist/plugin/default-job-queue-plugin/types.js +3 -0
- package/dist/plugin/default-job-queue-plugin/types.js.map +1 -0
- package/dist/plugin/default-scheduler-plugin/constants.d.ts +3 -0
- package/dist/plugin/default-scheduler-plugin/constants.js +7 -0
- package/dist/plugin/default-scheduler-plugin/constants.js.map +1 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler-strategy.d.ts +34 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler-strategy.js +203 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler-strategy.js.map +1 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler.plugin.d.ts +31 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler.plugin.js +69 -0
- package/dist/plugin/default-scheduler-plugin/default-scheduler.plugin.js.map +1 -0
- package/dist/plugin/default-scheduler-plugin/scheduled-task-record.entity.d.ts +10 -0
- package/dist/plugin/default-scheduler-plugin/scheduled-task-record.entity.js +50 -0
- package/dist/plugin/default-scheduler-plugin/scheduled-task-record.entity.js.map +1 -0
- package/dist/plugin/default-scheduler-plugin/types.d.ts +24 -0
- package/dist/plugin/default-scheduler-plugin/types.js +3 -0
- package/dist/plugin/default-scheduler-plugin/types.js.map +1 -0
- package/dist/plugin/index.d.ts +8 -6
- package/dist/plugin/index.js +8 -6
- package/dist/plugin/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +4 -0
- package/dist/scheduler/index.js +21 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/noop-scheduler-strategy.d.ts +10 -0
- package/dist/scheduler/noop-scheduler-strategy.js +24 -0
- package/dist/scheduler/noop-scheduler-strategy.js.map +1 -0
- package/dist/scheduler/scheduled-task.d.ts +142 -0
- package/dist/scheduler/scheduled-task.js +88 -0
- package/dist/scheduler/scheduled-task.js.map +1 -0
- package/dist/scheduler/scheduler-strategy.d.ts +91 -0
- package/dist/scheduler/scheduler-strategy.js +3 -0
- package/dist/scheduler/scheduler-strategy.js.map +1 -0
- package/dist/scheduler/scheduler.module.d.ts +2 -0
- package/dist/scheduler/scheduler.module.js +23 -0
- package/dist/scheduler/scheduler.module.js.map +1 -0
- package/dist/scheduler/scheduler.service.d.ts +40 -0
- package/dist/scheduler/scheduler.service.js +160 -0
- package/dist/scheduler/scheduler.service.js.map +1 -0
- package/dist/scheduler/tasks/clean-sessions-task.d.ts +37 -0
- package/dist/scheduler/tasks/clean-sessions-task.js +52 -0
- package/dist/scheduler/tasks/clean-sessions-task.js.map +1 -0
- package/dist/service/helpers/entity-hydrator/merge-deep.d.ts +1 -1
- package/dist/service/helpers/entity-hydrator/merge-deep.js +15 -4
- package/dist/service/helpers/entity-hydrator/merge-deep.js.map +1 -1
- package/dist/service/helpers/list-query-builder/list-query-builder.js +5 -3
- package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
- package/dist/service/helpers/order-calculator/order-calculator.js +2 -0
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.js +4 -2
- package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
- package/dist/service/service.module.js +2 -1
- package/dist/service/service.module.js.map +1 -1
- package/dist/service/services/administrator.service.js +2 -0
- package/dist/service/services/administrator.service.js.map +1 -1
- package/dist/service/services/asset.service.js +3 -1
- package/dist/service/services/asset.service.js.map +1 -1
- package/dist/service/services/auth.service.d.ts +1 -1
- package/dist/service/services/auth.service.js +2 -0
- package/dist/service/services/auth.service.js.map +1 -1
- package/dist/service/services/channel.service.js +2 -0
- package/dist/service/services/channel.service.js.map +1 -1
- package/dist/service/services/collection.service.js +2 -0
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/country.service.js +2 -0
- package/dist/service/services/country.service.js.map +1 -1
- package/dist/service/services/customer-group.service.d.ts +1 -1
- package/dist/service/services/customer-group.service.js +3 -1
- package/dist/service/services/customer-group.service.js.map +1 -1
- package/dist/service/services/customer.service.d.ts +1 -1
- package/dist/service/services/customer.service.js +2 -0
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/facet-value.service.d.ts +1 -1
- package/dist/service/services/facet-value.service.js +2 -0
- package/dist/service/services/facet-value.service.js.map +1 -1
- package/dist/service/services/facet.service.js +2 -1
- package/dist/service/services/facet.service.js.map +1 -1
- package/dist/service/services/fulfillment.service.d.ts +1 -1
- package/dist/service/services/fulfillment.service.js +4 -2
- package/dist/service/services/fulfillment.service.js.map +1 -1
- package/dist/service/services/global-settings.service.js +2 -0
- package/dist/service/services/global-settings.service.js.map +1 -1
- package/dist/service/services/history.service.js +2 -0
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/order-testing.service.js +3 -1
- package/dist/service/services/order-testing.service.js.map +1 -1
- package/dist/service/services/order.service.d.ts +1 -1
- package/dist/service/services/order.service.js +4 -2
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/payment-method.service.js +2 -0
- package/dist/service/services/payment-method.service.js.map +1 -1
- package/dist/service/services/payment.service.js +4 -2
- package/dist/service/services/payment.service.js.map +1 -1
- package/dist/service/services/product-option-group.service.js +3 -1
- package/dist/service/services/product-option-group.service.js.map +1 -1
- package/dist/service/services/product-option.service.d.ts +1 -1
- package/dist/service/services/product-option.service.js +3 -1
- package/dist/service/services/product-option.service.js.map +1 -1
- package/dist/service/services/product-variant.service.d.ts +1 -1
- package/dist/service/services/product-variant.service.js +3 -1
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/product.service.js +13 -4
- package/dist/service/services/product.service.js.map +1 -1
- package/dist/service/services/promotion.service.js +2 -0
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/role.service.js +2 -0
- package/dist/service/services/role.service.js.map +1 -1
- package/dist/service/services/seller.service.js +2 -0
- package/dist/service/services/seller.service.js.map +1 -1
- package/dist/service/services/session.service.d.ts +19 -2
- package/dist/service/services/session.service.js +60 -2
- package/dist/service/services/session.service.js.map +1 -1
- package/dist/service/services/shipping-method.service.js +2 -0
- package/dist/service/services/shipping-method.service.js.map +1 -1
- package/dist/service/services/stock-level.service.js +2 -0
- package/dist/service/services/stock-level.service.js.map +1 -1
- package/dist/service/services/stock-location.service.js +2 -0
- package/dist/service/services/stock-location.service.js.map +1 -1
- package/dist/service/services/stock-movement.service.d.ts +1 -3
- package/dist/service/services/stock-movement.service.js +4 -5
- package/dist/service/services/stock-movement.service.js.map +1 -1
- package/dist/service/services/tag.service.js +4 -1
- package/dist/service/services/tag.service.js.map +1 -1
- package/dist/service/services/tax-category.service.js +2 -0
- package/dist/service/services/tax-category.service.js.map +1 -1
- package/dist/service/services/tax-rate.service.js +2 -0
- package/dist/service/services/tax-rate.service.js.map +1 -1
- package/dist/service/services/user.service.js +2 -0
- package/dist/service/services/user.service.js.map +1 -1
- package/dist/service/services/zone.service.js +2 -0
- package/dist/service/services/zone.service.js.map +1 -1
- package/package.json +8 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.service.js","sourceRoot":"","sources":["../../src/config/config.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AAEjE,qCAAoE;AAEpE,qDAA6C;AAG7C,4DAAgE;
|
|
1
|
+
{"version":3,"file":"config.service.js","sourceRoot":"","sources":["../../src/config/config.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AAEjE,qCAAoE;AAEpE,qDAA6C;AAG7C,4DAAgE;AAqBzD,IAAM,aAAa,GAAnB,MAAM,aAAa;IAItB;QACI,IAAI,CAAC,YAAY,GAAG,IAAA,0BAAS,GAAE,CAAC;QAChC,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;YAC5C,2BAA2B;YAC3B,uBAAM,CAAC,IAAI,CAAC,gFAAgF,CAAC,CAAC;QAClG,CAAC;IACL,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC;IACxC,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC;IACzC,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,YAAY,CAAC,mBAAmB,CAAC;IACjD,CAAC;IAED,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,YAAY,CAAC,mBAAmB,CAAC;IACjD,CAAC;IAED,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC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;;GACA,aAAa,CAsIzB"}
|
|
@@ -7,6 +7,8 @@ const crypto_1 = require("crypto");
|
|
|
7
7
|
const typeorm_health_check_strategy_1 = require("../health-check/typeorm-health-check-strategy");
|
|
8
8
|
const in_memory_job_queue_strategy_1 = require("../job-queue/in-memory-job-queue-strategy");
|
|
9
9
|
const in_memory_job_buffer_storage_strategy_1 = require("../job-queue/job-buffer/in-memory-job-buffer-storage-strategy");
|
|
10
|
+
const noop_scheduler_strategy_1 = require("../scheduler/noop-scheduler-strategy");
|
|
11
|
+
const clean_sessions_task_1 = require("../scheduler/tasks/clean-sessions-task");
|
|
10
12
|
const default_asset_import_strategy_1 = require("./asset-import-strategy/default-asset-import-strategy");
|
|
11
13
|
const default_asset_naming_strategy_1 = require("./asset-naming-strategy/default-asset-naming-strategy");
|
|
12
14
|
const no_asset_preview_strategy_1 = require("./asset-preview-strategy/no-asset-preview-strategy");
|
|
@@ -47,6 +49,7 @@ const default_shipping_calculator_1 = require("./shipping-method/default-shippin
|
|
|
47
49
|
const default_shipping_eligibility_checker_1 = require("./shipping-method/default-shipping-eligibility-checker");
|
|
48
50
|
const default_shipping_line_assignment_strategy_1 = require("./shipping-method/default-shipping-line-assignment-strategy");
|
|
49
51
|
const in_memory_cache_strategy_1 = require("./system/in-memory-cache-strategy");
|
|
52
|
+
const noop_instrumentation_strategy_1 = require("./system/noop-instrumentation-strategy");
|
|
50
53
|
const default_tax_line_calculation_strategy_1 = require("./tax/default-tax-line-calculation-strategy");
|
|
51
54
|
const default_tax_zone_strategy_1 = require("./tax/default-tax-zone-strategy");
|
|
52
55
|
/**
|
|
@@ -187,6 +190,11 @@ exports.defaultConfig = {
|
|
|
187
190
|
activeQueues: [],
|
|
188
191
|
prefix: '',
|
|
189
192
|
},
|
|
193
|
+
schedulerOptions: {
|
|
194
|
+
schedulerStrategy: new noop_scheduler_strategy_1.NoopSchedulerStrategy(),
|
|
195
|
+
tasks: [clean_sessions_task_1.cleanSessionsTask],
|
|
196
|
+
runTasksInWorkerOnly: true,
|
|
197
|
+
},
|
|
190
198
|
customFields: {
|
|
191
199
|
Address: [],
|
|
192
200
|
Administrator: [],
|
|
@@ -229,6 +237,7 @@ exports.defaultConfig = {
|
|
|
229
237
|
cacheStrategy: new in_memory_cache_strategy_1.InMemoryCacheStrategy({ cacheSize: 10000 }),
|
|
230
238
|
healthChecks: [new typeorm_health_check_strategy_1.TypeORMHealthCheckStrategy()],
|
|
231
239
|
errorHandlers: [],
|
|
240
|
+
instrumentationStrategy: new noop_instrumentation_strategy_1.NoopInstrumentationStrategy(),
|
|
232
241
|
},
|
|
233
242
|
};
|
|
234
243
|
//# sourceMappingURL=default-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAK8C;AAC9C,mCAAqC;AAErC,iGAA2F;AAC3F,4FAAqF;AACrF,yHAAiH;
|
|
1
|
+
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAK8C;AAC9C,mCAAqC;AAErC,iGAA2F;AAC3F,4FAAqF;AACrF,yHAAiH;AACjH,kFAA6E;AAC7E,gFAA2E;AAE3E,yGAAmG;AACnG,yGAAmG;AACnG,kGAA4F;AAC5F,kGAA4F;AAC5F,8FAAwF;AACxF,sGAAgG;AAChG,oGAA8F;AAC9F,0FAAqF;AACrF,qFAAgF;AAChF,qIAA6H;AAC7H,iIAAyH;AACzH,2HAAmH;AACnH,6FAAuF;AACvF,2GAAoG;AACpG,oFAA8E;AAC9E,4EAAuE;AACvE,6DAA6E;AAC7E,2FAAsF;AACtF,yFAAoF;AACpF,4DAAwD;AACxD,yFAAmF;AACnF,6GAAsG;AACtG,6FAAuF;AACvF,yHAAiH;AACjH,yFAAmF;AACnF,yEAAoE;AACpE,yFAAmF;AACnF,iGAA2F;AAC3F,yEAAo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AAE;QACX,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;KACX;IACD,OAAO,EAAE,EAAE;IACX,aAAa,EAAE;QACX,aAAa,EAAE,IAAI,gDAAqB,CAAC,EAAE,SAAS,EAAE,KAAM,EAAE,CAAC;QAC/D,YAAY,EAAE,CAAC,IAAI,0DAA0B,EAAE,CAAC;QAChD,aAAa,EAAE,EAAE;QACjB,uBAAuB,EAAE,IAAI,2DAA2B,EAAE;KAC7D;CACJ,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -23,20 +23,20 @@ export * from './catalog/product-variant-price-selection-strategy';
|
|
|
23
23
|
export * from './catalog/product-variant-price-update-strategy';
|
|
24
24
|
export * from './catalog/stock-display-strategy';
|
|
25
25
|
export * from './catalog/stock-location-strategy';
|
|
26
|
+
export * from './config-helpers';
|
|
26
27
|
export * from './config.module';
|
|
27
28
|
export * from './config.service';
|
|
28
|
-
export * from './config-helpers';
|
|
29
29
|
export * from './custom-field/custom-field-types';
|
|
30
30
|
export * from './default-config';
|
|
31
|
+
export * from './entity-metadata/entity-metadata-modifier';
|
|
31
32
|
export * from './entity/auto-increment-id-strategy';
|
|
33
|
+
export * from './entity/bigint-money-strategy';
|
|
32
34
|
export * from './entity/default-money-strategy';
|
|
33
35
|
export * from './entity/entity-duplicator';
|
|
34
36
|
export * from './entity/entity-duplicators/index';
|
|
35
|
-
export * from './entity/bigint-money-strategy';
|
|
36
37
|
export * from './entity/entity-id-strategy';
|
|
37
38
|
export * from './entity/money-strategy';
|
|
38
39
|
export * from './entity/uuid-id-strategy';
|
|
39
|
-
export * from './entity-metadata/entity-metadata-modifier';
|
|
40
40
|
export * from './fulfillment/default-fulfillment-process';
|
|
41
41
|
export * from './fulfillment/fulfillment-handler';
|
|
42
42
|
export * from './fulfillment/fulfillment-process';
|
|
@@ -51,11 +51,11 @@ export * from './order/active-order-strategy';
|
|
|
51
51
|
export * from './order/changed-price-handling-strategy';
|
|
52
52
|
export * from './order/default-active-order-strategy';
|
|
53
53
|
export * from './order/default-changed-price-handling-strategy';
|
|
54
|
+
export * from './order/default-guest-checkout-strategy';
|
|
54
55
|
export * from './order/default-order-placed-strategy';
|
|
55
56
|
export * from './order/default-order-process';
|
|
56
57
|
export * from './order/default-order-seller-strategy';
|
|
57
58
|
export * from './order/default-stock-allocation-strategy';
|
|
58
|
-
export * from './order/default-guest-checkout-strategy';
|
|
59
59
|
export * from './order/guest-checkout-strategy';
|
|
60
60
|
export * from './order/merge-orders-strategy';
|
|
61
61
|
export * from './order/order-by-code-access-strategy';
|
|
@@ -77,6 +77,7 @@ export * from './payment/payment-method-eligibility-checker';
|
|
|
77
77
|
export * from './payment/payment-method-handler';
|
|
78
78
|
export * from './payment/payment-process';
|
|
79
79
|
export * from './promotion';
|
|
80
|
+
export * from './refund/default-refund-process';
|
|
80
81
|
export * from './session-cache/default-session-cache-strategy';
|
|
81
82
|
export * from './session-cache/in-memory-session-cache-strategy';
|
|
82
83
|
export * from './session-cache/noop-session-cache-strategy';
|
|
@@ -87,12 +88,12 @@ export * from './shipping-method/default-shipping-line-assignment-strategy';
|
|
|
87
88
|
export * from './shipping-method/shipping-calculator';
|
|
88
89
|
export * from './shipping-method/shipping-eligibility-checker';
|
|
89
90
|
export * from './shipping-method/shipping-line-assignment-strategy';
|
|
90
|
-
export * from './system/health-check-strategy';
|
|
91
91
|
export * from './system/error-handler-strategy';
|
|
92
|
+
export * from './system/health-check-strategy';
|
|
93
|
+
export * from './system/instrumentation-strategy';
|
|
94
|
+
export * from './tax/address-based-tax-zone-strategy';
|
|
92
95
|
export * from './tax/default-tax-line-calculation-strategy';
|
|
93
96
|
export * from './tax/default-tax-zone-strategy';
|
|
94
|
-
export * from './tax/address-based-tax-zone-strategy';
|
|
95
97
|
export * from './tax/tax-line-calculation-strategy';
|
|
96
98
|
export * from './tax/tax-zone-strategy';
|
|
97
99
|
export * from './vendure-config';
|
|
98
|
-
export * from './refund/default-refund-process';
|
package/dist/config/index.js
CHANGED
|
@@ -39,20 +39,20 @@ __exportStar(require("./catalog/product-variant-price-selection-strategy"), expo
|
|
|
39
39
|
__exportStar(require("./catalog/product-variant-price-update-strategy"), exports);
|
|
40
40
|
__exportStar(require("./catalog/stock-display-strategy"), exports);
|
|
41
41
|
__exportStar(require("./catalog/stock-location-strategy"), exports);
|
|
42
|
+
__exportStar(require("./config-helpers"), exports);
|
|
42
43
|
__exportStar(require("./config.module"), exports);
|
|
43
44
|
__exportStar(require("./config.service"), exports);
|
|
44
|
-
__exportStar(require("./config-helpers"), exports);
|
|
45
45
|
__exportStar(require("./custom-field/custom-field-types"), exports);
|
|
46
46
|
__exportStar(require("./default-config"), exports);
|
|
47
|
+
__exportStar(require("./entity-metadata/entity-metadata-modifier"), exports);
|
|
47
48
|
__exportStar(require("./entity/auto-increment-id-strategy"), exports);
|
|
49
|
+
__exportStar(require("./entity/bigint-money-strategy"), exports);
|
|
48
50
|
__exportStar(require("./entity/default-money-strategy"), exports);
|
|
49
51
|
__exportStar(require("./entity/entity-duplicator"), exports);
|
|
50
52
|
__exportStar(require("./entity/entity-duplicators/index"), exports);
|
|
51
|
-
__exportStar(require("./entity/bigint-money-strategy"), exports);
|
|
52
53
|
__exportStar(require("./entity/entity-id-strategy"), exports);
|
|
53
54
|
__exportStar(require("./entity/money-strategy"), exports);
|
|
54
55
|
__exportStar(require("./entity/uuid-id-strategy"), exports);
|
|
55
|
-
__exportStar(require("./entity-metadata/entity-metadata-modifier"), exports);
|
|
56
56
|
__exportStar(require("./fulfillment/default-fulfillment-process"), exports);
|
|
57
57
|
__exportStar(require("./fulfillment/fulfillment-handler"), exports);
|
|
58
58
|
__exportStar(require("./fulfillment/fulfillment-process"), exports);
|
|
@@ -67,11 +67,11 @@ __exportStar(require("./order/active-order-strategy"), exports);
|
|
|
67
67
|
__exportStar(require("./order/changed-price-handling-strategy"), exports);
|
|
68
68
|
__exportStar(require("./order/default-active-order-strategy"), exports);
|
|
69
69
|
__exportStar(require("./order/default-changed-price-handling-strategy"), exports);
|
|
70
|
+
__exportStar(require("./order/default-guest-checkout-strategy"), exports);
|
|
70
71
|
__exportStar(require("./order/default-order-placed-strategy"), exports);
|
|
71
72
|
__exportStar(require("./order/default-order-process"), exports);
|
|
72
73
|
__exportStar(require("./order/default-order-seller-strategy"), exports);
|
|
73
74
|
__exportStar(require("./order/default-stock-allocation-strategy"), exports);
|
|
74
|
-
__exportStar(require("./order/default-guest-checkout-strategy"), exports);
|
|
75
75
|
__exportStar(require("./order/guest-checkout-strategy"), exports);
|
|
76
76
|
__exportStar(require("./order/merge-orders-strategy"), exports);
|
|
77
77
|
__exportStar(require("./order/order-by-code-access-strategy"), exports);
|
|
@@ -93,6 +93,7 @@ __exportStar(require("./payment/payment-method-eligibility-checker"), exports);
|
|
|
93
93
|
__exportStar(require("./payment/payment-method-handler"), exports);
|
|
94
94
|
__exportStar(require("./payment/payment-process"), exports);
|
|
95
95
|
__exportStar(require("./promotion"), exports);
|
|
96
|
+
__exportStar(require("./refund/default-refund-process"), exports);
|
|
96
97
|
__exportStar(require("./session-cache/default-session-cache-strategy"), exports);
|
|
97
98
|
__exportStar(require("./session-cache/in-memory-session-cache-strategy"), exports);
|
|
98
99
|
__exportStar(require("./session-cache/noop-session-cache-strategy"), exports);
|
|
@@ -103,13 +104,13 @@ __exportStar(require("./shipping-method/default-shipping-line-assignment-strateg
|
|
|
103
104
|
__exportStar(require("./shipping-method/shipping-calculator"), exports);
|
|
104
105
|
__exportStar(require("./shipping-method/shipping-eligibility-checker"), exports);
|
|
105
106
|
__exportStar(require("./shipping-method/shipping-line-assignment-strategy"), exports);
|
|
106
|
-
__exportStar(require("./system/health-check-strategy"), exports);
|
|
107
107
|
__exportStar(require("./system/error-handler-strategy"), exports);
|
|
108
|
+
__exportStar(require("./system/health-check-strategy"), exports);
|
|
109
|
+
__exportStar(require("./system/instrumentation-strategy"), exports);
|
|
110
|
+
__exportStar(require("./tax/address-based-tax-zone-strategy"), exports);
|
|
108
111
|
__exportStar(require("./tax/default-tax-line-calculation-strategy"), exports);
|
|
109
112
|
__exportStar(require("./tax/default-tax-zone-strategy"), exports);
|
|
110
|
-
__exportStar(require("./tax/address-based-tax-zone-strategy"), exports);
|
|
111
113
|
__exportStar(require("./tax/tax-line-calculation-strategy"), exports);
|
|
112
114
|
__exportStar(require("./tax/tax-zone-strategy"), exports);
|
|
113
115
|
__exportStar(require("./vendure-config"), exports);
|
|
114
|
-
__exportStar(require("./refund/default-refund-process"), exports);
|
|
115
116
|
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,6EAA2D;AAC3D,wEAAsD;AACtD,mEAAiD;AACjD,sEAAoD;AACpD,qEAAmD;AACnD,8DAA4C;AAC5C,uEAAqD;AACrD,6FAA2E;AAC3E,0FAAwE;AACxE,2EAAyD;AACzD,4EAA0D;AAC1D,kFAAgE;AAChE,uFAAqE;AACrE,qFAAmE;AACnE,kFAAgE;AAChE,mEAAiD;AACjD,oEAAkD;AAClD,kDAAgC;AAChC,mDAAiC;AACjC,
|
|
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,6EAA2D;AAC3D,wEAAsD;AACtD,mEAAiD;AACjD,sEAAoD;AACpD,qEAAmD;AACnD,8DAA4C;AAC5C,uEAAqD;AACrD,6FAA2E;AAC3E,0FAAwE;AACxE,2EAAyD;AACzD,4EA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
1
|
+
import { Type } from '@vendure/common/lib/shared-types';
|
|
2
|
+
import { InjectableStrategy } from '../../common/types/injectable-strategy';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* The arguments that are passed to the `wrapMethod` method of the
|
|
6
|
+
* {@link InstrumentationStrategy} interface.
|
|
7
|
+
*
|
|
8
|
+
* @docsCategory telemetry
|
|
9
|
+
* @since 3.3.0
|
|
10
|
+
*/
|
|
11
|
+
export interface WrappedMethodArgs {
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* The instance of the class which is being instrumented.
|
|
15
|
+
*/
|
|
16
|
+
instance: any;
|
|
17
|
+
/**
|
|
18
|
+
* @description
|
|
19
|
+
* The class which is being instrumented.
|
|
20
|
+
*/
|
|
21
|
+
target: Type<any>;
|
|
22
|
+
/**
|
|
23
|
+
* @description
|
|
24
|
+
* The name of the method which is being instrumented.
|
|
25
|
+
*/
|
|
26
|
+
methodName: string;
|
|
27
|
+
/**
|
|
28
|
+
* @description
|
|
29
|
+
* The arguments which are passed to the method.
|
|
30
|
+
*/
|
|
31
|
+
args: any[];
|
|
32
|
+
/**
|
|
33
|
+
* @description
|
|
34
|
+
* A function which applies the original method and returns the result.
|
|
35
|
+
* This is used to call the original method after the instrumentation has
|
|
36
|
+
* been applied.
|
|
37
|
+
*/
|
|
38
|
+
applyOriginalFunction: () => any | Promise<any>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description
|
|
42
|
+
* This interface is used to define a strategy for instrumenting methods of
|
|
43
|
+
* classes which are decorated with the {@link Instrument} decorator.
|
|
44
|
+
*
|
|
45
|
+
* @docsCategory telemetry
|
|
46
|
+
* @since 3.3.0
|
|
47
|
+
*/
|
|
48
|
+
export interface InstrumentationStrategy extends InjectableStrategy {
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
* When a method of an instrumented class is called, it will be wrapped (by means of
|
|
52
|
+
* a Proxy) and this method will be called. The `applyOriginalFunction` function
|
|
53
|
+
* will apply the original method and return the result.
|
|
54
|
+
*/
|
|
55
|
+
wrapMethod(args: WrappedMethodArgs): any;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentation-strategy.js","sourceRoot":"","sources":["../../../src/config/system/instrumentation-strategy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoopInstrumentationStrategy = void 0;
|
|
4
|
+
class NoopInstrumentationStrategy {
|
|
5
|
+
async wrapMethod() {
|
|
6
|
+
// no-op
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.NoopInstrumentationStrategy = NoopInstrumentationStrategy;
|
|
10
|
+
//# sourceMappingURL=noop-instrumentation-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop-instrumentation-strategy.js","sourceRoot":"","sources":["../../../src/config/system/noop-instrumentation-strategy.ts"],"names":[],"mappings":";;;AAEA,MAAa,2BAA2B;IACpC,KAAK,CAAC,UAAU;QACZ,QAAQ;IACZ,CAAC;CACJ;AAJD,kEAIC"}
|
|
@@ -8,6 +8,8 @@ import { DataSourceOptions } from 'typeorm';
|
|
|
8
8
|
import { Middleware } from '../common';
|
|
9
9
|
import { PermissionDefinition } from '../common/permission-definition';
|
|
10
10
|
import { JobBufferStorageStrategy } from '../job-queue/job-buffer/job-buffer-storage-strategy';
|
|
11
|
+
import { ScheduledTask } from '../scheduler/scheduled-task';
|
|
12
|
+
import { SchedulerStrategy } from '../scheduler/scheduler-strategy';
|
|
11
13
|
import { AssetImportStrategy } from './asset-import-strategy/asset-import-strategy';
|
|
12
14
|
import { AssetNamingStrategy } from './asset-naming-strategy/asset-naming-strategy';
|
|
13
15
|
import { AssetPreviewStrategy } from './asset-preview-strategy/asset-preview-strategy';
|
|
@@ -23,10 +25,10 @@ import { ProductVariantPriceUpdateStrategy } from './catalog/product-variant-pri
|
|
|
23
25
|
import { StockDisplayStrategy } from './catalog/stock-display-strategy';
|
|
24
26
|
import { StockLocationStrategy } from './catalog/stock-location-strategy';
|
|
25
27
|
import { CustomFields } from './custom-field/custom-field-types';
|
|
28
|
+
import { EntityMetadataModifier } from './entity-metadata/entity-metadata-modifier';
|
|
26
29
|
import { EntityDuplicator } from './entity/entity-duplicator';
|
|
27
30
|
import { EntityIdStrategy } from './entity/entity-id-strategy';
|
|
28
31
|
import { MoneyStrategy } from './entity/money-strategy';
|
|
29
|
-
import { EntityMetadataModifier } from './entity-metadata/entity-metadata-modifier';
|
|
30
32
|
import { FulfillmentHandler } from './fulfillment/fulfillment-handler';
|
|
31
33
|
import { FulfillmentProcess } from './fulfillment/fulfillment-process';
|
|
32
34
|
import { JobQueueStrategy } from './job-queue/job-queue-strategy';
|
|
@@ -56,6 +58,7 @@ import { ShippingLineAssignmentStrategy } from './shipping-method/shipping-line-
|
|
|
56
58
|
import { CacheStrategy } from './system/cache-strategy';
|
|
57
59
|
import { ErrorHandlerStrategy } from './system/error-handler-strategy';
|
|
58
60
|
import { HealthCheckStrategy } from './system/health-check-strategy';
|
|
61
|
+
import { InstrumentationStrategy } from './system/instrumentation-strategy';
|
|
59
62
|
import { TaxLineCalculationStrategy } from './tax/tax-line-calculation-strategy';
|
|
60
63
|
import { TaxZoneStrategy } from './tax/tax-zone-strategy';
|
|
61
64
|
/**
|
|
@@ -99,6 +102,7 @@ export interface ApiOptions {
|
|
|
99
102
|
* The playground config to the admin GraphQL API
|
|
100
103
|
* [ApolloServer playground](https://www.apollographql.com/docs/apollo-server/api/apollo-server/#constructoroptions-apolloserver).
|
|
101
104
|
*
|
|
105
|
+
* @deprecated Use `\@vendure/graphiql-plugin` instead.
|
|
102
106
|
* @default false
|
|
103
107
|
*/
|
|
104
108
|
adminApiPlayground?: boolean | RenderPageOptions;
|
|
@@ -107,6 +111,7 @@ export interface ApiOptions {
|
|
|
107
111
|
* The playground config to the shop GraphQL API
|
|
108
112
|
* [ApolloServer playground](https://www.apollographql.com/docs/apollo-server/api/apollo-server/#constructoroptions-apolloserver).
|
|
109
113
|
*
|
|
114
|
+
* @deprecated Use `\@vendure/graphiql-plugin` instead.
|
|
110
115
|
* @default false
|
|
111
116
|
*/
|
|
112
117
|
shopApiPlayground?: boolean | RenderPageOptions;
|
|
@@ -937,6 +942,38 @@ export interface JobQueueOptions {
|
|
|
937
942
|
*/
|
|
938
943
|
prefix?: string;
|
|
939
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* @description
|
|
947
|
+
* Options related to scheduled tasks..
|
|
948
|
+
*
|
|
949
|
+
* @since 3.3.0
|
|
950
|
+
* @docsCategory scheduled-tasks
|
|
951
|
+
*/
|
|
952
|
+
export interface SchedulerOptions {
|
|
953
|
+
/**
|
|
954
|
+
* @description
|
|
955
|
+
* The strategy used to execute scheduled tasks. If you are using the
|
|
956
|
+
* {@link DefaultSchedulerPlugin} (which is recommended) then this will be set to the
|
|
957
|
+
* {@link DefaultSchedulerStrategy}.
|
|
958
|
+
*/
|
|
959
|
+
schedulerStrategy?: SchedulerStrategy;
|
|
960
|
+
/**
|
|
961
|
+
* @description
|
|
962
|
+
* The tasks to be executed.
|
|
963
|
+
*/
|
|
964
|
+
tasks?: ScheduledTask[];
|
|
965
|
+
/**
|
|
966
|
+
* @description
|
|
967
|
+
* Whether to run tasks only in the worker process. Generally this should
|
|
968
|
+
* be left as true, since tasks may involve expensive operations that should
|
|
969
|
+
* not be allowed to interfere with the server responsiveness.
|
|
970
|
+
*
|
|
971
|
+
* This option mainly exists for testing purposes.
|
|
972
|
+
*
|
|
973
|
+
* @default true
|
|
974
|
+
*/
|
|
975
|
+
runTasksInWorkerOnly?: boolean;
|
|
976
|
+
}
|
|
940
977
|
/**
|
|
941
978
|
* @description
|
|
942
979
|
* Options relating to the internal handling of entities.
|
|
@@ -1062,6 +1099,7 @@ export interface SystemOptions {
|
|
|
1062
1099
|
* @default InMemoryCacheStrategy
|
|
1063
1100
|
*/
|
|
1064
1101
|
cacheStrategy?: CacheStrategy;
|
|
1102
|
+
instrumentationStrategy?: InstrumentationStrategy;
|
|
1065
1103
|
}
|
|
1066
1104
|
/**
|
|
1067
1105
|
* @description
|
|
@@ -1184,6 +1222,13 @@ export interface VendureConfig {
|
|
|
1184
1222
|
* Configures how the job queue is persisted and processed.
|
|
1185
1223
|
*/
|
|
1186
1224
|
jobQueueOptions?: JobQueueOptions;
|
|
1225
|
+
/**
|
|
1226
|
+
* @description
|
|
1227
|
+
* Configures the scheduler mechanism and tasks.
|
|
1228
|
+
*
|
|
1229
|
+
* @since 3.3.0
|
|
1230
|
+
*/
|
|
1231
|
+
schedulerOptions?: SchedulerOptions;
|
|
1187
1232
|
/**
|
|
1188
1233
|
* @description
|
|
1189
1234
|
* Configures system options
|
|
@@ -1208,6 +1253,7 @@ export interface RuntimeVendureConfig extends Required<VendureConfig> {
|
|
|
1208
1253
|
entityOptions: Required<Omit<EntityOptions, 'entityIdStrategy'>> & EntityOptions;
|
|
1209
1254
|
importExportOptions: Required<ImportExportOptions>;
|
|
1210
1255
|
jobQueueOptions: Required<JobQueueOptions>;
|
|
1256
|
+
schedulerOptions: Required<SchedulerOptions>;
|
|
1211
1257
|
orderOptions: Required<OrderOptions>;
|
|
1212
1258
|
promotionOptions: Required<PromotionOptions>;
|
|
1213
1259
|
shippingOptions: Required<ShippingOptions>;
|
|
@@ -3,5 +3,5 @@ import { DataSourceOptions } from 'typeorm';
|
|
|
3
3
|
export declare class ConnectionModule {
|
|
4
4
|
static forRoot(): DynamicModule;
|
|
5
5
|
static forPlugin(): DynamicModule;
|
|
6
|
-
static getTypeOrmLogger(dbConnectionOptions: DataSourceOptions): import("typeorm").Logger | "debug" | "advanced-console" | "simple-console" | "file";
|
|
6
|
+
static getTypeOrmLogger(dbConnectionOptions: DataSourceOptions): import("typeorm").Logger | "debug" | "advanced-console" | "simple-console" | "formatted-console" | "file";
|
|
7
7
|
}
|
|
@@ -16,6 +16,7 @@ const rxjs_1 = require("rxjs");
|
|
|
16
16
|
const operators_1 = require("rxjs/operators");
|
|
17
17
|
const request_context_1 = require("../api/common/request-context");
|
|
18
18
|
const constants_1 = require("../common/constants");
|
|
19
|
+
const instrument_decorator_1 = require("../common/instrument-decorator");
|
|
19
20
|
const vendure_logger_1 = require("../config/logger/vendure-logger");
|
|
20
21
|
const transaction_subscriber_1 = require("../connection/transaction-subscriber");
|
|
21
22
|
/**
|
|
@@ -271,6 +272,7 @@ let EventBus = class EventBus {
|
|
|
271
272
|
exports.EventBus = EventBus;
|
|
272
273
|
exports.EventBus = EventBus = __decorate([
|
|
273
274
|
(0, common_1.Injectable)(),
|
|
275
|
+
(0, instrument_decorator_1.Instrument)(),
|
|
274
276
|
__metadata("design:paramtypes", [transaction_subscriber_1.TransactionSubscriber])
|
|
275
277
|
], EventBus);
|
|
276
278
|
//# sourceMappingURL=event-bus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-bus.js","sourceRoot":"","sources":["../../src/event-bus/event-bus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAE7D,mEAAsE;AACtE,+BAA2C;AAC3C,8CAA6D;AAG7D,mEAA+D;AAC/D,mDAA8D;AAC9D,oEAAyD;AACzD,iFAAyG;AA2CzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0CK;
|
|
1
|
+
{"version":3,"file":"event-bus.js","sourceRoot":"","sources":["../../src/event-bus/event-bus.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAE7D,mEAAsE;AACtE,+BAA2C;AAC3C,8CAA6D;AAG7D,mEAA+D;AAC/D,mDAA8D;AAC9D,yEAA4D;AAC5D,oEAAyD;AACzD,iFAAyG;AA2CzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0CK;AAGE,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAKjB,YA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E,EAAE,CAAC,KAAK,YAAY,gCAAc,CAAC,CAAC;QAE1F,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAA6B,KAAK,CAAC;QAEnD,MAAM,kBAAkB,GAA+B,GAAW,CAAC,mCAAuB,CAAC,CAAC;QAC5F,IAAI,CAAC,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,CAAA,EAAE,CAAC;YACnC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YAE7E,8CAA8C;YAC9C,qDAAqD;YACrD,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;YAC9B,OAAQ,UAAkB,CAAC,mCAAuB,CAAC,CAAC;YAEpD,uBAAuB;YACtB,KAAa,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;YAEjC,OAAO,KAAK,CAAC;QACjB,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YACd,IAAI,CAAC,YAAY,mDAA0B,EAAE,CAAC;gBAC1C,4DAA4D;gBAC5D,oDAAoD;gBACpD,uDAAuD;gBACvD,OAAO;YACX,CAAC;YAED,MAAM,CAAC,CAAC;QACZ,CAAC;IACL,CAAC;CACJ,CAAA;AAxPY,4BAAQ;mBAAR,QAAQ;IAFpB,IAAA,mBAAU,GAAE;IACZ,IAAA,iCAAU,GAAE;qCAMkC,8CAAqB;GALvD,QAAQ,CAwPpB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { generateMigration, revertLastMigration, runMigrations } from './migrate';
|
|
1
|
+
export { AdjustmentType, AssetType, CurrencyCode, LanguageCode, Permission, } from '@vendure/common/lib/generated-types';
|
|
2
|
+
export * from '@vendure/common/lib/shared-types';
|
|
4
3
|
export * from './api/index';
|
|
4
|
+
export * from './bootstrap';
|
|
5
5
|
export * from './cache/index';
|
|
6
6
|
export * from './common/index';
|
|
7
7
|
export * from './config/index';
|
|
8
8
|
export * from './connection/index';
|
|
9
|
+
export * from './data-import/index';
|
|
10
|
+
export * from './entity/index';
|
|
9
11
|
export * from './event-bus/index';
|
|
10
12
|
export * from './health-check/index';
|
|
13
|
+
export * from './i18n/index';
|
|
11
14
|
export * from './job-queue/index';
|
|
15
|
+
export { generateMigration, revertLastMigration, runMigrations } from './migrate';
|
|
12
16
|
export * from './plugin/index';
|
|
13
17
|
export * from './process-context/index';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './data-import/index';
|
|
18
|
+
export * from './scheduler/index';
|
|
16
19
|
export * from './service/index';
|
|
17
|
-
export
|
|
20
|
+
export { VENDURE_VERSION } from './version';
|
|
18
21
|
export * from './worker/index';
|
|
19
|
-
export * from '@vendure/common/lib/shared-types';
|
|
20
|
-
export { Permission, LanguageCode, CurrencyCode, AssetType, AdjustmentType, } from '@vendure/common/lib/generated-types';
|
package/dist/index.js
CHANGED
|
@@ -14,34 +14,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
-
|
|
17
|
+
exports.VENDURE_VERSION = exports.runMigrations = exports.revertLastMigration = exports.generateMigration = exports.Permission = exports.LanguageCode = exports.CurrencyCode = exports.AssetType = exports.AdjustmentType = void 0;
|
|
18
|
+
var generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
19
|
+
Object.defineProperty(exports, "AdjustmentType", { enumerable: true, get: function () { return generated_types_1.AdjustmentType; } });
|
|
20
|
+
Object.defineProperty(exports, "AssetType", { enumerable: true, get: function () { return generated_types_1.AssetType; } });
|
|
21
|
+
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return generated_types_1.CurrencyCode; } });
|
|
22
|
+
Object.defineProperty(exports, "LanguageCode", { enumerable: true, get: function () { return generated_types_1.LanguageCode; } });
|
|
23
|
+
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return generated_types_1.Permission; } });
|
|
24
|
+
__exportStar(require("@vendure/common/lib/shared-types"), exports);
|
|
25
25
|
__exportStar(require("./api/index"), exports);
|
|
26
|
+
__exportStar(require("./bootstrap"), exports);
|
|
26
27
|
__exportStar(require("./cache/index"), exports);
|
|
27
28
|
__exportStar(require("./common/index"), exports);
|
|
28
29
|
__exportStar(require("./config/index"), exports);
|
|
29
30
|
__exportStar(require("./connection/index"), exports);
|
|
31
|
+
__exportStar(require("./data-import/index"), exports);
|
|
32
|
+
__exportStar(require("./entity/index"), exports);
|
|
30
33
|
__exportStar(require("./event-bus/index"), exports);
|
|
31
34
|
__exportStar(require("./health-check/index"), exports);
|
|
35
|
+
__exportStar(require("./i18n/index"), exports);
|
|
32
36
|
__exportStar(require("./job-queue/index"), exports);
|
|
37
|
+
var migrate_1 = require("./migrate");
|
|
38
|
+
Object.defineProperty(exports, "generateMigration", { enumerable: true, get: function () { return migrate_1.generateMigration; } });
|
|
39
|
+
Object.defineProperty(exports, "revertLastMigration", { enumerable: true, get: function () { return migrate_1.revertLastMigration; } });
|
|
40
|
+
Object.defineProperty(exports, "runMigrations", { enumerable: true, get: function () { return migrate_1.runMigrations; } });
|
|
33
41
|
__exportStar(require("./plugin/index"), exports);
|
|
34
42
|
__exportStar(require("./process-context/index"), exports);
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
__exportStar(require("./data-import/index"), exports);
|
|
43
|
+
__exportStar(require("./scheduler/index"), exports);
|
|
37
44
|
__exportStar(require("./service/index"), exports);
|
|
38
|
-
|
|
45
|
+
var version_1 = require("./version");
|
|
46
|
+
Object.defineProperty(exports, "VENDURE_VERSION", { enumerable: true, get: function () { return version_1.VENDURE_VERSION; } });
|
|
39
47
|
__exportStar(require("./worker/index"), exports);
|
|
40
|
-
__exportStar(require("@vendure/common/lib/shared-types"), exports);
|
|
41
|
-
var generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
42
|
-
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return generated_types_1.Permission; } });
|
|
43
|
-
Object.defineProperty(exports, "LanguageCode", { enumerable: true, get: function () { return generated_types_1.LanguageCode; } });
|
|
44
|
-
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return generated_types_1.CurrencyCode; } });
|
|
45
|
-
Object.defineProperty(exports, "AssetType", { enumerable: true, get: function () { return generated_types_1.AssetType; } });
|
|
46
|
-
Object.defineProperty(exports, "AdjustmentType", { enumerable: true, get: function () { return generated_types_1.AdjustmentType; } });
|
|
47
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uEAM6C;AALzC,iHAAA,cAAc,OAAA;AACd,4GAAA,SAAS,OAAA;AACT,+GAAA,YAAY,OAAA;AACZ,+GAAA,YAAY,OAAA;AACZ,6GAAA,UAAU,OAAA;AAEd,mEAAiD;AACjD,8CAA4B;AAC5B,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,iDAA+B;AAC/B,qDAAmC;AACnC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,qCAAkF;AAAzE,4GAAA,iBAAiB,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AAAE,wGAAA,aAAa,OAAA;AAC9D,iDAA+B;AAC/B,0DAAwC;AACxC,oDAAkC;AAClC,kDAAgC;AAChC,qCAA4C;AAAnC,0GAAA,eAAe,OAAA;AACxB,iDAA+B"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.JobQueue = void 0;
|
|
13
|
+
const common_1 = require("../common");
|
|
4
14
|
const job_1 = require("./job");
|
|
15
|
+
const job_buffer_service_1 = require("./job-buffer/job-buffer.service");
|
|
5
16
|
const subscribable_job_1 = require("./subscribable-job");
|
|
6
17
|
/**
|
|
7
18
|
* @description
|
|
@@ -15,7 +26,7 @@ const subscribable_job_1 = require("./subscribable-job");
|
|
|
15
26
|
*
|
|
16
27
|
* @docsCategory JobQueue
|
|
17
28
|
*/
|
|
18
|
-
class JobQueue {
|
|
29
|
+
let JobQueue = class JobQueue {
|
|
19
30
|
get name() {
|
|
20
31
|
return this.options.name;
|
|
21
32
|
}
|
|
@@ -94,6 +105,10 @@ class JobQueue {
|
|
|
94
105
|
return new subscribable_job_1.SubscribableJob(bufferedJob, this.jobQueueStrategy);
|
|
95
106
|
}
|
|
96
107
|
}
|
|
97
|
-
}
|
|
108
|
+
};
|
|
98
109
|
exports.JobQueue = JobQueue;
|
|
110
|
+
exports.JobQueue = JobQueue = __decorate([
|
|
111
|
+
(0, common_1.Instrument)(),
|
|
112
|
+
__metadata("design:paramtypes", [Object, Object, job_buffer_service_1.JobBufferService])
|
|
113
|
+
], JobQueue);
|
|
99
114
|
//# sourceMappingURL=job-queue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-queue.js","sourceRoot":"","sources":["../../src/job-queue/job-queue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"job-queue.js","sourceRoot":"","sources":["../../src/job-queue/job-queue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuC;AAGvC,+BAA4B;AAC5B,wEAAmE;AACnE,yDAAqD;AAGrD;;;;;;;;;;;GAWG;AAEI,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAGjB,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,YACY,OAAiC,EACjC,gBAAkC,EAClC,gBAAkC;QAFlC,YAAO,GAAP,OAAO,CAA0B;QACjC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAbtC,YAAO,GAAG,KAAK,CAAC;IAcrB,CAAC;IAEJ,gBAAgB;IAChB,KAAK,CAAC,KAAK;QACP,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,OAAO;QACX,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAO,IAAI,CAA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