@vendure/core 1.6.4 → 1.7.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/common/custom-field-relation-resolver.service.d.ts +3 -1
- package/dist/api/common/custom-field-relation-resolver.service.js +7 -5
- package/dist/api/common/custom-field-relation-resolver.service.js.map +1 -1
- package/dist/api/config/generate-resolvers.d.ts +3 -0
- package/dist/api/config/generate-resolvers.js +7 -1
- package/dist/api/config/generate-resolvers.js.map +1 -1
- package/dist/api/resolvers/admin/collection.resolver.js +8 -2
- package/dist/api/resolvers/admin/collection.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/order.resolver.d.ts +3 -2
- package/dist/api/resolvers/admin/order.resolver.js +15 -3
- package/dist/api/resolvers/admin/order.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/product-option.resolver.d.ts +2 -1
- package/dist/api/resolvers/admin/product-option.resolver.js +13 -0
- package/dist/api/resolvers/admin/product-option.resolver.js.map +1 -1
- package/dist/api/resolvers/base/base-auth.resolver.d.ts +2 -2
- package/dist/api/resolvers/base/base-auth.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/fulfillment-entity.resolver.d.ts +8 -2
- package/dist/api/resolvers/entity/fulfillment-entity.resolver.js +17 -3
- package/dist/api/resolvers/entity/fulfillment-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/order-item-entity.resolver.d.ts +3 -1
- package/dist/api/resolvers/entity/order-item-entity.resolver.js +9 -3
- package/dist/api/resolvers/entity/order-item-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/order-line-entity.resolver.d.ts +5 -3
- package/dist/api/resolvers/entity/order-line-entity.resolver.js +19 -2
- package/dist/api/resolvers/entity/order-line-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/payment-entity.resolver.d.ts +3 -1
- package/dist/api/resolvers/entity/payment-entity.resolver.js +6 -3
- package/dist/api/resolvers/entity/payment-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-option-group-entity.resolver.js +8 -3
- package/dist/api/resolvers/entity/product-option-group-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-products.resolver.js +8 -2
- package/dist/api/resolvers/shop/shop-products.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/order.api.graphql +11 -0
- package/dist/api/schema/admin-api/product-option-group.api.graphql +2 -0
- package/dist/api/schema/common/order.type.graphql +7 -0
- package/dist/bootstrap.js +2 -3
- package/dist/bootstrap.js.map +1 -1
- package/dist/common/configurable-operation.js +9 -4
- package/dist/common/configurable-operation.js.map +1 -1
- package/dist/common/constants.d.ts +1 -2
- package/dist/common/error/errors.d.ts +1 -0
- package/dist/common/error/errors.js.map +1 -1
- package/dist/common/error/generated-graphql-admin-errors.d.ts +10 -0
- package/dist/common/error/generated-graphql-admin-errors.js +17 -2
- package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
- package/dist/config/asset-import-strategy/asset-import-strategy.d.ts +24 -0
- package/dist/config/asset-import-strategy/asset-import-strategy.js +3 -0
- package/dist/config/asset-import-strategy/asset-import-strategy.js.map +1 -0
- package/dist/config/asset-import-strategy/default-asset-import-strategy.d.ts +24 -0
- package/dist/config/asset-import-strategy/default-asset-import-strategy.js +91 -0
- package/dist/config/asset-import-strategy/default-asset-import-strategy.js.map +1 -0
- package/dist/config/asset-naming-strategy/default-asset-naming-strategy.js +1 -1
- package/dist/config/asset-naming-strategy/default-asset-naming-strategy.js.map +1 -1
- package/dist/config/catalog/default-collection-filters.d.ts +18 -19
- package/dist/config/config-helpers.d.ts +4 -0
- package/dist/config/config-helpers.js +8 -1
- package/dist/config/config-helpers.js.map +1 -1
- package/dist/config/config.module.js +11 -0
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/default-config.js +3 -1
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/entity-id-strategy/entity-id-strategy.d.ts +7 -0
- package/dist/config/fulfillment/custom-fulfillment-process.d.ts +2 -2
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/logger/vendure-logger.d.ts +1 -0
- package/dist/config/logger/vendure-logger.js.map +1 -1
- package/dist/config/order/custom-order-process.d.ts +2 -2
- package/dist/config/order/order-item-price-calculation-strategy.d.ts +3 -0
- package/dist/config/payment/custom-payment-process.d.ts +2 -2
- package/dist/config/payment/dummy-payment-method-handler.js +8 -0
- package/dist/config/payment/dummy-payment-method-handler.js.map +1 -1
- package/dist/config/payment/payment-method-handler.d.ts +66 -0
- package/dist/config/payment/payment-method-handler.js +11 -1
- package/dist/config/payment/payment-method-handler.js.map +1 -1
- package/dist/config/promotion/actions/order-fixed-discount-action.js +1 -1
- package/dist/config/promotion/actions/order-fixed-discount-action.js.map +1 -1
- package/dist/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +5 -7
- package/dist/config/vendure-config.d.ts +18 -0
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/connection/remove-custom-fields-with-eager-relations.d.ts +34 -0
- package/dist/connection/remove-custom-fields-with-eager-relations.js +55 -0
- package/dist/connection/remove-custom-fields-with-eager-relations.js.map +1 -0
- package/dist/connection/transaction-subscriber.d.ts +16 -2
- package/dist/connection/transaction-subscriber.js +27 -7
- package/dist/connection/transaction-subscriber.js.map +1 -1
- package/dist/connection/transaction-wrapper.js +6 -9
- package/dist/connection/transaction-wrapper.js.map +1 -1
- package/dist/connection/transactional-connection.d.ts +2 -33
- package/dist/connection/transactional-connection.js +23 -55
- package/dist/connection/transactional-connection.js.map +1 -1
- package/dist/data-import/providers/asset-importer/asset-importer.js +12 -18
- package/dist/data-import/providers/asset-importer/asset-importer.js.map +1 -1
- package/dist/entity/asset/asset.entity.js +4 -2
- package/dist/entity/asset/asset.entity.js.map +1 -1
- package/dist/entity/asset/orderable-asset.entity.js +3 -1
- package/dist/entity/asset/orderable-asset.entity.js.map +1 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js +3 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js.map +1 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js +3 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js.map +1 -1
- package/dist/entity/channel/channel.entity.js +5 -3
- package/dist/entity/channel/channel.entity.js.map +1 -1
- package/dist/entity/collection/collection-asset.entity.js +4 -2
- package/dist/entity/collection/collection-asset.entity.js.map +1 -1
- package/dist/entity/collection/collection-translation.entity.js +4 -2
- package/dist/entity/collection/collection-translation.entity.js.map +1 -1
- package/dist/entity/country/country-translation.entity.js +4 -2
- package/dist/entity/country/country-translation.entity.js.map +1 -1
- package/dist/entity/country/country.entity.js +3 -1
- package/dist/entity/country/country.entity.js.map +1 -1
- package/dist/entity/customer-group/customer-group.entity.js +3 -1
- package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
- package/dist/entity/fulfillment/fulfillment.entity.js +3 -1
- package/dist/entity/fulfillment/fulfillment.entity.js.map +1 -1
- package/dist/entity/global-settings/global-settings.entity.js +3 -1
- package/dist/entity/global-settings/global-settings.entity.js.map +1 -1
- package/dist/entity/order-line/order-line.entity.js +4 -0
- package/dist/entity/order-line/order-line.entity.js.map +1 -1
- package/dist/entity/product/product-asset.entity.js +4 -2
- package/dist/entity/product/product-asset.entity.js.map +1 -1
- package/dist/entity/product-option/product-option-translation.entity.js.map +1 -1
- package/dist/entity/product-option-group/product-option-group-translation.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-asset.entity.js +4 -2
- package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
- package/dist/entity/role/role.entity.js +3 -1
- package/dist/entity/role/role.entity.js.map +1 -1
- package/dist/entity/tag/tag.entity.js +3 -1
- package/dist/entity/tag/tag.entity.js.map +1 -1
- package/dist/entity/user/user.entity.js +3 -1
- package/dist/entity/user/user.entity.js.map +1 -1
- package/dist/entity/zone/zone.entity.js +3 -1
- package/dist/entity/zone/zone.entity.js.map +1 -1
- package/dist/event-bus/event-bus.js +14 -3
- package/dist/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/events/initializer-event.d.ts +12 -0
- package/dist/event-bus/events/initializer-event.js +19 -0
- package/dist/event-bus/events/initializer-event.js.map +1 -0
- package/dist/event-bus/events/product-option-event.d.ts +1 -1
- package/dist/event-bus/events/product-option-event.js.map +1 -1
- package/dist/event-bus/events/product-option-group-event.d.ts +1 -1
- package/dist/event-bus/events/product-option-group-event.js.map +1 -1
- 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/en.json +3 -0
- package/dist/job-queue/in-memory-job-queue-strategy.d.ts +1 -1
- package/dist/migrate.js +14 -0
- package/dist/migrate.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +33 -33
- 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 +7 -7
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.d.ts +1 -0
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js +8 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.d.ts +11 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +31 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +29 -29
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
- package/dist/plugin/plugin-metadata.js +2 -1
- package/dist/plugin/plugin-metadata.js.map +1 -1
- package/dist/plugin/vendure-plugin.d.ts +11 -2
- package/dist/plugin/vendure-plugin.js.map +1 -1
- package/dist/service/helpers/config-arg/config-arg.service.d.ts +1 -0
- package/dist/service/helpers/config-arg/config-arg.service.js +12 -1
- package/dist/service/helpers/config-arg/config-arg.service.js.map +1 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.d.ts +3 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +6 -4
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +9 -1
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +1 -1
- package/dist/service/helpers/list-query-builder/connection-utils.js +7 -1
- package/dist/service/helpers/list-query-builder/connection-utils.js.map +1 -1
- package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +4 -3
- package/dist/service/helpers/list-query-builder/list-query-builder.js +17 -8
- package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
- package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.d.ts +3 -1
- package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js +6 -4
- package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js.map +1 -1
- package/dist/service/helpers/order-calculator/order-calculator.d.ts +18 -0
- package/dist/service/helpers/order-calculator/order-calculator.js +18 -0
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +19 -1
- package/dist/service/helpers/order-modifier/order-modifier.js +49 -20
- package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.js +1 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.js.map +1 -1
- package/dist/service/helpers/order-state-machine/order-state.d.ts +9 -1
- package/dist/service/helpers/order-state-machine/order-state.js.map +1 -1
- package/dist/service/helpers/payment-state-machine/payment-state.d.ts +9 -1
- package/dist/service/helpers/payment-state-machine/payment-state.js.map +1 -1
- package/dist/service/helpers/product-price-applicator/product-price-applicator.d.ts +26 -2
- package/dist/service/helpers/product-price-applicator/product-price-applicator.js +26 -2
- package/dist/service/helpers/product-price-applicator/product-price-applicator.js.map +1 -1
- package/dist/service/helpers/slug-validator/slug-validator.d.ts +16 -0
- package/dist/service/helpers/slug-validator/slug-validator.js +11 -1
- package/dist/service/helpers/slug-validator/slug-validator.js.map +1 -1
- package/dist/service/helpers/translatable-saver/translatable-saver.d.ts +28 -1
- package/dist/service/helpers/translatable-saver/translatable-saver.js +28 -1
- package/dist/service/helpers/translatable-saver/translatable-saver.js.map +1 -1
- package/dist/service/helpers/translator/translator.service.d.ts +10 -0
- package/dist/service/helpers/translator/translator.service.js +29 -0
- package/dist/service/helpers/translator/translator.service.js.map +1 -0
- package/dist/service/helpers/utils/translate-entity.d.ts +3 -3
- package/dist/service/helpers/utils/translate-entity.js +11 -2
- package/dist/service/helpers/utils/translate-entity.js.map +1 -1
- package/dist/service/index.d.ts +1 -0
- package/dist/service/index.js +1 -0
- package/dist/service/index.js.map +1 -1
- package/dist/service/initializer.service.d.ts +3 -1
- package/dist/service/initializer.service.js +7 -2
- package/dist/service/initializer.service.js.map +1 -1
- package/dist/service/service.module.js +2 -0
- package/dist/service/service.module.js.map +1 -1
- package/dist/service/services/asset.service.d.ts +2 -1
- package/dist/service/services/asset.service.js +19 -4
- package/dist/service/services/asset.service.js.map +1 -1
- package/dist/service/services/collection.service.d.ts +3 -1
- package/dist/service/services/collection.service.js +16 -16
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/country.service.d.ts +3 -1
- package/dist/service/services/country.service.js +9 -7
- package/dist/service/services/country.service.js.map +1 -1
- package/dist/service/services/customer.service.d.ts +3 -1
- package/dist/service/services/customer.service.js +8 -6
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/facet-value.service.d.ts +3 -1
- package/dist/service/services/facet-value.service.js +11 -6
- package/dist/service/services/facet-value.service.js.map +1 -1
- package/dist/service/services/facet.service.d.ts +3 -1
- package/dist/service/services/facet.service.js +18 -8
- package/dist/service/services/facet.service.js.map +1 -1
- package/dist/service/services/fulfillment.service.d.ts +9 -0
- package/dist/service/services/fulfillment.service.js +48 -8
- package/dist/service/services/fulfillment.service.js.map +1 -1
- package/dist/service/services/order-testing.service.d.ts +3 -1
- package/dist/service/services/order-testing.service.js +6 -4
- package/dist/service/services/order-testing.service.js.map +1 -1
- package/dist/service/services/order.service.d.ts +10 -2
- package/dist/service/services/order.service.js +50 -27
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/payment.service.d.ts +2 -0
- package/dist/service/services/payment.service.js +30 -10
- package/dist/service/services/payment.service.js.map +1 -1
- package/dist/service/services/product-option-group.service.d.ts +24 -2
- package/dist/service/services/product-option-group.service.js +92 -6
- package/dist/service/services/product-option-group.service.js.map +1 -1
- package/dist/service/services/product-option.service.d.ts +15 -2
- package/dist/service/services/product-option.service.js +66 -5
- package/dist/service/services/product-option.service.js.map +1 -1
- package/dist/service/services/product-variant.service.d.ts +3 -1
- package/dist/service/services/product-variant.service.js +12 -10
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/product.service.d.ts +5 -1
- package/dist/service/services/product.service.js +55 -20
- package/dist/service/services/product.service.js.map +1 -1
- package/dist/service/services/promotion.service.js +4 -1
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/shipping-method.service.d.ts +3 -1
- package/dist/service/services/shipping-method.service.js +8 -6
- package/dist/service/services/shipping-method.service.js.map +1 -1
- package/dist/service/services/stock-movement.service.js +8 -7
- package/dist/service/services/stock-movement.service.js.map +1 -1
- package/dist/service/services/user.service.d.ts +1 -1
- package/dist/service/services/user.service.js +5 -0
- package/dist/service/services/user.service.js.map +1 -1
- package/dist/service/services/zone.service.d.ts +3 -1
- package/dist/service/services/zone.service.js +8 -6
- package/dist/service/services/zone.service.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,14 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.AssetImporter = void 0;
|
|
16
13
|
const common_1 = require("@nestjs/common");
|
|
17
|
-
const
|
|
18
|
-
const path_1 = __importDefault(require("path"));
|
|
14
|
+
const index_1 = require("../../../common/index");
|
|
19
15
|
const config_service_1 = require("../../../config/config.service");
|
|
20
16
|
const asset_service_1 = require("../../../service/services/asset.service");
|
|
21
17
|
/**
|
|
@@ -41,7 +37,7 @@ let AssetImporter = class AssetImporter {
|
|
|
41
37
|
async getAssets(assetPaths, ctx) {
|
|
42
38
|
const assets = [];
|
|
43
39
|
const errors = [];
|
|
44
|
-
const {
|
|
40
|
+
const { assetImportStrategy } = this.configService.importExportOptions;
|
|
45
41
|
const uniqueAssetPaths = new Set(assetPaths);
|
|
46
42
|
for (const assetPath of uniqueAssetPaths.values()) {
|
|
47
43
|
const cachedAsset = this.assetMap.get(assetPath);
|
|
@@ -49,23 +45,21 @@ let AssetImporter = class AssetImporter {
|
|
|
49
45
|
assets.push(cachedAsset);
|
|
50
46
|
}
|
|
51
47
|
else {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
try {
|
|
49
|
+
const stream = await assetImportStrategy.getStreamFromPath(assetPath);
|
|
50
|
+
if (stream) {
|
|
51
|
+
const asset = await this.assetService.createFromFileStream(stream, assetPath, ctx);
|
|
52
|
+
if (index_1.isGraphQlErrorResult(asset)) {
|
|
53
|
+
errors.push(asset.message);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
59
56
|
this.assetMap.set(assetPath, asset);
|
|
60
57
|
assets.push(asset);
|
|
61
58
|
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
errors.push(err.toString());
|
|
64
|
-
}
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
errors.push(
|
|
61
|
+
catch (e) {
|
|
62
|
+
errors.push(e.message);
|
|
69
63
|
}
|
|
70
64
|
}
|
|
71
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/asset-importer/asset-importer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset-importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/asset-importer/asset-importer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAI5C,iDAA6D;AAC7D,mEAA+D;AAE/D,2EAAuE;AAEvE;;;;;;;GAOG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAa;IAGtB,gBAAgB;IAChB,YAAoB,aAA4B,EAAU,YAA0B;QAAhE,kBAAa,GAAb,aAAa,CAAe;QAAU,iBAAY,GAAZ,YAAY,CAAc;QAH5E,aAAQ,GAAG,IAAI,GAAG,EAAiB,CAAC;IAG2C,CAAC;IAExF;;;;OAIG;IACH,KAAK,CAAC,SAAS,CACX,UAAoB,EACpB,GAAoB;QAEpB,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC;QACvE,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAC7C,KAAK,MAAM,SAAS,IAAI,gBAAgB,CAAC,MAAM,EAAE,EAAE;YAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACjD,IAAI,WAAW,EAAE;gBACb,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAC5B;iBAAM;gBACH,IAAI;oBACA,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;oBACtE,IAAI,MAAM,EAAE;wBACR,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;wBACnF,IAAI,4BAAoB,CAAC,KAAK,CAAC,EAAE;4BAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;yBAC9B;6BAAM;4BACH,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,KAAc,CAAC,CAAC;4BAC7C,MAAM,CAAC,IAAI,CAAC,KAAc,CAAC,CAAC;yBAC/B;qBACJ;iBACJ;gBAAC,OAAO,CAAM,EAAE;oBACb,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;iBAC1B;aACJ;SACJ;QACD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9B,CAAC;CACJ,CAAA;AA1CY,aAAa;IADzB,mBAAU,EAAE;qCAK0B,8BAAa,EAAwB,4BAAY;GAJ3E,aAAa,CA0CzB;AA1CY,sCAAa"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Asset = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const channel_entity_1 = require("../channel/channel.entity");
|
|
@@ -34,7 +36,7 @@ __decorate([
|
|
|
34
36
|
], Asset.prototype, "name", void 0);
|
|
35
37
|
__decorate([
|
|
36
38
|
typeorm_1.Column('varchar'),
|
|
37
|
-
__metadata("design:type",
|
|
39
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.AssetType !== "undefined" && generated_types_1.AssetType) === "function" ? _a : Object)
|
|
38
40
|
], Asset.prototype, "type", void 0);
|
|
39
41
|
__decorate([
|
|
40
42
|
typeorm_1.Column(),
|
|
@@ -80,7 +82,7 @@ __decorate([
|
|
|
80
82
|
], Asset.prototype, "customFields", void 0);
|
|
81
83
|
Asset = __decorate([
|
|
82
84
|
typeorm_1.Entity(),
|
|
83
|
-
__metadata("design:paramtypes", [Object])
|
|
85
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
84
86
|
], Asset);
|
|
85
87
|
exports.Asset = Asset;
|
|
86
88
|
//# sourceMappingURL=asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.entity.js","sourceRoot":"","sources":["../../../src/entity/asset/asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.entity.js","sourceRoot":"","sources":["../../../src/entity/asset/asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAgE;AAChE,mEAA+D;AAC/D,qCAAgE;AAIhE,qDAAoD;AACpD,8DAAoD;AACpD,kEAA4D;AAC5D,kDAAwC;AAExC;;;;;;GAMG;AAEH,IAAa,KAAK,GAAlB,MAAa,KAAM,SAAQ,2BAAa;IACpC,YAAY,KAA0B;QAClC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA+BJ,CAAA;AA7Ba;IAAT,gBAAM,EAAE;;mCAAc;AAEJ;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAO,2BAAS,oBAAT,2BAAS;mCAAC;AAEzB;IAAT,gBAAM,EAAE;;uCAAkB;AAEH;IAAvB,gBAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oCAAe;AAEd;IAAvB,gBAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qCAAgB;AAE7B;IAAT,gBAAM,EAAE;;uCAAkB;AAEjB;IAAT,gBAAM,EAAE;;qCAAgB;AAEf;IAAT,gBAAM,EAAE;;sCAAiB;AAG1B;IADC,gBAAM,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACJ;AAItC;IAFC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAG,CAAC;IACvB,mBAAS,EAAE;;mCACA;AAIZ;IAFC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,CAAC;IAC3B,mBAAS,EAAE;;uCACQ;AAGpB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,wCAAiB,CAAC;8BACpB,wCAAiB;2CAAC;AAjCvB,KAAK;IADjB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,KAAK,CAkCjB;AAlCY,sBAAK"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.OrderableAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const asset_entity_1 = require("../asset/asset.entity");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
@@ -30,7 +32,7 @@ class OrderableAsset extends base_entity_1.VendureEntity {
|
|
|
30
32
|
}
|
|
31
33
|
__decorate([
|
|
32
34
|
typeorm_1.Column(),
|
|
33
|
-
__metadata("design:type", Object)
|
|
35
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
34
36
|
], OrderableAsset.prototype, "assetId", void 0);
|
|
35
37
|
__decorate([
|
|
36
38
|
typeorm_1.ManyToOne(type => asset_entity_1.Asset, { eager: true, onDelete: 'CASCADE' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderable-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/asset/orderable-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orderable-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/asset/orderable-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAA4C;AAG5C,wDAA8C;AAC9C,qDAAoD;AAEpD;;;;;;;;;GASG;AACH,MAAsB,cAAe,SAAQ,2BAAa;IACtD,YAAsB,KAAmC;QACrD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAUJ;AAPG;IADC,gBAAM,EAAE;kDACA,iBAAE,oBAAF,iBAAE;+CAAC;AAGZ;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACxD,oBAAK;6CAAC;AAGb;IADC,gBAAM,EAAE;;gDACQ;AAZrB,wCAaC"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ExternalAuthenticationMethod = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const authentication_method_entity_1 = require("./authentication-method.entity");
|
|
15
17
|
/**
|
|
@@ -39,7 +41,7 @@ __decorate([
|
|
|
39
41
|
], ExternalAuthenticationMethod.prototype, "metadata", void 0);
|
|
40
42
|
ExternalAuthenticationMethod = __decorate([
|
|
41
43
|
typeorm_1.ChildEntity(),
|
|
42
|
-
__metadata("design:paramtypes", [Object])
|
|
44
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
43
45
|
], ExternalAuthenticationMethod);
|
|
44
46
|
exports.ExternalAuthenticationMethod = ExternalAuthenticationMethod;
|
|
45
47
|
//# sourceMappingURL=external-authentication-method.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/external-authentication-method.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"external-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/external-authentication-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA8C;AAE9C,iFAAsE;AAEtE;;;;;;;GAOG;AAEH,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,mDAAoB;IAClE,YAAY,KAAgD;QACxD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAUJ,CAAA;AAPG;IADC,gBAAM,EAAE;;8DACQ;AAGjB;IADC,gBAAM,EAAE;;wEACkB;AAG3B;IADC,gBAAM,CAAC,aAAa,CAAC;;8DACR;AAZL,4BAA4B;IADxC,qBAAW,EAAE;yDAES,0BAAW,oBAAX,0BAAW;GADrB,4BAA4B,CAaxC;AAbY,oEAA4B"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.NativeAuthenticationMethod = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const authentication_method_entity_1 = require("./authentication-method.entity");
|
|
15
17
|
/**
|
|
@@ -51,7 +53,7 @@ __decorate([
|
|
|
51
53
|
], NativeAuthenticationMethod.prototype, "pendingIdentifier", void 0);
|
|
52
54
|
NativeAuthenticationMethod = __decorate([
|
|
53
55
|
typeorm_1.ChildEntity(),
|
|
54
|
-
__metadata("design:paramtypes", [Object])
|
|
56
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
55
57
|
], NativeAuthenticationMethod);
|
|
56
58
|
exports.NativeAuthenticationMethod = NativeAuthenticationMethod;
|
|
57
59
|
//# sourceMappingURL=native-authentication-method.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA8C;AAE9C,iFAAsE;AAEtE;;;;;;;GAOG;AAEH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,mDAAoB;IAChE,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA6BJ,CAAA;AA1BG;IADC,gBAAM,EAAE;;8DACU;AAEQ;IAA1B,gBAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;gEAAsB;AAGhD;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AAGjC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACV;AAQlC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yEACP;AASrC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AA/BxB,0BAA0B;IADtC,qBAAW,EAAE;yDAEU,0BAAW,oBAAX,0BAAW;GADtB,0BAA0B,CAgCtC;AAhCY,gEAA0B"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b, _c;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Channel = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -44,7 +46,7 @@ __decorate([
|
|
|
44
46
|
], Channel.prototype, "token", void 0);
|
|
45
47
|
__decorate([
|
|
46
48
|
typeorm_1.Column('varchar'),
|
|
47
|
-
__metadata("design:type",
|
|
49
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.LanguageCode !== "undefined" && generated_types_1.LanguageCode) === "function" ? _a : Object)
|
|
48
50
|
], Channel.prototype, "defaultLanguageCode", void 0);
|
|
49
51
|
__decorate([
|
|
50
52
|
typeorm_1.ManyToOne(type => zone_entity_1.Zone),
|
|
@@ -56,7 +58,7 @@ __decorate([
|
|
|
56
58
|
], Channel.prototype, "defaultShippingZone", void 0);
|
|
57
59
|
__decorate([
|
|
58
60
|
typeorm_1.Column('varchar'),
|
|
59
|
-
__metadata("design:type",
|
|
61
|
+
__metadata("design:type", typeof (_b = typeof generated_types_1.CurrencyCode !== "undefined" && generated_types_1.CurrencyCode) === "function" ? _b : Object)
|
|
60
62
|
], Channel.prototype, "currencyCode", void 0);
|
|
61
63
|
__decorate([
|
|
62
64
|
typeorm_1.Column(type => custom_entity_fields_1.CustomChannelFields),
|
|
@@ -68,7 +70,7 @@ __decorate([
|
|
|
68
70
|
], Channel.prototype, "pricesIncludeTax", void 0);
|
|
69
71
|
Channel = __decorate([
|
|
70
72
|
typeorm_1.Entity(),
|
|
71
|
-
__metadata("design:paramtypes", [Object])
|
|
73
|
+
__metadata("design:paramtypes", [typeof (_c = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _c : Object])
|
|
72
74
|
], Channel);
|
|
73
75
|
exports.Channel = Channel;
|
|
74
76
|
//# sourceMappingURL=channel.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAiF;AACjF,mEAA+D;AAC/D,qCAAoD;AAEpD,qDAAoD;AACpD,kEAA8D;AAC9D,qDAA2C;AAE3C;;;;;;GAMG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;SACrC;IACL,CAAC;IAwBO,aAAa;QACjB,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpE,OAAO,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,EAAE,CAAC;IAChD,CAAC;CACJ,CAAA;AAzBG;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACZ;AAGb;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACX;AAEK;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAsB,8BAAY,oBAAZ,8BAAY;oDAAC;AAGrD;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;+CAAC;AAGrB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACH,kBAAI;oDAAC;AAG1B;IADC,gBAAM,CAAC,SAAS,CAAC;kDACJ,8BAAY,oBAAZ,8BAAY;6CAAC;AAG3B;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAExB;IAAT,gBAAM,EAAE;;iDAA2B;AA5B3B,OAAO;IADnB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,OAAO,CAkCnB;AAlCY,0BAAO"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CollectionAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const collection_entity_1 = require("./collection.entity");
|
|
@@ -20,7 +22,7 @@ let CollectionAsset = class CollectionAsset extends orderable_asset_entity_1.Ord
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], CollectionAsset.prototype, "collectionId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => collection_entity_1.Collection, (collection) => collection.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], CollectionAsset.prototype, "collection", void 0);
|
|
29
31
|
CollectionAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], CollectionAsset);
|
|
33
35
|
exports.CollectionAsset = CollectionAsset;
|
|
34
36
|
//# sourceMappingURL=collection-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAAoD;AAEpD,4EAAiE;AAEjE,2DAAiD;AAGjD,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,uCAAc;IAC/C,YAAY,KAAoC;QAC5C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;kDACK,iBAAE,oBAAF,iBAAE;qDAAC;AAGjB;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAChF,8BAAU;mDAAC;AARd,eAAe;IAD3B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,eAAe,CAS3B;AATY,0CAAe"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CollectionTranslation = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -22,7 +24,7 @@ let CollectionTranslation = class CollectionTranslation extends base_entity_1.Ve
|
|
|
22
24
|
};
|
|
23
25
|
__decorate([
|
|
24
26
|
typeorm_1.Column('varchar'),
|
|
25
|
-
__metadata("design:type",
|
|
27
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.LanguageCode !== "undefined" && generated_types_1.LanguageCode) === "function" ? _a : Object)
|
|
26
28
|
], CollectionTranslation.prototype, "languageCode", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
typeorm_1.Column(),
|
|
@@ -46,7 +48,7 @@ __decorate([
|
|
|
46
48
|
], CollectionTranslation.prototype, "customFields", void 0);
|
|
47
49
|
CollectionTranslation = __decorate([
|
|
48
50
|
typeorm_1.Entity(),
|
|
49
|
-
__metadata("design:paramtypes", [Object])
|
|
51
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
50
52
|
], CollectionTranslation);
|
|
51
53
|
exports.CollectionTranslation = CollectionTranslation;
|
|
52
54
|
//# sourceMappingURL=collection-translation.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-translation.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAmE;AACnE,mEAA+D;AAC/D,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA4E;AAE5E,2DAAiD;AAGjD,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,2BAAa;IACpD,YAAY,KAA4C;QACpD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAmBJ,CAAA;AAjBsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAe,8BAAY,oBAAZ,8BAAY;2DAAC;AAEpC;IAAT,gBAAM,EAAE;;mDAAc;AAEb;IAAT,gBAAM,EAAE;;mDAAc;AAEP;IAAf,gBAAM,CAAC,MAAM,CAAC;;0DAAqB;AAOpC;IALC,mBAAS,CACN,IAAI,CAAC,EAAE,CAAC,8BAAU,EAClB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EACzB,EAAE,QAAQ,EAAE,SAAS,EAAE,CAC1B;8BACK,8BAAU;mDAAC;AAGjB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,wDAAiC,CAAC;8BACpC,wDAAiC;2DAAC;AArBvC,qBAAqB;IADjC,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,qBAAqB,CAsBjC;AAtBY,sDAAqB"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CountryTranslation = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -22,7 +24,7 @@ let CountryTranslation = class CountryTranslation extends base_entity_1.VendureE
|
|
|
22
24
|
};
|
|
23
25
|
__decorate([
|
|
24
26
|
typeorm_1.Column('varchar'),
|
|
25
|
-
__metadata("design:type",
|
|
27
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.LanguageCode !== "undefined" && generated_types_1.LanguageCode) === "function" ? _a : Object)
|
|
26
28
|
], CountryTranslation.prototype, "languageCode", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
typeorm_1.Column(),
|
|
@@ -38,7 +40,7 @@ __decorate([
|
|
|
38
40
|
], CountryTranslation.prototype, "customFields", void 0);
|
|
39
41
|
CountryTranslation = __decorate([
|
|
40
42
|
typeorm_1.Entity(),
|
|
41
|
-
__metadata("design:paramtypes", [Object])
|
|
43
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
42
44
|
], CountryTranslation);
|
|
43
45
|
exports.CountryTranslation = CountryTranslation;
|
|
44
46
|
//# sourceMappingURL=country-translation.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAmE;AACnE,mEAA+D;AAC/D,qCAAoD;AAIpD,qDAAoD;AACpD,kEAAyE;AAEzE,qDAA2C;AAG3C,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAa;IACjD,YAAY,KAAoD;QAC5D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAWJ,CAAA;AATsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAe,8BAAY,oBAAZ,8BAAY;wDAAC;AAEpC;IAAT,gBAAM,EAAE;;gDAAc;AAGvB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzE,wBAAO;gDAAC;AAGd;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,qDAA8B,CAAC;8BACjC,qDAA8B;wDAAC;AAbpC,kBAAkB;IAD9B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,kBAAkB,CAc9B;AAdY,gDAAkB"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Country = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -45,7 +47,7 @@ __decorate([
|
|
|
45
47
|
], Country.prototype, "customFields", void 0);
|
|
46
48
|
Country = __decorate([
|
|
47
49
|
typeorm_1.Entity(),
|
|
48
|
-
__metadata("design:paramtypes", [Object])
|
|
50
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
49
51
|
], Country);
|
|
50
52
|
exports.Country = Country;
|
|
51
53
|
//# sourceMappingURL=country.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA8D;AAE9D,6EAAkE;AAElE;;;;;;;GAOG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAaJ,CAAA;AAXa;IAAT,gBAAM,EAAE;;qCAAc;AAIb;IAAT,gBAAM,EAAE;;wCAAkB;AAG3B;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,+CAAkB,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BAC1E,KAAK;6CAAuB;AAG1C;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAfzB,OAAO;IADnB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,OAAO,CAgBnB;AAhBY,0BAAO"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CustomerGroup = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -40,7 +42,7 @@ __decorate([
|
|
|
40
42
|
], CustomerGroup.prototype, "customFields", void 0);
|
|
41
43
|
CustomerGroup = __decorate([
|
|
42
44
|
typeorm_1.Entity(),
|
|
43
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
44
46
|
], CustomerGroup);
|
|
45
47
|
exports.CustomerGroup = CustomerGroup;
|
|
46
48
|
//# sourceMappingURL=customer-group.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAqD;AAGrD,qDAAoD;AACpD,kEAAoE;AACpE,iEAAuD;AAEvD;;;;;;GAMG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,2BAAa;IAC5C,YAAY,KAAkC;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CASJ,CAAA;AAPa;IAAT,gBAAM,EAAE;;2CAAc;AAGvB;IADC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,0BAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;gDACpC;AAGtB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,gDAAyB,CAAC;8BAC5B,gDAAyB;mDAAC;AAX/B,aAAa;IADzB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Fulfillment = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -52,7 +54,7 @@ __decorate([
|
|
|
52
54
|
], Fulfillment.prototype, "customFields", void 0);
|
|
53
55
|
Fulfillment = __decorate([
|
|
54
56
|
typeorm_1.Entity(),
|
|
55
|
-
__metadata("design:paramtypes", [Object])
|
|
57
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
56
58
|
], Fulfillment);
|
|
57
59
|
exports.Fulfillment = Fulfillment;
|
|
58
60
|
//# sourceMappingURL=fulfillment.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fulfillment.entity.js","sourceRoot":"","sources":["../../../src/entity/fulfillment/fulfillment.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fulfillment.entity.js","sourceRoot":"","sources":["../../../src/entity/fulfillment/fulfillment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAgE;AAIhE,qDAAoD;AACpD,kEAAkE;AAClE,uEAA4D;AAE5D;;;;;;GAMG;AAEH,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,2BAAa;IAC1C,YAAY,KAAgC;QACxC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAkBJ,CAAA;AAhBsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;;0CAAyB;AAG3C;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;iDACH;AAGrB;IADC,gBAAM,EAAE;;2CACM;AAGf;IADC,gBAAM,EAAE;;gDACW;AAGpB;IADC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,6BAAS,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;;+CAC3C;AAGxB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,8CAAuB,CAAC;8BAC1B,8CAAuB;iDAAC;AApB7B,WAAW;IADvB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,WAAW,CAqBvB;AArBY,kCAAW"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.GlobalSettings = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const __1 = require("..");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -36,7 +38,7 @@ __decorate([
|
|
|
36
38
|
], GlobalSettings.prototype, "customFields", void 0);
|
|
37
39
|
GlobalSettings = __decorate([
|
|
38
40
|
typeorm_1.Entity(),
|
|
39
|
-
__metadata("design:paramtypes", [Object])
|
|
41
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
40
42
|
], GlobalSettings);
|
|
41
43
|
exports.GlobalSettings = GlobalSettings;
|
|
42
44
|
//# sourceMappingURL=global-settings.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-settings.entity.js","sourceRoot":"","sources":["../../../src/entity/global-settings/global-settings.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global-settings.entity.js","sourceRoot":"","sources":["../../../src/entity/global-settings/global-settings.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,mEAA+D;AAC/D,qCAAyC;AAEzC,0BAAmC;AAEnC,kEAAqE;AAGrE,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,iBAAa;IAC7C,YAAY,KAAmC;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAwBJ,CAAA;AArBG;IADC,gBAAM,CAAC,cAAc,CAAC;;0DACY;AASnC;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sDACF;AAQxB;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2DACK;AAG5B;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,iDAA0B,CAAC;8BAC7B,iDAA0B;oDAAC;AA1BhC,cAAc;IAD1B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,cAAc,CA2B1B;AA3BY,wCAAc"}
|
|
@@ -14,6 +14,7 @@ const shared_utils_1 = require("@vendure/common/lib/shared-utils");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const calculated_decorator_1 = require("../../common/calculated-decorator");
|
|
16
16
|
const tax_utils_1 = require("../../common/tax-utils");
|
|
17
|
+
const index_1 = require("../../config/index");
|
|
17
18
|
const asset_entity_1 = require("../asset/asset.entity");
|
|
18
19
|
const base_entity_1 = require("../base/base.entity");
|
|
19
20
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -203,6 +204,9 @@ let OrderLine = class OrderLine extends base_entity_1.VendureEntity {
|
|
|
203
204
|
* Returns all non-cancelled OrderItems on this line.
|
|
204
205
|
*/
|
|
205
206
|
get activeItems() {
|
|
207
|
+
if (this.items == null) {
|
|
208
|
+
index_1.Logger.warn(`Attempted to access OrderLine.items without first joining the relation: { relations: ['items'] }`);
|
|
209
|
+
}
|
|
206
210
|
return (this.items || []).filter(i => !i.cancelled);
|
|
207
211
|
}
|
|
208
212
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-line.entity.js","sourceRoot":"","sources":["../../../src/entity/order-line/order-line.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mEAA2D;AAC3D,qCAA+D;AAE/D,4EAA+D;AAC/D,sDAAkE;AAElE,wDAA8C;AAC9C,qDAAoD;AACpD,kEAAgE;AAChE,uEAA4D;AAC5D,wDAA8C;AAC9C,sFAA2E;AAC3E,6EAAkE;AAElE;;;;;GAKG;AAEH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,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IACtD,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"order-line.entity.js","sourceRoot":"","sources":["../../../src/entity/order-line/order-line.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mEAA2D;AAC3D,qCAA+D;AAE/D,4EAA+D;AAC/D,sDAAkE;AAElE,8CAA4C;AAC5C,wDAA8C;AAC9C,qDAAoD;AACpD,kEAAgE;AAChE,uEAA4D;AAC5D,wDAA8C;AAC9C,sFAA2E;AAC3E,6EAAkE;AAElE;;;;;GAKG;AAEH,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,2BAAa;IACxC,YAAY,KAA8B;QACtC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAoBD;;;OAGG;IAEH,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,qBAAqB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IAEH,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IAEH,IAAI,yBAAyB;QACzB,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,EAAE;YACZ,OAAO,CAAC,CAAC;SACZ;QACD,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;QAC7D,MAAM,YAAY,GAAG,oBAAoB;YACrC,CAAC,CAAC,sBAAU,CAAC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC;YAC5C,CAAC,CAAC,gBAAgB,CAAC;QACvB,OAAO,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC;IACzC,CAAC;IAED;;;OAGG;IAEH,IAAI,gCAAgC;QAChC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,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C,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;2DAGpC;AAGD;IADC,iCAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;0CAwBpC;AAOD;IADC,iCAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;wCAGpC;AASD;IADC,iCAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;kDAGpC;AAOD;IADC,iCAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;yDAGpC;AAGD;IADC,iCAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;gDAGpC;AA3OQ,SAAS;IADrB,gBAAM,EAAE;;GACI,SAAS,CAsRrB;AAtRY,8BAAS"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ProductAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const product_entity_1 = require("./product.entity");
|
|
@@ -20,7 +22,7 @@ let ProductAsset = class ProductAsset extends orderable_asset_entity_1.Orderable
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], ProductAsset.prototype, "productId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => product_entity_1.Product, (product) => product.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], ProductAsset.prototype, "product", void 0);
|
|
29
31
|
ProductAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], ProductAsset);
|
|
33
35
|
exports.ProductAsset = ProductAsset;
|
|
34
36
|
//# sourceMappingURL=product-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAAoD;AAEpD,4EAAiE;AAEjE,qDAA2C;AAG3C,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,uCAAc;IAC5C,YAAY,KAAiC;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;kDACE,iBAAE,oBAAF,iBAAE;+CAAC;AAGd;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1E,wBAAO;6CAAC;AARR,YAAY;IADxB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,YAAY,CASxB;AATY,oCAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-option-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/product-option/product-option-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA+E;AAE/E,mEAAwD;AAGxD,IAAa,wBAAwB,GAArC,MAAa,
|
|
1
|
+
{"version":3,"file":"product-option-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/product-option/product-option-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA+E;AAE/E,mEAAwD;AAGxD,IAAa,wBAAwB,GAArC,MAAa,wBACT,SAAQ,2BAAa;IAGrB,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAYJ,CAAA;AAVsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;;8DAA4B;AAEpC;IAAT,gBAAM,EAAE;;sDAAc;AAIvB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,qCAAa,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;8BACtD,qCAAa;sDAAC;AAGpB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,2DAAoC,CAAC;8BACvC,2DAAoC;8DAAC;AAjB1C,wBAAwB;IADpC,gBAAM,EAAE;;GACI,wBAAwB,CAkBpC;AAlBY,4DAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-option-group-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/product-option-group/product-option-group-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAAoD;AAIpD,qDAAoD;AACpD,kEAAoF;AAEpF,+EAAmE;AAGnE,IAAa,6BAA6B,GAA1C,MAAa,
|
|
1
|
+
{"version":3,"file":"product-option-group-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/product-option-group/product-option-group-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAmE;AAEnE,qCAAoD;AAIpD,qDAAoD;AACpD,kEAAoF;AAEpF,+EAAmE;AAGnE,IAAa,6BAA6B,GAA1C,MAAa,6BACT,SAAQ,2BAAa;IAGrB,YAAY,KAAoD;QAC5D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAYJ,CAAA;AAVsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;;mEAA4B;AAEpC;IAAT,gBAAM,EAAE;;2DAAc;AAIvB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,gDAAkB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;8BAC3D,gDAAkB;2DAAC;AAGzB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,gEAAyC,CAAC;8BAC5C,gEAAyC;mEAAC;AAjB/C,6BAA6B;IADzC,gBAAM,EAAE;;GACI,6BAA6B,CAkBzC;AAlBY,sEAA6B"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ProductVariantAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const product_variant_entity_1 = require("./product-variant.entity");
|
|
@@ -20,7 +22,7 @@ let ProductVariantAsset = class ProductVariantAsset extends orderable_asset_enti
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], ProductVariantAsset.prototype, "productVariantId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => product_variant_entity_1.ProductVariant, (variant) => variant.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], ProductVariantAsset.prototype, "productVariant", void 0);
|
|
29
31
|
ProductVariantAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], ProductVariantAsset);
|
|
33
35
|
exports.ProductVariantAsset = ProductVariantAsset;
|
|
34
36
|
//# sourceMappingURL=product-variant-asset.entity.js.map
|