@vendure/core 1.4.7 → 1.5.2
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 +38 -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/dist/api/api.module.js +0 -2
- package/dist/api/api.module.js.map +1 -1
- package/dist/api/common/request-context.d.ts +3 -1
- package/dist/api/common/request-context.js +3 -1
- package/dist/api/common/request-context.js.map +1 -1
- package/dist/api/config/configure-graphql-module.js +2 -0
- package/dist/api/config/configure-graphql-module.js.map +1 -1
- package/dist/api/config/generate-permissions.js +29 -4
- package/dist/api/config/generate-permissions.js.map +1 -1
- package/dist/api/config/graphql-custom-fields.js +27 -16
- package/dist/api/config/graphql-custom-fields.js.map +1 -1
- package/dist/api/decorators/request-context.decorator.js +9 -2
- package/dist/api/decorators/request-context.decorator.js.map +1 -1
- package/dist/api/middleware/auth-guard.d.ts +1 -1
- package/dist/api/middleware/auth-guard.js +1 -1
- package/dist/api/middleware/auth-guard.js.map +1 -1
- package/dist/api/middleware/transaction-interceptor.d.ts +9 -0
- package/dist/api/middleware/transaction-interceptor.js +16 -1
- package/dist/api/middleware/transaction-interceptor.js.map +1 -1
- package/dist/api/resolvers/admin/global-settings.resolver.js +1 -1
- package/dist/api/resolvers/admin/global-settings.resolver.js.map +1 -1
- package/dist/api/resolvers/entity/order-line-entity.resolver.d.ts +5 -3
- package/dist/api/resolvers/entity/order-line-entity.resolver.js +16 -2
- package/dist/api/resolvers/entity/order-line-entity.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/customer.api.graphql +4 -0
- package/dist/api/schema/admin-api/order.api.graphql +6 -0
- package/dist/api/schema/common/common-enums.graphql +1 -0
- package/dist/api/schema/common/common-error-results.graphql +22 -0
- package/dist/api/schema/common/common-types.graphql +25 -0
- package/dist/api/schema/shop-api/shop-error-results.graphql +7 -29
- package/dist/api/schema/shop-api/shop.api.graphql +4 -2
- package/dist/bootstrap.js +6 -3
- package/dist/bootstrap.js.map +1 -1
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.js +2 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/error/generated-graphql-admin-errors.d.ts +22 -0
- package/dist/common/error/generated-graphql-admin-errors.js +33 -2
- package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
- package/dist/common/error/generated-graphql-shop-errors.d.ts +7 -0
- package/dist/common/error/generated-graphql-shop-errors.js +12 -2
- package/dist/common/error/generated-graphql-shop-errors.js.map +1 -1
- package/dist/common/finite-state-machine/finite-state-machine.js +2 -1
- package/dist/common/finite-state-machine/finite-state-machine.js.map +1 -1
- package/dist/common/types/common-types.d.ts +3 -0
- 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/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/config.module.js +2 -1
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/default-config.js +4 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.js +4 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/promotion/index.d.ts +4 -0
- package/dist/config/promotion/index.js +4 -0
- package/dist/config/promotion/index.js.map +1 -1
- package/dist/config/vendure-config.d.ts +53 -0
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/connection/transaction-wrapper.d.ts +5 -1
- package/dist/connection/transaction-wrapper.js +9 -3
- package/dist/connection/transaction-wrapper.js.map +1 -1
- package/dist/connection/transactional-connection.d.ts +7 -3
- package/dist/connection/transactional-connection.js +3 -3
- package/dist/connection/transactional-connection.js.map +1 -1
- package/dist/data-import/data-import.module.js +1 -1
- 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 +12 -2
- 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 +12 -0
- 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 +53 -17
- 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 +35 -19
- 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 +32 -20
- package/dist/data-import/providers/populator/populator.js.map +1 -1
- package/dist/event-bus/event-bus.js +12 -3
- package/dist/event-bus/event-bus.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/i18n/messages/en.json +1 -0
- package/dist/job-queue/job-queue.service.js +3 -0
- package/dist/job-queue/job-queue.service.js.map +1 -1
- package/dist/plugin/plugin-common.module.js +3 -0
- package/dist/plugin/plugin-common.module.js.map +1 -1
- package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +19 -2
- package/dist/service/helpers/list-query-builder/list-query-builder.js +1 -1
- 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 +4 -1
- package/dist/service/helpers/list-query-builder/parse-filter-params.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 +10 -0
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-calculator/prorate.js +1 -1
- package/dist/service/helpers/order-calculator/prorate.js.map +1 -1
- package/dist/service/helpers/order-modifier/order-modifier.d.ts +10 -1
- package/dist/service/helpers/order-modifier/order-modifier.js +86 -3
- package/dist/service/helpers/order-modifier/order-modifier.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/slug-validator/slug-validator.js +15 -6
- package/dist/service/helpers/slug-validator/slug-validator.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 +1 -2
- package/dist/service/helpers/utils/translate-entity.js.map +1 -1
- package/dist/service/index.d.ts +3 -0
- package/dist/service/index.js +3 -0
- package/dist/service/index.js.map +1 -1
- package/dist/service/service.module.js +2 -0
- package/dist/service/service.module.js.map +1 -1
- package/dist/service/services/asset.service.d.ts +1 -1
- package/dist/service/services/asset.service.js +5 -3
- package/dist/service/services/asset.service.js.map +1 -1
- package/dist/service/services/customer-group.service.d.ts +3 -1
- package/dist/service/services/customer-group.service.js +8 -3
- 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 +32 -4
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/history.service.d.ts +1 -0
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/order.service.d.ts +15 -0
- package/dist/service/services/order.service.js +85 -31
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/product-variant.service.d.ts +1 -0
- package/dist/service/services/product-variant.service.js +18 -5
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/promotion.service.js +2 -1
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/session.service.js +1 -2
- package/dist/service/services/session.service.js.map +1 -1
- package/dist/service/services/user.service.d.ts +5 -4
- package/dist/service/services/user.service.js +30 -3
- package/dist/service/services/user.service.js.map +1 -1
- package/package.json +3 -3
- package/dist/api/common/request-context.service.d.ts +0 -30
- package/dist/api/common/request-context.service.js.map +0 -1
|
@@ -9,6 +9,7 @@ const default_asset_naming_strategy_1 = require("./asset-naming-strategy/default
|
|
|
9
9
|
const no_asset_preview_strategy_1 = require("./asset-preview-strategy/no-asset-preview-strategy");
|
|
10
10
|
const no_asset_storage_strategy_1 = require("./asset-storage-strategy/no-asset-storage-strategy");
|
|
11
11
|
const bcrypt_password_hashing_strategy_1 = require("./auth/bcrypt-password-hashing-strategy");
|
|
12
|
+
const default_password_validation_strategy_1 = require("./auth/default-password-validation-strategy");
|
|
12
13
|
const native_authentication_strategy_1 = require("./auth/native-authentication-strategy");
|
|
13
14
|
const default_collection_filters_1 = require("./catalog/default-collection-filters");
|
|
14
15
|
const default_product_variant_price_calculation_strategy_1 = require("./catalog/default-product-variant-price-calculation-strategy");
|
|
@@ -59,6 +60,7 @@ exports.defaultConfig = {
|
|
|
59
60
|
credentials: true,
|
|
60
61
|
},
|
|
61
62
|
middleware: [],
|
|
63
|
+
introspection: true,
|
|
62
64
|
apolloServerPlugins: [],
|
|
63
65
|
},
|
|
64
66
|
authOptions: {
|
|
@@ -82,6 +84,7 @@ exports.defaultConfig = {
|
|
|
82
84
|
adminAuthenticationStrategy: [new native_authentication_strategy_1.NativeAuthenticationStrategy()],
|
|
83
85
|
customPermissions: [],
|
|
84
86
|
passwordHashingStrategy: new bcrypt_password_hashing_strategy_1.BcryptPasswordHashingStrategy(),
|
|
87
|
+
passwordValidationStrategy: new default_password_validation_strategy_1.DefaultPasswordValidationStrategy({ minLength: 4 }),
|
|
85
88
|
},
|
|
86
89
|
catalogOptions: {
|
|
87
90
|
collectionFilters: default_collection_filters_1.defaultCollectionFilters,
|
|
@@ -144,6 +147,7 @@ exports.defaultConfig = {
|
|
|
144
147
|
jobBufferStorageStrategy: new in_memory_job_buffer_storage_strategy_1.InMemoryJobBufferStorageStrategy(),
|
|
145
148
|
activeQueues: [],
|
|
146
149
|
enableWorkerHealthCheck: false,
|
|
150
|
+
prefix: '',
|
|
147
151
|
},
|
|
148
152
|
customFields: {
|
|
149
153
|
Address: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAI8C;AAE9C,4FAAqF;AACrF,yHAAiH;AAEjH,yGAAmG;AACnG,kGAA4F;AAC5F,kGAA4F;AAC5F,8FAAwF;AACxF,0FAAqF;AACrF,qFAAgF;AAChF,qIAA6H;AAC7H,6FAAuF;AACvF,gGAA0F;AAC1F,yFAAoF;AACpF,4DAAwD;AACxD,6GAAsG;AACtG,yHAAiH;AACjH,yFAAmF;AACnF,iGAA2F;AAC3F,yEAAoE;AACpE,yFAAyF;AACzF,qEAAuE;AACvE,mEAA8D;AAC9D,2CAAkF;AAClF,uGAAgG;AAChG,+FAA0F;AAC1F,iHAA2G;AAC3G,uGAAgG;AAChG,+EAAyE;AAGzE;;;;;GAKG;AACU,QAAA,aAAa,GAAyB;IAC/C,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,8BAAY,CAAC,EAAE;IACpC,MAAM,EAAE,IAAI,8BAAa,EAAE;IAC3B,UAAU,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,WAAW;QACzB,kBAAkB,EAAE,KAAK;QACzB,aAAa,EAAE,KAAK;QACpB,mBAAmB,EAAE,IAAI;QACzB,uBAAuB,EAAE,EAAE;QAC3B,WAAW,EAAE,UAAU;QACvB,iBAAiB,EAAE,KAAK;QACxB,YAAY,EAAE,KAAK;QACnB,kBAAkB,EAAE,GAAG;QACvB,sBAAsB,EAAE,EAAE;QAC1B,eAAe,EAAE,eAAe;QAChC,IAAI,EAAE;YACF,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,IAAI;SACpB;QACD,UAAU,EAAE,EAAE;QACd,mBAAmB,EAAE,EAAE;KAC1B;IACD,WAAW,EAAE;QACT,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,QAAQ;QACrB,aAAa,EAAE;YACX,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YAC5C,QAAQ,EAAE,IAAI;SACjB;QACD,kBAAkB,EAAE,gDAA6B;QACjD,eAAe,EAAE,IAAI;QACrB,oBAAoB,EAAE,IAAI,+DAA4B,EAAE;QACxD,eAAe,EAAE,GAAG;QACpB,mBAAmB,EAAE,IAAI;QACzB,yBAAyB,EAAE,IAAI;QAC/B,qBAAqB,EAAE;YACnB,UAAU,EAAE,8CAA2B;YACvC,QAAQ,EAAE,4CAAyB;SACtC;QACD,0BAA0B,EAAE,CAAC,IAAI,6DAA4B,EAAE,CAAC;QAChE,2BAA2B,EAAE,CAAC,IAAI,6DAA4B,EAAE,CAAC;QACjE,iBAAiB,EAAE,EAAE;QACrB,uBAAuB,EAAE,IAAI,gEAA6B,EAAE;
|
|
1
|
+
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/config/default-config.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAI8C;AAE9C,4FAAqF;AACrF,yHAAiH;AAEjH,yGAAmG;AACnG,kGAA4F;AAC5F,kGAA4F;AAC5F,8FAAwF;AACxF,sGAAgG;AAChG,0FAAqF;AACrF,qFAAgF;AAChF,qIAA6H;AAC7H,6FAAuF;AACvF,gGAA0F;AAC1F,yFAAoF;AACpF,4DAAwD;AACxD,6GAAsG;AACtG,yHAAiH;AACjH,yFAAmF;AACnF,iGAA2F;AAC3F,yEAAoE;AACpE,yFAAyF;AACzF,qEAAuE;AACvE,mEAA8D;AAC9D,2CAAkF;AAClF,uGAAgG;AAChG,+FAA0F;AAC1F,iHAA2G;AAC3G,uGAAgG;AAChG,+EAAyE;AAGzE;;;;;GAKG;AACU,QAAA,aAAa,GAAyB;IAC/C,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,8BAAY,CAAC,EAAE;I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AmC,EAAE;QACvE,mBAAmB,EAAE,IAAI,0DAA0B,EAAE;KACxD;IACD,cAAc,EAAE;QACZ,gCAAgC,EAAE,EAAE;QACpC,qBAAqB,EAAE,EAAE;QACzB,oBAAoB,EAAE,EAAE;KAC3B;IACD,UAAU,EAAE;QACR,eAAe,EAAE,IAAI,kDAAsB,EAAE;QAC7C,0BAA0B,EAAE,IAAI,yEAAiC,EAAE;KACtE;IACD,mBAAmB,EAAE;QACjB,eAAe,EAAE,SAAS;KAC7B;IACD,eAAe,EAAE;QACb,gBAAgB,EAAE,IAAI,uDAAwB,EAAE;QAChD,wBAAwB,EAAE,IAAI,wEAAgC,EAAE;QAChE,YAAY,EAAE,EAAE;QAChB,uBAAuB,EAAE,KAAK;QAC9B,MAAM,EAAE,EAAE;KACb;IACD,YAAY,EAAE;QACV,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,EAAE;QACjB,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,EAAE;QACjB,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,cAAc,EAAE,EAAE;QAClB,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,EAAE;QACjB,kBAAkB,EAAE,EAAE;QACtB,cAAc,EAAE,EAAE;QAClB,SAAS,EAAE,EAAE;QACb,cAAc,EAAE,EAAE;QAClB,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;KACX;IACD,OAAO,EAAE,EAAE;CACd,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ export * from './asset-naming-strategy/default-asset-naming-strategy';
|
|
|
3
3
|
export * from './asset-preview-strategy/asset-preview-strategy';
|
|
4
4
|
export * from './asset-storage-strategy/asset-storage-strategy';
|
|
5
5
|
export * from './auth/authentication-strategy';
|
|
6
|
+
export * from './auth/bcrypt-password-hashing-strategy';
|
|
7
|
+
export * from './auth/default-password-validation-strategy';
|
|
6
8
|
export * from './auth/native-authentication-strategy';
|
|
9
|
+
export * from './auth/password-hashing-strategy';
|
|
10
|
+
export * from './auth/password-validation-strategy';
|
|
7
11
|
export * from './catalog/collection-filter';
|
|
8
12
|
export * from './catalog/default-collection-filters';
|
|
9
13
|
export * from './catalog/product-variant-price-calculation-strategy';
|
package/dist/config/index.js
CHANGED
|
@@ -15,7 +15,11 @@ __exportStar(require("./asset-naming-strategy/default-asset-naming-strategy"), e
|
|
|
15
15
|
__exportStar(require("./asset-preview-strategy/asset-preview-strategy"), exports);
|
|
16
16
|
__exportStar(require("./asset-storage-strategy/asset-storage-strategy"), exports);
|
|
17
17
|
__exportStar(require("./auth/authentication-strategy"), exports);
|
|
18
|
+
__exportStar(require("./auth/bcrypt-password-hashing-strategy"), exports);
|
|
19
|
+
__exportStar(require("./auth/default-password-validation-strategy"), exports);
|
|
18
20
|
__exportStar(require("./auth/native-authentication-strategy"), exports);
|
|
21
|
+
__exportStar(require("./auth/password-hashing-strategy"), exports);
|
|
22
|
+
__exportStar(require("./auth/password-validation-strategy"), exports);
|
|
19
23
|
__exportStar(require("./catalog/collection-filter"), exports);
|
|
20
24
|
__exportStar(require("./catalog/default-collection-filters"), exports);
|
|
21
25
|
__exportStar(require("./catalog/product-variant-price-calculation-strategy"), exports);
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAA8D;AAC9D,wFAAsE;AACtE,kFAAgE;AAChE,kFAAgE;AAChE,iEAA+C;AAC/C,wEAAsD;AACtD,8DAA4C;AAC5C,uEAAqD;AACrD,uFAAqE;AACrE,kDAAgC;AAChC,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,kFAAgE;AAChE,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,iEAA+C;AAC/C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,iDAA+B;AAC/B,0EAAwD;AACxD,+DAA6C;AAC7C,kFAAgE;AAChE,wEAAsD;AACtD,4EAA0D;AAC1D,gEAA8C;AAC9C,8DAA4C;AAC5C,gFAA8D;AAC9D,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,+EAA6D;AAC7D,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,2EAAyD;AACzD,+EAA6D;AAC7D,mEAAiD;AACjD,8CAA4B;AAC5B,mFAAiE;AACjE,8EAA4D;AAC5D,yEAAuD;AACvD,gFAA8D;AAC9D,yFAAuE;AACvE,wEAAsD;AACtD,iFAA+D;AAC/D,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAA8D;AAC9D,wFAAsE;AACtE,kFAAgE;AAChE,kFAAgE;AAChE,iEAA+C;AAC/C,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,mEAAiD;AACjD,sEAAoD;AACpD,8DAA4C;AAC5C,uEAAqD;AACrD,uFAAqE;AACrE,kDAAgC;AAChC,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,kFAAgE;AAChE,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,iEAA+C;AAC/C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,iDAA+B;AAC/B,0EAAwD;AACxD,+DAA6C;AAC7C,kFAAgE;AAChE,wEAAsD;AACtD,4EAA0D;AAC1D,gEAA8C;AAC9C,8DAA4C;AAC5C,gFAA8D;AAC9D,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,+EAA6D;AAC7D,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,2EAAyD;AACzD,+EAA6D;AAC7D,mEAAiD;AACjD,8CAA4B;AAC5B,mFAAiE;AACjE,8EAA4D;AAC5D,yEAAuD;AACvD,gFAA8D;AAC9D,yFAAuE;AACvE,wEAAsD;AACtD,iFAA+D;AAC/D,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
|
|
@@ -3,10 +3,14 @@ export * from './promotion-condition';
|
|
|
3
3
|
export * from './actions/facet-values-percentage-discount-action';
|
|
4
4
|
export * from './actions/order-percentage-discount-action';
|
|
5
5
|
export * from './actions/product-percentage-discount-action';
|
|
6
|
+
export * from './actions/free-shipping-action';
|
|
7
|
+
export * from './actions/buy-x-get-y-free-action';
|
|
8
|
+
export * from './actions/order-fixed-discount-action';
|
|
6
9
|
export * from './conditions/has-facet-values-condition';
|
|
7
10
|
export * from './conditions/min-order-amount-condition';
|
|
8
11
|
export * from './conditions/contains-products-condition';
|
|
9
12
|
export * from './conditions/customer-group-condition';
|
|
13
|
+
export * from './conditions/buy-x-get-y-free-condition';
|
|
10
14
|
export * from './utils/facet-value-checker';
|
|
11
15
|
export declare const defaultPromotionActions: (import("./promotion-action").PromotionItemAction<{}, import("./promotion-condition").PromotionCondition<{
|
|
12
16
|
amountX: {
|
|
@@ -27,10 +27,14 @@ __exportStar(require("./promotion-condition"), exports);
|
|
|
27
27
|
__exportStar(require("./actions/facet-values-percentage-discount-action"), exports);
|
|
28
28
|
__exportStar(require("./actions/order-percentage-discount-action"), exports);
|
|
29
29
|
__exportStar(require("./actions/product-percentage-discount-action"), exports);
|
|
30
|
+
__exportStar(require("./actions/free-shipping-action"), exports);
|
|
31
|
+
__exportStar(require("./actions/buy-x-get-y-free-action"), exports);
|
|
32
|
+
__exportStar(require("./actions/order-fixed-discount-action"), exports);
|
|
30
33
|
__exportStar(require("./conditions/has-facet-values-condition"), exports);
|
|
31
34
|
__exportStar(require("./conditions/min-order-amount-condition"), exports);
|
|
32
35
|
__exportStar(require("./conditions/contains-products-condition"), exports);
|
|
33
36
|
__exportStar(require("./conditions/customer-group-condition"), exports);
|
|
37
|
+
__exportStar(require("./conditions/buy-x-get-y-free-condition"), exports);
|
|
34
38
|
__exportStar(require("./utils/facet-value-checker"), exports);
|
|
35
39
|
exports.defaultPromotionActions = [
|
|
36
40
|
order_fixed_discount_action_1.orderFixedDiscount,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/promotion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+EAAuE;AACvE,+GAA6F;AAC7F,yEAA8D;AAC9D,uFAA2E;AAC3E,iGAAqF;AACrF,qGAA0F;AAC1F,wFAAgF;AAChF,0FAA4E;AAC5E,oFAAsE;AACtE,wFAAyE;AACzE,wFAA6E;AAE7E,qDAAmC;AACnC,wDAAsC;AACtC,oFAAkE;AAClE,6EAA2D;AAC3D,+EAA6D;AAC7D,0EAAwD;AACxD,0EAAwD;AACxD,2EAAyD;AACzD,wEAAsD;AACtD,8DAA4C;AAE/B,QAAA,uBAAuB,GAAG;IACnC,gDAAkB;IAClB,0DAAuB;IACvB,kEAAwB;IACxB,+DAA0B;IAC1B,mCAAY;IACZ,4CAAkB;CACrB,CAAC;AACW,QAAA,0BAA0B,GAAG;IACtC,+CAAkB;IAClB,2CAAc;IACd,8CAAgB;IAChB,wCAAa;IACb,kDAAqB;CACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/promotion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+EAAuE;AACvE,+GAA6F;AAC7F,yEAA8D;AAC9D,uFAA2E;AAC3E,iGAAqF;AACrF,qGAA0F;AAC1F,wFAAgF;AAChF,0FAA4E;AAC5E,oFAAsE;AACtE,wFAAyE;AACzE,wFAA6E;AAE7E,qDAAmC;AACnC,wDAAsC;AACtC,oFAAkE;AAClE,6EAA2D;AAC3D,+EAA6D;AAC7D,iEAA+C;AAC/C,oEAAkD;AAClD,wEAAsD;AACtD,0EAAwD;AACxD,0EAAwD;AACxD,2EAAyD;AACzD,wEAAsD;AACtD,0EAAwD;AACxD,8DAA4C;AAE/B,QAAA,uBAAuB,GAAG;IACnC,gDAAkB;IAClB,0DAAuB;IACvB,kEAAwB;IACxB,+DAA0B;IAC1B,mCAAY;IACZ,4CAAkB;CACrB,CAAC;AACW,QAAA,0BAA0B,GAAG;IACtC,+CAAkB;IAClB,2CAAc;IACd,8CAAgB;IAChB,wCAAa;IACb,kDAAqB;CACxB,CAAC"}
|
|
@@ -12,6 +12,7 @@ import { AssetPreviewStrategy } from './asset-preview-strategy/asset-preview-str
|
|
|
12
12
|
import { AssetStorageStrategy } from './asset-storage-strategy/asset-storage-strategy';
|
|
13
13
|
import { AuthenticationStrategy } from './auth/authentication-strategy';
|
|
14
14
|
import { PasswordHashingStrategy } from './auth/password-hashing-strategy';
|
|
15
|
+
import { PasswordValidationStrategy } from './auth/password-validation-strategy';
|
|
15
16
|
import { CollectionFilter } from './catalog/collection-filter';
|
|
16
17
|
import { ProductVariantPriceCalculationStrategy } from './catalog/product-variant-price-calculation-strategy';
|
|
17
18
|
import { StockDisplayStrategy } from './catalog/stock-display-strategy';
|
|
@@ -173,6 +174,26 @@ export interface ApiOptions {
|
|
|
173
174
|
* @default []
|
|
174
175
|
*/
|
|
175
176
|
apolloServerPlugins?: PluginDefinition[];
|
|
177
|
+
/**
|
|
178
|
+
* @description
|
|
179
|
+
* Controls whether introspection of the GraphQL APIs is enabled. For production, it is recommended to disable
|
|
180
|
+
* introspection, since exposing your entire schema can allow an attacker to trivially learn all operations
|
|
181
|
+
* and much more easily find any potentially exploitable queries.
|
|
182
|
+
*
|
|
183
|
+
* **Note:** when introspection is disabled, tooling which relies on it for things like autocompletion
|
|
184
|
+
* will not work.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```TypeScript
|
|
188
|
+
* {
|
|
189
|
+
* introspection: process.env.NODE_ENV !== 'production'
|
|
190
|
+
* }
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
* @default true
|
|
194
|
+
* @since 1.5.0
|
|
195
|
+
*/
|
|
196
|
+
introspection?: boolean;
|
|
176
197
|
}
|
|
177
198
|
/**
|
|
178
199
|
* @description
|
|
@@ -385,6 +406,27 @@ export interface AuthOptions {
|
|
|
385
406
|
* @since 1.3.0
|
|
386
407
|
*/
|
|
387
408
|
passwordHashingStrategy?: PasswordHashingStrategy;
|
|
409
|
+
/**
|
|
410
|
+
* @description
|
|
411
|
+
* Allows you to set a custom policy for passwords when using the {@link NativeAuthenticationStrategy}.
|
|
412
|
+
* By default, it uses the {@link DefaultPasswordValidationStrategy}, which will impose a minimum length
|
|
413
|
+
* of four characters. To improve security for production, you are encouraged to specify a more strict
|
|
414
|
+
* policy, which you can do like this:
|
|
415
|
+
*
|
|
416
|
+
* @example
|
|
417
|
+
* ```ts
|
|
418
|
+
* {
|
|
419
|
+
* passwordValidationStrategy: new DefaultPasswordValidationStrategy({
|
|
420
|
+
* // Minimum eight characters, at least one letter and one number
|
|
421
|
+
* regexp: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,
|
|
422
|
+
* }),
|
|
423
|
+
* }
|
|
424
|
+
* ```
|
|
425
|
+
*
|
|
426
|
+
* @since 1.5.0
|
|
427
|
+
* @default DefaultPasswordValidationStrategy
|
|
428
|
+
*/
|
|
429
|
+
passwordValidationStrategy?: PasswordValidationStrategy;
|
|
388
430
|
}
|
|
389
431
|
/**
|
|
390
432
|
* @docsCategory orders
|
|
@@ -743,6 +785,17 @@ export interface JobQueueOptions {
|
|
|
743
785
|
* @default false
|
|
744
786
|
*/
|
|
745
787
|
enableWorkerHealthCheck?: boolean;
|
|
788
|
+
/**
|
|
789
|
+
* @description
|
|
790
|
+
* Prefixes all job queue names with the passed string. This is useful with multiple deployments
|
|
791
|
+
* in cloud environments using services such as Amazon SQS or Google Cloud Tasks.
|
|
792
|
+
*
|
|
793
|
+
* For example, we might have a staging and a production deployment in the same account/project and
|
|
794
|
+
* each one will need its own task queue. We can achieve this with a prefix.
|
|
795
|
+
*
|
|
796
|
+
* @since 1.5.0
|
|
797
|
+
*/
|
|
798
|
+
prefix?: string;
|
|
746
799
|
}
|
|
747
800
|
/**
|
|
748
801
|
* @description
|
|
@@ -3,5 +3,5 @@ import { ConnectionOptions } from 'typeorm';
|
|
|
3
3
|
export declare class ConnectionModule {
|
|
4
4
|
static forRoot(): DynamicModule;
|
|
5
5
|
static forPlugin(): DynamicModule;
|
|
6
|
-
static getTypeOrmLogger(dbConnectionOptions: ConnectionOptions):
|
|
6
|
+
static getTypeOrmLogger(dbConnectionOptions: ConnectionOptions): import("typeorm").Logger | "debug" | "advanced-console" | "simple-console" | "file";
|
|
7
7
|
}
|
|
@@ -13,8 +13,12 @@ export declare class TransactionWrapper {
|
|
|
13
13
|
* Executes the `work` function within the context of a transaction. If the `work` function
|
|
14
14
|
* resolves / completes, then all the DB operations it contains will be committed. If it
|
|
15
15
|
* throws an error or rejects, then all DB operations will be rolled back.
|
|
16
|
+
*
|
|
17
|
+
* @note
|
|
18
|
+
* This function does not mutate your context. Instead, this function makes a copy and passes
|
|
19
|
+
* context to work function.
|
|
16
20
|
*/
|
|
17
|
-
executeInTransaction<T>(
|
|
21
|
+
executeInTransaction<T>(originalCtx: RequestContext, work: (ctx: RequestContext) => Observable<T> | Promise<T>, mode: TransactionMode, connection: Connection): Promise<T>;
|
|
18
22
|
/**
|
|
19
23
|
* Attempts to start a DB transaction, with retry logic in the case that a transaction
|
|
20
24
|
* is already started for the connection (which is mainly a problem with SQLite/Sql.js)
|
|
@@ -16,14 +16,20 @@ class TransactionWrapper {
|
|
|
16
16
|
* Executes the `work` function within the context of a transaction. If the `work` function
|
|
17
17
|
* resolves / completes, then all the DB operations it contains will be committed. If it
|
|
18
18
|
* throws an error or rejects, then all DB operations will be rolled back.
|
|
19
|
+
*
|
|
20
|
+
* @note
|
|
21
|
+
* This function does not mutate your context. Instead, this function makes a copy and passes
|
|
22
|
+
* context to work function.
|
|
19
23
|
*/
|
|
20
|
-
async executeInTransaction(
|
|
24
|
+
async executeInTransaction(originalCtx, work, mode, connection) {
|
|
25
|
+
// Copy to make sure original context will remain valid after transaction completes
|
|
26
|
+
const ctx = originalCtx.copy();
|
|
21
27
|
const queryRunnerExists = !!ctx[constants_1.TRANSACTION_MANAGER_KEY];
|
|
22
28
|
if (queryRunnerExists) {
|
|
23
29
|
// If a QueryRunner already exists on the RequestContext, there must be an existing
|
|
24
30
|
// outer transaction in progress. In that case, we just execute the work function
|
|
25
31
|
// as usual without needing to further wrap in a transaction.
|
|
26
|
-
return rxjs_1.from(work()).toPromise();
|
|
32
|
+
return rxjs_1.from(work(ctx)).toPromise();
|
|
27
33
|
}
|
|
28
34
|
const queryRunner = connection.createQueryRunner();
|
|
29
35
|
if (mode === 'auto') {
|
|
@@ -32,7 +38,7 @@ class TransactionWrapper {
|
|
|
32
38
|
ctx[constants_1.TRANSACTION_MANAGER_KEY] = queryRunner.manager;
|
|
33
39
|
try {
|
|
34
40
|
const maxRetries = 5;
|
|
35
|
-
const result = await rxjs_1.from(work())
|
|
41
|
+
const result = await rxjs_1.from(work(ctx))
|
|
36
42
|
.pipe(operators_1.retryWhen(errors => errors.pipe(operators_1.tap(err => {
|
|
37
43
|
if (!this.isRetriableError(err)) {
|
|
38
44
|
throw err;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-wrapper.js","sourceRoot":"","sources":["../../src/connection/transaction-wrapper.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAC5C,8CAAsD;AAEtD,iGAA8F;AAI9F,mDAA8D;AAE9D;;;;GAIG;AACH,MAAa,kBAAkB;IAC3B
|
|
1
|
+
{"version":3,"file":"transaction-wrapper.js","sourceRoot":"","sources":["../../src/connection/transaction-wrapper.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAC5C,8CAAsD;AAEtD,iGAA8F;AAI9F,mDAA8D;AAE9D;;;;GAIG;AACH,MAAa,kBAAkB;IAC3B;;;;;;;;;OASG;IACH,KAAK,CAAC,oBAAoB,CACtB,WAA2B,EAC3B,IAAyD,EACzD,IAAqB,EACrB,UAAsB;QAEtB,mFAAmF;QACnF,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;QAE/B,MAAM,iBAAiB,GAAG,CAAC,CAAE,GAAW,CAAC,mCAAuB,CAAC,CAAC;QAClE,IAAI,iBAAiB,EAAE;YACnB,mFAAmF;YACnF,iFAAiF;YACjF,6DAA6D;YAC7D,OAAO,WAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;SACtC;QACD,MAAM,WAAW,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;QACnD,IAAI,IAAI,KAAK,MAAM,EAAE;YACjB,MAAM,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;SAC5C;QACA,GAAW,CAAC,mCAAuB,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC;QAE5D,IAAI;YACA,MAAM,UAAU,GAAG,CAAC,CAAC;YACrB,MAAM,MAAM,GAAG,MAAM,WAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBAC/B,IAAI,CACD,qBAAS,CAAC,MAAM,CAAC,EAAE,CACf,MAAM,CAAC,IAAI,CACP,eAAG,CAAC,GAAG,CAAC,EAAE;gBACN,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE;oBAC7B,MAAM,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,CAAC,CAAC,CAAC;SACpE;QACD,MAAM,SAAS,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACK,gBAAgB,CAAC,GAAQ;QAC7B,MAAM,aAAa,GAAG,GAAG,CAAC,IAAI,KAAK,kBAAkB,CAAC;QACtD,MAAM,gBAAgB,GAAG,GAAG,CAAC,IAAI,KAAK,mBAAmB,CAAC;QAC1D,OAAO,aAAa,IAAI,gBAAgB,CAAC;IAC7C,CAAC;CACJ;AA9GD,gDA8GC"}
|
|
@@ -58,16 +58,20 @@ export declare class TransactionalConnection {
|
|
|
58
58
|
* of Vendure internal services.
|
|
59
59
|
*
|
|
60
60
|
* If there is already a {@link RequestContext} object available, you should pass it in as the first
|
|
61
|
-
* argument in order to
|
|
61
|
+
* argument in order to create transactional context as the copy. If not, omit the first argument and an empty
|
|
62
62
|
* RequestContext object will be created, which is then used to propagate the transaction to
|
|
63
63
|
* all inner method calls.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```TypeScript
|
|
67
|
-
* private async transferCredit(fromId: ID, toId: ID, amount: number) {
|
|
68
|
-
* await this.connection.withTransaction(ctx => {
|
|
67
|
+
* private async transferCredit(outerCtx: RequestContext, fromId: ID, toId: ID, amount: number) {
|
|
68
|
+
* await this.connection.withTransaction(outerCtx, ctx => {
|
|
69
69
|
* await this.giftCardService.updateCustomerCredit(fromId, -amount);
|
|
70
70
|
*
|
|
71
|
+
* // Note you must not use outerCtx here, instead use ctx. Otherwise this query
|
|
72
|
+
* // will be executed outside of transaction
|
|
73
|
+
* await this.connection.getRepository(ctx, GiftCard).update(fromId, { transferred: true })
|
|
74
|
+
*
|
|
71
75
|
* // If some intermediate logic here throws an Error,
|
|
72
76
|
* // then all DB transactions will be rolled back and neither Customer's
|
|
73
77
|
* // credit balance will have changed.
|
|
@@ -58,10 +58,10 @@ let TransactionalConnection = class TransactionalConnection {
|
|
|
58
58
|
return this.connection;
|
|
59
59
|
}
|
|
60
60
|
getRepository(ctxOrTarget, maybeTarget) {
|
|
61
|
-
var _a;
|
|
62
61
|
if (ctxOrTarget instanceof request_context_1.RequestContext) {
|
|
63
62
|
const transactionManager = this.getTransactionManager(ctxOrTarget);
|
|
64
|
-
if (transactionManager
|
|
63
|
+
if (transactionManager) {
|
|
64
|
+
// tslint:disable-next-line:no-non-null-assertion
|
|
65
65
|
return transactionManager.getRepository(maybeTarget);
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
@@ -86,7 +86,7 @@ let TransactionalConnection = class TransactionalConnection {
|
|
|
86
86
|
ctx = request_context_1.RequestContext.empty();
|
|
87
87
|
work = ctxOrWork;
|
|
88
88
|
}
|
|
89
|
-
return this.transactionWrapper.executeInTransaction(ctx,
|
|
89
|
+
return this.transactionWrapper.executeInTransaction(ctx, work, 'auto', this.rawConnection);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* @description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional-connection.js","sourceRoot":"","sources":["../../src/connection/transactional-connection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AAEnD,qCASiB;AAEjB,mEAA+D;AAC/D,mDAA8D;AAC9D,mDAA6D;AAI7D,+DAA2D;AAG3D;;;;;;;;;;;GAWG;AAEH,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAChC,YACgC,UAAsB,EAC1C,kBAAsC;QADlB,eAAU,GAAV,UAAU,CAAY;QAC1C,uBAAkB,GAAlB,kBAAkB,CAAoB;IAC/C,CAAC;IAEJ;;;;;OAKG;IACH,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAmBD,aAAa,CACT,WAA4F,EAC5F,WAAgE
|
|
1
|
+
{"version":3,"file":"transactional-connection.js","sourceRoot":"","sources":["../../src/connection/transactional-connection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6C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I,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACxE,0BAAgB,CAAC,8CAA8C,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC7E,IAAI,OAAO,CAAC,kBAAkB,KAAK,KAAK,EAAE;YACtC,iDAAiD;YACjD,0BAAgB,CAAC,kBAAkB,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,SAAU,CAAC,QAAQ,CAAC,CAAC;SAC3F;QACD,OAAO,EAAE;aACJ,QAAQ,CAAC,iBAAiB,EAAE,SAAS,CAAC;aACtC,QAAQ,CAAC,wBAAwB,EAAE,EAAE,GAAG,EAAE,CAAC;aAC3C,QAAQ,CAAC,yBAAyB,EAAE,EAAE,SAAS,EAAE,CAAC;aAClD,OAAO,EAAE,CAAC;IACnB,CAAC;IAEO,qBAAqB,CAAC,GAAmB;QAC7C,OAAQ,GAAW,CAAC,mCAAuB,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAjRY,uBAAuB;IADnC,mBAAU,EAAE;IAGJ,WAAA,0BAAgB,EAAE,CAAA;qCAAqB,oBAAU;QACtB,wCAAkB;GAHzC,uBAAuB,CAiRnC;AAjRY,0DAAuB"}
|
|
@@ -24,7 +24,7 @@ DataImportModule = __decorate([
|
|
|
24
24
|
// Important! PluginModule must be defined before ServiceModule
|
|
25
25
|
// in order that overrides of Services (e.g. SearchService) are correctly
|
|
26
26
|
// registered with the injector.
|
|
27
|
-
imports: [plugin_module_1.PluginModule.forRoot(), service_module_1.ServiceModule, connection_module_1.ConnectionModule.
|
|
27
|
+
imports: [plugin_module_1.PluginModule.forRoot(), service_module_1.ServiceModule, connection_module_1.ConnectionModule.forPlugin(), config_module_1.ConfigModule],
|
|
28
28
|
exports: [import_parser_1.ImportParser, importer_1.Importer, populator_1.Populator, fast_importer_service_1.FastImporterService, asset_importer_1.AssetImporter],
|
|
29
29
|
providers: [import_parser_1.ImportParser, importer_1.Importer, populator_1.Populator, fast_importer_service_1.FastImporterService, asset_importer_1.AssetImporter],
|
|
30
30
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-import.module.js","sourceRoot":"","sources":["../../src/data-import/data-import.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,2DAAuD;AACvD,uEAAmE;AACnE,2DAAuD;AACvD,8DAA0D;AAE1D,8EAA0E;AAC1E,2EAAuE;AACvE,sFAAiF;AACjF,4DAAyD;AACzD,+DAA4D;AAU5D,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAAG,CAAA;AAAnB,gBAAgB;IAR5B,eAAM,CAAC;QACJ,+DAA+D;QAC/D,yEAAyE;QACzE,gCAAgC;QAChC,OAAO,EAAE,CAAC,4BAAY,CAAC,OAAO,EAAE,EAAE,8BAAa,EAAE,oCAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"data-import.module.js","sourceRoot":"","sources":["../../src/data-import/data-import.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,2DAAuD;AACvD,uEAAmE;AACnE,2DAAuD;AACvD,8DAA0D;AAE1D,8EAA0E;AAC1E,2EAAuE;AACvE,sFAAiF;AACjF,4DAAyD;AACzD,+DAA4D;AAU5D,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAAG,CAAA;AAAnB,gBAAgB;IAR5B,eAAM,CAAC;QACJ,+DAA+D;QAC/D,yEAAyE;QACzE,gCAAgC;QAChC,OAAO,EAAE,CAAC,4BAAY,CAAC,OAAO,EAAE,EAAE,8BAAa,EAAE,oCAAgB,CAAC,SAAS,EAAE,EAAE,4BAAY,CAAC;QAC5F,OAAO,EAAE,CAAC,4BAAY,EAAE,mBAAQ,EAAE,qBAAS,EAAE,2CAAmB,EAAE,8BAAa,CAAC;QAChF,SAAS,EAAE,CAAC,4BAAY,EAAE,mBAAQ,EAAE,qBAAS,EAAE,2CAAmB,EAAE,8BAAa,CAAC;KACrF,CAAC;GACW,gBAAgB,CAAG;AAAnB,4CAAgB"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './providers/populator/populator';
|
|
2
2
|
export * from './providers/importer/importer';
|
|
3
|
+
export * from './providers/importer/fast-importer.service';
|
|
4
|
+
export * from './providers/asset-importer/asset-importer';
|
|
5
|
+
export * from './providers/import-parser/import-parser';
|
|
3
6
|
export * from './types';
|
|
@@ -12,5 +12,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./providers/populator/populator"), exports);
|
|
14
14
|
__exportStar(require("./providers/importer/importer"), exports);
|
|
15
|
+
__exportStar(require("./providers/importer/fast-importer.service"), exports);
|
|
16
|
+
__exportStar(require("./providers/asset-importer/asset-importer"), exports);
|
|
17
|
+
__exportStar(require("./providers/import-parser/import-parser"), exports);
|
|
15
18
|
__exportStar(require("./types"), exports);
|
|
16
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-import/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-import/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,6EAA2D;AAC3D,4EAA0D;AAC1D,0EAAwD;AACxD,0CAAwB"}
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
+
import { RequestContext } from '../../../api/index';
|
|
1
2
|
import { ConfigService } from '../../../config/config.service';
|
|
2
3
|
import { Asset } from '../../../entity/asset/asset.entity';
|
|
3
4
|
import { AssetService } from '../../../service/services/asset.service';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This service creates new {@link Asset} entities based on string paths provided in the CSV
|
|
8
|
+
* import format. The source files are resolved by joining the value of `importExportOptions.importAssetsDir`
|
|
9
|
+
* with the asset path. This service is used internally by the {@link Importer} service.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory import-export
|
|
12
|
+
*/
|
|
4
13
|
export declare class AssetImporter {
|
|
5
14
|
private configService;
|
|
6
15
|
private assetService;
|
|
7
16
|
private assetMap;
|
|
17
|
+
/** @internal */
|
|
8
18
|
constructor(configService: ConfigService, assetService: AssetService);
|
|
9
19
|
/**
|
|
20
|
+
* @description
|
|
10
21
|
* Creates Asset entities for the given paths, using the assetMap cache to prevent the
|
|
11
22
|
* creation of duplicates.
|
|
12
23
|
*/
|
|
13
|
-
getAssets(assetPaths: string[]): Promise<{
|
|
24
|
+
getAssets(assetPaths: string[], ctx?: RequestContext): Promise<{
|
|
14
25
|
assets: Asset[];
|
|
15
26
|
errors: string[];
|
|
16
27
|
}>;
|
|
@@ -18,17 +18,27 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
|
18
18
|
const path_1 = __importDefault(require("path"));
|
|
19
19
|
const config_service_1 = require("../../../config/config.service");
|
|
20
20
|
const asset_service_1 = require("../../../service/services/asset.service");
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* This service creates new {@link Asset} entities based on string paths provided in the CSV
|
|
24
|
+
* import format. The source files are resolved by joining the value of `importExportOptions.importAssetsDir`
|
|
25
|
+
* with the asset path. This service is used internally by the {@link Importer} service.
|
|
26
|
+
*
|
|
27
|
+
* @docsCategory import-export
|
|
28
|
+
*/
|
|
21
29
|
let AssetImporter = class AssetImporter {
|
|
30
|
+
/** @internal */
|
|
22
31
|
constructor(configService, assetService) {
|
|
23
32
|
this.configService = configService;
|
|
24
33
|
this.assetService = assetService;
|
|
25
34
|
this.assetMap = new Map();
|
|
26
35
|
}
|
|
27
36
|
/**
|
|
37
|
+
* @description
|
|
28
38
|
* Creates Asset entities for the given paths, using the assetMap cache to prevent the
|
|
29
39
|
* creation of duplicates.
|
|
30
40
|
*/
|
|
31
|
-
async getAssets(assetPaths) {
|
|
41
|
+
async getAssets(assetPaths, ctx) {
|
|
32
42
|
const assets = [];
|
|
33
43
|
const errors = [];
|
|
34
44
|
const { importAssetsDir } = this.configService.importExportOptions;
|
|
@@ -45,7 +55,7 @@ let AssetImporter = class AssetImporter {
|
|
|
45
55
|
if (fileStat.isFile()) {
|
|
46
56
|
try {
|
|
47
57
|
const stream = fs_extra_1.default.createReadStream(filename);
|
|
48
|
-
const asset = (await this.assetService.createFromFileStream(stream));
|
|
58
|
+
const asset = (await this.assetService.createFromFileStream(stream, ctx));
|
|
49
59
|
this.assetMap.set(assetPath, asset);
|
|
50
60
|
assets.push(asset);
|
|
51
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/asset-importer/asset-importer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,wDAA0B;AAC1B,gDAAwB;
|
|
1
|
+
{"version":3,"file":"asset-importer.js","sourceRoot":"","sources":["../../../../src/data-import/providers/asset-importer/asset-importer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,wDAA0B;AAC1B,gDAAwB;AAGxB,mEAA+D;AAE/D,2EAAuE;AAEvE;;;;;;;GAOG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAa;IAGtB,gBAAgB;IAChB,YAAoB,aAA4B,EAAU,YAA0B;QAAhE,kBAAa,GAAb,aAAa,CAAe;QAAU,iBAAY,GAAZ,YAAY,CAAc;QAH5E,aAAQ,GAAG,IAAI,GAAG,EAAiB,CAAC;IAG2C,CAAC;IAExF;;;;OAIG;IACH,KAAK,CAAC,SAAS,CACX,UAAoB,EACpB,GAAoB;QAEpB,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,EAAE,eA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,EAAE;qCAK0B,8BAAa,EAAwB,4BAAY;GAJ3E,aAAa,CAgDzB;AAhDY,sCAAa"}
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
import { GlobalFlag, LanguageCode } from '@vendure/common/lib/generated-types';
|
|
3
3
|
import { Stream } from 'stream';
|
|
4
4
|
import { ConfigService } from '../../../config/config.service';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* The intermediate representation of an OptionGroup after it has been parsed
|
|
8
|
+
* by the {@link ImportParser}.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory import-export
|
|
11
|
+
* @docsPage ImportParser
|
|
12
|
+
*/
|
|
5
13
|
export interface ParsedOptionGroup {
|
|
6
14
|
translations: Array<{
|
|
7
15
|
languageCode: LanguageCode;
|
|
@@ -9,6 +17,14 @@ export interface ParsedOptionGroup {
|
|
|
9
17
|
values: string[];
|
|
10
18
|
}>;
|
|
11
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @description
|
|
22
|
+
* The intermediate representation of a Facet after it has been parsed
|
|
23
|
+
* by the {@link ImportParser}.
|
|
24
|
+
*
|
|
25
|
+
* @docsCategory import-export
|
|
26
|
+
* @docsPage ImportParser
|
|
27
|
+
*/
|
|
12
28
|
export interface ParsedFacet {
|
|
13
29
|
translations: Array<{
|
|
14
30
|
languageCode: LanguageCode;
|
|
@@ -16,6 +32,14 @@ export interface ParsedFacet {
|
|
|
16
32
|
value: string;
|
|
17
33
|
}>;
|
|
18
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @description
|
|
37
|
+
* The intermediate representation of a ProductVariant after it has been parsed
|
|
38
|
+
* by the {@link ImportParser}.
|
|
39
|
+
*
|
|
40
|
+
* @docsCategory import-export
|
|
41
|
+
* @docsPage ImportParser
|
|
42
|
+
*/
|
|
19
43
|
export interface ParsedProductVariant {
|
|
20
44
|
sku: string;
|
|
21
45
|
price: number;
|
|
@@ -32,6 +56,14 @@ export interface ParsedProductVariant {
|
|
|
32
56
|
};
|
|
33
57
|
}>;
|
|
34
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @description
|
|
61
|
+
* The intermediate representation of a Product after it has been parsed
|
|
62
|
+
* by the {@link ImportParser}.
|
|
63
|
+
*
|
|
64
|
+
* @docsCategory import-export
|
|
65
|
+
* @docsPage ImportParser
|
|
66
|
+
*/
|
|
35
67
|
export interface ParsedProduct {
|
|
36
68
|
assetPaths: string[];
|
|
37
69
|
optionGroups: ParsedOptionGroup[];
|
|
@@ -46,21 +78,48 @@ export interface ParsedProduct {
|
|
|
46
78
|
};
|
|
47
79
|
}>;
|
|
48
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @description
|
|
83
|
+
* The data structure into which an import CSV file is parsed by the
|
|
84
|
+
* {@link ImportParser} `parseProducts()` method.
|
|
85
|
+
*
|
|
86
|
+
* @docsCategory import-export
|
|
87
|
+
* @docsPage ImportParser
|
|
88
|
+
*/
|
|
49
89
|
export interface ParsedProductWithVariants {
|
|
50
90
|
product: ParsedProduct;
|
|
51
91
|
variants: ParsedProductVariant[];
|
|
52
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* @description
|
|
95
|
+
* The result returned by the {@link ImportParser} `parseProducts()` method.
|
|
96
|
+
*
|
|
97
|
+
* @docsCategory import-export
|
|
98
|
+
* @docsPage ImportParser
|
|
99
|
+
*/
|
|
53
100
|
export interface ParseResult<T> {
|
|
54
101
|
results: T[];
|
|
55
102
|
errors: string[];
|
|
56
103
|
processed: number;
|
|
57
104
|
}
|
|
58
105
|
/**
|
|
106
|
+
* @description
|
|
59
107
|
* Validates and parses CSV files into a data structure which can then be used to created new entities.
|
|
108
|
+
* This is used internally by the {@link Importer}.
|
|
109
|
+
*
|
|
110
|
+
* @docsCategory import-export
|
|
111
|
+
* @docsPage ImportParser
|
|
112
|
+
* @docsWeight 0
|
|
60
113
|
*/
|
|
61
114
|
export declare class ImportParser {
|
|
62
115
|
private configService;
|
|
116
|
+
/** @internal */
|
|
63
117
|
constructor(configService: ConfigService);
|
|
118
|
+
/**
|
|
119
|
+
* @description
|
|
120
|
+
* Parses the contents of the [product import CSV file](/docs/developer-guide/importing-product-data/#product-import-format) and
|
|
121
|
+
* returns a data structure which can then be used to populate Vendure using the {@link FastImporterService}.
|
|
122
|
+
*/
|
|
64
123
|
parseProducts(input: string | Stream, mainLanguage?: LanguageCode): Promise<ParseResult<ParsedProductWithVariants>>;
|
|
65
124
|
private processRawRecords;
|
|
66
125
|
private validateCustomFields;
|
|
@@ -44,12 +44,24 @@ const requiredColumns = [
|
|
|
44
44
|
'variantFacets',
|
|
45
45
|
];
|
|
46
46
|
/**
|
|
47
|
+
* @description
|
|
47
48
|
* Validates and parses CSV files into a data structure which can then be used to created new entities.
|
|
49
|
+
* This is used internally by the {@link Importer}.
|
|
50
|
+
*
|
|
51
|
+
* @docsCategory import-export
|
|
52
|
+
* @docsPage ImportParser
|
|
53
|
+
* @docsWeight 0
|
|
48
54
|
*/
|
|
49
55
|
let ImportParser = class ImportParser {
|
|
56
|
+
/** @internal */
|
|
50
57
|
constructor(configService) {
|
|
51
58
|
this.configService = configService;
|
|
52
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* @description
|
|
62
|
+
* Parses the contents of the [product import CSV file](/docs/developer-guide/importing-product-data/#product-import-format) and
|
|
63
|
+
* returns a data structure which can then be used to populate Vendure using the {@link FastImporterService}.
|
|
64
|
+
*/
|
|
53
65
|
async parseProducts(input, mainLanguage = this.configService.defaultLanguageCode) {
|
|
54
66
|
const options = {
|
|
55
67
|
trim: true,
|