@vendure/core 1.4.5 → 2.0.0-next.0
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/cli/api/common/extract-session-token.d.ts +3 -0
- package/cli/api/common/extract-session-token.js +35 -0
- package/cli/api/common/extract-session-token.js.map +1 -0
- package/cli/api/common/get-api-type.d.ts +3 -0
- package/cli/api/common/get-api-type.js +12 -0
- package/cli/api/common/get-api-type.js.map +1 -0
- package/cli/api/common/graphql-value-transformer.d.ts +30 -0
- package/cli/api/common/graphql-value-transformer.js +199 -0
- package/cli/api/common/graphql-value-transformer.js.map +1 -0
- package/cli/api/common/id-codec.d.ts +11 -0
- package/cli/api/common/id-codec.js +94 -0
- package/cli/api/common/id-codec.js.map +1 -0
- package/cli/api/common/id-codec.service.d.ts +7 -0
- package/cli/api/common/id-codec.service.js +33 -0
- package/cli/api/common/id-codec.service.js.map +1 -0
- package/cli/api/common/parse-context.d.ts +16 -0
- package/cli/api/common/parse-context.js +39 -0
- package/cli/api/common/parse-context.js.map +1 -0
- package/cli/api/common/request-context.d.ts +55 -0
- package/cli/api/common/request-context.js +143 -0
- package/cli/api/common/request-context.js.map +1 -0
- package/cli/api/common/set-session-token.d.ts +9 -0
- package/cli/api/common/set-session-token.js +27 -0
- package/cli/api/common/set-session-token.js.map +1 -0
- package/cli/api/decorators/allow.decorator.d.ts +3 -0
- package/cli/api/decorators/allow.decorator.js +8 -0
- package/cli/api/decorators/allow.decorator.js.map +1 -0
- package/cli/api/decorators/api.decorator.d.ts +1 -0
- package/cli/api/decorators/api.decorator.js +10 -0
- package/cli/api/decorators/api.decorator.js.map +1 -0
- package/cli/api/decorators/request-context.decorator.d.ts +1 -0
- package/cli/api/decorators/request-context.decorator.js +14 -0
- package/cli/api/decorators/request-context.decorator.js.map +1 -0
- package/cli/api/decorators/transaction.decorator.d.ts +3 -0
- package/cli/api/decorators/transaction.decorator.js +11 -0
- package/cli/api/decorators/transaction.decorator.js.map +1 -0
- package/cli/api/index.d.ts +11 -0
- package/cli/api/index.js +23 -0
- package/cli/api/index.js.map +1 -0
- package/cli/api/middleware/auth-guard.d.ts +21 -0
- package/cli/api/middleware/auth-guard.js +151 -0
- package/cli/api/middleware/auth-guard.js.map +1 -0
- package/cli/api/middleware/exception-logger.filter.d.ts +6 -0
- package/cli/api/middleware/exception-logger.filter.js +82 -0
- package/cli/api/middleware/exception-logger.filter.js.map +1 -0
- package/cli/api/middleware/id-interceptor.d.ts +12 -0
- package/cli/api/middleware/id-interceptor.js +56 -0
- package/cli/api/middleware/id-interceptor.js.map +1 -0
- package/cli/api/middleware/transaction-interceptor.d.ts +12 -0
- package/cli/api/middleware/transaction-interceptor.js +46 -0
- package/cli/api/middleware/transaction-interceptor.js.map +1 -0
- package/cli/api/resolvers/admin/search.resolver.d.ts +17 -0
- package/cli/api/resolvers/admin/search.resolver.js +81 -0
- package/cli/api/resolvers/admin/search.resolver.js.map +1 -0
- package/cli/cache/index.d.ts +1 -0
- package/cli/cache/index.js +14 -0
- package/cli/cache/index.js.map +1 -0
- package/cli/cache/request-context-cache.service.d.ts +9 -0
- package/cli/cache/request-context-cache.service.js +39 -0
- package/cli/cache/request-context-cache.service.js.map +1 -0
- package/cli/cli/cli-utils.d.ts +1 -0
- package/cli/cli/cli-utils.js +8 -0
- package/cli/cli/cli-utils.js.map +1 -0
- package/cli/cli/index.d.ts +1 -0
- package/cli/cli/index.js +14 -0
- package/cli/cli/index.js.map +1 -0
- package/cli/cli/populate.d.ts +5 -0
- package/cli/cli/populate.js +106 -0
- package/cli/cli/populate.js.map +1 -0
- package/cli/cli/vendure-cli.d.ts +2 -0
- package/cli/cli/vendure-cli.js +119 -0
- package/cli/cli/vendure-cli.js.map +1 -0
- package/cli/common/async-queue.d.ts +17 -0
- package/cli/common/async-queue.js +56 -0
- package/cli/common/async-queue.js.map +1 -0
- package/cli/common/calculated-decorator.d.ts +12 -0
- package/cli/common/calculated-decorator.js +22 -0
- package/cli/common/calculated-decorator.js.map +1 -0
- package/cli/common/configurable-operation.d.ts +53 -0
- package/cli/common/configurable-operation.js +96 -0
- package/cli/common/configurable-operation.js.map +1 -0
- package/cli/common/constants.d.ts +7 -0
- package/cli/common/constants.js +66 -0
- package/cli/common/constants.js.map +1 -0
- package/cli/common/error/error-result.d.ts +8 -0
- package/cli/common/error/error-result.js +11 -0
- package/cli/common/error/error-result.js.map +1 -0
- package/cli/common/error/errors.d.ts +31 -0
- package/cli/common/error/errors.js +48 -0
- package/cli/common/error/errors.js.map +1 -0
- package/cli/common/error/generated-graphql-admin-errors.d.ts +309 -0
- package/cli/common/error/generated-graphql-admin-errors.js +446 -0
- package/cli/common/error/generated-graphql-admin-errors.js.map +1 -0
- package/cli/common/error/generated-graphql-shop-errors.d.ts +254 -0
- package/cli/common/error/generated-graphql-shop-errors.js +370 -0
- package/cli/common/error/generated-graphql-shop-errors.js.map +1 -0
- package/cli/common/finite-state-machine/finite-state-machine.d.ts +14 -0
- package/cli/common/finite-state-machine/finite-state-machine.js +55 -0
- package/cli/common/finite-state-machine/finite-state-machine.js.map +1 -0
- package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +2 -0
- package/cli/common/finite-state-machine/merge-transition-definitions.js +27 -0
- package/cli/common/finite-state-machine/merge-transition-definitions.js.map +1 -0
- package/cli/common/finite-state-machine/types.d.ts +16 -0
- package/cli/common/finite-state-machine/types.js +3 -0
- package/cli/common/finite-state-machine/types.js.map +1 -0
- package/cli/common/finite-state-machine/validate-transition-definition.d.ts +5 -0
- package/cli/common/finite-state-machine/validate-transition-definition.js +41 -0
- package/cli/common/finite-state-machine/validate-transition-definition.js.map +1 -0
- package/cli/common/generate-public-id.d.ts +1 -0
- package/cli/common/generate-public-id.js +10 -0
- package/cli/common/generate-public-id.js.map +1 -0
- package/cli/common/index.d.ts +15 -0
- package/cli/common/index.js +28 -0
- package/cli/common/index.js.map +1 -0
- package/cli/common/injector.d.ts +8 -0
- package/cli/common/injector.js +16 -0
- package/cli/common/injector.js.map +1 -0
- package/cli/common/permission-definition.d.ts +23 -0
- package/cli/common/permission-definition.js +53 -0
- package/cli/common/permission-definition.js.map +1 -0
- package/cli/common/self-refreshing-cache.d.ts +15 -0
- package/cli/common/self-refreshing-cache.js +56 -0
- package/cli/common/self-refreshing-cache.js.map +1 -0
- package/cli/common/tax-utils.d.ts +4 -0
- package/cli/common/tax-utils.js +20 -0
- package/cli/common/tax-utils.js.map +1 -0
- package/cli/common/ttl-cache.d.ts +13 -0
- package/cli/common/ttl-cache.js +48 -0
- package/cli/common/ttl-cache.js.map +1 -0
- package/cli/common/types/adjustment-source.d.ts +14 -0
- package/cli/common/types/adjustment-source.js +18 -0
- package/cli/common/types/adjustment-source.js.map +1 -0
- package/cli/common/types/common-types.d.ts +97 -0
- package/cli/common/types/common-types.js +3 -0
- package/cli/common/types/common-types.js.map +1 -0
- package/cli/common/types/entity-relation-paths.d.ts +16 -0
- package/cli/common/types/entity-relation-paths.js +3 -0
- package/cli/common/types/entity-relation-paths.js.map +1 -0
- package/cli/common/types/injectable-strategy.d.ts +5 -0
- package/cli/common/types/injectable-strategy.js +3 -0
- package/cli/common/types/injectable-strategy.js.map +1 -0
- package/cli/common/types/locale-types.d.ts +43 -0
- package/cli/common/types/locale-types.js +3 -0
- package/cli/common/types/locale-types.js.map +1 -0
- package/cli/common/utils.d.ts +11 -0
- package/cli/common/utils.js +66 -0
- package/cli/common/utils.js.map +1 -0
- package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +6 -0
- package/cli/config/asset-naming-strategy/asset-naming-strategy.js +3 -0
- package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +1 -0
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +11 -0
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +55 -0
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +1 -0
- package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +6 -0
- package/cli/config/asset-preview-strategy/asset-preview-strategy.js +3 -0
- package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +1 -0
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +6 -0
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +11 -0
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +1 -0
- package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +13 -0
- package/cli/config/asset-storage-strategy/asset-storage-strategy.js +3 -0
- package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +1 -0
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +13 -0
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +30 -0
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +1 -0
- package/cli/config/auth/authentication-strategy.d.ts +10 -0
- package/cli/config/auth/authentication-strategy.js +3 -0
- package/cli/config/auth/authentication-strategy.js.map +1 -0
- package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +7 -0
- package/cli/config/auth/bcrypt-password-hashing-strategy.js +21 -0
- package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +1 -0
- package/cli/config/auth/default-password-validation-strategy.d.ts +10 -0
- package/cli/config/auth/default-password-validation-strategy.js +24 -0
- package/cli/config/auth/default-password-validation-strategy.js.map +1 -0
- package/cli/config/auth/native-authentication-strategy.d.ts +21 -0
- package/cli/config/auth/native-authentication-strategy.js +87 -0
- package/cli/config/auth/native-authentication-strategy.js.map +1 -0
- package/cli/config/auth/password-hashing-strategy.d.ts +5 -0
- package/cli/config/auth/password-hashing-strategy.js +3 -0
- package/cli/config/auth/password-hashing-strategy.js.map +1 -0
- package/cli/config/auth/password-validation-strategy.d.ts +5 -0
- package/cli/config/auth/password-validation-strategy.js +3 -0
- package/cli/config/auth/password-validation-strategy.js.map +1 -0
- package/cli/config/catalog/collection-filter.d.ts +13 -0
- package/cli/config/catalog/collection-filter.js +15 -0
- package/cli/config/catalog/collection-filter.js.map +1 -0
- package/cli/config/catalog/default-collection-filters.d.ts +52 -0
- package/cli/config/catalog/default-collection-filters.js +112 -0
- package/cli/config/catalog/default-collection-filters.js.map +1 -0
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +8 -0
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +31 -0
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +1 -0
- package/cli/config/catalog/default-stock-display-strategy.d.ts +8 -0
- package/cli/config/catalog/default-stock-display-strategy.js +17 -0
- package/cli/config/catalog/default-stock-display-strategy.js.map +1 -0
- package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +13 -0
- package/cli/config/catalog/product-variant-price-calculation-strategy.js +3 -0
- package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +1 -0
- package/cli/config/catalog/stock-display-strategy.d.ts +6 -0
- package/cli/config/catalog/stock-display-strategy.js +3 -0
- package/cli/config/catalog/stock-display-strategy.js.map +1 -0
- package/cli/config/config-helpers.d.ts +3 -0
- package/cli/config/config-helpers.js +15 -0
- package/cli/config/config-helpers.js.map +1 -0
- package/cli/config/config.module.d.ts +16 -0
- package/cli/config/config.module.js +120 -0
- package/cli/config/config.module.js.map +1 -0
- package/cli/config/config.service.d.ts +30 -0
- package/cli/config/config.service.js +86 -0
- package/cli/config/config.service.js.map +1 -0
- package/cli/config/custom-field/custom-field-types.d.ts +65 -0
- package/cli/config/custom-field/custom-field-types.js +3 -0
- package/cli/config/custom-field/custom-field-types.js.map +1 -0
- package/cli/config/default-config.d.ts +2 -0
- package/cli/config/default-config.js +174 -0
- package/cli/config/default-config.js.map +1 -0
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +6 -0
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +17 -0
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +1 -0
- package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +7 -0
- package/cli/config/entity-id-strategy/entity-id-strategy.js +3 -0
- package/cli/config/entity-id-strategy/entity-id-strategy.js.map +1 -0
- package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +6 -0
- package/cli/config/entity-id-strategy/uuid-id-strategy.js +16 -0
- package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +1 -0
- package/cli/config/fulfillment/custom-fulfillment-process.d.ts +9 -0
- package/cli/config/fulfillment/custom-fulfillment-process.js +3 -0
- package/cli/config/fulfillment/custom-fulfillment-process.js.map +1 -0
- package/cli/config/fulfillment/fulfillment-handler.d.ts +21 -0
- package/cli/config/fulfillment/fulfillment-handler.js +23 -0
- package/cli/config/fulfillment/fulfillment-handler.js.map +1 -0
- package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +11 -0
- package/cli/config/fulfillment/manual-fulfillment-handler.js +26 -0
- package/cli/config/fulfillment/manual-fulfillment-handler.js.map +1 -0
- package/cli/config/index.d.ts +61 -0
- package/cli/config/index.js +74 -0
- package/cli/config/index.js.map +1 -0
- package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +12 -0
- package/cli/config/job-queue/inspectable-job-queue-strategy.js +11 -0
- package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +1 -0
- package/cli/config/job-queue/job-queue-strategy.d.ts +8 -0
- package/cli/config/job-queue/job-queue-strategy.js +3 -0
- package/cli/config/job-queue/job-queue-strategy.js.map +1 -0
- package/cli/config/logger/default-logger.d.ts +24 -0
- package/cli/config/logger/default-logger.js +90 -0
- package/cli/config/logger/default-logger.js.map +1 -0
- package/cli/config/logger/noop-logger.d.ts +8 -0
- package/cli/config/logger/noop-logger.js +17 -0
- package/cli/config/logger/noop-logger.js.map +1 -0
- package/cli/config/logger/typeorm-logger.d.ts +15 -0
- package/cli/config/logger/typeorm-logger.js +74 -0
- package/cli/config/logger/typeorm-logger.js.map +1 -0
- package/cli/config/logger/vendure-logger.d.ts +32 -0
- package/cli/config/logger/vendure-logger.js +68 -0
- package/cli/config/logger/vendure-logger.js.map +1 -0
- package/cli/config/merge-config.d.ts +2 -0
- package/cli/config/merge-config.js +34 -0
- package/cli/config/merge-config.js.map +1 -0
- package/cli/config/order/changed-price-handling-strategy.d.ts +7 -0
- package/cli/config/order/changed-price-handling-strategy.js +3 -0
- package/cli/config/order/changed-price-handling-strategy.js.map +1 -0
- package/cli/config/order/custom-order-process.d.ts +9 -0
- package/cli/config/order/custom-order-process.js +3 -0
- package/cli/config/order/custom-order-process.js.map +1 -0
- package/cli/config/order/default-changed-price-handling-strategy.d.ts +6 -0
- package/cli/config/order/default-changed-price-handling-strategy.js +10 -0
- package/cli/config/order/default-changed-price-handling-strategy.js.map +1 -0
- package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +7 -0
- package/cli/config/order/default-order-item-price-calculation-strategy.js +13 -0
- package/cli/config/order/default-order-item-price-calculation-strategy.js.map +1 -0
- package/cli/config/order/default-order-placed-strategy.d.ts +7 -0
- package/cli/config/order/default-order-placed-strategy.js +13 -0
- package/cli/config/order/default-order-placed-strategy.js.map +1 -0
- package/cli/config/order/default-stock-allocation-strategy.d.ts +7 -0
- package/cli/config/order/default-stock-allocation-strategy.js +11 -0
- package/cli/config/order/default-stock-allocation-strategy.js.map +1 -0
- package/cli/config/order/merge-orders-strategy.d.ts +7 -0
- package/cli/config/order/merge-orders-strategy.js +29 -0
- package/cli/config/order/merge-orders-strategy.js.map +1 -0
- package/cli/config/order/order-by-code-access-strategy.d.ts +11 -0
- package/cli/config/order/order-by-code-access-strategy.js +25 -0
- package/cli/config/order/order-by-code-access-strategy.js.map +1 -0
- package/cli/config/order/order-code-strategy.d.ts +8 -0
- package/cli/config/order/order-code-strategy.js +11 -0
- package/cli/config/order/order-code-strategy.js.map +1 -0
- package/cli/config/order/order-item-price-calculation-strategy.d.ts +9 -0
- package/cli/config/order/order-item-price-calculation-strategy.js +3 -0
- package/cli/config/order/order-item-price-calculation-strategy.js.map +1 -0
- package/cli/config/order/order-merge-strategy.d.ts +14 -0
- package/cli/config/order/order-merge-strategy.js +12 -0
- package/cli/config/order/order-merge-strategy.js.map +1 -0
- package/cli/config/order/order-placed-strategy.d.ts +7 -0
- package/cli/config/order/order-placed-strategy.js +3 -0
- package/cli/config/order/order-placed-strategy.js.map +1 -0
- package/cli/config/order/stock-allocation-strategy.d.ts +7 -0
- package/cli/config/order/stock-allocation-strategy.js +3 -0
- package/cli/config/order/stock-allocation-strategy.js.map +1 -0
- package/cli/config/order/use-existing-strategy.d.ts +6 -0
- package/cli/config/order/use-existing-strategy.js +11 -0
- package/cli/config/order/use-existing-strategy.js.map +1 -0
- package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +6 -0
- package/cli/config/order/use-guest-if-existing-empty-strategy.js +13 -0
- package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +1 -0
- package/cli/config/order/use-guest-strategy.d.ts +6 -0
- package/cli/config/order/use-guest-strategy.js +11 -0
- package/cli/config/order/use-guest-strategy.js.map +1 -0
- package/cli/config/payment/custom-payment-process.d.ts +9 -0
- package/cli/config/payment/custom-payment-process.js +3 -0
- package/cli/config/payment/custom-payment-process.js.map +1 -0
- package/cli/config/payment/dummy-payment-method-handler.d.ts +17 -0
- package/cli/config/payment/dummy-payment-method-handler.js +74 -0
- package/cli/config/payment/dummy-payment-method-handler.js.map +1 -0
- package/cli/config/payment/example-payment-method-handler.d.ts +11 -0
- package/cli/config/payment/example-payment-method-handler.js +59 -0
- package/cli/config/payment/example-payment-method-handler.js.map +1 -0
- package/cli/config/payment/payment-method-eligibility-checker.d.ts +13 -0
- package/cli/config/payment/payment-method-eligibility-checker.js +15 -0
- package/cli/config/payment/payment-method-eligibility-checker.js.map +1 -0
- package/cli/config/payment/payment-method-handler.d.ts +73 -0
- package/cli/config/payment/payment-method-handler.js +36 -0
- package/cli/config/payment/payment-method-handler.js.map +1 -0
- package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +37 -0
- package/cli/config/promotion/actions/buy-x-get-y-free-action.js +30 -0
- package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +1 -0
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +17 -0
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +39 -0
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +1 -0
- package/cli/config/promotion/actions/free-shipping-action.d.ts +2 -0
- package/cli/config/promotion/actions/free-shipping-action.js +14 -0
- package/cli/config/promotion/actions/free-shipping-action.js.map +1 -0
- package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +9 -0
- package/cli/config/promotion/actions/order-fixed-discount-action.js +21 -0
- package/cli/config/promotion/actions/order-fixed-discount-action.js.map +1 -0
- package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +10 -0
- package/cli/config/promotion/actions/order-percentage-discount-action.js +23 -0
- package/cli/config/promotion/actions/order-percentage-discount-action.js.map +1 -0
- package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +22 -0
- package/cli/config/promotion/actions/product-percentage-discount-action.js +36 -0
- package/cli/config/promotion/actions/product-percentage-discount-action.js.map +1 -0
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +37 -0
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +71 -0
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +1 -0
- package/cli/config/promotion/conditions/contains-products-condition.d.ts +19 -0
- package/cli/config/promotion/conditions/contains-products-condition.js +38 -0
- package/cli/config/promotion/conditions/contains-products-condition.js.map +1 -0
- package/cli/config/promotion/conditions/customer-group-condition.d.ts +14 -0
- package/cli/config/promotion/conditions/customer-group-condition.js +72 -0
- package/cli/config/promotion/conditions/customer-group-condition.js.map +1 -0
- package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +14 -0
- package/cli/config/promotion/conditions/has-facet-values-condition.js +31 -0
- package/cli/config/promotion/conditions/has-facet-values-condition.js.map +1 -0
- package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +14 -0
- package/cli/config/promotion/conditions/min-order-amount-condition.js +27 -0
- package/cli/config/promotion/conditions/min-order-amount-condition.js.map +1 -0
- package/cli/config/promotion/index.d.ts +170 -0
- package/cli/config/promotion/index.js +50 -0
- package/cli/config/promotion/index.js.map +1 -0
- package/cli/config/promotion/promotion-action.d.ts +56 -0
- package/cli/config/promotion/promotion-action.js +49 -0
- package/cli/config/promotion/promotion-action.js.map +1 -0
- package/cli/config/promotion/promotion-condition.d.ts +19 -0
- package/cli/config/promotion/promotion-condition.js +19 -0
- package/cli/config/promotion/promotion-condition.js.map +1 -0
- package/cli/config/promotion/utils/facet-value-checker.d.ts +9 -0
- package/cli/config/promotion/utils/facet-value-checker.js +31 -0
- package/cli/config/promotion/utils/facet-value-checker.js.map +1 -0
- package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +11 -0
- package/cli/config/session-cache/in-memory-session-cache-strategy.js +44 -0
- package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +1 -0
- package/cli/config/session-cache/noop-session-cache-strategy.d.ts +7 -0
- package/cli/config/session-cache/noop-session-cache-strategy.js +19 -0
- package/cli/config/session-cache/noop-session-cache-strategy.js.map +1 -0
- package/cli/config/session-cache/session-cache-strategy.d.ts +25 -0
- package/cli/config/session-cache/session-cache-strategy.js +3 -0
- package/cli/config/session-cache/session-cache-strategy.js.map +1 -0
- package/cli/config/shipping-method/default-shipping-calculator.d.ts +51 -0
- package/cli/config/shipping-method/default-shipping-calculator.js +69 -0
- package/cli/config/shipping-method/default-shipping-calculator.js.map +1 -0
- package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +19 -0
- package/cli/config/shipping-method/default-shipping-eligibility-checker.js +27 -0
- package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +1 -0
- package/cli/config/shipping-method/shipping-calculator.d.ts +20 -0
- package/cli/config/shipping-method/shipping-calculator.js +15 -0
- package/cli/config/shipping-method/shipping-calculator.js.map +1 -0
- package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +19 -0
- package/cli/config/shipping-method/shipping-eligibility-checker.js +38 -0
- package/cli/config/shipping-method/shipping-eligibility-checker.js.map +1 -0
- package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +5 -0
- package/cli/config/tax/default-tax-line-calculation-strategy.js +11 -0
- package/cli/config/tax/default-tax-line-calculation-strategy.js.map +1 -0
- package/cli/config/tax/default-tax-zone-strategy.d.ts +6 -0
- package/cli/config/tax/default-tax-zone-strategy.js +10 -0
- package/cli/config/tax/default-tax-zone-strategy.js.map +1 -0
- package/cli/config/tax/tax-line-calculation-strategy.d.ts +17 -0
- package/cli/config/tax/tax-line-calculation-strategy.js +3 -0
- package/cli/config/tax/tax-line-calculation-strategy.js.map +1 -0
- package/cli/config/tax/tax-zone-strategy.d.ts +6 -0
- package/cli/config/tax/tax-zone-strategy.js +3 -0
- package/cli/config/tax/tax-zone-strategy.js.map +1 -0
- package/cli/config/vendure-config.d.ts +192 -0
- package/cli/config/vendure-config.js +3 -0
- package/cli/config/vendure-config.js.map +1 -0
- package/cli/connection/connection.module.d.ts +7 -0
- package/cli/connection/connection.module.js +61 -0
- package/cli/connection/connection.module.js.map +1 -0
- package/cli/connection/transaction-subscriber.d.ts +19 -0
- package/cli/connection/transaction-subscriber.js +54 -0
- package/cli/connection/transaction-subscriber.js.map +1 -0
- package/cli/connection/transaction-wrapper.d.ts +9 -0
- package/cli/connection/transaction-wrapper.js +79 -0
- package/cli/connection/transaction-wrapper.js.map +1 -0
- package/cli/connection/transactional-connection.d.ts +25 -0
- package/cli/connection/transactional-connection.js +170 -0
- package/cli/connection/transactional-connection.js.map +1 -0
- package/cli/connection/types.d.ts +8 -0
- package/cli/connection/types.js +3 -0
- package/cli/connection/types.js.map +1 -0
- package/cli/entity/address/address.entity.d.ts +22 -0
- package/cli/entity/address/address.entity.js +80 -0
- package/cli/entity/address/address.entity.js.map +1 -0
- package/cli/entity/administrator/administrator.entity.d.ts +15 -0
- package/cli/entity/administrator/administrator.entity.js +52 -0
- package/cli/entity/administrator/administrator.entity.js.map +1 -0
- package/cli/entity/asset/asset.entity.d.ts +26 -0
- package/cli/entity/asset/asset.entity.js +79 -0
- package/cli/entity/asset/asset.entity.js.map +1 -0
- package/cli/entity/asset/orderable-asset.entity.d.ts +10 -0
- package/cli/entity/asset/orderable-asset.entity.js +34 -0
- package/cli/entity/asset/orderable-asset.entity.js.map +1 -0
- package/cli/entity/authentication-method/authentication-method.entity.d.ts +5 -0
- package/cli/entity/authentication-method/authentication-method.entity.js +27 -0
- package/cli/entity/authentication-method/authentication-method.entity.js.map +1 -0
- package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +8 -0
- package/cli/entity/authentication-method/external-authentication-method.entity.js +37 -0
- package/cli/entity/authentication-method/external-authentication-method.entity.js.map +1 -0
- package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +11 -0
- package/cli/entity/authentication-method/native-authentication-method.entity.js +49 -0
- package/cli/entity/authentication-method/native-authentication-method.entity.js.map +1 -0
- package/cli/entity/base/base.entity.d.ts +7 -0
- package/cli/entity/base/base.entity.js +37 -0
- package/cli/entity/base/base.entity.js.map +1 -0
- package/cli/entity/channel/channel.entity.d.ts +17 -0
- package/cli/entity/channel/channel.entity.js +67 -0
- package/cli/entity/channel/channel.entity.js.map +1 -0
- package/cli/entity/collection/collection-asset.entity.d.ts +8 -0
- package/cli/entity/collection/collection-asset.entity.js +34 -0
- package/cli/entity/collection/collection-asset.entity.js.map +1 -0
- package/cli/entity/collection/collection-translation.entity.d.ts +16 -0
- package/cli/entity/collection/collection-translation.entity.js +52 -0
- package/cli/entity/collection/collection-translation.entity.js.map +1 -0
- package/cli/entity/collection/collection.entity.d.ts +29 -0
- package/cli/entity/collection/collection.entity.js +81 -0
- package/cli/entity/collection/collection.entity.js.map +1 -0
- package/cli/entity/country/country-translation.entity.d.ts +14 -0
- package/cli/entity/country/country-translation.entity.js +44 -0
- package/cli/entity/country/country-translation.entity.js.map +1 -0
- package/cli/entity/country/country.entity.d.ts +13 -0
- package/cli/entity/country/country.entity.js +43 -0
- package/cli/entity/country/country.entity.js.map +1 -0
- package/cli/entity/custom-entity-fields.d.ts +68 -0
- package/cli/entity/custom-entity-fields.js +106 -0
- package/cli/entity/custom-entity-fields.js.map +1 -0
- package/cli/entity/customer/customer.entity.d.ts +25 -0
- package/cli/entity/customer/customer.entity.js +82 -0
- package/cli/entity/customer/customer.entity.js.map +1 -0
- package/cli/entity/customer-group/customer-group.entity.d.ts +11 -0
- package/cli/entity/customer-group/customer-group.entity.js +39 -0
- package/cli/entity/customer-group/customer-group.entity.js.map +1 -0
- package/cli/entity/entities.d.ts +124 -0
- package/cli/entity/entities.js +128 -0
- package/cli/entity/entities.js.map +1 -0
- package/cli/entity/entity-id.decorator.d.ts +18 -0
- package/cli/entity/entity-id.decorator.js +40 -0
- package/cli/entity/entity-id.decorator.js.map +1 -0
- package/cli/entity/facet/facet-translation.entity.d.ts +14 -0
- package/cli/entity/facet/facet-translation.entity.js +44 -0
- package/cli/entity/facet/facet-translation.entity.js.map +1 -0
- package/cli/entity/facet/facet.entity.d.ts +18 -0
- package/cli/entity/facet/facet.entity.js +54 -0
- package/cli/entity/facet/facet.entity.js.map +1 -0
- package/cli/entity/facet-value/facet-value-translation.entity.d.ts +13 -0
- package/cli/entity/facet-value/facet-value-translation.entity.js +44 -0
- package/cli/entity/facet-value/facet-value-translation.entity.js.map +1 -0
- package/cli/entity/facet-value/facet-value.entity.d.ts +17 -0
- package/cli/entity/facet-value/facet-value.entity.js +50 -0
- package/cli/entity/facet-value/facet-value.entity.js.map +1 -0
- package/cli/entity/fulfillment/fulfillment.entity.d.ts +15 -0
- package/cli/entity/fulfillment/fulfillment.entity.js +51 -0
- package/cli/entity/fulfillment/fulfillment.entity.js.map +1 -0
- package/cli/entity/global-settings/global-settings.entity.d.ts +12 -0
- package/cli/entity/global-settings/global-settings.entity.js +42 -0
- package/cli/entity/global-settings/global-settings.entity.js.map +1 -0
- package/cli/entity/history-entry/customer-history-entry.entity.d.ts +7 -0
- package/cli/entity/history-entry/customer-history-entry.entity.js +30 -0
- package/cli/entity/history-entry/customer-history-entry.entity.js.map +1 -0
- package/cli/entity/history-entry/history-entry.entity.d.ts +9 -0
- package/cli/entity/history-entry/history-entry.entity.js +40 -0
- package/cli/entity/history-entry/history-entry.entity.js.map +1 -0
- package/cli/entity/history-entry/order-history-entry.entity.d.ts +7 -0
- package/cli/entity/history-entry/order-history-entry.entity.js +30 -0
- package/cli/entity/history-entry/order-history-entry.entity.js.map +1 -0
- package/cli/entity/index.d.ts +52 -0
- package/cli/entity/index.js +65 -0
- package/cli/entity/index.js.map +1 -0
- package/cli/entity/order/order.entity.d.ts +48 -0
- package/cli/entity/order/order.entity.js +277 -0
- package/cli/entity/order/order.entity.js.map +1 -0
- package/cli/entity/order-item/order-item.entity.d.ts +35 -0
- package/cli/entity/order-item/order-item.entity.js +182 -0
- package/cli/entity/order-item/order-item.entity.js.map +1 -0
- package/cli/entity/order-line/order-line.entity.d.ts +44 -0
- package/cli/entity/order-line/order-line.entity.js +275 -0
- package/cli/entity/order-line/order-line.entity.js.map +1 -0
- package/cli/entity/order-modification/order-modification.entity.d.ts +21 -0
- package/cli/entity/order-modification/order-modification.entity.js +81 -0
- package/cli/entity/order-modification/order-modification.entity.js.map +1 -0
- package/cli/entity/payment/payment.entity.d.ts +17 -0
- package/cli/entity/payment/payment.entity.js +59 -0
- package/cli/entity/payment/payment.entity.js.map +1 -0
- package/cli/entity/payment-method/payment-method.entity.d.ts +18 -0
- package/cli/entity/payment-method/payment-method.entity.js +60 -0
- package/cli/entity/payment-method/payment-method.entity.js.map +1 -0
- package/cli/entity/product/product-asset.entity.d.ts +8 -0
- package/cli/entity/product/product-asset.entity.js +34 -0
- package/cli/entity/product/product-asset.entity.js.map +1 -0
- package/cli/entity/product/product-translation.entity.d.ts +16 -0
- package/cli/entity/product/product-translation.entity.js +52 -0
- package/cli/entity/product/product-translation.entity.js.map +1 -0
- package/cli/entity/product/product.entity.d.ts +28 -0
- package/cli/entity/product/product.entity.js +75 -0
- package/cli/entity/product/product.entity.js.map +1 -0
- package/cli/entity/product-option/product-option-translation.entity.d.ts +14 -0
- package/cli/entity/product-option/product-option-translation.entity.js +44 -0
- package/cli/entity/product-option/product-option-translation.entity.js.map +1 -0
- package/cli/entity/product-option/product-option.entity.d.ts +17 -0
- package/cli/entity/product-option/product-option.entity.js +53 -0
- package/cli/entity/product-option/product-option.entity.js.map +1 -0
- package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +14 -0
- package/cli/entity/product-option-group/product-option-group-translation.entity.js +44 -0
- package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +1 -0
- package/cli/entity/product-option-group/product-option-group.entity.d.ts +18 -0
- package/cli/entity/product-option-group/product-option-group.entity.js +53 -0
- package/cli/entity/product-option-group/product-option-group.entity.js.map +1 -0
- package/cli/entity/product-variant/product-variant-asset.entity.d.ts +8 -0
- package/cli/entity/product-variant/product-variant-asset.entity.js +34 -0
- package/cli/entity/product-variant/product-variant-asset.entity.js.map +1 -0
- package/cli/entity/product-variant/product-variant-price.entity.d.ts +9 -0
- package/cli/entity/product-variant/product-variant-price.entity.js +39 -0
- package/cli/entity/product-variant/product-variant-price.entity.js.map +1 -0
- package/cli/entity/product-variant/product-variant-translation.entity.d.ts +14 -0
- package/cli/entity/product-variant/product-variant-translation.entity.js +44 -0
- package/cli/entity/product-variant/product-variant-translation.entity.js.map +1 -0
- package/cli/entity/product-variant/product-variant.entity.d.ts +49 -0
- package/cli/entity/product-variant/product-variant.entity.js +155 -0
- package/cli/entity/product-variant/product-variant.entity.js.map +1 -0
- package/cli/entity/promotion/promotion.entity.d.ts +56 -0
- package/cli/entity/promotion/promotion.entity.js +157 -0
- package/cli/entity/promotion/promotion.entity.js.map +1 -0
- package/cli/entity/refund/refund.entity.d.ts +21 -0
- package/cli/entity/refund/refund.entity.js +78 -0
- package/cli/entity/refund/refund.entity.js.map +1 -0
- package/cli/entity/role/role.entity.d.ts +12 -0
- package/cli/entity/role/role.entity.js +43 -0
- package/cli/entity/role/role.entity.js.map +1 -0
- package/cli/entity/session/anonymous-session.entity.d.ts +5 -0
- package/cli/entity/session/anonymous-session.entity.js +25 -0
- package/cli/entity/session/anonymous-session.entity.js.map +1 -0
- package/cli/entity/session/authenticated-session.entity.d.ts +8 -0
- package/cli/entity/session/authenticated-session.entity.js +34 -0
- package/cli/entity/session/authenticated-session.entity.js.map +1 -0
- package/cli/entity/session/session.entity.d.ts +13 -0
- package/cli/entity/session/session.entity.js +54 -0
- package/cli/entity/session/session.entity.js.map +1 -0
- package/cli/entity/shipping-line/shipping-line.entity.d.ts +24 -0
- package/cli/entity/shipping-line/shipping-line.entity.js +128 -0
- package/cli/entity/shipping-line/shipping-line.entity.js.map +1 -0
- package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +16 -0
- package/cli/entity/shipping-method/shipping-method-translation.entity.js +48 -0
- package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +1 -0
- package/cli/entity/shipping-method/shipping-method.entity.d.ts +28 -0
- package/cli/entity/shipping-method/shipping-method.entity.js +92 -0
- package/cli/entity/shipping-method/shipping-method.entity.js.map +1 -0
- package/cli/entity/stock-movement/allocation.entity.d.ts +9 -0
- package/cli/entity/stock-movement/allocation.entity.js +32 -0
- package/cli/entity/stock-movement/allocation.entity.js.map +1 -0
- package/cli/entity/stock-movement/cancellation.entity.d.ts +9 -0
- package/cli/entity/stock-movement/cancellation.entity.js +32 -0
- package/cli/entity/stock-movement/cancellation.entity.js.map +1 -0
- package/cli/entity/stock-movement/release.entity.d.ts +9 -0
- package/cli/entity/stock-movement/release.entity.js +32 -0
- package/cli/entity/stock-movement/release.entity.js.map +1 -0
- package/cli/entity/stock-movement/sale.entity.d.ts +9 -0
- package/cli/entity/stock-movement/sale.entity.js +32 -0
- package/cli/entity/stock-movement/sale.entity.js.map +1 -0
- package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +7 -0
- package/cli/entity/stock-movement/stock-adjustment.entity.js +27 -0
- package/cli/entity/stock-movement/stock-adjustment.entity.js.map +1 -0
- package/cli/entity/stock-movement/stock-movement.entity.d.ts +8 -0
- package/cli/entity/stock-movement/stock-movement.entity.js +36 -0
- package/cli/entity/stock-movement/stock-movement.entity.js.map +1 -0
- package/cli/entity/surcharge/surcharge.entity.d.ts +18 -0
- package/cli/entity/surcharge/surcharge.entity.js +82 -0
- package/cli/entity/surcharge/surcharge.entity.js.map +1 -0
- package/cli/entity/tag/tag.entity.d.ts +6 -0
- package/cli/entity/tag/tag.entity.js +29 -0
- package/cli/entity/tag/tag.entity.js.map +1 -0
- package/cli/entity/tax-category/tax-category.entity.d.ts +10 -0
- package/cli/entity/tax-category/tax-category.entity.js +38 -0
- package/cli/entity/tax-category/tax-category.entity.js.map +1 -0
- package/cli/entity/tax-rate/tax-rate.entity.d.ts +24 -0
- package/cli/entity/tax-rate/tax-rate.entity.js +81 -0
- package/cli/entity/tax-rate/tax-rate.entity.js.map +1 -0
- package/cli/entity/user/user.entity.d.ts +19 -0
- package/cli/entity/user/user.entity.js +69 -0
- package/cli/entity/user/user.entity.js.map +1 -0
- package/cli/entity/value-transformers.d.ts +5 -0
- package/cli/entity/value-transformers.js +13 -0
- package/cli/entity/value-transformers.js.map +1 -0
- package/cli/entity/zone/zone.entity.d.ts +11 -0
- package/cli/entity/zone/zone.entity.js +40 -0
- package/cli/entity/zone/zone.entity.js.map +1 -0
- package/cli/event-bus/event-bus.d.ts +15 -0
- package/cli/event-bus/event-bus.js +51 -0
- package/cli/event-bus/event-bus.js.map +1 -0
- package/cli/event-bus/event-bus.module.d.ts +2 -0
- package/cli/event-bus/event-bus.module.js +23 -0
- package/cli/event-bus/event-bus.module.js.map +1 -0
- package/cli/event-bus/events/account-registration-event.d.ts +8 -0
- package/cli/event-bus/events/account-registration-event.js +13 -0
- package/cli/event-bus/events/account-registration-event.js.map +1 -0
- package/cli/event-bus/events/account-verified-event.d.ts +8 -0
- package/cli/event-bus/events/account-verified-event.js +13 -0
- package/cli/event-bus/events/account-verified-event.js.map +1 -0
- package/cli/event-bus/events/administrator-event.d.ts +10 -0
- package/cli/event-bus/events/administrator-event.js +11 -0
- package/cli/event-bus/events/administrator-event.js.map +1 -0
- package/cli/event-bus/events/asset-channel-event.d.ts +11 -0
- package/cli/event-bus/events/asset-channel-event.js +15 -0
- package/cli/event-bus/events/asset-channel-event.js.map +1 -0
- package/cli/event-bus/events/asset-event.d.ts +11 -0
- package/cli/event-bus/events/asset-event.js +14 -0
- package/cli/event-bus/events/asset-event.js.map +1 -0
- package/cli/event-bus/events/attempted-login-event.d.ts +8 -0
- package/cli/event-bus/events/attempted-login-event.js +14 -0
- package/cli/event-bus/events/attempted-login-event.js.map +1 -0
- package/cli/event-bus/events/change-channel-event.d.ts +13 -0
- package/cli/event-bus/events/change-channel-event.js +16 -0
- package/cli/event-bus/events/change-channel-event.js.map +1 -0
- package/cli/event-bus/events/channel-event.d.ts +10 -0
- package/cli/event-bus/events/channel-event.js +11 -0
- package/cli/event-bus/events/channel-event.js.map +1 -0
- package/cli/event-bus/events/collection-event.d.ts +10 -0
- package/cli/event-bus/events/collection-event.js +11 -0
- package/cli/event-bus/events/collection-event.js.map +1 -0
- package/cli/event-bus/events/collection-modification-event.d.ts +10 -0
- package/cli/event-bus/events/collection-modification-event.js +14 -0
- package/cli/event-bus/events/collection-modification-event.js.map +1 -0
- package/cli/event-bus/events/country-event.d.ts +10 -0
- package/cli/event-bus/events/country-event.js +11 -0
- package/cli/event-bus/events/country-event.js.map +1 -0
- package/cli/event-bus/events/coupon-code-event.d.ts +10 -0
- package/cli/event-bus/events/coupon-code-event.js +15 -0
- package/cli/event-bus/events/coupon-code-event.js.map +1 -0
- package/cli/event-bus/events/customer-address-event.d.ts +15 -0
- package/cli/event-bus/events/customer-address-event.js +18 -0
- package/cli/event-bus/events/customer-address-event.js.map +1 -0
- package/cli/event-bus/events/customer-event.d.ts +13 -0
- package/cli/event-bus/events/customer-event.js +14 -0
- package/cli/event-bus/events/customer-event.js.map +1 -0
- package/cli/event-bus/events/customer-group-entity-event.d.ts +10 -0
- package/cli/event-bus/events/customer-group-entity-event.js +11 -0
- package/cli/event-bus/events/customer-group-entity-event.js.map +1 -0
- package/cli/event-bus/events/customer-group-event.d.ts +18 -0
- package/cli/event-bus/events/customer-group-event.js +25 -0
- package/cli/event-bus/events/customer-group-event.js.map +1 -0
- package/cli/event-bus/events/facet-event.d.ts +10 -0
- package/cli/event-bus/events/facet-event.js +11 -0
- package/cli/event-bus/events/facet-event.js.map +1 -0
- package/cli/event-bus/events/facet-value-event.d.ts +10 -0
- package/cli/event-bus/events/facet-value-event.js +11 -0
- package/cli/event-bus/events/facet-value-event.js.map +1 -0
- package/cli/event-bus/events/fulfillment-event.d.ts +14 -0
- package/cli/event-bus/events/fulfillment-event.js +11 -0
- package/cli/event-bus/events/fulfillment-event.js.map +1 -0
- package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +11 -0
- package/cli/event-bus/events/fulfillment-state-transition-event.js +15 -0
- package/cli/event-bus/events/fulfillment-state-transition-event.js.map +1 -0
- package/cli/event-bus/events/global-settings-event.d.ts +7 -0
- package/cli/event-bus/events/global-settings-event.js +11 -0
- package/cli/event-bus/events/global-settings-event.js.map +1 -0
- package/cli/event-bus/events/history-entry-event.d.ts +14 -0
- package/cli/event-bus/events/history-entry-event.js +12 -0
- package/cli/event-bus/events/history-entry-event.js.map +1 -0
- package/cli/event-bus/events/identifier-change-event.d.ts +9 -0
- package/cli/event-bus/events/identifier-change-event.js +14 -0
- package/cli/event-bus/events/identifier-change-event.js.map +1 -0
- package/cli/event-bus/events/identifier-change-request-event.d.ts +8 -0
- package/cli/event-bus/events/identifier-change-request-event.js +13 -0
- package/cli/event-bus/events/identifier-change-request-event.js.map +1 -0
- package/cli/event-bus/events/login-event.d.ts +8 -0
- package/cli/event-bus/events/login-event.js +13 -0
- package/cli/event-bus/events/login-event.js.map +1 -0
- package/cli/event-bus/events/logout-event.d.ts +6 -0
- package/cli/event-bus/events/logout-event.js +12 -0
- package/cli/event-bus/events/logout-event.js.map +1 -0
- package/cli/event-bus/events/order-event.d.ts +9 -0
- package/cli/event-bus/events/order-event.js +14 -0
- package/cli/event-bus/events/order-event.js.map +1 -0
- package/cli/event-bus/events/order-line-event.d.ts +10 -0
- package/cli/event-bus/events/order-line-event.js +15 -0
- package/cli/event-bus/events/order-line-event.js.map +1 -0
- package/cli/event-bus/events/order-placed-event.d.ts +11 -0
- package/cli/event-bus/events/order-placed-event.js +15 -0
- package/cli/event-bus/events/order-placed-event.js.map +1 -0
- package/cli/event-bus/events/order-state-transition-event.d.ts +11 -0
- package/cli/event-bus/events/order-state-transition-event.js +15 -0
- package/cli/event-bus/events/order-state-transition-event.js.map +1 -0
- package/cli/event-bus/events/password-reset-event.d.ts +8 -0
- package/cli/event-bus/events/password-reset-event.js +13 -0
- package/cli/event-bus/events/password-reset-event.js.map +1 -0
- package/cli/event-bus/events/password-reset-verified-event.d.ts +8 -0
- package/cli/event-bus/events/password-reset-verified-event.js +13 -0
- package/cli/event-bus/events/password-reset-verified-event.js.map +1 -0
- package/cli/event-bus/events/payment-method-event.d.ts +10 -0
- package/cli/event-bus/events/payment-method-event.js +11 -0
- package/cli/event-bus/events/payment-method-event.js.map +1 -0
- package/cli/event-bus/events/payment-state-transition-event.d.ts +13 -0
- package/cli/event-bus/events/payment-state-transition-event.js +16 -0
- package/cli/event-bus/events/payment-state-transition-event.js.map +1 -0
- package/cli/event-bus/events/product-channel-event.d.ts +11 -0
- package/cli/event-bus/events/product-channel-event.js +15 -0
- package/cli/event-bus/events/product-channel-event.js.map +1 -0
- package/cli/event-bus/events/product-event.d.ts +11 -0
- package/cli/event-bus/events/product-event.js +14 -0
- package/cli/event-bus/events/product-event.js.map +1 -0
- package/cli/event-bus/events/product-option-event.d.ts +10 -0
- package/cli/event-bus/events/product-option-event.js +11 -0
- package/cli/event-bus/events/product-option-event.js.map +1 -0
- package/cli/event-bus/events/product-option-group-change-event.d.ts +11 -0
- package/cli/event-bus/events/product-option-group-change-event.js +15 -0
- package/cli/event-bus/events/product-option-group-change-event.js.map +1 -0
- package/cli/event-bus/events/product-option-group-event.d.ts +10 -0
- package/cli/event-bus/events/product-option-group-event.js +11 -0
- package/cli/event-bus/events/product-option-group-event.js.map +1 -0
- package/cli/event-bus/events/product-variant-channel-event.d.ts +11 -0
- package/cli/event-bus/events/product-variant-channel-event.js +15 -0
- package/cli/event-bus/events/product-variant-channel-event.js.map +1 -0
- package/cli/event-bus/events/product-variant-event.d.ts +11 -0
- package/cli/event-bus/events/product-variant-event.js +14 -0
- package/cli/event-bus/events/product-variant-event.js.map +1 -0
- package/cli/event-bus/events/promotion-event.d.ts +10 -0
- package/cli/event-bus/events/promotion-event.js +11 -0
- package/cli/event-bus/events/promotion-event.js.map +1 -0
- package/cli/event-bus/events/refund-state-transition-event.d.ts +13 -0
- package/cli/event-bus/events/refund-state-transition-event.js +16 -0
- package/cli/event-bus/events/refund-state-transition-event.js.map +1 -0
- package/cli/event-bus/events/role-change-event.d.ts +11 -0
- package/cli/event-bus/events/role-change-event.js +15 -0
- package/cli/event-bus/events/role-change-event.js.map +1 -0
- package/cli/event-bus/events/role-event.d.ts +10 -0
- package/cli/event-bus/events/role-event.js +11 -0
- package/cli/event-bus/events/role-event.js.map +1 -0
- package/cli/event-bus/events/shipping-method-event.d.ts +10 -0
- package/cli/event-bus/events/shipping-method-event.js +11 -0
- package/cli/event-bus/events/shipping-method-event.js.map +1 -0
- package/cli/event-bus/events/stock-movement-event.d.ts +10 -0
- package/cli/event-bus/events/stock-movement-event.js +15 -0
- package/cli/event-bus/events/stock-movement-event.js.map +1 -0
- package/cli/event-bus/events/tax-category-event.d.ts +10 -0
- package/cli/event-bus/events/tax-category-event.js +11 -0
- package/cli/event-bus/events/tax-category-event.js.map +1 -0
- package/cli/event-bus/events/tax-rate-event.d.ts +10 -0
- package/cli/event-bus/events/tax-rate-event.js +11 -0
- package/cli/event-bus/events/tax-rate-event.js.map +1 -0
- package/cli/event-bus/events/tax-rate-modification-event.d.ts +8 -0
- package/cli/event-bus/events/tax-rate-modification-event.js +13 -0
- package/cli/event-bus/events/tax-rate-modification-event.js.map +1 -0
- package/cli/event-bus/events/zone-event.d.ts +10 -0
- package/cli/event-bus/events/zone-event.js +11 -0
- package/cli/event-bus/events/zone-event.js.map +1 -0
- package/cli/event-bus/events/zone-members-event.d.ts +11 -0
- package/cli/event-bus/events/zone-members-event.js +15 -0
- package/cli/event-bus/events/zone-members-event.js.map +1 -0
- package/cli/event-bus/index.d.ts +55 -0
- package/cli/event-bus/index.js +68 -0
- package/cli/event-bus/index.js.map +1 -0
- package/cli/event-bus/vendure-entity-event.d.ts +9 -0
- package/cli/event-bus/vendure-entity-event.js +15 -0
- package/cli/event-bus/vendure-entity-event.js.map +1 -0
- package/cli/event-bus/vendure-event.d.ts +4 -0
- package/cli/event-bus/vendure-event.js +10 -0
- package/cli/event-bus/vendure-event.js.map +1 -0
- package/cli/health-check/constants.d.ts +1 -0
- package/cli/health-check/constants.js +5 -0
- package/cli/health-check/constants.js.map +1 -0
- package/cli/i18n/i18n-error.d.ts +13 -0
- package/cli/i18n/i18n-error.js +16 -0
- package/cli/i18n/i18n-error.js.map +1 -0
- package/cli/job-queue/constants.d.ts +1 -0
- package/cli/job-queue/constants.js +5 -0
- package/cli/job-queue/constants.js.map +1 -0
- package/cli/job-queue/in-memory-job-queue-strategy.d.ts +34 -0
- package/cli/job-queue/in-memory-job-queue-strategy.js +187 -0
- package/cli/job-queue/in-memory-job-queue-strategy.js.map +1 -0
- package/cli/job-queue/index.d.ts +11 -0
- package/cli/job-queue/index.js +24 -0
- package/cli/job-queue/index.js.map +1 -0
- package/cli/job-queue/injectable-job-queue-strategy.d.ts +12 -0
- package/cli/job-queue/injectable-job-queue-strategy.js +21 -0
- package/cli/job-queue/injectable-job-queue-strategy.js.map +1 -0
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +13 -0
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +47 -0
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +1 -0
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +11 -0
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +3 -0
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +1 -0
- package/cli/job-queue/job-buffer/job-buffer.d.ts +7 -0
- package/cli/job-queue/job-buffer/job-buffer.js +3 -0
- package/cli/job-queue/job-buffer/job-buffer.js.map +1 -0
- package/cli/job-queue/job-buffer/job-buffer.service.d.ts +16 -0
- package/cli/job-queue/job-buffer/job-buffer.service.js +76 -0
- package/cli/job-queue/job-buffer/job-buffer.service.js.map +1 -0
- package/cli/job-queue/job-queue.d.ts +16 -0
- package/cli/job-queue/job-queue.js +59 -0
- package/cli/job-queue/job-queue.js.map +1 -0
- package/cli/job-queue/job-queue.service.d.ts +27 -0
- package/cli/job-queue/job-queue.service.js +84 -0
- package/cli/job-queue/job-queue.service.js.map +1 -0
- package/cli/job-queue/job.d.ts +41 -0
- package/cli/job-queue/job.js +160 -0
- package/cli/job-queue/job.js.map +1 -0
- package/cli/job-queue/polling-job-queue-strategy.d.ts +26 -0
- package/cli/job-queue/polling-job-queue-strategy.js +163 -0
- package/cli/job-queue/polling-job-queue-strategy.js.map +1 -0
- package/cli/job-queue/queue-name-process-storage.d.ts +7 -0
- package/cli/job-queue/queue-name-process-storage.js +40 -0
- package/cli/job-queue/queue-name-process-storage.js.map +1 -0
- package/cli/job-queue/subscribable-job.d.ts +13 -0
- package/cli/job-queue/subscribable-job.js +52 -0
- package/cli/job-queue/subscribable-job.js.map +1 -0
- package/cli/job-queue/types.d.ts +22 -0
- package/cli/job-queue/types.js +3 -0
- package/cli/job-queue/types.js.map +1 -0
- package/cli/populate.d.ts +4 -4
- package/cli/populate.js +39 -25
- package/cli/populate.js.map +1 -1
- package/cli/process-context/process-context.d.ts +7 -0
- package/cli/process-context/process-context.js +18 -0
- package/cli/process-context/process-context.js.map +1 -0
- package/cli/service/helpers/config-arg/config-arg.service.d.ts +31 -0
- package/cli/service/helpers/config-arg/config-arg.service.js +88 -0
- package/cli/service/helpers/config-arg/config-arg.service.js.map +1 -0
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +18 -0
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +63 -0
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +1 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +21 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +113 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +1 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +11 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +21 -0
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +1 -0
- package/cli/service/helpers/list-query-builder/connection-utils.d.ts +10 -0
- package/cli/service/helpers/list-query-builder/connection-utils.js +26 -0
- package/cli/service/helpers/list-query-builder/connection-utils.js.map +1 -0
- package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +3 -0
- package/cli/service/helpers/list-query-builder/get-calculated-columns.js +16 -0
- package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +1 -0
- package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +30 -0
- package/cli/service/helpers/list-query-builder/list-query-builder.js +204 -0
- package/cli/service/helpers/list-query-builder/list-query-builder.js.map +1 -0
- package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +5 -0
- package/cli/service/helpers/list-query-builder/parse-channel-param.js +18 -0
- package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +1 -0
- package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +13 -0
- package/cli/service/helpers/list-query-builder/parse-filter-params.js +155 -0
- package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +1 -0
- package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +7 -0
- package/cli/service/helpers/list-query-builder/parse-sort-params.js +50 -0
- package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +1 -0
- package/cli/service/helpers/order-calculator/order-calculator.d.ts +32 -0
- package/cli/service/helpers/order-calculator/order-calculator.js +311 -0
- package/cli/service/helpers/order-calculator/order-calculator.js.map +1 -0
- package/cli/service/helpers/order-calculator/prorate.d.ts +1 -0
- package/cli/service/helpers/order-calculator/prorate.js +35 -0
- package/cli/service/helpers/order-calculator/prorate.js.map +1 -0
- package/cli/service/helpers/order-merger/order-merger.d.ts +40 -0
- package/cli/service/helpers/order-merger/order-merger.js +97 -0
- package/cli/service/helpers/order-merger/order-merger.js.map +1 -0
- package/cli/service/helpers/order-modifier/order-modifier.d.ts +45 -0
- package/cli/service/helpers/order-modifier/order-modifier.js +423 -0
- package/cli/service/helpers/order-modifier/order-modifier.js.map +1 -0
- package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +29 -0
- package/cli/service/helpers/order-state-machine/order-state-machine.js +240 -0
- package/cli/service/helpers/order-state-machine/order-state-machine.js.map +1 -0
- package/cli/service/helpers/order-state-machine/order-state.d.ts +9 -0
- package/cli/service/helpers/order-state-machine/order-state.js +64 -0
- package/cli/service/helpers/order-state-machine/order-state.js.map +1 -0
- package/cli/service/helpers/password-cipher/password-cipher.d.ts +7 -0
- package/cli/service/helpers/password-cipher/password-cipher.js +31 -0
- package/cli/service/helpers/password-cipher/password-cipher.js.map +1 -0
- package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +20 -0
- package/cli/service/helpers/payment-state-machine/payment-state-machine.js +113 -0
- package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +1 -0
- package/cli/service/helpers/payment-state-machine/payment-state.d.ts +11 -0
- package/cli/service/helpers/payment-state-machine/payment-state.js +24 -0
- package/cli/service/helpers/payment-state-machine/payment-state.js.map +1 -0
- package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +15 -0
- package/cli/service/helpers/product-price-applicator/product-price-applicator.js +64 -0
- package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +1 -0
- package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +14 -0
- package/cli/service/helpers/refund-state-machine/refund-state-machine.js +65 -0
- package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +1 -0
- package/cli/service/helpers/refund-state-machine/refund-state.d.ts +11 -0
- package/cli/service/helpers/refund-state-machine/refund-state.js +15 -0
- package/cli/service/helpers/refund-state-machine/refund-state.js.map +1 -0
- package/cli/service/helpers/request-context/request-context.service.d.ts +29 -0
- package/{dist/api/common → cli/service/helpers/request-context}/request-context.service.js +50 -18
- package/cli/service/helpers/request-context/request-context.service.js.map +1 -0
- package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +18 -0
- package/cli/service/helpers/shipping-calculator/shipping-calculator.js +50 -0
- package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +1 -0
- package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +24 -0
- package/cli/service/helpers/translatable-saver/translatable-saver.js +64 -0
- package/cli/service/helpers/translatable-saver/translatable-saver.js.map +1 -0
- package/cli/service/helpers/translatable-saver/translation-differ.d.ts +17 -0
- package/cli/service/helpers/translatable-saver/translation-differ.js +65 -0
- package/cli/service/helpers/translatable-saver/translation-differ.js.map +1 -0
- package/cli/service/helpers/utils/address-to-line.d.ts +3 -0
- package/cli/service/helpers/utils/address-to-line.js +21 -0
- package/cli/service/helpers/utils/address-to-line.js.map +1 -0
- package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +10 -0
- package/cli/service/helpers/utils/get-user-channels-permissions.js +26 -0
- package/cli/service/helpers/utils/get-user-channels-permissions.js.map +1 -0
- package/cli/service/helpers/utils/order-utils.d.ts +9 -0
- package/cli/service/helpers/utils/order-utils.js +64 -0
- package/cli/service/helpers/utils/order-utils.js.map +1 -0
- package/cli/service/helpers/utils/patch-entity.d.ts +5 -0
- package/cli/service/helpers/utils/patch-entity.js +17 -0
- package/cli/service/helpers/utils/patch-entity.js.map +1 -0
- package/cli/service/helpers/utils/samples-each.d.ts +1 -0
- package/cli/service/helpers/utils/samples-each.js +18 -0
- package/cli/service/helpers/utils/samples-each.js.map +1 -0
- package/cli/service/helpers/utils/translate-entity.d.ts +24 -0
- package/cli/service/helpers/utils/translate-entity.js +99 -0
- package/cli/service/helpers/utils/translate-entity.js.map +1 -0
- package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +7 -0
- package/cli/service/helpers/verification-token-generator/verification-token-generator.js +44 -0
- package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +1 -0
- package/cli/service/services/administrator.service.d.ts +36 -0
- package/cli/service/services/administrator.service.js +230 -0
- package/cli/service/services/administrator.service.js.map +1 -0
- package/cli/service/services/asset.service.d.ts +63 -0
- package/cli/service/services/asset.service.js +478 -0
- package/cli/service/services/asset.service.js.map +1 -0
- package/cli/service/services/channel.service.d.ts +38 -0
- package/cli/service/services/channel.service.js +222 -0
- package/cli/service/services/channel.service.js.map +1 -0
- package/cli/service/services/country.service.d.ts +24 -0
- package/cli/service/services/country.service.js +119 -0
- package/cli/service/services/country.service.js.map +1 -0
- package/cli/service/services/customer.service.d.ts +62 -0
- package/cli/service/services/customer.service.js +662 -0
- package/cli/service/services/customer.service.js.map +1 -0
- package/cli/service/services/facet-value.service.d.ts +32 -0
- package/cli/service/services/facet-value.service.js +151 -0
- package/cli/service/services/facet-value.service.js.map +1 -0
- package/cli/service/services/fulfillment.service.d.ts +32 -0
- package/cli/service/services/fulfillment.service.js +106 -0
- package/cli/service/services/fulfillment.service.js.map +1 -0
- package/cli/service/services/global-settings.service.d.ts +17 -0
- package/cli/service/services/global-settings.service.js +74 -0
- package/cli/service/services/global-settings.service.js.map +1 -0
- package/cli/service/services/history.service.d.ts +139 -0
- package/cli/service/services/history.service.js +143 -0
- package/cli/service/services/history.service.js.map +1 -0
- package/cli/service/services/order.service.d.ts +136 -0
- package/cli/service/services/order.service.js +1158 -0
- package/cli/service/services/order.service.js.map +1 -0
- package/cli/service/services/payment-method.service.d.ts +37 -0
- package/cli/service/services/payment-method.service.js +178 -0
- package/cli/service/services/payment-method.service.js.map +1 -0
- package/cli/service/services/payment.service.d.ts +32 -0
- package/cli/service/services/payment.service.js +216 -0
- package/cli/service/services/payment.service.js.map +1 -0
- package/cli/service/services/product-variant.service.d.ts +70 -0
- package/cli/service/services/product-variant.service.js +560 -0
- package/cli/service/services/product-variant.service.js.map +1 -0
- package/cli/service/services/promotion.service.d.ts +41 -0
- package/cli/service/services/promotion.service.js +219 -0
- package/cli/service/services/promotion.service.js.map +1 -0
- package/cli/service/services/role.service.d.ts +39 -0
- package/cli/service/services/role.service.js +240 -0
- package/cli/service/services/role.service.js.map +1 -0
- package/cli/service/services/session.service.d.ts +38 -0
- package/cli/service/services/session.service.js +228 -0
- package/cli/service/services/session.service.js.map +1 -0
- package/cli/service/services/shipping-method.service.d.ts +36 -0
- package/cli/service/services/shipping-method.service.js +181 -0
- package/cli/service/services/shipping-method.service.js.map +1 -0
- package/cli/service/services/stock-movement.service.d.ts +39 -0
- package/cli/service/services/stock-movement.service.js +214 -0
- package/cli/service/services/stock-movement.service.js.map +1 -0
- package/cli/service/services/tag.service.d.ts +21 -0
- package/cli/service/services/tag.service.js +82 -0
- package/cli/service/services/tag.service.js.map +1 -0
- package/cli/service/services/tax-category.service.d.ts +16 -0
- package/cli/service/services/tax-category.service.js +95 -0
- package/cli/service/services/tax-category.service.js.map +1 -0
- package/cli/service/services/tax-rate.service.d.ts +28 -0
- package/cli/service/services/tax-rate.service.js +134 -0
- package/cli/service/services/tax-rate.service.js.map +1 -0
- package/cli/service/services/user.service.d.ts +37 -0
- package/cli/service/services/user.service.js +287 -0
- package/cli/service/services/user.service.js.map +1 -0
- package/cli/service/services/zone.service.d.ts +26 -0
- package/cli/service/services/zone.service.js +168 -0
- package/cli/service/services/zone.service.js.map +1 -0
- package/cli/vendure-cli.js +10 -10
- package/cli/vendure-cli.js.map +1 -1
- package/dist/api/api-internal-modules.d.ts +2 -1
- package/dist/api/api-internal-modules.js +7 -5
- package/dist/api/api-internal-modules.js.map +1 -1
- package/dist/api/api.module.js +4 -6
- package/dist/api/api.module.js.map +1 -1
- package/dist/api/common/configurable-operation-codec.js +1 -1
- package/dist/api/common/configurable-operation-codec.js.map +1 -1
- package/dist/api/common/custom-field-relation-resolver.service.js +3 -3
- package/dist/api/common/custom-field-relation-resolver.service.js.map +1 -1
- package/dist/api/common/graphql-value-transformer.js +9 -9
- package/dist/api/common/graphql-value-transformer.js.map +1 -1
- package/dist/api/common/id-codec.service.js +1 -1
- package/dist/api/common/id-codec.service.js.map +1 -1
- package/dist/api/common/parse-context.js +19 -16
- package/dist/api/common/parse-context.js.map +1 -1
- package/dist/api/common/request-context.d.ts +3 -1
- package/dist/api/common/request-context.js +6 -4
- package/dist/api/common/request-context.js.map +1 -1
- package/dist/api/common/set-session-token.js +1 -1
- package/dist/api/common/set-session-token.js.map +1 -1
- package/dist/api/common/validate-custom-field-value.js +1 -1
- package/dist/api/common/validate-custom-field-value.js.map +1 -1
- package/dist/api/config/configure-graphql-module.js +23 -20
- package/dist/api/config/configure-graphql-module.js.map +1 -1
- package/dist/api/config/generate-auth-types.js +3 -3
- package/dist/api/config/generate-auth-types.js.map +1 -1
- package/dist/api/config/generate-error-code-enum.js +2 -2
- package/dist/api/config/generate-error-code-enum.js.map +1 -1
- package/dist/api/config/generate-list-options.js +28 -21
- package/dist/api/config/generate-list-options.js.map +1 -1
- package/dist/api/config/generate-permissions.js +2 -2
- package/dist/api/config/generate-permissions.js.map +1 -1
- package/dist/api/config/generate-resolvers.d.ts +37 -37
- package/dist/api/config/generate-resolvers.js +4 -0
- package/dist/api/config/generate-resolvers.js.map +1 -1
- package/dist/api/config/graphql-custom-fields.js +74 -56
- package/dist/api/config/graphql-custom-fields.js.map +1 -1
- package/dist/api/decorators/allow.decorator.js +1 -1
- package/dist/api/decorators/allow.decorator.js.map +1 -1
- package/dist/api/decorators/api.decorator.js +2 -2
- package/dist/api/decorators/api.decorator.js.map +1 -1
- package/dist/api/decorators/request-context.decorator.js +1 -1
- package/dist/api/decorators/request-context.decorator.js.map +1 -1
- package/dist/api/decorators/transaction.decorator.js +1 -1
- package/dist/api/decorators/transaction.decorator.js.map +1 -1
- package/dist/api/middleware/asset-interceptor-plugin.d.ts +2 -2
- package/dist/api/middleware/asset-interceptor-plugin.js +4 -4
- package/dist/api/middleware/asset-interceptor-plugin.js.map +1 -1
- package/dist/api/middleware/auth-guard.d.ts +1 -1
- package/dist/api/middleware/auth-guard.js +6 -6
- package/dist/api/middleware/auth-guard.js.map +1 -1
- package/dist/api/middleware/exception-logger.filter.js +1 -1
- package/dist/api/middleware/exception-logger.filter.js.map +1 -1
- package/dist/api/middleware/id-codec-plugin.d.ts +2 -2
- package/dist/api/middleware/id-codec-plugin.js +4 -4
- package/dist/api/middleware/id-codec-plugin.js.map +1 -1
- package/dist/api/middleware/id-interceptor.js +2 -2
- package/dist/api/middleware/id-interceptor.js.map +1 -1
- package/dist/api/middleware/transaction-interceptor.js +3 -3
- package/dist/api/middleware/transaction-interceptor.js.map +1 -1
- package/dist/api/middleware/translate-error-result-interceptor.js +3 -3
- package/dist/api/middleware/translate-error-result-interceptor.js.map +1 -1
- package/dist/api/middleware/translate-errors-plugin.d.ts +1 -1
- package/dist/api/middleware/translate-errors-plugin.js +2 -2
- package/dist/api/middleware/translate-errors-plugin.js.map +1 -1
- package/dist/api/middleware/validate-custom-fields-interceptor.js +4 -4
- package/dist/api/middleware/validate-custom-fields-interceptor.js.map +1 -1
- package/dist/api/resolvers/admin/administrator.resolver.js +37 -37
- package/dist/api/resolvers/admin/administrator.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/asset.resolver.js +34 -34
- package/dist/api/resolvers/admin/asset.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/auth.resolver.js +24 -24
- package/dist/api/resolvers/admin/auth.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/channel.resolver.js +28 -28
- package/dist/api/resolvers/admin/channel.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/collection.resolver.js +33 -33
- package/dist/api/resolvers/admin/collection.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/country.resolver.js +24 -24
- package/dist/api/resolvers/admin/country.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/customer-group.resolver.js +34 -34
- package/dist/api/resolvers/admin/customer-group.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/customer.resolver.js +54 -54
- package/dist/api/resolvers/admin/customer.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/facet.resolver.js +39 -39
- package/dist/api/resolvers/admin/facet.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/global-settings.resolver.js +19 -16
- package/dist/api/resolvers/admin/global-settings.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/import.resolver.d.ts +2 -2
- package/dist/api/resolvers/admin/import.resolver.js +5 -5
- package/dist/api/resolvers/admin/import.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/job.resolver.js +25 -25
- package/dist/api/resolvers/admin/job.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/order.resolver.js +79 -79
- package/dist/api/resolvers/admin/order.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/payment-method.resolver.js +30 -30
- package/dist/api/resolvers/admin/payment-method.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/product-option.resolver.js +29 -29
- package/dist/api/resolvers/admin/product-option.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/product.resolver.js +77 -77
- package/dist/api/resolvers/admin/product.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/promotion.resolver.js +40 -40
- package/dist/api/resolvers/admin/promotion.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/role.resolver.js +24 -24
- package/dist/api/resolvers/admin/role.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/search.resolver.js +11 -11
- package/dist/api/resolvers/admin/search.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/shipping-method.resolver.js +41 -41
- package/dist/api/resolvers/admin/shipping-method.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/tag.resolver.js +24 -24
- package/dist/api/resolvers/admin/tag.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/tax-category.resolver.js +23 -23
- package/dist/api/resolvers/admin/tax-category.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/tax-rate.resolver.js +24 -24
- package/dist/api/resolvers/admin/tax-rate.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/zone.resolver.js +33 -33
- package/dist/api/resolvers/admin/zone.resolver.js.map +1 -1
- package/dist/api/resolvers/base/base-auth.resolver.js +6 -6
- package/dist/api/resolvers/base/base-auth.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/administrator-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/administrator-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/asset-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/asset-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/collection-entity.resolver.js +32 -32
- package/dist/api/resolvers/entity/collection-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/country-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/country-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/customer-entity.resolver.js +22 -22
- package/dist/api/resolvers/entity/customer-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/customer-group-entity.resolver.js +6 -6
- package/dist/api/resolvers/entity/customer-group-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/facet-entity.resolver.js +7 -7
- package/dist/api/resolvers/entity/facet-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/facet-value-entity.resolver.js +7 -7
- package/dist/api/resolvers/entity/facet-value-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/fulfillment-entity.resolver.js +7 -7
- package/dist/api/resolvers/entity/fulfillment-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/job-entity.resolver.js +3 -3
- package/dist/api/resolvers/entity/job-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/order-entity.resolver.d.ts +1 -1
- package/dist/api/resolvers/entity/order-entity.resolver.js +28 -28
- package/dist/api/resolvers/entity/order-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/order-item-entity.resolver.d.ts +8 -0
- package/dist/api/resolvers/entity/order-item-entity.resolver.js +46 -0
- package/dist/api/resolvers/entity/order-item-entity.resolver.js.map +1 -0
- package/dist/api/resolvers/entity/order-line-entity.resolver.js +7 -7
- package/dist/api/resolvers/entity/order-line-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/payment-entity.resolver.js +11 -11
- package/dist/api/resolvers/entity/payment-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/payment-method-entity.resolver.js +1 -1
- package/dist/api/resolvers/entity/payment-method-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-entity.resolver.d.ts +1 -1
- package/dist/api/resolvers/entity/product-entity.resolver.js +51 -42
- package/dist/api/resolvers/entity/product-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-option-entity.resolver.js +9 -9
- package/dist/api/resolvers/entity/product-option-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-option-group-entity.resolver.js +8 -8
- package/dist/api/resolvers/entity/product-option-group-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/product-variant-entity.resolver.js +45 -45
- package/dist/api/resolvers/entity/product-variant-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/refund-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/refund-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/role-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/role-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/shipping-line-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/shipping-line-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/tax-rate-entity.resolver.js +5 -5
- package/dist/api/resolvers/entity/tax-rate-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/user-entity.resolver.js +4 -4
- package/dist/api/resolvers/entity/user-entity.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-auth.resolver.js +79 -79
- package/dist/api/resolvers/shop/shop-auth.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-customer.resolver.js +26 -26
- package/dist/api/resolvers/shop/shop-customer.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-environment.resolver.js +3 -3
- package/dist/api/resolvers/shop/shop-environment.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-order.resolver.js +91 -91
- package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-products.resolver.js +20 -20
- package/dist/api/resolvers/shop/shop-products.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/collection.api.graphql +1 -1
- package/dist/api/schema/admin-api/customer.api.graphql +4 -0
- package/dist/api/schema/admin-api/order.api.graphql +2 -0
- package/dist/api/schema/admin-api/product.api.graphql +1 -1
- package/dist/api/schema/common/common-enums.graphql +1 -0
- package/dist/api/schema/common/common-error-results.graphql +4 -4
- package/dist/api/schema/common/common-types.graphql +25 -0
- package/dist/api/schema/common/product-search.type.graphql +1 -1
- package/dist/api/schema/shop-api/shop-error-results.graphql +15 -8
- package/dist/api/schema/shop-api/shop.api.graphql +9 -7
- package/dist/app.module.js +1 -1
- package/dist/app.module.js.map +1 -1
- package/dist/bootstrap.js +12 -12
- package/dist/bootstrap.js.map +1 -1
- package/dist/cache/cache.module.js +1 -1
- package/dist/cache/cache.module.js.map +1 -1
- package/dist/common/async-queue.js.map +1 -1
- package/dist/common/configurable-operation.js +1 -1
- package/dist/common/configurable-operation.js.map +1 -1
- package/dist/common/error/generated-graphql-admin-errors.d.ts +115 -67
- package/dist/common/error/generated-graphql-admin-errors.js +82 -82
- package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
- package/dist/common/error/generated-graphql-shop-errors.d.ts +73 -40
- package/dist/common/error/generated-graphql-shop-errors.js +62 -52
- package/dist/common/error/generated-graphql-shop-errors.js.map +1 -1
- package/dist/common/finite-state-machine/finite-state-machine.js +3 -3
- package/dist/common/finite-state-machine/finite-state-machine.js.map +1 -1
- package/dist/common/finite-state-machine/merge-transition-definitions.js +1 -1
- package/dist/common/finite-state-machine/merge-transition-definitions.js.map +1 -1
- package/dist/common/generate-public-id.js +1 -1
- package/dist/common/generate-public-id.js.map +1 -1
- package/dist/common/self-refreshing-cache.js.map +1 -1
- package/dist/common/types/common-types.d.ts +3 -0
- package/dist/common/types/entity-relation-paths.d.ts +1 -1
- package/dist/common/utils.js +1 -1
- package/dist/common/utils.js.map +1 -1
- 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/asset-storage-strategy/asset-storage-strategy.d.ts +2 -2
- package/dist/config/auth/default-password-validation-strategy.d.ts +23 -0
- package/dist/config/auth/default-password-validation-strategy.js +37 -0
- package/dist/config/auth/default-password-validation-strategy.js.map +1 -0
- package/dist/config/auth/native-authentication-strategy.js +1 -1
- package/dist/config/auth/native-authentication-strategy.js.map +1 -1
- package/dist/config/auth/password-validation-strategy.d.ts +22 -0
- package/dist/config/auth/password-validation-strategy.js +3 -0
- package/dist/config/auth/password-validation-strategy.js.map +1 -0
- package/dist/config/catalog/default-collection-filters.js +1 -1
- package/dist/config/catalog/default-collection-filters.js.map +1 -1
- package/dist/config/catalog/default-product-variant-price-calculation-strategy.js +1 -2
- package/dist/config/catalog/default-product-variant-price-calculation-strategy.js.map +1 -1
- package/dist/config/config-helpers.js +1 -1
- package/dist/config/config-helpers.js.map +1 -1
- package/dist/config/config.module.js +3 -2
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/config.service.js +2 -2
- package/dist/config/config.service.js.map +1 -1
- package/dist/config/default-config.js +3 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/fulfillment/fulfillment-handler.d.ts +1 -1
- package/dist/config/fulfillment/fulfillment-handler.js +1 -1
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +5 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/merge-config.js +4 -4
- package/dist/config/merge-config.js.map +1 -1
- package/dist/config/order/merge-orders-strategy.js +1 -1
- package/dist/config/order/merge-orders-strategy.js.map +1 -1
- package/dist/config/order/order-by-code-access-strategy.js +1 -1
- package/dist/config/order/order-by-code-access-strategy.js.map +1 -1
- package/dist/config/order/order-code-strategy.js +1 -1
- package/dist/config/order/order-code-strategy.js.map +1 -1
- package/dist/config/order/order-item-price-calculation-strategy.d.ts +9 -4
- package/dist/config/payment/example-payment-method-handler.js.map +1 -1
- package/dist/config/payment/payment-method-handler.d.ts +1 -1
- package/dist/config/payment/payment-method-handler.js +1 -1
- package/dist/config/promotion/actions/buy-x-get-y-free-action.js +1 -1
- package/dist/config/promotion/actions/buy-x-get-y-free-action.js.map +1 -1
- package/dist/config/promotion/actions/product-percentage-discount-action.js +1 -1
- package/dist/config/promotion/actions/product-percentage-discount-action.js.map +1 -1
- package/dist/config/promotion/conditions/contains-products-condition.js +1 -1
- package/dist/config/promotion/conditions/contains-products-condition.js.map +1 -1
- package/dist/config/promotion/conditions/customer-group-condition.js +1 -1
- package/dist/config/promotion/conditions/customer-group-condition.js.map +1 -1
- package/dist/config/promotion/promotion-action.js +3 -3
- package/dist/config/promotion/promotion-action.js.map +1 -1
- package/dist/config/promotion/utils/facet-value-checker.js +2 -2
- package/dist/config/promotion/utils/facet-value-checker.js.map +1 -1
- package/dist/config/shipping-method/shipping-eligibility-checker.js +1 -1
- package/dist/config/shipping-method/shipping-eligibility-checker.js.map +1 -1
- package/dist/config/vendure-config.d.ts +31 -0
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/connection/connection.module.js +1 -1
- package/dist/connection/connection.module.js.map +1 -1
- package/dist/connection/transaction-subscriber.js +4 -6
- package/dist/connection/transaction-subscriber.js.map +1 -1
- package/dist/connection/transaction-wrapper.js +3 -5
- package/dist/connection/transaction-wrapper.js.map +1 -1
- package/dist/connection/transactional-connection.js +4 -4
- package/dist/connection/transactional-connection.js.map +1 -1
- package/dist/data-import/data-import.module.js +2 -2
- package/dist/data-import/data-import.module.js.map +1 -1
- package/dist/data-import/index.d.ts +3 -0
- package/dist/data-import/index.js +3 -0
- package/dist/data-import/index.js.map +1 -1
- package/dist/data-import/providers/asset-importer/asset-importer.d.ts +12 -1
- package/dist/data-import/providers/asset-importer/asset-importer.js +13 -3
- package/dist/data-import/providers/asset-importer/asset-importer.js.map +1 -1
- package/dist/data-import/providers/import-parser/import-parser.d.ts +59 -0
- package/dist/data-import/providers/import-parser/import-parser.js +17 -5
- package/dist/data-import/providers/import-parser/import-parser.js.map +1 -1
- package/dist/data-import/providers/importer/fast-importer.service.d.ts +21 -3
- package/dist/data-import/providers/importer/fast-importer.service.js +54 -18
- package/dist/data-import/providers/importer/fast-importer.service.js.map +1 -1
- package/dist/data-import/providers/importer/importer.d.ts +18 -0
- package/dist/data-import/providers/importer/importer.js +29 -18
- package/dist/data-import/providers/importer/importer.js.map +1 -1
- package/dist/data-import/providers/populator/populator.d.ts +13 -4
- package/dist/data-import/providers/populator/populator.js +35 -23
- package/dist/data-import/providers/populator/populator.js.map +1 -1
- package/dist/entity/address/address.entity.js +14 -14
- package/dist/entity/address/address.entity.js.map +1 -1
- package/dist/entity/administrator/administrator.entity.js +8 -8
- package/dist/entity/administrator/administrator.entity.js.map +1 -1
- package/dist/entity/asset/asset.entity.js +15 -15
- package/dist/entity/asset/asset.entity.js.map +1 -1
- package/dist/entity/asset/orderable-asset.entity.js +3 -3
- package/dist/entity/asset/orderable-asset.entity.js.map +1 -1
- package/dist/entity/authentication-method/authentication-method.entity.js +3 -3
- package/dist/entity/authentication-method/authentication-method.entity.js.map +1 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js +4 -4
- package/dist/entity/authentication-method/external-authentication-method.entity.js.map +1 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js +7 -7
- package/dist/entity/authentication-method/native-authentication-method.entity.js.map +1 -1
- package/dist/entity/base/base.entity.js +3 -3
- package/dist/entity/base/base.entity.js.map +1 -1
- package/dist/entity/channel/channel.entity.js +9 -9
- package/dist/entity/channel/channel.entity.js.map +1 -1
- package/dist/entity/collection/collection-asset.entity.js +3 -3
- package/dist/entity/collection/collection-asset.entity.js.map +1 -1
- package/dist/entity/collection/collection-translation.entity.js +7 -7
- package/dist/entity/collection/collection-translation.entity.js.map +1 -1
- package/dist/entity/collection/collection.entity.js +15 -15
- package/dist/entity/collection/collection.entity.js.map +1 -1
- package/dist/entity/country/country-translation.entity.js +5 -5
- package/dist/entity/country/country-translation.entity.js.map +1 -1
- package/dist/entity/country/country.entity.js +5 -5
- package/dist/entity/country/country.entity.js.map +1 -1
- package/dist/entity/customer/customer.entity.js +16 -16
- package/dist/entity/customer/customer.entity.js.map +1 -1
- package/dist/entity/customer-group/customer-group.entity.js +4 -4
- package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
- package/dist/entity/facet/facet-translation.entity.js +5 -5
- package/dist/entity/facet/facet-translation.entity.js.map +1 -1
- package/dist/entity/facet/facet.entity.js +8 -8
- package/dist/entity/facet/facet.entity.js.map +1 -1
- package/dist/entity/facet-value/facet-value-translation.entity.js +5 -5
- package/dist/entity/facet-value/facet-value-translation.entity.js.map +1 -1
- package/dist/entity/facet-value/facet-value.entity.js +7 -7
- package/dist/entity/facet-value/facet-value.entity.js.map +1 -1
- package/dist/entity/fulfillment/fulfillment.entity.js +7 -7
- package/dist/entity/fulfillment/fulfillment.entity.js.map +1 -1
- package/dist/entity/global-settings/global-settings.entity.js +5 -5
- package/dist/entity/global-settings/global-settings.entity.js.map +1 -1
- package/dist/entity/history-entry/customer-history-entry.entity.js +2 -2
- package/dist/entity/history-entry/customer-history-entry.entity.js.map +1 -1
- package/dist/entity/history-entry/history-entry.entity.js +6 -6
- package/dist/entity/history-entry/history-entry.entity.js.map +1 -1
- package/dist/entity/history-entry/order-history-entry.entity.js +2 -2
- package/dist/entity/history-entry/order-history-entry.entity.js.map +1 -1
- package/dist/entity/index.d.ts +1 -0
- package/dist/entity/index.js +1 -0
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/order/order.entity.js +32 -32
- package/dist/entity/order/order.entity.js.map +1 -1
- package/dist/entity/order-item/order-item.entity.js +30 -30
- package/dist/entity/order-item/order-item.entity.js.map +1 -1
- package/dist/entity/order-line/order-line.entity.d.ts +6 -0
- package/dist/entity/order-line/order-line.entity.js +49 -41
- package/dist/entity/order-line/order-line.entity.js.map +1 -1
- package/dist/entity/order-modification/order-modification.entity.js +14 -14
- package/dist/entity/order-modification/order-modification.entity.js.map +1 -1
- package/dist/entity/payment/payment.entity.js +9 -9
- package/dist/entity/payment/payment.entity.js.map +1 -1
- package/dist/entity/payment-method/payment-method.entity.js +10 -10
- package/dist/entity/payment-method/payment-method.entity.js.map +1 -1
- package/dist/entity/product/product-asset.entity.js +3 -3
- package/dist/entity/product/product-asset.entity.js.map +1 -1
- package/dist/entity/product/product-translation.entity.js +7 -7
- package/dist/entity/product/product-translation.entity.js.map +1 -1
- package/dist/entity/product/product.entity.js +13 -13
- package/dist/entity/product/product.entity.js.map +1 -1
- package/dist/entity/product-option/product-option-translation.entity.js +5 -5
- package/dist/entity/product-option/product-option-translation.entity.js.map +1 -1
- package/dist/entity/product-option/product-option.entity.js +7 -7
- package/dist/entity/product-option/product-option.entity.js.map +1 -1
- package/dist/entity/product-option-group/product-option-group-translation.entity.js +5 -5
- package/dist/entity/product-option-group/product-option-group-translation.entity.js.map +1 -1
- package/dist/entity/product-option-group/product-option-group.entity.js +7 -7
- package/dist/entity/product-option-group/product-option-group.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-asset.entity.js +3 -3
- package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-price.entity.js +4 -4
- package/dist/entity/product-variant/product-variant-price.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-translation.entity.js +5 -5
- package/dist/entity/product-variant/product-variant-translation.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant.entity.js +27 -27
- package/dist/entity/product-variant/product-variant.entity.js.map +1 -1
- package/dist/entity/promotion/promotion.entity.js +16 -16
- package/dist/entity/promotion/promotion.entity.js.map +1 -1
- package/dist/entity/refund/refund.entity.js +15 -15
- package/dist/entity/refund/refund.entity.js.map +1 -1
- package/dist/entity/register-custom-entity-fields.js +7 -7
- package/dist/entity/register-custom-entity-fields.js.map +1 -1
- package/dist/entity/role/role.entity.js +6 -6
- package/dist/entity/role/role.entity.js.map +1 -1
- package/dist/entity/session/anonymous-session.entity.js +1 -1
- package/dist/entity/session/anonymous-session.entity.js.map +1 -1
- package/dist/entity/session/authenticated-session.entity.js +3 -3
- package/dist/entity/session/authenticated-session.entity.js.map +1 -1
- package/dist/entity/session/session.entity.js +10 -10
- package/dist/entity/session/session.entity.js.map +1 -1
- package/dist/entity/set-entity-id-strategy.js +4 -4
- package/dist/entity/set-entity-id-strategy.js.map +1 -1
- package/dist/entity/shipping-line/shipping-line.entity.js +22 -22
- package/dist/entity/shipping-line/shipping-line.entity.js.map +1 -1
- package/dist/entity/shipping-method/shipping-method-translation.entity.js +6 -6
- package/dist/entity/shipping-method/shipping-method-translation.entity.js.map +1 -1
- package/dist/entity/shipping-method/shipping-method.entity.js +12 -12
- package/dist/entity/shipping-method/shipping-method.entity.js.map +1 -1
- package/dist/entity/stock-movement/allocation.entity.js +2 -2
- package/dist/entity/stock-movement/allocation.entity.js.map +1 -1
- package/dist/entity/stock-movement/cancellation.entity.js +2 -2
- package/dist/entity/stock-movement/cancellation.entity.js.map +1 -1
- package/dist/entity/stock-movement/release.entity.js +2 -2
- package/dist/entity/stock-movement/release.entity.js.map +1 -1
- package/dist/entity/stock-movement/sale.entity.js +2 -2
- package/dist/entity/stock-movement/sale.entity.js.map +1 -1
- package/dist/entity/stock-movement/stock-adjustment.entity.js +1 -1
- package/dist/entity/stock-movement/stock-adjustment.entity.js.map +1 -1
- package/dist/entity/stock-movement/stock-movement.entity.js +5 -5
- package/dist/entity/stock-movement/stock-movement.entity.js.map +1 -1
- package/dist/entity/subscribers.js +1 -1
- package/dist/entity/subscribers.js.map +1 -1
- package/dist/entity/surcharge/surcharge.entity.js +14 -14
- package/dist/entity/surcharge/surcharge.entity.js.map +1 -1
- package/dist/entity/tag/tag.entity.js +2 -2
- package/dist/entity/tag/tag.entity.js.map +1 -1
- package/dist/entity/tax-category/tax-category.entity.js +4 -4
- package/dist/entity/tax-category/tax-category.entity.js.map +1 -1
- package/dist/entity/tax-rate/tax-rate.entity.js +13 -13
- package/dist/entity/tax-rate/tax-rate.entity.js.map +1 -1
- package/dist/entity/user/user.entity.js +9 -9
- package/dist/entity/user/user.entity.js.map +1 -1
- package/dist/entity/validate-custom-fields-config.js +3 -3
- package/dist/entity/validate-custom-fields-config.js.map +1 -1
- package/dist/entity/zone/zone.entity.js +5 -5
- package/dist/entity/zone/zone.entity.js.map +1 -1
- package/dist/event-bus/event-bus.js +2 -2
- package/dist/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/event-bus.module.js +1 -1
- package/dist/event-bus/event-bus.module.js.map +1 -1
- package/dist/event-bus/events/order-event.d.ts +17 -0
- package/dist/event-bus/events/order-event.js +22 -0
- package/dist/event-bus/events/order-event.js.map +1 -0
- package/dist/event-bus/events/order-line-event.d.ts +18 -0
- package/dist/event-bus/events/order-line-event.js +23 -0
- package/dist/event-bus/events/order-line-event.js.map +1 -0
- package/dist/event-bus/index.d.ts +2 -0
- package/dist/event-bus/index.js +2 -0
- package/dist/event-bus/index.js.map +1 -1
- package/dist/health-check/health-check.controller.js +3 -3
- package/dist/health-check/health-check.controller.js.map +1 -1
- package/dist/health-check/health-check.module.js +2 -2
- package/dist/health-check/health-check.module.js.map +1 -1
- package/dist/health-check/worker-health-indicator.js +2 -2
- package/dist/health-check/worker-health-indicator.js.map +1 -1
- package/dist/i18n/i18n.module.js +1 -1
- package/dist/i18n/i18n.module.js.map +1 -1
- package/dist/i18n/i18n.service.js +1 -1
- package/dist/i18n/i18n.service.js.map +1 -1
- package/dist/i18n/messages/en.json +1 -0
- package/dist/job-queue/job-buffer/job-buffer.service.js +1 -1
- package/dist/job-queue/job-buffer/job-buffer.service.js.map +1 -1
- package/dist/job-queue/job-queue.js.map +1 -1
- package/dist/job-queue/job-queue.module.js +1 -1
- package/dist/job-queue/job-queue.module.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/job-queue/job.js +2 -2
- package/dist/job-queue/job.js.map +1 -1
- package/dist/job-queue/polling-job-queue-strategy.js +6 -7
- package/dist/job-queue/polling-job-queue-strategy.js.map +1 -1
- package/dist/job-queue/subscribable-job.js +7 -7
- package/dist/job-queue/subscribable-job.js.map +1 -1
- package/dist/migrate.js +7 -7
- package/dist/migrate.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js +1 -1
- package/dist/plugin/default-job-queue-plugin/default-job-queue-plugin.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/job-record-buffer.entity.js +3 -3
- package/dist/plugin/default-job-queue-plugin/job-record-buffer.entity.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/job-record.entity.js +12 -12
- package/dist/plugin/default-job-queue-plugin/job-record.entity.js.map +1 -1
- package/dist/plugin/default-job-queue-plugin/sql-job-queue-strategy.js +1 -1
- package/dist/plugin/default-job-queue-plugin/sql-job-queue-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/api/api-extensions.js +1 -1
- package/dist/plugin/default-search-plugin/api/api-extensions.js.map +1 -1
- package/dist/plugin/default-search-plugin/api/fulltext-search.resolver.js +29 -29
- package/dist/plugin/default-search-plugin/api/fulltext-search.resolver.js.map +1 -1
- package/dist/plugin/default-search-plugin/default-search-plugin.js +8 -8
- package/dist/plugin/default-search-plugin/default-search-plugin.js.map +1 -1
- package/dist/plugin/default-search-plugin/entities/search-index-item.entity.js +27 -27
- package/dist/plugin/default-search-plugin/entities/search-index-item.entity.js.map +1 -1
- package/dist/plugin/default-search-plugin/fulltext-search.service.js +2 -2
- package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.d.ts +1 -0
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js +36 -37
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js.map +1 -1
- package/dist/plugin/default-search-plugin/indexer/search-index.service.js +2 -2
- package/dist/plugin/default-search-plugin/indexer/search-index.service.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-job-buffer/collection-job-buffer.js +1 -1
- package/dist/plugin/default-search-plugin/search-job-buffer/collection-job-buffer.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js +5 -4
- package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-job-buffer/search-job-buffer.service.js +4 -4
- package/dist/plugin/default-search-plugin/search-job-buffer/search-job-buffer.service.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +10 -10
- 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 +12 -12
- 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-utils.js +2 -2
- 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 +10 -10
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
- package/dist/plugin/dynamic-plugin-api.module.js +7 -7
- package/dist/plugin/dynamic-plugin-api.module.js.map +1 -1
- package/dist/plugin/plugin-common.module.js +4 -1
- package/dist/plugin/plugin-common.module.js.map +1 -1
- package/dist/plugin/plugin-utils.js +1 -1
- package/dist/plugin/plugin-utils.js.map +1 -1
- package/dist/plugin/plugin.module.js +2 -2
- package/dist/plugin/plugin.module.js.map +1 -1
- package/dist/plugin/vendure-plugin.js +2 -2
- package/dist/plugin/vendure-plugin.js.map +1 -1
- package/dist/process-context/process-context.module.js +2 -2
- package/dist/process-context/process-context.module.js.map +1 -1
- package/dist/service/helpers/active-order/active-order.service.js +1 -1
- package/dist/service/helpers/active-order/active-order.service.js.map +1 -1
- package/dist/service/helpers/config-arg/config-arg.service.js +1 -1
- package/dist/service/helpers/config-arg/config-arg.service.js.map +1 -1
- package/dist/service/helpers/custom-field-relation/custom-field-relation.service.js +3 -3
- package/dist/service/helpers/custom-field-relation/custom-field-relation.service.js.map +1 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +6 -6
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
- package/dist/service/helpers/external-authentication/external-authentication.service.js +1 -1
- package/dist/service/helpers/external-authentication/external-authentication.service.js.map +1 -1
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +7 -7
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +1 -1
- package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +20 -3
- package/dist/service/helpers/list-query-builder/list-query-builder.js +10 -10
- package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
- package/dist/service/helpers/list-query-builder/parse-filter-params.js +8 -5
- package/dist/service/helpers/list-query-builder/parse-filter-params.js.map +1 -1
- package/dist/service/helpers/list-query-builder/parse-sort-params.js +4 -4
- package/dist/service/helpers/list-query-builder/parse-sort-params.js.map +1 -1
- package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js +2 -2
- package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js.map +1 -1
- package/dist/service/helpers/order-calculator/order-calculator.d.ts +11 -1
- package/dist/service/helpers/order-calculator/order-calculator.js +18 -8
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-merger/order-merger.js +4 -4
- package/dist/service/helpers/order-merger/order-merger.js.map +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +3 -1
- package/dist/service/helpers/order-modifier/order-modifier.js +21 -15
- package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.js +15 -15
- package/dist/service/helpers/order-state-machine/order-state-machine.js.map +1 -1
- package/dist/service/helpers/password-cipher/password-cipher.js +1 -1
- package/dist/service/helpers/password-cipher/password-cipher.js.map +1 -1
- package/dist/service/helpers/payment-state-machine/payment-state-machine.js +7 -7
- package/dist/service/helpers/payment-state-machine/payment-state-machine.js.map +1 -1
- package/dist/service/helpers/product-price-applicator/product-price-applicator.js +2 -2
- package/dist/service/helpers/product-price-applicator/product-price-applicator.js.map +1 -1
- package/dist/service/helpers/refund-state-machine/refund-state-machine.js +1 -1
- package/dist/service/helpers/refund-state-machine/refund-state-machine.js.map +1 -1
- package/dist/service/helpers/request-context/request-context.service.d.ts +57 -0
- package/dist/service/helpers/request-context/request-context.service.js +155 -0
- package/dist/service/helpers/request-context/request-context.service.js.map +1 -0
- package/dist/service/helpers/shipping-calculator/shipping-calculator.js +1 -1
- package/dist/service/helpers/shipping-calculator/shipping-calculator.js.map +1 -1
- package/dist/service/helpers/slug-validator/slug-validator.js +2 -2
- package/dist/service/helpers/slug-validator/slug-validator.js.map +1 -1
- package/dist/service/helpers/translatable-saver/translatable-saver.js +2 -2
- package/dist/service/helpers/translatable-saver/translatable-saver.js.map +1 -1
- package/dist/service/helpers/translatable-saver/translation-differ.js +2 -2
- package/dist/service/helpers/translatable-saver/translation-differ.js.map +1 -1
- package/dist/service/helpers/utils/get-user-channels-permissions.js +1 -1
- package/dist/service/helpers/utils/get-user-channels-permissions.js.map +1 -1
- package/dist/service/helpers/utils/move-to-index.js +2 -2
- package/dist/service/helpers/utils/move-to-index.js.map +1 -1
- package/dist/service/helpers/utils/order-utils.js +1 -1
- package/dist/service/helpers/utils/order-utils.js.map +1 -1
- package/dist/service/helpers/utils/translate-entity.js.map +1 -1
- package/dist/service/helpers/verification-token-generator/verification-token-generator.js +3 -3
- package/dist/service/helpers/verification-token-generator/verification-token-generator.js.map +1 -1
- package/dist/service/index.d.ts +2 -0
- package/dist/service/index.js +2 -0
- package/dist/service/index.js.map +1 -1
- package/dist/service/initializer.service.js +1 -1
- package/dist/service/initializer.service.js.map +1 -1
- package/dist/service/service.module.js +4 -2
- package/dist/service/service.module.js.map +1 -1
- package/dist/service/services/administrator.service.js +4 -4
- package/dist/service/services/administrator.service.js.map +1 -1
- package/dist/service/services/asset.service.d.ts +1 -1
- package/dist/service/services/asset.service.js +15 -13
- package/dist/service/services/asset.service.js.map +1 -1
- package/dist/service/services/auth.service.js +4 -4
- package/dist/service/services/auth.service.js.map +1 -1
- package/dist/service/services/channel.service.d.ts +11 -0
- package/dist/service/services/channel.service.js +26 -9
- package/dist/service/services/channel.service.js.map +1 -1
- package/dist/service/services/collection.service.js +23 -23
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/country.service.js +7 -7
- package/dist/service/services/country.service.js.map +1 -1
- package/dist/service/services/customer-group.service.js +7 -7
- package/dist/service/services/customer-group.service.js.map +1 -1
- package/dist/service/services/customer.service.d.ts +3 -3
- package/dist/service/services/customer.service.js +55 -27
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/facet-value.service.js +7 -7
- package/dist/service/services/facet-value.service.js.map +1 -1
- package/dist/service/services/facet.service.js +8 -8
- package/dist/service/services/facet.service.js.map +1 -1
- package/dist/service/services/fulfillment.service.d.ts +5 -0
- package/dist/service/services/fulfillment.service.js +15 -4
- package/dist/service/services/fulfillment.service.js.map +1 -1
- package/dist/service/services/global-settings.service.js +2 -2
- package/dist/service/services/global-settings.service.js.map +1 -1
- package/dist/service/services/history.service.d.ts +1 -0
- package/dist/service/services/history.service.js +1 -1
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/order-testing.service.js +6 -6
- package/dist/service/services/order-testing.service.js.map +1 -1
- package/dist/service/services/order.service.js +96 -70
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/payment-method.service.js +4 -4
- package/dist/service/services/payment-method.service.js.map +1 -1
- package/dist/service/services/payment.service.js +15 -9
- package/dist/service/services/payment.service.js.map +1 -1
- package/dist/service/services/product-option-group.service.js +7 -7
- package/dist/service/services/product-option-group.service.js.map +1 -1
- package/dist/service/services/product-option.service.js +5 -5
- package/dist/service/services/product-option.service.js.map +1 -1
- package/dist/service/services/product-variant.service.js +18 -16
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/product.service.js +17 -14
- package/dist/service/services/product.service.js.map +1 -1
- package/dist/service/services/promotion.service.js +10 -10
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/role.service.js +8 -8
- package/dist/service/services/role.service.js.map +1 -1
- package/dist/service/services/search.service.js +1 -1
- package/dist/service/services/search.service.js.map +1 -1
- package/dist/service/services/session.service.js +4 -5
- package/dist/service/services/session.service.js.map +1 -1
- package/dist/service/services/shipping-method.service.js +8 -8
- package/dist/service/services/shipping-method.service.js.map +1 -1
- package/dist/service/services/stock-movement.service.js +1 -1
- package/dist/service/services/stock-movement.service.js.map +1 -1
- package/dist/service/services/tag.service.js +2 -2
- package/dist/service/services/tag.service.js.map +1 -1
- package/dist/service/services/tax-category.service.js +4 -4
- package/dist/service/services/tax-category.service.js.map +1 -1
- package/dist/service/services/tax-rate.service.js +4 -4
- package/dist/service/services/tax-rate.service.js.map +1 -1
- package/dist/service/services/user.service.d.ts +5 -4
- package/dist/service/services/user.service.js +32 -5
- package/dist/service/services/user.service.js.map +1 -1
- package/dist/service/services/zone.service.d.ts +11 -0
- package/dist/service/services/zone.service.js +27 -10
- package/dist/service/services/zone.service.js.map +1 -1
- package/dist/worker/worker-health.service.js +2 -2
- package/dist/worker/worker-health.service.js.map +1 -1
- package/dist/worker/worker.module.js +1 -1
- package/dist/worker/worker.module.js.map +1 -1
- package/package.json +15 -14
- package/dist/api/common/request-context.service.d.ts +0 -30
- package/dist/api/common/request-context.service.js.map +0 -1
|
@@ -27,7 +27,18 @@ const tax_category_service_1 = require("../../../service/services/tax-category.s
|
|
|
27
27
|
const asset_importer_1 = require("../asset-importer/asset-importer");
|
|
28
28
|
const import_parser_1 = require("../import-parser/import-parser");
|
|
29
29
|
const fast_importer_service_1 = require("./fast-importer.service");
|
|
30
|
+
/**
|
|
31
|
+
* @description
|
|
32
|
+
* Parses and imports Products using the CSV import format.
|
|
33
|
+
*
|
|
34
|
+
* Internally it is using the {@link ImportParser} to parse the CSV file, and then the
|
|
35
|
+
* {@link FastImporterService} and the {@link AssetImporter} to actually create the resulting
|
|
36
|
+
* entities in the Vendure database.
|
|
37
|
+
*
|
|
38
|
+
* @docsCategory import-export
|
|
39
|
+
*/
|
|
30
40
|
let Importer = class Importer {
|
|
41
|
+
/** @internal */
|
|
31
42
|
constructor(configService, importParser, channelService, facetService, facetValueService, taxCategoryService, assetImporter, fastImporter) {
|
|
32
43
|
this.configService = configService;
|
|
33
44
|
this.importParser = importParser;
|
|
@@ -43,6 +54,13 @@ let Importer = class Importer {
|
|
|
43
54
|
this.facetMap = new Map();
|
|
44
55
|
this.facetValueMap = new Map();
|
|
45
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @description
|
|
59
|
+
* Parses the contents of the [product import CSV file](/docs/developer-guide/importing-product-data/#product-import-format) and imports
|
|
60
|
+
* the resulting Product & ProductVariants, as well as any associated Assets, Facets & FacetValues.
|
|
61
|
+
*
|
|
62
|
+
* The `ctxOrLanguageCode` argument is used to specify the languageCode to be used when creating the Products.
|
|
63
|
+
*/
|
|
46
64
|
parseAndImport(input, ctxOrLanguageCode, reportProgress = false) {
|
|
47
65
|
let bar;
|
|
48
66
|
return new rxjs_1.Observable(subscriber => {
|
|
@@ -118,10 +136,10 @@ let Importer = class Importer {
|
|
|
118
136
|
let imported = 0;
|
|
119
137
|
const languageCode = ctx.languageCode;
|
|
120
138
|
const taxCategories = await this.taxCategoryService.findAll(ctx);
|
|
121
|
-
await this.fastImporter.initialize();
|
|
139
|
+
await this.fastImporter.initialize(ctx.channel);
|
|
122
140
|
for (const { product, variants } of rows) {
|
|
123
141
|
const productMainTranslation = this.getTranslationByCodeOrFirst(product.translations, ctx.languageCode);
|
|
124
|
-
const createProductAssets = await this.assetImporter.getAssets(product.assetPaths);
|
|
142
|
+
const createProductAssets = await this.assetImporter.getAssets(product.assetPaths, ctx);
|
|
125
143
|
const productAssets = createProductAssets.assets;
|
|
126
144
|
if (createProductAssets.errors.length) {
|
|
127
145
|
errors = errors.concat(createProductAssets.errors);
|
|
@@ -130,7 +148,7 @@ let Importer = class Importer {
|
|
|
130
148
|
const createdProductId = await this.fastImporter.createProduct({
|
|
131
149
|
featuredAssetId: productAssets.length ? productAssets[0].id : undefined,
|
|
132
150
|
assetIds: productAssets.map(a => a.id),
|
|
133
|
-
facetValueIds: await this.getFacetValueIds(product.facets, languageCode),
|
|
151
|
+
facetValueIds: await this.getFacetValueIds(ctx, product.facets, ctx.languageCode),
|
|
134
152
|
translations: product.translations.map(translation => {
|
|
135
153
|
return {
|
|
136
154
|
languageCode: translation.languageCode,
|
|
@@ -145,7 +163,7 @@ let Importer = class Importer {
|
|
|
145
163
|
const optionsMap = {};
|
|
146
164
|
for (const optionGroup of product.optionGroups) {
|
|
147
165
|
const optionGroupMainTranslation = this.getTranslationByCodeOrFirst(optionGroup.translations, ctx.languageCode);
|
|
148
|
-
const code = normalize_string_1.normalizeString(`${productMainTranslation.name}-${optionGroupMainTranslation.name}`, '-');
|
|
166
|
+
const code = (0, normalize_string_1.normalizeString)(`${productMainTranslation.name}-${optionGroupMainTranslation.name}`, '-');
|
|
149
167
|
const groupId = await this.fastImporter.createProductOptionGroup({
|
|
150
168
|
code,
|
|
151
169
|
options: optionGroupMainTranslation.values.map(name => ({})),
|
|
@@ -159,7 +177,7 @@ let Importer = class Importer {
|
|
|
159
177
|
for (const optionIndex of optionGroupMainTranslation.values.map((value, index) => index)) {
|
|
160
178
|
const createdOptionId = await this.fastImporter.createProductOption({
|
|
161
179
|
productOptionGroupId: groupId,
|
|
162
|
-
code: normalize_string_1.normalizeString(optionGroupMainTranslation.values[optionIndex], '-'),
|
|
180
|
+
code: (0, normalize_string_1.normalizeString)(optionGroupMainTranslation.values[optionIndex], '-'),
|
|
163
181
|
translations: optionGroup.translations.map(translation => {
|
|
164
182
|
return {
|
|
165
183
|
languageCode: translation.languageCode,
|
|
@@ -180,7 +198,7 @@ let Importer = class Importer {
|
|
|
180
198
|
}
|
|
181
199
|
let facetValueIds = [];
|
|
182
200
|
if (0 < variant.facets.length) {
|
|
183
|
-
facetValueIds = await this.getFacetValueIds(variant.facets, languageCode);
|
|
201
|
+
facetValueIds = await this.getFacetValueIds(ctx, variant.facets, languageCode);
|
|
184
202
|
}
|
|
185
203
|
const variantCustomFields = this.processCustomFieldValues(variantMainTranslation.customFields, this.configService.customFields.ProductVariant);
|
|
186
204
|
const createdVariant = await this.fastImporter.createProductVariant({
|
|
@@ -218,15 +236,8 @@ let Importer = class Importer {
|
|
|
218
236
|
}
|
|
219
237
|
return errors;
|
|
220
238
|
}
|
|
221
|
-
async getFacetValueIds(facets, languageCode) {
|
|
239
|
+
async getFacetValueIds(ctx, facets, languageCode) {
|
|
222
240
|
const facetValueIds = [];
|
|
223
|
-
const ctx = new request_context_1.RequestContext({
|
|
224
|
-
channel: await this.channelService.getDefaultChannel(),
|
|
225
|
-
apiType: 'admin',
|
|
226
|
-
isAuthorized: true,
|
|
227
|
-
authorizedAsOwnerOnly: false,
|
|
228
|
-
session: {},
|
|
229
|
-
});
|
|
230
241
|
for (const item of facets) {
|
|
231
242
|
const itemMainTranslation = this.getTranslationByCodeOrFirst(item.translations, languageCode);
|
|
232
243
|
const facetName = itemMainTranslation.facet;
|
|
@@ -237,14 +248,14 @@ let Importer = class Importer {
|
|
|
237
248
|
facetEntity = cachedFacet;
|
|
238
249
|
}
|
|
239
250
|
else {
|
|
240
|
-
const existing = await this.facetService.findByCode(normalize_string_1.normalizeString(facetName), languageCode);
|
|
251
|
+
const existing = await this.facetService.findByCode((0, normalize_string_1.normalizeString)(facetName), languageCode);
|
|
241
252
|
if (existing) {
|
|
242
253
|
facetEntity = existing;
|
|
243
254
|
}
|
|
244
255
|
else {
|
|
245
256
|
facetEntity = await this.facetService.create(ctx, {
|
|
246
257
|
isPrivate: false,
|
|
247
|
-
code: normalize_string_1.normalizeString(facetName, '-'),
|
|
258
|
+
code: (0, normalize_string_1.normalizeString)(facetName, '-'),
|
|
248
259
|
translations: item.translations.map(translation => {
|
|
249
260
|
return {
|
|
250
261
|
languageCode: translation.languageCode,
|
|
@@ -268,7 +279,7 @@ let Importer = class Importer {
|
|
|
268
279
|
}
|
|
269
280
|
else {
|
|
270
281
|
facetValueEntity = await this.facetValueService.create(request_context_1.RequestContext.empty(), facetEntity, {
|
|
271
|
-
code: normalize_string_1.normalizeString(valueName, '-'),
|
|
282
|
+
code: (0, normalize_string_1.normalizeString)(valueName, '-'),
|
|
272
283
|
translations: item.translations.map(translation => {
|
|
273
284
|
return {
|
|
274
285
|
languageCode: translation.languageCode,
|
|
@@ -315,7 +326,7 @@ let Importer = class Importer {
|
|
|
315
326
|
}
|
|
316
327
|
};
|
|
317
328
|
Importer = __decorate([
|
|
318
|
-
common_1.Injectable(),
|
|
329
|
+
(0, common_1.Injectable)(),
|
|
319
330
|
__metadata("design:paramtypes", [config_service_1.ConfigService,
|
|
320
331
|
import_parser_1.ImportParser,
|
|
321
332
|
channel_service_1.ChannelService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/importer/importer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,2EAAuE;AAEvE,wDAAmC;AACnC,+BAAkC;AAGlC,yEAAqE;AACrE,yDAAmE;AACnE,mEAA+D;AAK/D,+EAA2E;AAC3E,uFAAkF;AAClF,2EAA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AE;qCASkB,8BAAa;QACd,4BAAY;QACV,gCAAc;QAChB,4BAAY;QACP,uCAAiB;QAChB,yCAAkB;QACvB,8BAAa;QACd,2CAAmB;GAfpC,QAAQ,CA2VpB;AA3VY,4BAAQ"}
|
|
1
|
+
{"version":3,"file":"importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/importer/importer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,2EAAuE;AAEvE,wDAAmC;AACnC,+BAAkC;AAGlC,yEAAqE;AACrE,yDAAmE;AACnE,mEAA+D;AAK/D,+EAA2E;AAC3E,uFAAkF;AAClF,2EAAuE;AACvE,yFAAoF;AACpF,qEAAiE;AACjE,kEAAsG;AAEtG,mEAA8D;AAQ9D;;;;;;;;;GASG;AAEH,IAAa,QAAQ,GAArB,MAAa,QAAQ;IAOjB,gBAAgB;IAChB,YACY,aAA4B,EAC5B,YAA0B,EAC1B,cAA8B,EAC9B,YAA0B,EAC1B,iBAAoC,EACpC,kBAAsC,EACtC,aAA4B,EAC5B,YAAiC;QAPjC,kBAAa,GAAb,aAAa,CAAe;QAC5B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,iBAAY,GAAZ,YAAY,CAAqB;QAfrC,uBAAkB,GAA2B,EAAE,CAAC;QACxD,6EAA6E;QAC7E,sBAAsB;QACd,aAAQ,GAAG,IAAI,GAAG,EAAiB,CAAC;QACpC,kBAAa,GAAG,IAAI,GAAG,EAAsB,CAAC;IAYnD,CAAC;IAEJ;;;;;;OAMG;IACH,cAAc,CACV,KAAsB,EACtB,iBAAgD,EAChD,iBAA0B,KAAK;QAE/B,IAAI,GAA4B,CAAC;QAEjC,OAAO,IAAI,iBAAU,C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C,EAAE,CAAC;IACpB,CAAC;IAEO,2BAA2B,CAC/B,YAAoB,EACpB,YAA0B;QAE1B,IAAI,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,YAAY,CAAC,CAAC;QAC1E,IAAI,CAAC,WAAW,EAAE;YACd,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;SACjC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ,CAAA;AA/VY,QAAQ;IADpB,IAAA,mBAAU,GAAE;qCAUkB,8BAAa;QACd,4BAAY;QACV,gCAAc;QAChB,4BAAY;QACP,uCAAiB;QAChB,yCAAkB;QACvB,8BAAa;QACd,2CAAmB;GAhBpC,QAAQ,CA+VpB;AA/VY,4BAAQ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Channel } from '../../../entity';
|
|
1
2
|
import { CollectionService, FacetValueService, PaymentMethodService, RoleService, ShippingMethodService } from '../../../service';
|
|
2
3
|
import { ChannelService } from '../../../service/services/channel.service';
|
|
3
4
|
import { CountryService } from '../../../service/services/country.service';
|
|
@@ -8,7 +9,11 @@ import { ZoneService } from '../../../service/services/zone.service';
|
|
|
8
9
|
import { InitialData } from '../../types';
|
|
9
10
|
import { AssetImporter } from '../asset-importer/asset-importer';
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* @description
|
|
13
|
+
* Responsible for populating the database with {@link InitialData}, i.e. non-product data such as countries, tax rates,
|
|
14
|
+
* shipping methods, payment methods & roles.
|
|
15
|
+
*
|
|
16
|
+
* @docsCategory import-export
|
|
12
17
|
*/
|
|
13
18
|
export declare class Populator {
|
|
14
19
|
private countryService;
|
|
@@ -23,17 +28,21 @@ export declare class Populator {
|
|
|
23
28
|
private searchService;
|
|
24
29
|
private assetImporter;
|
|
25
30
|
private roleService;
|
|
31
|
+
/** @internal */
|
|
26
32
|
constructor(countryService: CountryService, zoneService: ZoneService, channelService: ChannelService, taxRateService: TaxRateService, taxCategoryService: TaxCategoryService, shippingMethodService: ShippingMethodService, paymentMethodService: PaymentMethodService, collectionService: CollectionService, facetValueService: FacetValueService, searchService: SearchService, assetImporter: AssetImporter, roleService: RoleService);
|
|
27
33
|
/**
|
|
34
|
+
* @description
|
|
28
35
|
* Should be run *before* populating the products, so that there are TaxRates by which
|
|
29
|
-
* product prices can be set.
|
|
36
|
+
* product prices can be set. If the `channel` argument is set, then any {@link ChannelAware}
|
|
37
|
+
* entities will be assigned to that Channel.
|
|
30
38
|
*/
|
|
31
|
-
populateInitialData(data: InitialData): Promise<void>;
|
|
39
|
+
populateInitialData(data: InitialData, channel?: Channel): Promise<void>;
|
|
32
40
|
/**
|
|
41
|
+
* @description
|
|
33
42
|
* Should be run *after* the products have been populated, otherwise the expected FacetValues will not
|
|
34
43
|
* yet exist.
|
|
35
44
|
*/
|
|
36
|
-
populateCollections(data: InitialData): Promise<void>;
|
|
45
|
+
populateCollections(data: InitialData, channel?: Channel): Promise<void>;
|
|
37
46
|
private processFilterDefinition;
|
|
38
47
|
private createRequestContext;
|
|
39
48
|
private setChannelDefaults;
|
|
@@ -25,9 +25,14 @@ const tax_rate_service_1 = require("../../../service/services/tax-rate.service")
|
|
|
25
25
|
const zone_service_1 = require("../../../service/services/zone.service");
|
|
26
26
|
const asset_importer_1 = require("../asset-importer/asset-importer");
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* @description
|
|
29
|
+
* Responsible for populating the database with {@link InitialData}, i.e. non-product data such as countries, tax rates,
|
|
30
|
+
* shipping methods, payment methods & roles.
|
|
31
|
+
*
|
|
32
|
+
* @docsCategory import-export
|
|
29
33
|
*/
|
|
30
34
|
let Populator = class Populator {
|
|
35
|
+
/** @internal */
|
|
31
36
|
constructor(countryService, zoneService, channelService, taxRateService, taxCategoryService, shippingMethodService, paymentMethodService, collectionService, facetValueService, searchService, assetImporter, roleService) {
|
|
32
37
|
this.countryService = countryService;
|
|
33
38
|
this.zoneService = zoneService;
|
|
@@ -43,11 +48,13 @@ let Populator = class Populator {
|
|
|
43
48
|
this.roleService = roleService;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
51
|
+
* @description
|
|
46
52
|
* Should be run *before* populating the products, so that there are TaxRates by which
|
|
47
|
-
* product prices can be set.
|
|
53
|
+
* product prices can be set. If the `channel` argument is set, then any {@link ChannelAware}
|
|
54
|
+
* entities will be assigned to that Channel.
|
|
48
55
|
*/
|
|
49
|
-
async populateInitialData(data) {
|
|
50
|
-
const
|
|
56
|
+
async populateInitialData(data, channel) {
|
|
57
|
+
const ctx = await this.createRequestContext(data, channel);
|
|
51
58
|
let zoneMap;
|
|
52
59
|
try {
|
|
53
60
|
zoneMap = await this.populateCountries(ctx, data.countries);
|
|
@@ -79,7 +86,7 @@ let Populator = class Populator {
|
|
|
79
86
|
config_1.Logger.error(e, 'populator', e.stack);
|
|
80
87
|
}
|
|
81
88
|
try {
|
|
82
|
-
await this.setChannelDefaults(zoneMap, data, channel);
|
|
89
|
+
await this.setChannelDefaults(zoneMap, data, ctx.channel);
|
|
83
90
|
}
|
|
84
91
|
catch (e) {
|
|
85
92
|
config_1.Logger.error(`Could not set channel defaults`);
|
|
@@ -94,12 +101,13 @@ let Populator = class Populator {
|
|
|
94
101
|
}
|
|
95
102
|
}
|
|
96
103
|
/**
|
|
104
|
+
* @description
|
|
97
105
|
* Should be run *after* the products have been populated, otherwise the expected FacetValues will not
|
|
98
106
|
* yet exist.
|
|
99
107
|
*/
|
|
100
|
-
async populateCollections(data) {
|
|
108
|
+
async populateCollections(data, channel) {
|
|
101
109
|
var _a;
|
|
102
|
-
const
|
|
110
|
+
const ctx = await this.createRequestContext(data, channel);
|
|
103
111
|
const allFacetValues = await this.facetValueService.findAll(ctx.languageCode);
|
|
104
112
|
const collectionMap = new Map();
|
|
105
113
|
for (const collectionDef of data.collections) {
|
|
@@ -111,8 +119,7 @@ let Populator = class Populator {
|
|
|
111
119
|
filters = (collectionDef.filters || []).map(filter => this.processFilterDefinition(filter, allFacetValues));
|
|
112
120
|
}
|
|
113
121
|
catch (e) {
|
|
114
|
-
|
|
115
|
-
console.log(e);
|
|
122
|
+
config_1.Logger.error(e.message);
|
|
116
123
|
}
|
|
117
124
|
const collection = await this.collectionService.create(ctx, {
|
|
118
125
|
translations: [
|
|
@@ -171,21 +178,20 @@ let Populator = class Populator {
|
|
|
171
178
|
throw new Error(`Filter with code "${filter.code}" is not recognized.`);
|
|
172
179
|
}
|
|
173
180
|
}
|
|
174
|
-
async createRequestContext(data) {
|
|
175
|
-
const channel = await this.channelService.getDefaultChannel();
|
|
181
|
+
async createRequestContext(data, channel) {
|
|
176
182
|
const ctx = new request_context_1.RequestContext({
|
|
177
183
|
apiType: 'admin',
|
|
178
184
|
isAuthorized: true,
|
|
179
185
|
authorizedAsOwnerOnly: false,
|
|
180
|
-
channel,
|
|
186
|
+
channel: channel !== null && channel !== void 0 ? channel : (await this.channelService.getDefaultChannel()),
|
|
181
187
|
languageCode: data.defaultLanguage,
|
|
182
188
|
});
|
|
183
|
-
return
|
|
189
|
+
return ctx;
|
|
184
190
|
}
|
|
185
191
|
async setChannelDefaults(zoneMap, data, channel) {
|
|
186
192
|
const defaultZone = zoneMap.get(data.defaultZone);
|
|
187
193
|
if (!defaultZone) {
|
|
188
|
-
throw new Error(`The defaultZone (${data.defaultZone}) did not match any
|
|
194
|
+
throw new Error(`The defaultZone (${data.defaultZone}) did not match any existing or created zone names`);
|
|
189
195
|
}
|
|
190
196
|
const defaultZoneId = defaultZone.entity.id;
|
|
191
197
|
await this.channelService.update(request_context_1.RequestContext.empty(), {
|
|
@@ -195,29 +201,35 @@ let Populator = class Populator {
|
|
|
195
201
|
});
|
|
196
202
|
}
|
|
197
203
|
async populateCountries(ctx, countries) {
|
|
198
|
-
const
|
|
204
|
+
const zoneMap = new Map();
|
|
205
|
+
const existingZones = await this.zoneService.findAll(ctx);
|
|
206
|
+
for (const zone of existingZones) {
|
|
207
|
+
zoneMap.set(zone.name, { entity: zone, members: zone.members.map(m => m.id) });
|
|
208
|
+
}
|
|
199
209
|
for (const { name, code, zone } of countries) {
|
|
200
210
|
const countryEntity = await this.countryService.create(ctx, {
|
|
201
211
|
code,
|
|
202
212
|
enabled: true,
|
|
203
213
|
translations: [{ languageCode: ctx.languageCode, name }],
|
|
204
214
|
});
|
|
205
|
-
let zoneItem =
|
|
215
|
+
let zoneItem = zoneMap.get(zone);
|
|
206
216
|
if (!zoneItem) {
|
|
207
217
|
const zoneEntity = await this.zoneService.create(ctx, { name: zone });
|
|
208
218
|
zoneItem = { entity: zoneEntity, members: [] };
|
|
209
|
-
|
|
219
|
+
zoneMap.set(zone, zoneItem);
|
|
220
|
+
}
|
|
221
|
+
if (!zoneItem.members.includes(countryEntity.id)) {
|
|
222
|
+
zoneItem.members.push(countryEntity.id);
|
|
210
223
|
}
|
|
211
|
-
zoneItem.members.push(countryEntity.id);
|
|
212
224
|
}
|
|
213
225
|
// add the countries to the respective zones
|
|
214
|
-
for (const zoneItem of
|
|
226
|
+
for (const zoneItem of zoneMap.values()) {
|
|
215
227
|
await this.zoneService.addMembersToZone(ctx, {
|
|
216
228
|
zoneId: zoneItem.entity.id,
|
|
217
229
|
memberIds: zoneItem.members,
|
|
218
230
|
});
|
|
219
231
|
}
|
|
220
|
-
return
|
|
232
|
+
return zoneMap;
|
|
221
233
|
}
|
|
222
234
|
async populateTaxRates(ctx, taxRates, zoneMap) {
|
|
223
235
|
const taxCategories = [];
|
|
@@ -250,7 +262,7 @@ let Populator = class Populator {
|
|
|
250
262
|
{ name: 'includesTax', value: 'auto' },
|
|
251
263
|
],
|
|
252
264
|
},
|
|
253
|
-
code: normalize_string_1.normalizeString(method.name, '-'),
|
|
265
|
+
code: (0, normalize_string_1.normalizeString)(method.name, '-'),
|
|
254
266
|
translations: [{ languageCode: ctx.languageCode, name: method.name, description: '' }],
|
|
255
267
|
});
|
|
256
268
|
}
|
|
@@ -259,7 +271,7 @@ let Populator = class Populator {
|
|
|
259
271
|
for (const method of paymentMethods) {
|
|
260
272
|
await this.paymentMethodService.create(ctx, {
|
|
261
273
|
name: method.name,
|
|
262
|
-
code: normalize_string_1.normalizeString(method.name, '-'),
|
|
274
|
+
code: (0, normalize_string_1.normalizeString)(method.name, '-'),
|
|
263
275
|
description: '',
|
|
264
276
|
enabled: true,
|
|
265
277
|
handler: method.handler,
|
|
@@ -276,7 +288,7 @@ let Populator = class Populator {
|
|
|
276
288
|
}
|
|
277
289
|
};
|
|
278
290
|
Populator = __decorate([
|
|
279
|
-
common_1.Injectable(),
|
|
291
|
+
(0, common_1.Injectable)(),
|
|
280
292
|
__metadata("design:paramtypes", [country_service_1.CountryService,
|
|
281
293
|
zone_service_1.ZoneService,
|
|
282
294
|
channel_service_1.ChannelService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"populator.js","sourceRoot":"","sources":["../../../../src/data-import/providers/populator/populator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,2EAAuE;AACvE,mEAAsE;AAEtE,yEAAqE;AACrE,4CAAuG;AACvG,uGAAkG;AAElG,8CAM0B;AAC1B,+EAA2E;AAC3E,+EAA2E;AAC3E,6EAAyE;AACzE,yFAAoF;AACpF,iFAA4E;AAC5E,yEAAqE;AAQrE,qEAAiE;AAEjE
|
|
1
|
+
{"version":3,"file":"populator.js","sourceRoot":"","sources":["../../../../src/data-import/providers/populator/populator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,2EAAuE;AACvE,mEAAsE;AAEtE,yEAAqE;AACrE,4CAAuG;AACvG,uGAAkG;AAElG,8CAM0B;AAC1B,+EAA2E;AAC3E,+EAA2E;AAC3E,6EAAyE;AACzE,yFAAoF;AACpF,iFAA4E;AAC5E,yEAAqE;AAQrE,qEAAiE;AAEjE;;;;;;GAMG;AAEH,IAAa,SAAS,GAAtB,MAAa,SAAS;IAClB,gBAAgB;IAChB,YACY,cAA8B,EAC9B,WAAwB,EACx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,IAAI,EAAE,IAAA,kCAAe,EAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;gBACvC,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,MAAM,CAAC,OAAO;aAC1B,CAAC,CAAC;SACN;IACL,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,GAAmB,EAAE,KAAwB;QACrE,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;SACV;QACD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE;YACzB,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;SAC/C;IACL,CAAC;CACJ,CAAA;AAxRY,SAAS;IADrB,IAAA,mBAAU,GAAE;qCAImB,gCAAc;QACjB,0BAAW;QACR,gCAAc;QACd,iCAAc;QACV,yCAAkB;QACf,+BAAqB;QACtB,8BAAoB;QACvB,2BAAiB;QACjB,2BAAiB;QACrB,8BAAa;QACb,8BAAa;QACf,qBAAW;GAd3B,SAAS,CAwRrB;AAxRY,8BAAS"}
|
|
@@ -27,59 +27,59 @@ let Address = class Address extends base_entity_1.VendureEntity {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
__decorate([
|
|
30
|
-
typeorm_1.ManyToOne(type => customer_entity_1.Customer, customer => customer.addresses),
|
|
30
|
+
(0, typeorm_1.ManyToOne)(type => customer_entity_1.Customer, customer => customer.addresses),
|
|
31
31
|
__metadata("design:type", customer_entity_1.Customer)
|
|
32
32
|
], Address.prototype, "customer", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
typeorm_1.Column({ default: '' }),
|
|
34
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], Address.prototype, "fullName", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
typeorm_1.Column({ default: '' }),
|
|
38
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], Address.prototype, "company", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
typeorm_1.Column(),
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], Address.prototype, "streetLine1", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
typeorm_1.Column({ default: '' }),
|
|
46
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], Address.prototype, "streetLine2", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
typeorm_1.Column({ default: '' }),
|
|
50
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], Address.prototype, "city", void 0);
|
|
53
53
|
__decorate([
|
|
54
|
-
typeorm_1.Column({ default: '' }),
|
|
54
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], Address.prototype, "province", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
typeorm_1.Column({ default: '' }),
|
|
58
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
60
|
], Address.prototype, "postalCode", void 0);
|
|
61
61
|
__decorate([
|
|
62
|
-
typeorm_1.ManyToOne(type => country_entity_1.Country),
|
|
62
|
+
(0, typeorm_1.ManyToOne)(type => country_entity_1.Country),
|
|
63
63
|
__metadata("design:type", country_entity_1.Country)
|
|
64
64
|
], Address.prototype, "country", void 0);
|
|
65
65
|
__decorate([
|
|
66
|
-
typeorm_1.Column({ default: '' }),
|
|
66
|
+
(0, typeorm_1.Column)({ default: '' }),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
68
|
], Address.prototype, "phoneNumber", void 0);
|
|
69
69
|
__decorate([
|
|
70
|
-
typeorm_1.Column({ default: false }),
|
|
70
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
71
71
|
__metadata("design:type", Boolean)
|
|
72
72
|
], Address.prototype, "defaultShippingAddress", void 0);
|
|
73
73
|
__decorate([
|
|
74
|
-
typeorm_1.Column({ default: false }),
|
|
74
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
75
75
|
__metadata("design:type", Boolean)
|
|
76
76
|
], Address.prototype, "defaultBillingAddress", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
typeorm_1.Column(type => custom_entity_fields_1.CustomAddressFields),
|
|
78
|
+
(0, typeorm_1.Column)(type => custom_entity_fields_1.CustomAddressFields),
|
|
79
79
|
__metadata("design:type", custom_entity_fields_1.CustomAddressFields)
|
|
80
80
|
], Address.prototype, "customFields", void 0);
|
|
81
81
|
Address = __decorate([
|
|
82
|
-
typeorm_1.Entity(),
|
|
82
|
+
(0, typeorm_1.Entity)(),
|
|
83
83
|
__metadata("design:paramtypes", [Object])
|
|
84
84
|
], Address);
|
|
85
85
|
exports.Address = Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.js","sourceRoot":"","sources":["../../../src/entity/address/address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAGpD,qDAAoD;AACpD,8DAAoD;AACpD,kEAA8D;AAC9D,iEAAuD;AAEvD;;;;;GAKG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAoCJ,CAAA;AAjCG;IADC,mBAAS,
|
|
1
|
+
{"version":3,"file":"address.entity.js","sourceRoot":"","sources":["../../../src/entity/address/address.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AAGpD,qDAAoD;AACpD,8DAAoD;AACpD,kEAA8D;AAC9D,iEAAuD;AAEvD;;;;;GAKG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC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
|
27
27
|
};
|
|
28
28
|
__decorate([
|
|
29
|
-
typeorm_1.Column({ type: Date, nullable: true }),
|
|
29
|
+
(0, typeorm_1.Column)({ type: Date, nullable: true }),
|
|
30
30
|
__metadata("design:type", Object)
|
|
31
31
|
], Administrator.prototype, "deletedAt", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
typeorm_1.Column(),
|
|
33
|
+
(0, typeorm_1.Column)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Administrator.prototype, "firstName", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
typeorm_1.Column(),
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Administrator.prototype, "lastName", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
typeorm_1.Column({ unique: true }),
|
|
41
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], Administrator.prototype, "emailAddress", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
typeorm_1.OneToOne(type => user_entity_1.User),
|
|
46
|
-
typeorm_1.JoinColumn(),
|
|
45
|
+
(0, typeorm_1.OneToOne)(type => user_entity_1.User),
|
|
46
|
+
(0, typeorm_1.JoinColumn)(),
|
|
47
47
|
__metadata("design:type", user_entity_1.User)
|
|
48
48
|
], Administrator.prototype, "user", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
typeorm_1.Column(type => custom_entity_fields_1.CustomAdministratorFields),
|
|
50
|
+
(0, typeorm_1.Column)(type => custom_entity_fields_1.CustomAdministratorFields),
|
|
51
51
|
__metadata("design:type", custom_entity_fields_1.CustomAdministratorFields)
|
|
52
52
|
], Administrator.prototype, "customFields", void 0);
|
|
53
53
|
Administrator = __decorate([
|
|
54
|
-
typeorm_1.Entity(),
|
|
54
|
+
(0, typeorm_1.Entity)(),
|
|
55
55
|
__metadata("design:paramtypes", [Object])
|
|
56
56
|
], Administrator);
|
|
57
57
|
exports.Administrator = Administrator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"administrator.entity.js","sourceRoot":"","sources":["../../../src/entity/administrator/administrator.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA+D;AAI/D,qDAAoD;AACpD,kEAAoE;AACpE,qDAA2C;AAE3C;;;;;GAKG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,2BAAa;IAC5C,YAAY,KAAkC;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAkBJ,CAAA;AAfG;IADC,gBAAM,
|
|
1
|
+
{"version":3,"file":"administrator.entity.js","sourceRoot":"","sources":["../../../src/entity/administrator/administrator.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA+D;AAI/D,qDAAoD;AACpD,kEAAoE;AACpE,qDAA2C;AAE3C;;;;;GAKG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,2BAAa;IAC5C,YAAY,KAAkC;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAkBJ,CAAA;AAfG;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAChB;AAEb;IAAT,IAAA,gBAAM,GAAE;;gDAAmB;AAElB;IAAT,IAAA,gBAAM,GAAE;;+CAAkB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAIrB;IAFC,IAAA,kBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;IACtB,IAAA,oBAAU,GAAE;8BACP,kBAAI;2CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,gDAAyB,CAAC;8BAC5B,gDAAyB;mDAAC;AApB/B,aAAa;IADzB,IAAA,gBAAM,GAAE;;GACI,aAAa,CAqBzB;AArBY,sCAAa"}
|
|
@@ -29,57 +29,57 @@ let Asset = class Asset extends base_entity_1.VendureEntity {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
__decorate([
|
|
32
|
-
typeorm_1.Column(),
|
|
32
|
+
(0, typeorm_1.Column)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], Asset.prototype, "name", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
typeorm_1.Column('varchar'),
|
|
36
|
+
(0, typeorm_1.Column)('varchar'),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], Asset.prototype, "type", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
typeorm_1.Column(),
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], Asset.prototype, "mimeType", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
typeorm_1.Column({ default: 0 }),
|
|
44
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
45
45
|
__metadata("design:type", Number)
|
|
46
46
|
], Asset.prototype, "width", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
typeorm_1.Column({ default: 0 }),
|
|
48
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
49
49
|
__metadata("design:type", Number)
|
|
50
50
|
], Asset.prototype, "height", void 0);
|
|
51
51
|
__decorate([
|
|
52
|
-
typeorm_1.Column(),
|
|
52
|
+
(0, typeorm_1.Column)(),
|
|
53
53
|
__metadata("design:type", Number)
|
|
54
54
|
], Asset.prototype, "fileSize", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
typeorm_1.Column(),
|
|
56
|
+
(0, typeorm_1.Column)(),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], Asset.prototype, "source", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
typeorm_1.Column(),
|
|
60
|
+
(0, typeorm_1.Column)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], Asset.prototype, "preview", void 0);
|
|
63
63
|
__decorate([
|
|
64
|
-
typeorm_1.Column('simple-json', { nullable: true }),
|
|
64
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
65
65
|
__metadata("design:type", Object)
|
|
66
66
|
], Asset.prototype, "focalPoint", void 0);
|
|
67
67
|
__decorate([
|
|
68
|
-
typeorm_1.ManyToMany(type => tag_entity_1.Tag),
|
|
69
|
-
typeorm_1.JoinTable(),
|
|
68
|
+
(0, typeorm_1.ManyToMany)(type => tag_entity_1.Tag),
|
|
69
|
+
(0, typeorm_1.JoinTable)(),
|
|
70
70
|
__metadata("design:type", Array)
|
|
71
71
|
], Asset.prototype, "tags", void 0);
|
|
72
72
|
__decorate([
|
|
73
|
-
typeorm_1.ManyToMany(type => channel_entity_1.Channel),
|
|
74
|
-
typeorm_1.JoinTable(),
|
|
73
|
+
(0, typeorm_1.ManyToMany)(type => channel_entity_1.Channel),
|
|
74
|
+
(0, typeorm_1.JoinTable)(),
|
|
75
75
|
__metadata("design:type", Array)
|
|
76
76
|
], Asset.prototype, "channels", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
typeorm_1.Column(type => custom_entity_fields_1.CustomAssetFields),
|
|
78
|
+
(0, typeorm_1.Column)(type => custom_entity_fields_1.CustomAssetFields),
|
|
79
79
|
__metadata("design:type", custom_entity_fields_1.CustomAssetFields)
|
|
80
80
|
], Asset.prototype, "customFields", void 0);
|
|
81
81
|
Asset = __decorate([
|
|
82
|
-
typeorm_1.Entity(),
|
|
82
|
+
(0, typeorm_1.Entity)(),
|
|
83
83
|
__metadata("design:paramtypes", [Object])
|
|
84
84
|
], Asset);
|
|
85
85
|
exports.Asset = Asset;
|