@vendure/core 1.7.0 → 1.7.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/dist/api/config/generate-permissions.js +1 -1
- package/dist/api/decorators/allow.decorator.d.ts +11 -0
- package/dist/api/decorators/allow.decorator.js +11 -0
- package/dist/api/decorators/allow.decorator.js.map +1 -1
- package/dist/api/resolvers/admin/customer.resolver.d.ts +3 -1
- package/dist/api/resolvers/admin/customer.resolver.js +13 -2
- package/dist/api/resolvers/admin/customer.resolver.js.map +1 -1
- package/dist/api/resolvers/base/base-auth.resolver.d.ts +2 -2
- package/dist/api/resolvers/base/base-auth.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-order.resolver.js +3 -11
- package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
- package/dist/api/schema/common/order.type.graphql +1 -0
- package/dist/connection/remove-custom-fields-with-eager-relations.d.ts +34 -0
- package/dist/connection/remove-custom-fields-with-eager-relations.js +55 -0
- package/dist/connection/remove-custom-fields-with-eager-relations.js.map +1 -0
- package/dist/connection/transactional-connection.d.ts +0 -33
- package/dist/connection/transactional-connection.js +21 -53
- package/dist/connection/transactional-connection.js.map +1 -1
- package/dist/plugin/default-search-plugin/fulltext-search.service.js +3 -0
- package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +13 -8
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +8 -8
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +4 -6
- package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +7 -10
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
- package/dist/service/services/collection.service.js +3 -0
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/customer-group.service.js +1 -0
- package/dist/service/services/customer-group.service.js.map +1 -1
- package/dist/service/services/customer.service.d.ts +9 -0
- package/dist/service/services/customer.service.js +31 -0
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/order.service.js +1 -1
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/product-variant.service.js +1 -12
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/product.service.js +3 -1
- package/dist/service/services/product.service.js.map +1 -1
- package/dist/service/services/user.service.d.ts +1 -1
- package/dist/service/services/user.service.js +5 -0
- package/dist/service/services/user.service.js.map +1 -1
- package/package.json +3 -3
- package/cli/api/common/extract-session-token.d.ts +0 -3
- package/cli/api/common/extract-session-token.js +0 -35
- package/cli/api/common/extract-session-token.js.map +0 -1
- package/cli/api/common/get-api-type.d.ts +0 -3
- package/cli/api/common/get-api-type.js +0 -12
- package/cli/api/common/get-api-type.js.map +0 -1
- package/cli/api/common/graphql-value-transformer.d.ts +0 -30
- package/cli/api/common/graphql-value-transformer.js +0 -199
- package/cli/api/common/graphql-value-transformer.js.map +0 -1
- package/cli/api/common/id-codec.d.ts +0 -11
- package/cli/api/common/id-codec.js +0 -94
- package/cli/api/common/id-codec.js.map +0 -1
- package/cli/api/common/id-codec.service.d.ts +0 -7
- package/cli/api/common/id-codec.service.js +0 -33
- package/cli/api/common/id-codec.service.js.map +0 -1
- package/cli/api/common/parse-context.d.ts +0 -16
- package/cli/api/common/parse-context.js +0 -39
- package/cli/api/common/parse-context.js.map +0 -1
- package/cli/api/common/request-context.d.ts +0 -55
- package/cli/api/common/request-context.js +0 -143
- package/cli/api/common/request-context.js.map +0 -1
- package/cli/api/common/set-session-token.d.ts +0 -9
- package/cli/api/common/set-session-token.js +0 -27
- package/cli/api/common/set-session-token.js.map +0 -1
- package/cli/api/decorators/allow.decorator.d.ts +0 -3
- package/cli/api/decorators/allow.decorator.js +0 -8
- package/cli/api/decorators/allow.decorator.js.map +0 -1
- package/cli/api/decorators/api.decorator.d.ts +0 -1
- package/cli/api/decorators/api.decorator.js +0 -10
- package/cli/api/decorators/api.decorator.js.map +0 -1
- package/cli/api/decorators/request-context.decorator.d.ts +0 -1
- package/cli/api/decorators/request-context.decorator.js +0 -14
- package/cli/api/decorators/request-context.decorator.js.map +0 -1
- package/cli/api/decorators/transaction.decorator.d.ts +0 -3
- package/cli/api/decorators/transaction.decorator.js +0 -11
- package/cli/api/decorators/transaction.decorator.js.map +0 -1
- package/cli/api/index.d.ts +0 -11
- package/cli/api/index.js +0 -23
- package/cli/api/index.js.map +0 -1
- package/cli/api/middleware/auth-guard.d.ts +0 -21
- package/cli/api/middleware/auth-guard.js +0 -151
- package/cli/api/middleware/auth-guard.js.map +0 -1
- package/cli/api/middleware/exception-logger.filter.d.ts +0 -6
- package/cli/api/middleware/exception-logger.filter.js +0 -82
- package/cli/api/middleware/exception-logger.filter.js.map +0 -1
- package/cli/api/middleware/id-interceptor.d.ts +0 -12
- package/cli/api/middleware/id-interceptor.js +0 -56
- package/cli/api/middleware/id-interceptor.js.map +0 -1
- package/cli/api/middleware/transaction-interceptor.d.ts +0 -12
- package/cli/api/middleware/transaction-interceptor.js +0 -46
- package/cli/api/middleware/transaction-interceptor.js.map +0 -1
- package/cli/api/resolvers/admin/search.resolver.d.ts +0 -17
- package/cli/api/resolvers/admin/search.resolver.js +0 -81
- package/cli/api/resolvers/admin/search.resolver.js.map +0 -1
- package/cli/cache/index.d.ts +0 -1
- package/cli/cache/index.js +0 -14
- package/cli/cache/index.js.map +0 -1
- package/cli/cache/request-context-cache.service.d.ts +0 -9
- package/cli/cache/request-context-cache.service.js +0 -39
- package/cli/cache/request-context-cache.service.js.map +0 -1
- package/cli/cli/cli-utils.d.ts +0 -1
- package/cli/cli/cli-utils.js +0 -8
- package/cli/cli/cli-utils.js.map +0 -1
- package/cli/cli/index.d.ts +0 -1
- package/cli/cli/index.js +0 -14
- package/cli/cli/index.js.map +0 -1
- package/cli/cli/populate.d.ts +0 -5
- package/cli/cli/populate.js +0 -106
- package/cli/cli/populate.js.map +0 -1
- package/cli/cli/vendure-cli.d.ts +0 -2
- package/cli/cli/vendure-cli.js +0 -119
- package/cli/cli/vendure-cli.js.map +0 -1
- package/cli/common/async-queue.d.ts +0 -17
- package/cli/common/async-queue.js +0 -56
- package/cli/common/async-queue.js.map +0 -1
- package/cli/common/calculated-decorator.d.ts +0 -12
- package/cli/common/calculated-decorator.js +0 -22
- package/cli/common/calculated-decorator.js.map +0 -1
- package/cli/common/configurable-operation.d.ts +0 -53
- package/cli/common/configurable-operation.js +0 -96
- package/cli/common/configurable-operation.js.map +0 -1
- package/cli/common/constants.d.ts +0 -7
- package/cli/common/constants.js +0 -66
- package/cli/common/constants.js.map +0 -1
- package/cli/common/error/error-result.d.ts +0 -8
- package/cli/common/error/error-result.js +0 -11
- package/cli/common/error/error-result.js.map +0 -1
- package/cli/common/error/errors.d.ts +0 -31
- package/cli/common/error/errors.js +0 -48
- package/cli/common/error/errors.js.map +0 -1
- package/cli/common/error/generated-graphql-admin-errors.d.ts +0 -309
- package/cli/common/error/generated-graphql-admin-errors.js +0 -446
- package/cli/common/error/generated-graphql-admin-errors.js.map +0 -1
- package/cli/common/error/generated-graphql-shop-errors.d.ts +0 -254
- package/cli/common/error/generated-graphql-shop-errors.js +0 -370
- package/cli/common/error/generated-graphql-shop-errors.js.map +0 -1
- package/cli/common/finite-state-machine/finite-state-machine.d.ts +0 -14
- package/cli/common/finite-state-machine/finite-state-machine.js +0 -55
- package/cli/common/finite-state-machine/finite-state-machine.js.map +0 -1
- package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +0 -2
- package/cli/common/finite-state-machine/merge-transition-definitions.js +0 -27
- package/cli/common/finite-state-machine/merge-transition-definitions.js.map +0 -1
- package/cli/common/finite-state-machine/types.d.ts +0 -16
- package/cli/common/finite-state-machine/types.js +0 -3
- package/cli/common/finite-state-machine/types.js.map +0 -1
- package/cli/common/finite-state-machine/validate-transition-definition.d.ts +0 -5
- package/cli/common/finite-state-machine/validate-transition-definition.js +0 -41
- package/cli/common/finite-state-machine/validate-transition-definition.js.map +0 -1
- package/cli/common/generate-public-id.d.ts +0 -1
- package/cli/common/generate-public-id.js +0 -10
- package/cli/common/generate-public-id.js.map +0 -1
- package/cli/common/index.d.ts +0 -15
- package/cli/common/index.js +0 -28
- package/cli/common/index.js.map +0 -1
- package/cli/common/injector.d.ts +0 -8
- package/cli/common/injector.js +0 -16
- package/cli/common/injector.js.map +0 -1
- package/cli/common/permission-definition.d.ts +0 -23
- package/cli/common/permission-definition.js +0 -53
- package/cli/common/permission-definition.js.map +0 -1
- package/cli/common/self-refreshing-cache.d.ts +0 -15
- package/cli/common/self-refreshing-cache.js +0 -56
- package/cli/common/self-refreshing-cache.js.map +0 -1
- package/cli/common/tax-utils.d.ts +0 -4
- package/cli/common/tax-utils.js +0 -20
- package/cli/common/tax-utils.js.map +0 -1
- package/cli/common/ttl-cache.d.ts +0 -13
- package/cli/common/ttl-cache.js +0 -48
- package/cli/common/ttl-cache.js.map +0 -1
- package/cli/common/types/adjustment-source.d.ts +0 -14
- package/cli/common/types/adjustment-source.js +0 -18
- package/cli/common/types/adjustment-source.js.map +0 -1
- package/cli/common/types/common-types.d.ts +0 -97
- package/cli/common/types/common-types.js +0 -3
- package/cli/common/types/common-types.js.map +0 -1
- package/cli/common/types/entity-relation-paths.d.ts +0 -16
- package/cli/common/types/entity-relation-paths.js +0 -3
- package/cli/common/types/entity-relation-paths.js.map +0 -1
- package/cli/common/types/injectable-strategy.d.ts +0 -5
- package/cli/common/types/injectable-strategy.js +0 -3
- package/cli/common/types/injectable-strategy.js.map +0 -1
- package/cli/common/types/locale-types.d.ts +0 -43
- package/cli/common/types/locale-types.js +0 -3
- package/cli/common/types/locale-types.js.map +0 -1
- package/cli/common/utils.d.ts +0 -11
- package/cli/common/utils.js +0 -66
- package/cli/common/utils.js.map +0 -1
- package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +0 -6
- package/cli/config/asset-naming-strategy/asset-naming-strategy.js +0 -3
- package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +0 -1
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +0 -11
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +0 -55
- package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +0 -1
- package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -6
- package/cli/config/asset-preview-strategy/asset-preview-strategy.js +0 -3
- package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +0 -1
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -6
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +0 -11
- package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +0 -1
- package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -13
- package/cli/config/asset-storage-strategy/asset-storage-strategy.js +0 -3
- package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +0 -1
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -13
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +0 -30
- package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +0 -1
- package/cli/config/auth/authentication-strategy.d.ts +0 -10
- package/cli/config/auth/authentication-strategy.js +0 -3
- package/cli/config/auth/authentication-strategy.js.map +0 -1
- package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +0 -7
- package/cli/config/auth/bcrypt-password-hashing-strategy.js +0 -21
- package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +0 -1
- package/cli/config/auth/default-password-validation-strategy.d.ts +0 -10
- package/cli/config/auth/default-password-validation-strategy.js +0 -24
- package/cli/config/auth/default-password-validation-strategy.js.map +0 -1
- package/cli/config/auth/native-authentication-strategy.d.ts +0 -21
- package/cli/config/auth/native-authentication-strategy.js +0 -87
- package/cli/config/auth/native-authentication-strategy.js.map +0 -1
- package/cli/config/auth/password-hashing-strategy.d.ts +0 -5
- package/cli/config/auth/password-hashing-strategy.js +0 -3
- package/cli/config/auth/password-hashing-strategy.js.map +0 -1
- package/cli/config/auth/password-validation-strategy.d.ts +0 -5
- package/cli/config/auth/password-validation-strategy.js +0 -3
- package/cli/config/auth/password-validation-strategy.js.map +0 -1
- package/cli/config/catalog/collection-filter.d.ts +0 -13
- package/cli/config/catalog/collection-filter.js +0 -15
- package/cli/config/catalog/collection-filter.js.map +0 -1
- package/cli/config/catalog/default-collection-filters.d.ts +0 -52
- package/cli/config/catalog/default-collection-filters.js +0 -112
- package/cli/config/catalog/default-collection-filters.js.map +0 -1
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +0 -8
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +0 -31
- package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +0 -1
- package/cli/config/catalog/default-stock-display-strategy.d.ts +0 -8
- package/cli/config/catalog/default-stock-display-strategy.js +0 -17
- package/cli/config/catalog/default-stock-display-strategy.js.map +0 -1
- package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +0 -13
- package/cli/config/catalog/product-variant-price-calculation-strategy.js +0 -3
- package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +0 -1
- package/cli/config/catalog/stock-display-strategy.d.ts +0 -6
- package/cli/config/catalog/stock-display-strategy.js +0 -3
- package/cli/config/catalog/stock-display-strategy.js.map +0 -1
- package/cli/config/config-helpers.d.ts +0 -3
- package/cli/config/config-helpers.js +0 -15
- package/cli/config/config-helpers.js.map +0 -1
- package/cli/config/config.module.d.ts +0 -16
- package/cli/config/config.module.js +0 -120
- package/cli/config/config.module.js.map +0 -1
- package/cli/config/config.service.d.ts +0 -30
- package/cli/config/config.service.js +0 -86
- package/cli/config/config.service.js.map +0 -1
- package/cli/config/custom-field/custom-field-types.d.ts +0 -65
- package/cli/config/custom-field/custom-field-types.js +0 -3
- package/cli/config/custom-field/custom-field-types.js.map +0 -1
- package/cli/config/default-config.d.ts +0 -2
- package/cli/config/default-config.js +0 -174
- package/cli/config/default-config.js.map +0 -1
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +0 -6
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +0 -17
- package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +0 -1
- package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +0 -7
- package/cli/config/entity-id-strategy/entity-id-strategy.js +0 -3
- package/cli/config/entity-id-strategy/entity-id-strategy.js.map +0 -1
- package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +0 -6
- package/cli/config/entity-id-strategy/uuid-id-strategy.js +0 -16
- package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +0 -1
- package/cli/config/fulfillment/custom-fulfillment-process.d.ts +0 -9
- package/cli/config/fulfillment/custom-fulfillment-process.js +0 -3
- package/cli/config/fulfillment/custom-fulfillment-process.js.map +0 -1
- package/cli/config/fulfillment/fulfillment-handler.d.ts +0 -21
- package/cli/config/fulfillment/fulfillment-handler.js +0 -23
- package/cli/config/fulfillment/fulfillment-handler.js.map +0 -1
- package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +0 -11
- package/cli/config/fulfillment/manual-fulfillment-handler.js +0 -26
- package/cli/config/fulfillment/manual-fulfillment-handler.js.map +0 -1
- package/cli/config/index.d.ts +0 -61
- package/cli/config/index.js +0 -74
- package/cli/config/index.js.map +0 -1
- package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +0 -12
- package/cli/config/job-queue/inspectable-job-queue-strategy.js +0 -11
- package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +0 -1
- package/cli/config/job-queue/job-queue-strategy.d.ts +0 -8
- package/cli/config/job-queue/job-queue-strategy.js +0 -3
- package/cli/config/job-queue/job-queue-strategy.js.map +0 -1
- package/cli/config/logger/default-logger.d.ts +0 -24
- package/cli/config/logger/default-logger.js +0 -90
- package/cli/config/logger/default-logger.js.map +0 -1
- package/cli/config/logger/noop-logger.d.ts +0 -8
- package/cli/config/logger/noop-logger.js +0 -17
- package/cli/config/logger/noop-logger.js.map +0 -1
- package/cli/config/logger/typeorm-logger.d.ts +0 -15
- package/cli/config/logger/typeorm-logger.js +0 -74
- package/cli/config/logger/typeorm-logger.js.map +0 -1
- package/cli/config/logger/vendure-logger.d.ts +0 -32
- package/cli/config/logger/vendure-logger.js +0 -68
- package/cli/config/logger/vendure-logger.js.map +0 -1
- package/cli/config/merge-config.d.ts +0 -2
- package/cli/config/merge-config.js +0 -34
- package/cli/config/merge-config.js.map +0 -1
- package/cli/config/order/changed-price-handling-strategy.d.ts +0 -7
- package/cli/config/order/changed-price-handling-strategy.js +0 -3
- package/cli/config/order/changed-price-handling-strategy.js.map +0 -1
- package/cli/config/order/custom-order-process.d.ts +0 -9
- package/cli/config/order/custom-order-process.js +0 -3
- package/cli/config/order/custom-order-process.js.map +0 -1
- package/cli/config/order/default-changed-price-handling-strategy.d.ts +0 -6
- package/cli/config/order/default-changed-price-handling-strategy.js +0 -10
- package/cli/config/order/default-changed-price-handling-strategy.js.map +0 -1
- package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +0 -7
- package/cli/config/order/default-order-item-price-calculation-strategy.js +0 -13
- package/cli/config/order/default-order-item-price-calculation-strategy.js.map +0 -1
- package/cli/config/order/default-order-placed-strategy.d.ts +0 -7
- package/cli/config/order/default-order-placed-strategy.js +0 -13
- package/cli/config/order/default-order-placed-strategy.js.map +0 -1
- package/cli/config/order/default-stock-allocation-strategy.d.ts +0 -7
- package/cli/config/order/default-stock-allocation-strategy.js +0 -11
- package/cli/config/order/default-stock-allocation-strategy.js.map +0 -1
- package/cli/config/order/merge-orders-strategy.d.ts +0 -7
- package/cli/config/order/merge-orders-strategy.js +0 -29
- package/cli/config/order/merge-orders-strategy.js.map +0 -1
- package/cli/config/order/order-by-code-access-strategy.d.ts +0 -11
- package/cli/config/order/order-by-code-access-strategy.js +0 -25
- package/cli/config/order/order-by-code-access-strategy.js.map +0 -1
- package/cli/config/order/order-code-strategy.d.ts +0 -8
- package/cli/config/order/order-code-strategy.js +0 -11
- package/cli/config/order/order-code-strategy.js.map +0 -1
- package/cli/config/order/order-item-price-calculation-strategy.d.ts +0 -9
- package/cli/config/order/order-item-price-calculation-strategy.js +0 -3
- package/cli/config/order/order-item-price-calculation-strategy.js.map +0 -1
- package/cli/config/order/order-merge-strategy.d.ts +0 -14
- package/cli/config/order/order-merge-strategy.js +0 -12
- package/cli/config/order/order-merge-strategy.js.map +0 -1
- package/cli/config/order/order-placed-strategy.d.ts +0 -7
- package/cli/config/order/order-placed-strategy.js +0 -3
- package/cli/config/order/order-placed-strategy.js.map +0 -1
- package/cli/config/order/stock-allocation-strategy.d.ts +0 -7
- package/cli/config/order/stock-allocation-strategy.js +0 -3
- package/cli/config/order/stock-allocation-strategy.js.map +0 -1
- package/cli/config/order/use-existing-strategy.d.ts +0 -6
- package/cli/config/order/use-existing-strategy.js +0 -11
- package/cli/config/order/use-existing-strategy.js.map +0 -1
- package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +0 -6
- package/cli/config/order/use-guest-if-existing-empty-strategy.js +0 -13
- package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +0 -1
- package/cli/config/order/use-guest-strategy.d.ts +0 -6
- package/cli/config/order/use-guest-strategy.js +0 -11
- package/cli/config/order/use-guest-strategy.js.map +0 -1
- package/cli/config/payment/custom-payment-process.d.ts +0 -9
- package/cli/config/payment/custom-payment-process.js +0 -3
- package/cli/config/payment/custom-payment-process.js.map +0 -1
- package/cli/config/payment/dummy-payment-method-handler.d.ts +0 -17
- package/cli/config/payment/dummy-payment-method-handler.js +0 -74
- package/cli/config/payment/dummy-payment-method-handler.js.map +0 -1
- package/cli/config/payment/example-payment-method-handler.d.ts +0 -11
- package/cli/config/payment/example-payment-method-handler.js +0 -59
- package/cli/config/payment/example-payment-method-handler.js.map +0 -1
- package/cli/config/payment/payment-method-eligibility-checker.d.ts +0 -13
- package/cli/config/payment/payment-method-eligibility-checker.js +0 -15
- package/cli/config/payment/payment-method-eligibility-checker.js.map +0 -1
- package/cli/config/payment/payment-method-handler.d.ts +0 -73
- package/cli/config/payment/payment-method-handler.js +0 -36
- package/cli/config/payment/payment-method-handler.js.map +0 -1
- package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +0 -37
- package/cli/config/promotion/actions/buy-x-get-y-free-action.js +0 -30
- package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +0 -1
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +0 -17
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +0 -39
- package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +0 -1
- package/cli/config/promotion/actions/free-shipping-action.d.ts +0 -2
- package/cli/config/promotion/actions/free-shipping-action.js +0 -14
- package/cli/config/promotion/actions/free-shipping-action.js.map +0 -1
- package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +0 -9
- package/cli/config/promotion/actions/order-fixed-discount-action.js +0 -21
- package/cli/config/promotion/actions/order-fixed-discount-action.js.map +0 -1
- package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +0 -10
- package/cli/config/promotion/actions/order-percentage-discount-action.js +0 -23
- package/cli/config/promotion/actions/order-percentage-discount-action.js.map +0 -1
- package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +0 -22
- package/cli/config/promotion/actions/product-percentage-discount-action.js +0 -36
- package/cli/config/promotion/actions/product-percentage-discount-action.js.map +0 -1
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +0 -37
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +0 -71
- package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +0 -1
- package/cli/config/promotion/conditions/contains-products-condition.d.ts +0 -19
- package/cli/config/promotion/conditions/contains-products-condition.js +0 -38
- package/cli/config/promotion/conditions/contains-products-condition.js.map +0 -1
- package/cli/config/promotion/conditions/customer-group-condition.d.ts +0 -14
- package/cli/config/promotion/conditions/customer-group-condition.js +0 -72
- package/cli/config/promotion/conditions/customer-group-condition.js.map +0 -1
- package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +0 -14
- package/cli/config/promotion/conditions/has-facet-values-condition.js +0 -31
- package/cli/config/promotion/conditions/has-facet-values-condition.js.map +0 -1
- package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +0 -14
- package/cli/config/promotion/conditions/min-order-amount-condition.js +0 -27
- package/cli/config/promotion/conditions/min-order-amount-condition.js.map +0 -1
- package/cli/config/promotion/index.d.ts +0 -170
- package/cli/config/promotion/index.js +0 -50
- package/cli/config/promotion/index.js.map +0 -1
- package/cli/config/promotion/promotion-action.d.ts +0 -56
- package/cli/config/promotion/promotion-action.js +0 -49
- package/cli/config/promotion/promotion-action.js.map +0 -1
- package/cli/config/promotion/promotion-condition.d.ts +0 -19
- package/cli/config/promotion/promotion-condition.js +0 -19
- package/cli/config/promotion/promotion-condition.js.map +0 -1
- package/cli/config/promotion/utils/facet-value-checker.d.ts +0 -9
- package/cli/config/promotion/utils/facet-value-checker.js +0 -31
- package/cli/config/promotion/utils/facet-value-checker.js.map +0 -1
- package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +0 -11
- package/cli/config/session-cache/in-memory-session-cache-strategy.js +0 -44
- package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +0 -1
- package/cli/config/session-cache/noop-session-cache-strategy.d.ts +0 -7
- package/cli/config/session-cache/noop-session-cache-strategy.js +0 -19
- package/cli/config/session-cache/noop-session-cache-strategy.js.map +0 -1
- package/cli/config/session-cache/session-cache-strategy.d.ts +0 -25
- package/cli/config/session-cache/session-cache-strategy.js +0 -3
- package/cli/config/session-cache/session-cache-strategy.js.map +0 -1
- package/cli/config/shipping-method/default-shipping-calculator.d.ts +0 -51
- package/cli/config/shipping-method/default-shipping-calculator.js +0 -69
- package/cli/config/shipping-method/default-shipping-calculator.js.map +0 -1
- package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +0 -19
- package/cli/config/shipping-method/default-shipping-eligibility-checker.js +0 -27
- package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +0 -1
- package/cli/config/shipping-method/shipping-calculator.d.ts +0 -20
- package/cli/config/shipping-method/shipping-calculator.js +0 -15
- package/cli/config/shipping-method/shipping-calculator.js.map +0 -1
- package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +0 -19
- package/cli/config/shipping-method/shipping-eligibility-checker.js +0 -38
- package/cli/config/shipping-method/shipping-eligibility-checker.js.map +0 -1
- package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +0 -5
- package/cli/config/tax/default-tax-line-calculation-strategy.js +0 -11
- package/cli/config/tax/default-tax-line-calculation-strategy.js.map +0 -1
- package/cli/config/tax/default-tax-zone-strategy.d.ts +0 -6
- package/cli/config/tax/default-tax-zone-strategy.js +0 -10
- package/cli/config/tax/default-tax-zone-strategy.js.map +0 -1
- package/cli/config/tax/tax-line-calculation-strategy.d.ts +0 -17
- package/cli/config/tax/tax-line-calculation-strategy.js +0 -3
- package/cli/config/tax/tax-line-calculation-strategy.js.map +0 -1
- package/cli/config/tax/tax-zone-strategy.d.ts +0 -6
- package/cli/config/tax/tax-zone-strategy.js +0 -3
- package/cli/config/tax/tax-zone-strategy.js.map +0 -1
- package/cli/config/vendure-config.d.ts +0 -192
- package/cli/config/vendure-config.js +0 -3
- package/cli/config/vendure-config.js.map +0 -1
- package/cli/connection/connection.module.d.ts +0 -7
- package/cli/connection/connection.module.js +0 -61
- package/cli/connection/connection.module.js.map +0 -1
- package/cli/connection/transaction-subscriber.d.ts +0 -19
- package/cli/connection/transaction-subscriber.js +0 -54
- package/cli/connection/transaction-subscriber.js.map +0 -1
- package/cli/connection/transaction-wrapper.d.ts +0 -9
- package/cli/connection/transaction-wrapper.js +0 -79
- package/cli/connection/transaction-wrapper.js.map +0 -1
- package/cli/connection/transactional-connection.d.ts +0 -25
- package/cli/connection/transactional-connection.js +0 -170
- package/cli/connection/transactional-connection.js.map +0 -1
- package/cli/connection/types.d.ts +0 -8
- package/cli/connection/types.js +0 -3
- package/cli/connection/types.js.map +0 -1
- package/cli/entity/address/address.entity.d.ts +0 -22
- package/cli/entity/address/address.entity.js +0 -80
- package/cli/entity/address/address.entity.js.map +0 -1
- package/cli/entity/administrator/administrator.entity.d.ts +0 -15
- package/cli/entity/administrator/administrator.entity.js +0 -52
- package/cli/entity/administrator/administrator.entity.js.map +0 -1
- package/cli/entity/asset/asset.entity.d.ts +0 -26
- package/cli/entity/asset/asset.entity.js +0 -79
- package/cli/entity/asset/asset.entity.js.map +0 -1
- package/cli/entity/asset/orderable-asset.entity.d.ts +0 -10
- package/cli/entity/asset/orderable-asset.entity.js +0 -34
- package/cli/entity/asset/orderable-asset.entity.js.map +0 -1
- package/cli/entity/authentication-method/authentication-method.entity.d.ts +0 -5
- package/cli/entity/authentication-method/authentication-method.entity.js +0 -27
- package/cli/entity/authentication-method/authentication-method.entity.js.map +0 -1
- package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +0 -8
- package/cli/entity/authentication-method/external-authentication-method.entity.js +0 -37
- package/cli/entity/authentication-method/external-authentication-method.entity.js.map +0 -1
- package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +0 -11
- package/cli/entity/authentication-method/native-authentication-method.entity.js +0 -49
- package/cli/entity/authentication-method/native-authentication-method.entity.js.map +0 -1
- package/cli/entity/base/base.entity.d.ts +0 -7
- package/cli/entity/base/base.entity.js +0 -37
- package/cli/entity/base/base.entity.js.map +0 -1
- package/cli/entity/channel/channel.entity.d.ts +0 -17
- package/cli/entity/channel/channel.entity.js +0 -67
- package/cli/entity/channel/channel.entity.js.map +0 -1
- package/cli/entity/collection/collection-asset.entity.d.ts +0 -8
- package/cli/entity/collection/collection-asset.entity.js +0 -34
- package/cli/entity/collection/collection-asset.entity.js.map +0 -1
- package/cli/entity/collection/collection-translation.entity.d.ts +0 -16
- package/cli/entity/collection/collection-translation.entity.js +0 -52
- package/cli/entity/collection/collection-translation.entity.js.map +0 -1
- package/cli/entity/collection/collection.entity.d.ts +0 -29
- package/cli/entity/collection/collection.entity.js +0 -81
- package/cli/entity/collection/collection.entity.js.map +0 -1
- package/cli/entity/country/country-translation.entity.d.ts +0 -14
- package/cli/entity/country/country-translation.entity.js +0 -44
- package/cli/entity/country/country-translation.entity.js.map +0 -1
- package/cli/entity/country/country.entity.d.ts +0 -13
- package/cli/entity/country/country.entity.js +0 -43
- package/cli/entity/country/country.entity.js.map +0 -1
- package/cli/entity/custom-entity-fields.d.ts +0 -68
- package/cli/entity/custom-entity-fields.js +0 -106
- package/cli/entity/custom-entity-fields.js.map +0 -1
- package/cli/entity/customer/customer.entity.d.ts +0 -25
- package/cli/entity/customer/customer.entity.js +0 -82
- package/cli/entity/customer/customer.entity.js.map +0 -1
- package/cli/entity/customer-group/customer-group.entity.d.ts +0 -11
- package/cli/entity/customer-group/customer-group.entity.js +0 -39
- package/cli/entity/customer-group/customer-group.entity.js.map +0 -1
- package/cli/entity/entities.d.ts +0 -124
- package/cli/entity/entities.js +0 -128
- package/cli/entity/entities.js.map +0 -1
- package/cli/entity/entity-id.decorator.d.ts +0 -18
- package/cli/entity/entity-id.decorator.js +0 -40
- package/cli/entity/entity-id.decorator.js.map +0 -1
- package/cli/entity/facet/facet-translation.entity.d.ts +0 -14
- package/cli/entity/facet/facet-translation.entity.js +0 -44
- package/cli/entity/facet/facet-translation.entity.js.map +0 -1
- package/cli/entity/facet/facet.entity.d.ts +0 -18
- package/cli/entity/facet/facet.entity.js +0 -54
- package/cli/entity/facet/facet.entity.js.map +0 -1
- package/cli/entity/facet-value/facet-value-translation.entity.d.ts +0 -13
- package/cli/entity/facet-value/facet-value-translation.entity.js +0 -44
- package/cli/entity/facet-value/facet-value-translation.entity.js.map +0 -1
- package/cli/entity/facet-value/facet-value.entity.d.ts +0 -17
- package/cli/entity/facet-value/facet-value.entity.js +0 -50
- package/cli/entity/facet-value/facet-value.entity.js.map +0 -1
- package/cli/entity/fulfillment/fulfillment.entity.d.ts +0 -15
- package/cli/entity/fulfillment/fulfillment.entity.js +0 -51
- package/cli/entity/fulfillment/fulfillment.entity.js.map +0 -1
- package/cli/entity/global-settings/global-settings.entity.d.ts +0 -12
- package/cli/entity/global-settings/global-settings.entity.js +0 -42
- package/cli/entity/global-settings/global-settings.entity.js.map +0 -1
- package/cli/entity/history-entry/customer-history-entry.entity.d.ts +0 -7
- package/cli/entity/history-entry/customer-history-entry.entity.js +0 -30
- package/cli/entity/history-entry/customer-history-entry.entity.js.map +0 -1
- package/cli/entity/history-entry/history-entry.entity.d.ts +0 -9
- package/cli/entity/history-entry/history-entry.entity.js +0 -40
- package/cli/entity/history-entry/history-entry.entity.js.map +0 -1
- package/cli/entity/history-entry/order-history-entry.entity.d.ts +0 -7
- package/cli/entity/history-entry/order-history-entry.entity.js +0 -30
- package/cli/entity/history-entry/order-history-entry.entity.js.map +0 -1
- package/cli/entity/index.d.ts +0 -52
- package/cli/entity/index.js +0 -65
- package/cli/entity/index.js.map +0 -1
- package/cli/entity/order/order.entity.d.ts +0 -48
- package/cli/entity/order/order.entity.js +0 -277
- package/cli/entity/order/order.entity.js.map +0 -1
- package/cli/entity/order-item/order-item.entity.d.ts +0 -35
- package/cli/entity/order-item/order-item.entity.js +0 -182
- package/cli/entity/order-item/order-item.entity.js.map +0 -1
- package/cli/entity/order-line/order-line.entity.d.ts +0 -44
- package/cli/entity/order-line/order-line.entity.js +0 -275
- package/cli/entity/order-line/order-line.entity.js.map +0 -1
- package/cli/entity/order-modification/order-modification.entity.d.ts +0 -21
- package/cli/entity/order-modification/order-modification.entity.js +0 -81
- package/cli/entity/order-modification/order-modification.entity.js.map +0 -1
- package/cli/entity/payment/payment.entity.d.ts +0 -17
- package/cli/entity/payment/payment.entity.js +0 -59
- package/cli/entity/payment/payment.entity.js.map +0 -1
- package/cli/entity/payment-method/payment-method.entity.d.ts +0 -18
- package/cli/entity/payment-method/payment-method.entity.js +0 -60
- package/cli/entity/payment-method/payment-method.entity.js.map +0 -1
- package/cli/entity/product/product-asset.entity.d.ts +0 -8
- package/cli/entity/product/product-asset.entity.js +0 -34
- package/cli/entity/product/product-asset.entity.js.map +0 -1
- package/cli/entity/product/product-translation.entity.d.ts +0 -16
- package/cli/entity/product/product-translation.entity.js +0 -52
- package/cli/entity/product/product-translation.entity.js.map +0 -1
- package/cli/entity/product/product.entity.d.ts +0 -28
- package/cli/entity/product/product.entity.js +0 -75
- package/cli/entity/product/product.entity.js.map +0 -1
- package/cli/entity/product-option/product-option-translation.entity.d.ts +0 -14
- package/cli/entity/product-option/product-option-translation.entity.js +0 -44
- package/cli/entity/product-option/product-option-translation.entity.js.map +0 -1
- package/cli/entity/product-option/product-option.entity.d.ts +0 -17
- package/cli/entity/product-option/product-option.entity.js +0 -53
- package/cli/entity/product-option/product-option.entity.js.map +0 -1
- package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +0 -14
- package/cli/entity/product-option-group/product-option-group-translation.entity.js +0 -44
- package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +0 -1
- package/cli/entity/product-option-group/product-option-group.entity.d.ts +0 -18
- package/cli/entity/product-option-group/product-option-group.entity.js +0 -53
- package/cli/entity/product-option-group/product-option-group.entity.js.map +0 -1
- package/cli/entity/product-variant/product-variant-asset.entity.d.ts +0 -8
- package/cli/entity/product-variant/product-variant-asset.entity.js +0 -34
- package/cli/entity/product-variant/product-variant-asset.entity.js.map +0 -1
- package/cli/entity/product-variant/product-variant-price.entity.d.ts +0 -9
- package/cli/entity/product-variant/product-variant-price.entity.js +0 -39
- package/cli/entity/product-variant/product-variant-price.entity.js.map +0 -1
- package/cli/entity/product-variant/product-variant-translation.entity.d.ts +0 -14
- package/cli/entity/product-variant/product-variant-translation.entity.js +0 -44
- package/cli/entity/product-variant/product-variant-translation.entity.js.map +0 -1
- package/cli/entity/product-variant/product-variant.entity.d.ts +0 -49
- package/cli/entity/product-variant/product-variant.entity.js +0 -155
- package/cli/entity/product-variant/product-variant.entity.js.map +0 -1
- package/cli/entity/promotion/promotion.entity.d.ts +0 -56
- package/cli/entity/promotion/promotion.entity.js +0 -157
- package/cli/entity/promotion/promotion.entity.js.map +0 -1
- package/cli/entity/refund/refund.entity.d.ts +0 -21
- package/cli/entity/refund/refund.entity.js +0 -78
- package/cli/entity/refund/refund.entity.js.map +0 -1
- package/cli/entity/role/role.entity.d.ts +0 -12
- package/cli/entity/role/role.entity.js +0 -43
- package/cli/entity/role/role.entity.js.map +0 -1
- package/cli/entity/session/anonymous-session.entity.d.ts +0 -5
- package/cli/entity/session/anonymous-session.entity.js +0 -25
- package/cli/entity/session/anonymous-session.entity.js.map +0 -1
- package/cli/entity/session/authenticated-session.entity.d.ts +0 -8
- package/cli/entity/session/authenticated-session.entity.js +0 -34
- package/cli/entity/session/authenticated-session.entity.js.map +0 -1
- package/cli/entity/session/session.entity.d.ts +0 -13
- package/cli/entity/session/session.entity.js +0 -54
- package/cli/entity/session/session.entity.js.map +0 -1
- package/cli/entity/shipping-line/shipping-line.entity.d.ts +0 -24
- package/cli/entity/shipping-line/shipping-line.entity.js +0 -128
- package/cli/entity/shipping-line/shipping-line.entity.js.map +0 -1
- package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +0 -16
- package/cli/entity/shipping-method/shipping-method-translation.entity.js +0 -48
- package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +0 -1
- package/cli/entity/shipping-method/shipping-method.entity.d.ts +0 -28
- package/cli/entity/shipping-method/shipping-method.entity.js +0 -92
- package/cli/entity/shipping-method/shipping-method.entity.js.map +0 -1
- package/cli/entity/stock-movement/allocation.entity.d.ts +0 -9
- package/cli/entity/stock-movement/allocation.entity.js +0 -32
- package/cli/entity/stock-movement/allocation.entity.js.map +0 -1
- package/cli/entity/stock-movement/cancellation.entity.d.ts +0 -9
- package/cli/entity/stock-movement/cancellation.entity.js +0 -32
- package/cli/entity/stock-movement/cancellation.entity.js.map +0 -1
- package/cli/entity/stock-movement/release.entity.d.ts +0 -9
- package/cli/entity/stock-movement/release.entity.js +0 -32
- package/cli/entity/stock-movement/release.entity.js.map +0 -1
- package/cli/entity/stock-movement/sale.entity.d.ts +0 -9
- package/cli/entity/stock-movement/sale.entity.js +0 -32
- package/cli/entity/stock-movement/sale.entity.js.map +0 -1
- package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +0 -7
- package/cli/entity/stock-movement/stock-adjustment.entity.js +0 -27
- package/cli/entity/stock-movement/stock-adjustment.entity.js.map +0 -1
- package/cli/entity/stock-movement/stock-movement.entity.d.ts +0 -8
- package/cli/entity/stock-movement/stock-movement.entity.js +0 -36
- package/cli/entity/stock-movement/stock-movement.entity.js.map +0 -1
- package/cli/entity/surcharge/surcharge.entity.d.ts +0 -18
- package/cli/entity/surcharge/surcharge.entity.js +0 -82
- package/cli/entity/surcharge/surcharge.entity.js.map +0 -1
- package/cli/entity/tag/tag.entity.d.ts +0 -6
- package/cli/entity/tag/tag.entity.js +0 -29
- package/cli/entity/tag/tag.entity.js.map +0 -1
- package/cli/entity/tax-category/tax-category.entity.d.ts +0 -10
- package/cli/entity/tax-category/tax-category.entity.js +0 -38
- package/cli/entity/tax-category/tax-category.entity.js.map +0 -1
- package/cli/entity/tax-rate/tax-rate.entity.d.ts +0 -24
- package/cli/entity/tax-rate/tax-rate.entity.js +0 -81
- package/cli/entity/tax-rate/tax-rate.entity.js.map +0 -1
- package/cli/entity/user/user.entity.d.ts +0 -19
- package/cli/entity/user/user.entity.js +0 -69
- package/cli/entity/user/user.entity.js.map +0 -1
- package/cli/entity/value-transformers.d.ts +0 -5
- package/cli/entity/value-transformers.js +0 -13
- package/cli/entity/value-transformers.js.map +0 -1
- package/cli/entity/zone/zone.entity.d.ts +0 -11
- package/cli/entity/zone/zone.entity.js +0 -40
- package/cli/entity/zone/zone.entity.js.map +0 -1
- package/cli/event-bus/event-bus.d.ts +0 -15
- package/cli/event-bus/event-bus.js +0 -51
- package/cli/event-bus/event-bus.js.map +0 -1
- package/cli/event-bus/event-bus.module.d.ts +0 -2
- package/cli/event-bus/event-bus.module.js +0 -23
- package/cli/event-bus/event-bus.module.js.map +0 -1
- package/cli/event-bus/events/account-registration-event.d.ts +0 -8
- package/cli/event-bus/events/account-registration-event.js +0 -13
- package/cli/event-bus/events/account-registration-event.js.map +0 -1
- package/cli/event-bus/events/account-verified-event.d.ts +0 -8
- package/cli/event-bus/events/account-verified-event.js +0 -13
- package/cli/event-bus/events/account-verified-event.js.map +0 -1
- package/cli/event-bus/events/administrator-event.d.ts +0 -10
- package/cli/event-bus/events/administrator-event.js +0 -11
- package/cli/event-bus/events/administrator-event.js.map +0 -1
- package/cli/event-bus/events/asset-channel-event.d.ts +0 -11
- package/cli/event-bus/events/asset-channel-event.js +0 -15
- package/cli/event-bus/events/asset-channel-event.js.map +0 -1
- package/cli/event-bus/events/asset-event.d.ts +0 -11
- package/cli/event-bus/events/asset-event.js +0 -14
- package/cli/event-bus/events/asset-event.js.map +0 -1
- package/cli/event-bus/events/attempted-login-event.d.ts +0 -8
- package/cli/event-bus/events/attempted-login-event.js +0 -14
- package/cli/event-bus/events/attempted-login-event.js.map +0 -1
- package/cli/event-bus/events/change-channel-event.d.ts +0 -13
- package/cli/event-bus/events/change-channel-event.js +0 -16
- package/cli/event-bus/events/change-channel-event.js.map +0 -1
- package/cli/event-bus/events/channel-event.d.ts +0 -10
- package/cli/event-bus/events/channel-event.js +0 -11
- package/cli/event-bus/events/channel-event.js.map +0 -1
- package/cli/event-bus/events/collection-event.d.ts +0 -10
- package/cli/event-bus/events/collection-event.js +0 -11
- package/cli/event-bus/events/collection-event.js.map +0 -1
- package/cli/event-bus/events/collection-modification-event.d.ts +0 -10
- package/cli/event-bus/events/collection-modification-event.js +0 -14
- package/cli/event-bus/events/collection-modification-event.js.map +0 -1
- package/cli/event-bus/events/country-event.d.ts +0 -10
- package/cli/event-bus/events/country-event.js +0 -11
- package/cli/event-bus/events/country-event.js.map +0 -1
- package/cli/event-bus/events/coupon-code-event.d.ts +0 -10
- package/cli/event-bus/events/coupon-code-event.js +0 -15
- package/cli/event-bus/events/coupon-code-event.js.map +0 -1
- package/cli/event-bus/events/customer-address-event.d.ts +0 -15
- package/cli/event-bus/events/customer-address-event.js +0 -18
- package/cli/event-bus/events/customer-address-event.js.map +0 -1
- package/cli/event-bus/events/customer-event.d.ts +0 -13
- package/cli/event-bus/events/customer-event.js +0 -14
- package/cli/event-bus/events/customer-event.js.map +0 -1
- package/cli/event-bus/events/customer-group-entity-event.d.ts +0 -10
- package/cli/event-bus/events/customer-group-entity-event.js +0 -11
- package/cli/event-bus/events/customer-group-entity-event.js.map +0 -1
- package/cli/event-bus/events/customer-group-event.d.ts +0 -18
- package/cli/event-bus/events/customer-group-event.js +0 -25
- package/cli/event-bus/events/customer-group-event.js.map +0 -1
- package/cli/event-bus/events/facet-event.d.ts +0 -10
- package/cli/event-bus/events/facet-event.js +0 -11
- package/cli/event-bus/events/facet-event.js.map +0 -1
- package/cli/event-bus/events/facet-value-event.d.ts +0 -10
- package/cli/event-bus/events/facet-value-event.js +0 -11
- package/cli/event-bus/events/facet-value-event.js.map +0 -1
- package/cli/event-bus/events/fulfillment-event.d.ts +0 -14
- package/cli/event-bus/events/fulfillment-event.js +0 -11
- package/cli/event-bus/events/fulfillment-event.js.map +0 -1
- package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +0 -11
- package/cli/event-bus/events/fulfillment-state-transition-event.js +0 -15
- package/cli/event-bus/events/fulfillment-state-transition-event.js.map +0 -1
- package/cli/event-bus/events/global-settings-event.d.ts +0 -7
- package/cli/event-bus/events/global-settings-event.js +0 -11
- package/cli/event-bus/events/global-settings-event.js.map +0 -1
- package/cli/event-bus/events/history-entry-event.d.ts +0 -14
- package/cli/event-bus/events/history-entry-event.js +0 -12
- package/cli/event-bus/events/history-entry-event.js.map +0 -1
- package/cli/event-bus/events/identifier-change-event.d.ts +0 -9
- package/cli/event-bus/events/identifier-change-event.js +0 -14
- package/cli/event-bus/events/identifier-change-event.js.map +0 -1
- package/cli/event-bus/events/identifier-change-request-event.d.ts +0 -8
- package/cli/event-bus/events/identifier-change-request-event.js +0 -13
- package/cli/event-bus/events/identifier-change-request-event.js.map +0 -1
- package/cli/event-bus/events/login-event.d.ts +0 -8
- package/cli/event-bus/events/login-event.js +0 -13
- package/cli/event-bus/events/login-event.js.map +0 -1
- package/cli/event-bus/events/logout-event.d.ts +0 -6
- package/cli/event-bus/events/logout-event.js +0 -12
- package/cli/event-bus/events/logout-event.js.map +0 -1
- package/cli/event-bus/events/order-event.d.ts +0 -9
- package/cli/event-bus/events/order-event.js +0 -14
- package/cli/event-bus/events/order-event.js.map +0 -1
- package/cli/event-bus/events/order-line-event.d.ts +0 -10
- package/cli/event-bus/events/order-line-event.js +0 -15
- package/cli/event-bus/events/order-line-event.js.map +0 -1
- package/cli/event-bus/events/order-placed-event.d.ts +0 -11
- package/cli/event-bus/events/order-placed-event.js +0 -15
- package/cli/event-bus/events/order-placed-event.js.map +0 -1
- package/cli/event-bus/events/order-state-transition-event.d.ts +0 -11
- package/cli/event-bus/events/order-state-transition-event.js +0 -15
- package/cli/event-bus/events/order-state-transition-event.js.map +0 -1
- package/cli/event-bus/events/password-reset-event.d.ts +0 -8
- package/cli/event-bus/events/password-reset-event.js +0 -13
- package/cli/event-bus/events/password-reset-event.js.map +0 -1
- package/cli/event-bus/events/password-reset-verified-event.d.ts +0 -8
- package/cli/event-bus/events/password-reset-verified-event.js +0 -13
- package/cli/event-bus/events/password-reset-verified-event.js.map +0 -1
- package/cli/event-bus/events/payment-method-event.d.ts +0 -10
- package/cli/event-bus/events/payment-method-event.js +0 -11
- package/cli/event-bus/events/payment-method-event.js.map +0 -1
- package/cli/event-bus/events/payment-state-transition-event.d.ts +0 -13
- package/cli/event-bus/events/payment-state-transition-event.js +0 -16
- package/cli/event-bus/events/payment-state-transition-event.js.map +0 -1
- package/cli/event-bus/events/product-channel-event.d.ts +0 -11
- package/cli/event-bus/events/product-channel-event.js +0 -15
- package/cli/event-bus/events/product-channel-event.js.map +0 -1
- package/cli/event-bus/events/product-event.d.ts +0 -11
- package/cli/event-bus/events/product-event.js +0 -14
- package/cli/event-bus/events/product-event.js.map +0 -1
- package/cli/event-bus/events/product-option-event.d.ts +0 -10
- package/cli/event-bus/events/product-option-event.js +0 -11
- package/cli/event-bus/events/product-option-event.js.map +0 -1
- package/cli/event-bus/events/product-option-group-change-event.d.ts +0 -11
- package/cli/event-bus/events/product-option-group-change-event.js +0 -15
- package/cli/event-bus/events/product-option-group-change-event.js.map +0 -1
- package/cli/event-bus/events/product-option-group-event.d.ts +0 -10
- package/cli/event-bus/events/product-option-group-event.js +0 -11
- package/cli/event-bus/events/product-option-group-event.js.map +0 -1
- package/cli/event-bus/events/product-variant-channel-event.d.ts +0 -11
- package/cli/event-bus/events/product-variant-channel-event.js +0 -15
- package/cli/event-bus/events/product-variant-channel-event.js.map +0 -1
- package/cli/event-bus/events/product-variant-event.d.ts +0 -11
- package/cli/event-bus/events/product-variant-event.js +0 -14
- package/cli/event-bus/events/product-variant-event.js.map +0 -1
- package/cli/event-bus/events/promotion-event.d.ts +0 -10
- package/cli/event-bus/events/promotion-event.js +0 -11
- package/cli/event-bus/events/promotion-event.js.map +0 -1
- package/cli/event-bus/events/refund-state-transition-event.d.ts +0 -13
- package/cli/event-bus/events/refund-state-transition-event.js +0 -16
- package/cli/event-bus/events/refund-state-transition-event.js.map +0 -1
- package/cli/event-bus/events/role-change-event.d.ts +0 -11
- package/cli/event-bus/events/role-change-event.js +0 -15
- package/cli/event-bus/events/role-change-event.js.map +0 -1
- package/cli/event-bus/events/role-event.d.ts +0 -10
- package/cli/event-bus/events/role-event.js +0 -11
- package/cli/event-bus/events/role-event.js.map +0 -1
- package/cli/event-bus/events/shipping-method-event.d.ts +0 -10
- package/cli/event-bus/events/shipping-method-event.js +0 -11
- package/cli/event-bus/events/shipping-method-event.js.map +0 -1
- package/cli/event-bus/events/stock-movement-event.d.ts +0 -10
- package/cli/event-bus/events/stock-movement-event.js +0 -15
- package/cli/event-bus/events/stock-movement-event.js.map +0 -1
- package/cli/event-bus/events/tax-category-event.d.ts +0 -10
- package/cli/event-bus/events/tax-category-event.js +0 -11
- package/cli/event-bus/events/tax-category-event.js.map +0 -1
- package/cli/event-bus/events/tax-rate-event.d.ts +0 -10
- package/cli/event-bus/events/tax-rate-event.js +0 -11
- package/cli/event-bus/events/tax-rate-event.js.map +0 -1
- package/cli/event-bus/events/tax-rate-modification-event.d.ts +0 -8
- package/cli/event-bus/events/tax-rate-modification-event.js +0 -13
- package/cli/event-bus/events/tax-rate-modification-event.js.map +0 -1
- package/cli/event-bus/events/zone-event.d.ts +0 -10
- package/cli/event-bus/events/zone-event.js +0 -11
- package/cli/event-bus/events/zone-event.js.map +0 -1
- package/cli/event-bus/events/zone-members-event.d.ts +0 -11
- package/cli/event-bus/events/zone-members-event.js +0 -15
- package/cli/event-bus/events/zone-members-event.js.map +0 -1
- package/cli/event-bus/index.d.ts +0 -55
- package/cli/event-bus/index.js +0 -68
- package/cli/event-bus/index.js.map +0 -1
- package/cli/event-bus/vendure-entity-event.d.ts +0 -9
- package/cli/event-bus/vendure-entity-event.js +0 -15
- package/cli/event-bus/vendure-entity-event.js.map +0 -1
- package/cli/event-bus/vendure-event.d.ts +0 -4
- package/cli/event-bus/vendure-event.js +0 -10
- package/cli/event-bus/vendure-event.js.map +0 -1
- package/cli/health-check/constants.d.ts +0 -1
- package/cli/health-check/constants.js +0 -5
- package/cli/health-check/constants.js.map +0 -1
- package/cli/i18n/i18n-error.d.ts +0 -13
- package/cli/i18n/i18n-error.js +0 -16
- package/cli/i18n/i18n-error.js.map +0 -1
- package/cli/job-queue/constants.d.ts +0 -1
- package/cli/job-queue/constants.js +0 -5
- package/cli/job-queue/constants.js.map +0 -1
- package/cli/job-queue/in-memory-job-queue-strategy.d.ts +0 -34
- package/cli/job-queue/in-memory-job-queue-strategy.js +0 -187
- package/cli/job-queue/in-memory-job-queue-strategy.js.map +0 -1
- package/cli/job-queue/index.d.ts +0 -11
- package/cli/job-queue/index.js +0 -24
- package/cli/job-queue/index.js.map +0 -1
- package/cli/job-queue/injectable-job-queue-strategy.d.ts +0 -12
- package/cli/job-queue/injectable-job-queue-strategy.js +0 -21
- package/cli/job-queue/injectable-job-queue-strategy.js.map +0 -1
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +0 -13
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +0 -47
- package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +0 -1
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +0 -11
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +0 -3
- package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +0 -1
- package/cli/job-queue/job-buffer/job-buffer.d.ts +0 -7
- package/cli/job-queue/job-buffer/job-buffer.js +0 -3
- package/cli/job-queue/job-buffer/job-buffer.js.map +0 -1
- package/cli/job-queue/job-buffer/job-buffer.service.d.ts +0 -16
- package/cli/job-queue/job-buffer/job-buffer.service.js +0 -76
- package/cli/job-queue/job-buffer/job-buffer.service.js.map +0 -1
- package/cli/job-queue/job-queue.d.ts +0 -16
- package/cli/job-queue/job-queue.js +0 -59
- package/cli/job-queue/job-queue.js.map +0 -1
- package/cli/job-queue/job-queue.service.d.ts +0 -27
- package/cli/job-queue/job-queue.service.js +0 -84
- package/cli/job-queue/job-queue.service.js.map +0 -1
- package/cli/job-queue/job.d.ts +0 -41
- package/cli/job-queue/job.js +0 -160
- package/cli/job-queue/job.js.map +0 -1
- package/cli/job-queue/polling-job-queue-strategy.d.ts +0 -26
- package/cli/job-queue/polling-job-queue-strategy.js +0 -163
- package/cli/job-queue/polling-job-queue-strategy.js.map +0 -1
- package/cli/job-queue/queue-name-process-storage.d.ts +0 -7
- package/cli/job-queue/queue-name-process-storage.js +0 -40
- package/cli/job-queue/queue-name-process-storage.js.map +0 -1
- package/cli/job-queue/subscribable-job.d.ts +0 -13
- package/cli/job-queue/subscribable-job.js +0 -52
- package/cli/job-queue/subscribable-job.js.map +0 -1
- package/cli/job-queue/types.d.ts +0 -22
- package/cli/job-queue/types.js +0 -3
- package/cli/job-queue/types.js.map +0 -1
- package/cli/process-context/process-context.d.ts +0 -7
- package/cli/process-context/process-context.js +0 -18
- package/cli/process-context/process-context.js.map +0 -1
- package/cli/service/helpers/config-arg/config-arg.service.d.ts +0 -31
- package/cli/service/helpers/config-arg/config-arg.service.js +0 -88
- package/cli/service/helpers/config-arg/config-arg.service.js.map +0 -1
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +0 -18
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +0 -63
- package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +0 -1
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +0 -21
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +0 -113
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +0 -1
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +0 -11
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +0 -21
- package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +0 -1
- package/cli/service/helpers/list-query-builder/connection-utils.d.ts +0 -10
- package/cli/service/helpers/list-query-builder/connection-utils.js +0 -26
- package/cli/service/helpers/list-query-builder/connection-utils.js.map +0 -1
- package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +0 -3
- package/cli/service/helpers/list-query-builder/get-calculated-columns.js +0 -16
- package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +0 -1
- package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +0 -30
- package/cli/service/helpers/list-query-builder/list-query-builder.js +0 -204
- package/cli/service/helpers/list-query-builder/list-query-builder.js.map +0 -1
- package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +0 -5
- package/cli/service/helpers/list-query-builder/parse-channel-param.js +0 -18
- package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +0 -1
- package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +0 -13
- package/cli/service/helpers/list-query-builder/parse-filter-params.js +0 -155
- package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +0 -1
- package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +0 -7
- package/cli/service/helpers/list-query-builder/parse-sort-params.js +0 -50
- package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +0 -1
- package/cli/service/helpers/order-calculator/order-calculator.d.ts +0 -32
- package/cli/service/helpers/order-calculator/order-calculator.js +0 -311
- package/cli/service/helpers/order-calculator/order-calculator.js.map +0 -1
- package/cli/service/helpers/order-calculator/prorate.d.ts +0 -1
- package/cli/service/helpers/order-calculator/prorate.js +0 -35
- package/cli/service/helpers/order-calculator/prorate.js.map +0 -1
- package/cli/service/helpers/order-merger/order-merger.d.ts +0 -40
- package/cli/service/helpers/order-merger/order-merger.js +0 -97
- package/cli/service/helpers/order-merger/order-merger.js.map +0 -1
- package/cli/service/helpers/order-modifier/order-modifier.d.ts +0 -45
- package/cli/service/helpers/order-modifier/order-modifier.js +0 -423
- package/cli/service/helpers/order-modifier/order-modifier.js.map +0 -1
- package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +0 -29
- package/cli/service/helpers/order-state-machine/order-state-machine.js +0 -240
- package/cli/service/helpers/order-state-machine/order-state-machine.js.map +0 -1
- package/cli/service/helpers/order-state-machine/order-state.d.ts +0 -9
- package/cli/service/helpers/order-state-machine/order-state.js +0 -64
- package/cli/service/helpers/order-state-machine/order-state.js.map +0 -1
- package/cli/service/helpers/password-cipher/password-cipher.d.ts +0 -7
- package/cli/service/helpers/password-cipher/password-cipher.js +0 -31
- package/cli/service/helpers/password-cipher/password-cipher.js.map +0 -1
- package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +0 -20
- package/cli/service/helpers/payment-state-machine/payment-state-machine.js +0 -113
- package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +0 -1
- package/cli/service/helpers/payment-state-machine/payment-state.d.ts +0 -11
- package/cli/service/helpers/payment-state-machine/payment-state.js +0 -24
- package/cli/service/helpers/payment-state-machine/payment-state.js.map +0 -1
- package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +0 -15
- package/cli/service/helpers/product-price-applicator/product-price-applicator.js +0 -64
- package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +0 -1
- package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +0 -14
- package/cli/service/helpers/refund-state-machine/refund-state-machine.js +0 -65
- package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +0 -1
- package/cli/service/helpers/refund-state-machine/refund-state.d.ts +0 -11
- package/cli/service/helpers/refund-state-machine/refund-state.js +0 -15
- package/cli/service/helpers/refund-state-machine/refund-state.js.map +0 -1
- package/cli/service/helpers/request-context/request-context.service.d.ts +0 -29
- package/cli/service/helpers/request-context/request-context.service.js +0 -127
- package/cli/service/helpers/request-context/request-context.service.js.map +0 -1
- package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +0 -18
- package/cli/service/helpers/shipping-calculator/shipping-calculator.js +0 -50
- package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +0 -1
- package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +0 -24
- package/cli/service/helpers/translatable-saver/translatable-saver.js +0 -64
- package/cli/service/helpers/translatable-saver/translatable-saver.js.map +0 -1
- package/cli/service/helpers/translatable-saver/translation-differ.d.ts +0 -17
- package/cli/service/helpers/translatable-saver/translation-differ.js +0 -65
- package/cli/service/helpers/translatable-saver/translation-differ.js.map +0 -1
- package/cli/service/helpers/utils/address-to-line.d.ts +0 -3
- package/cli/service/helpers/utils/address-to-line.js +0 -21
- package/cli/service/helpers/utils/address-to-line.js.map +0 -1
- package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +0 -10
- package/cli/service/helpers/utils/get-user-channels-permissions.js +0 -26
- package/cli/service/helpers/utils/get-user-channels-permissions.js.map +0 -1
- package/cli/service/helpers/utils/order-utils.d.ts +0 -9
- package/cli/service/helpers/utils/order-utils.js +0 -64
- package/cli/service/helpers/utils/order-utils.js.map +0 -1
- package/cli/service/helpers/utils/patch-entity.d.ts +0 -5
- package/cli/service/helpers/utils/patch-entity.js +0 -17
- package/cli/service/helpers/utils/patch-entity.js.map +0 -1
- package/cli/service/helpers/utils/samples-each.d.ts +0 -1
- package/cli/service/helpers/utils/samples-each.js +0 -18
- package/cli/service/helpers/utils/samples-each.js.map +0 -1
- package/cli/service/helpers/utils/translate-entity.d.ts +0 -24
- package/cli/service/helpers/utils/translate-entity.js +0 -99
- package/cli/service/helpers/utils/translate-entity.js.map +0 -1
- package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +0 -7
- package/cli/service/helpers/verification-token-generator/verification-token-generator.js +0 -44
- package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +0 -1
- package/cli/service/services/administrator.service.d.ts +0 -36
- package/cli/service/services/administrator.service.js +0 -230
- package/cli/service/services/administrator.service.js.map +0 -1
- package/cli/service/services/asset.service.d.ts +0 -63
- package/cli/service/services/asset.service.js +0 -478
- package/cli/service/services/asset.service.js.map +0 -1
- package/cli/service/services/channel.service.d.ts +0 -38
- package/cli/service/services/channel.service.js +0 -222
- package/cli/service/services/channel.service.js.map +0 -1
- package/cli/service/services/country.service.d.ts +0 -24
- package/cli/service/services/country.service.js +0 -119
- package/cli/service/services/country.service.js.map +0 -1
- package/cli/service/services/customer.service.d.ts +0 -62
- package/cli/service/services/customer.service.js +0 -662
- package/cli/service/services/customer.service.js.map +0 -1
- package/cli/service/services/facet-value.service.d.ts +0 -32
- package/cli/service/services/facet-value.service.js +0 -151
- package/cli/service/services/facet-value.service.js.map +0 -1
- package/cli/service/services/fulfillment.service.d.ts +0 -32
- package/cli/service/services/fulfillment.service.js +0 -106
- package/cli/service/services/fulfillment.service.js.map +0 -1
- package/cli/service/services/global-settings.service.d.ts +0 -17
- package/cli/service/services/global-settings.service.js +0 -74
- package/cli/service/services/global-settings.service.js.map +0 -1
- package/cli/service/services/history.service.d.ts +0 -139
- package/cli/service/services/history.service.js +0 -143
- package/cli/service/services/history.service.js.map +0 -1
- package/cli/service/services/order.service.d.ts +0 -136
- package/cli/service/services/order.service.js +0 -1158
- package/cli/service/services/order.service.js.map +0 -1
- package/cli/service/services/payment-method.service.d.ts +0 -37
- package/cli/service/services/payment-method.service.js +0 -178
- package/cli/service/services/payment-method.service.js.map +0 -1
- package/cli/service/services/payment.service.d.ts +0 -32
- package/cli/service/services/payment.service.js +0 -216
- package/cli/service/services/payment.service.js.map +0 -1
- package/cli/service/services/product-variant.service.d.ts +0 -70
- package/cli/service/services/product-variant.service.js +0 -560
- package/cli/service/services/product-variant.service.js.map +0 -1
- package/cli/service/services/promotion.service.d.ts +0 -41
- package/cli/service/services/promotion.service.js +0 -219
- package/cli/service/services/promotion.service.js.map +0 -1
- package/cli/service/services/role.service.d.ts +0 -39
- package/cli/service/services/role.service.js +0 -240
- package/cli/service/services/role.service.js.map +0 -1
- package/cli/service/services/session.service.d.ts +0 -38
- package/cli/service/services/session.service.js +0 -228
- package/cli/service/services/session.service.js.map +0 -1
- package/cli/service/services/shipping-method.service.d.ts +0 -36
- package/cli/service/services/shipping-method.service.js +0 -181
- package/cli/service/services/shipping-method.service.js.map +0 -1
- package/cli/service/services/stock-movement.service.d.ts +0 -39
- package/cli/service/services/stock-movement.service.js +0 -214
- package/cli/service/services/stock-movement.service.js.map +0 -1
- package/cli/service/services/tag.service.d.ts +0 -21
- package/cli/service/services/tag.service.js +0 -82
- package/cli/service/services/tag.service.js.map +0 -1
- package/cli/service/services/tax-category.service.d.ts +0 -16
- package/cli/service/services/tax-category.service.js +0 -95
- package/cli/service/services/tax-category.service.js.map +0 -1
- package/cli/service/services/tax-rate.service.d.ts +0 -28
- package/cli/service/services/tax-rate.service.js +0 -134
- package/cli/service/services/tax-rate.service.js.map +0 -1
- package/cli/service/services/user.service.d.ts +0 -37
- package/cli/service/services/user.service.js +0 -287
- package/cli/service/services/user.service.js.map +0 -1
- package/cli/service/services/zone.service.d.ts +0 -26
- package/cli/service/services/zone.service.js +0 -168
- package/cli/service/services/zone.service.js.map +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InMemorySessionCacheStrategy = void 0;
|
|
4
|
-
class InMemorySessionCacheStrategy {
|
|
5
|
-
constructor(cacheSize) {
|
|
6
|
-
this.cache = new Map();
|
|
7
|
-
this.cacheSize = 1000;
|
|
8
|
-
if (cacheSize != null) {
|
|
9
|
-
if (cacheSize < 1) {
|
|
10
|
-
throw new Error(`cacheSize must be a positive integer`);
|
|
11
|
-
}
|
|
12
|
-
this.cacheSize = Math.round(cacheSize);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
delete(sessionToken) {
|
|
16
|
-
this.cache.delete(sessionToken);
|
|
17
|
-
}
|
|
18
|
-
get(sessionToken) {
|
|
19
|
-
const item = this.cache.get(sessionToken);
|
|
20
|
-
if (item) {
|
|
21
|
-
this.cache.delete(sessionToken);
|
|
22
|
-
this.cache.set(sessionToken, item);
|
|
23
|
-
}
|
|
24
|
-
return item;
|
|
25
|
-
}
|
|
26
|
-
set(session) {
|
|
27
|
-
this.cache.set(session.token, session);
|
|
28
|
-
if (this.cache.has(session.token)) {
|
|
29
|
-
this.cache.delete(session.token);
|
|
30
|
-
}
|
|
31
|
-
else if (this.cache.size === this.cacheSize) {
|
|
32
|
-
this.cache.delete(this.first());
|
|
33
|
-
}
|
|
34
|
-
this.cache.set(session.token, session);
|
|
35
|
-
}
|
|
36
|
-
clear() {
|
|
37
|
-
this.cache.clear();
|
|
38
|
-
}
|
|
39
|
-
first() {
|
|
40
|
-
return this.cache.keys().next().value;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.InMemorySessionCacheStrategy = InMemorySessionCacheStrategy;
|
|
44
|
-
//# sourceMappingURL=in-memory-session-cache-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-session-cache-strategy.js","sourceRoot":"","sources":["../../../src/config/session-cache/in-memory-session-cache-strategy.ts"],"names":[],"mappings":";;;AAeA,MAAa,4BAA4B;IAIrC,YAAY,SAAkB;QAHb,UAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;QACzC,cAAS,GAAW,IAAI,CAAC;QAGtC,IAAI,SAAS,IAAI,IAAI,EAAE;YACnB,IAAI,SAAS,GAAG,CAAC,EAAE;gBACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;SAC1C;IACL,CAAC;IAED,MAAM,CAAC,YAAoB;QACvB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACpC,CAAC;IAED,GAAG,CAAC,YAAoB;QACpB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1C,IAAI,IAAI,EAAE;YAEN,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,GAAG,CAAC,OAAsB;QACtB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAE/B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACpC;aAAM,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,SAAS,EAAE;YAE3C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;SACnC;QACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK;QACD,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAEO,KAAK;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;IAC1C,CAAC;CACJ;AA/CD,oEA+CC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CachedSession, SessionCacheStrategy } from './session-cache-strategy';
|
|
2
|
-
export declare class NoopSessionCacheStrategy implements SessionCacheStrategy {
|
|
3
|
-
clear(): undefined;
|
|
4
|
-
delete(sessionToken: string): undefined;
|
|
5
|
-
get(sessionToken: string): undefined;
|
|
6
|
-
set(session: CachedSession): undefined;
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoopSessionCacheStrategy = void 0;
|
|
4
|
-
class NoopSessionCacheStrategy {
|
|
5
|
-
clear() {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
delete(sessionToken) {
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
get(sessionToken) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
set(session) {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.NoopSessionCacheStrategy = NoopSessionCacheStrategy;
|
|
19
|
-
//# sourceMappingURL=noop-session-cache-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noop-session-cache-strategy.js","sourceRoot":"","sources":["../../../src/config/session-cache/noop-session-cache-strategy.ts"],"names":[],"mappings":";;;AASA,MAAa,wBAAwB;IACjC,KAAK;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,YAAoB;QACvB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,GAAG,CAAC,YAAoB;QACpB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,GAAG,CAAC,OAAsB;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAhBD,4DAgBC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ID } from '@vendure/common/lib/shared-types';
|
|
2
|
-
import { InjectableStrategy } from '../../common/types/injectable-strategy';
|
|
3
|
-
import { UserChannelPermissions } from '../../service/helpers/utils/get-user-channels-permissions';
|
|
4
|
-
export declare type CachedSessionUser = {
|
|
5
|
-
id: ID;
|
|
6
|
-
identifier: string;
|
|
7
|
-
verified: boolean;
|
|
8
|
-
channelPermissions: UserChannelPermissions[];
|
|
9
|
-
};
|
|
10
|
-
export declare type CachedSession = {
|
|
11
|
-
cacheExpiry: number;
|
|
12
|
-
id: ID;
|
|
13
|
-
token: string;
|
|
14
|
-
expires: Date;
|
|
15
|
-
activeOrderId?: ID;
|
|
16
|
-
authenticationStrategy?: string;
|
|
17
|
-
user?: CachedSessionUser;
|
|
18
|
-
activeChannelId?: ID;
|
|
19
|
-
};
|
|
20
|
-
export interface SessionCacheStrategy extends InjectableStrategy {
|
|
21
|
-
set(session: CachedSession): void | Promise<void>;
|
|
22
|
-
get(sessionToken: string): CachedSession | undefined | Promise<CachedSession | undefined>;
|
|
23
|
-
delete(sessionToken: string): void | Promise<void>;
|
|
24
|
-
clear(): void | Promise<void>;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"session-cache-strategy.js","sourceRoot":"","sources":["../../../src/config/session-cache/session-cache-strategy.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { LanguageCode } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { ShippingCalculator } from './shipping-calculator';
|
|
3
|
-
declare enum TaxSetting {
|
|
4
|
-
include = "include",
|
|
5
|
-
exclude = "exclude",
|
|
6
|
-
auto = "auto"
|
|
7
|
-
}
|
|
8
|
-
export declare const defaultShippingCalculator: ShippingCalculator<{
|
|
9
|
-
rate: {
|
|
10
|
-
type: "int";
|
|
11
|
-
defaultValue: number;
|
|
12
|
-
ui: {
|
|
13
|
-
component: string;
|
|
14
|
-
};
|
|
15
|
-
label: {
|
|
16
|
-
languageCode: LanguageCode.en;
|
|
17
|
-
value: string;
|
|
18
|
-
}[];
|
|
19
|
-
};
|
|
20
|
-
includesTax: {
|
|
21
|
-
type: "string";
|
|
22
|
-
defaultValue: TaxSetting;
|
|
23
|
-
ui: {
|
|
24
|
-
component: string;
|
|
25
|
-
options: {
|
|
26
|
-
label: {
|
|
27
|
-
languageCode: LanguageCode;
|
|
28
|
-
value: string;
|
|
29
|
-
}[];
|
|
30
|
-
value: TaxSetting;
|
|
31
|
-
}[];
|
|
32
|
-
};
|
|
33
|
-
label: {
|
|
34
|
-
languageCode: LanguageCode.en;
|
|
35
|
-
value: string;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
taxRate: {
|
|
39
|
-
type: "int";
|
|
40
|
-
defaultValue: number;
|
|
41
|
-
ui: {
|
|
42
|
-
component: string;
|
|
43
|
-
suffix: string;
|
|
44
|
-
};
|
|
45
|
-
label: {
|
|
46
|
-
languageCode: LanguageCode.en;
|
|
47
|
-
value: string;
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultShippingCalculator = void 0;
|
|
4
|
-
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
5
|
-
const shipping_calculator_1 = require("./shipping-calculator");
|
|
6
|
-
var TaxSetting;
|
|
7
|
-
(function (TaxSetting) {
|
|
8
|
-
TaxSetting["include"] = "include";
|
|
9
|
-
TaxSetting["exclude"] = "exclude";
|
|
10
|
-
TaxSetting["auto"] = "auto";
|
|
11
|
-
})(TaxSetting || (TaxSetting = {}));
|
|
12
|
-
exports.defaultShippingCalculator = new shipping_calculator_1.ShippingCalculator({
|
|
13
|
-
code: 'default-shipping-calculator',
|
|
14
|
-
description: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Default Flat-Rate Shipping Calculator' }],
|
|
15
|
-
args: {
|
|
16
|
-
rate: {
|
|
17
|
-
type: 'int',
|
|
18
|
-
defaultValue: 0,
|
|
19
|
-
ui: { component: 'currency-form-input' },
|
|
20
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Shipping price' }],
|
|
21
|
-
},
|
|
22
|
-
includesTax: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
defaultValue: TaxSetting.auto,
|
|
25
|
-
ui: {
|
|
26
|
-
component: 'select-form-input',
|
|
27
|
-
options: [
|
|
28
|
-
{
|
|
29
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Includes tax' }],
|
|
30
|
-
value: TaxSetting.include,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Excludes tax' }],
|
|
34
|
-
value: TaxSetting.exclude,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Auto (based on Channel)' }],
|
|
38
|
-
value: TaxSetting.auto,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Price includes tax' }],
|
|
43
|
-
},
|
|
44
|
-
taxRate: {
|
|
45
|
-
type: 'int',
|
|
46
|
-
defaultValue: 0,
|
|
47
|
-
ui: { component: 'number-form-input', suffix: '%' },
|
|
48
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Tax rate' }],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
calculate: (ctx, order, args) => {
|
|
52
|
-
return {
|
|
53
|
-
price: args.rate,
|
|
54
|
-
taxRate: args.taxRate,
|
|
55
|
-
priceIncludesTax: getPriceIncludesTax(ctx, args.includesTax),
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
function getPriceIncludesTax(ctx, setting) {
|
|
60
|
-
switch (setting) {
|
|
61
|
-
case TaxSetting.auto:
|
|
62
|
-
return ctx.channel.pricesIncludeTax;
|
|
63
|
-
case TaxSetting.exclude:
|
|
64
|
-
return false;
|
|
65
|
-
case TaxSetting.include:
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=default-shipping-calculator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-shipping-calculator.js","sourceRoot":"","sources":["../../../src/config/shipping-method/default-shipping-calculator.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AAInE,+DAA2D;AAE3D,IAAK,UAIJ;AAJD,WAAK,UAAU;IACX,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACjB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAEY,QAAA,yBAAyB,GAAG,IAAI,wCAAkB,CAAC;IAC5D,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC;IAChG,IAAI,EAAE;QACF,IAAI,EAAE;YACF,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,CAAC;YACf,EAAE,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE;YACxC,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;SACtE;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,UAAU,CAAC,IAAI;YAC7B,EAAE,EAAE;gBACA,SAAS,EAAE,mBAAmB;gBAC9B,OAAO,EAAE;oBACL;wBACI,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;wBACjE,KAAK,EAAE,UAAU,CAAC,OAAO;qBAC5B;oBACD;wBACI,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;wBACjE,KAAK,EAAE,UAAU,CAAC,OAAO;qBAC5B;oBACD;wBACI,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;wBAC5E,KAAK,EAAE,UAAU,CAAC,IAAI;qBACzB;iBACJ;aACJ;YACD,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;SAC1E;QACD,OAAO,EAAE;YACL,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,CAAC;YACf,EAAE,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,EAAE;YACnD,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;SAChE;KACJ;IACD,SAAS,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAC5B,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,EAAE,IAAI,CAAC,WAAkB,CAAC;SACtE,CAAC;IACN,CAAC;CACJ,CAAC,CAAC;AAEH,SAAS,mBAAmB,CAAC,GAAmB,EAAE,OAAmB;IACjE,QAAQ,OAAO,EAAE;QACb,KAAK,UAAU,CAAC,IAAI;YAChB,OAAO,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACxC,KAAK,UAAU,CAAC,OAAO;YACnB,OAAO,KAAK,CAAC;QACjB,KAAK,UAAU,CAAC,OAAO;YACnB,OAAO,IAAI,CAAC;KACnB;AACL,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LanguageCode } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { ShippingEligibilityChecker } from './shipping-eligibility-checker';
|
|
3
|
-
export declare const defaultShippingEligibilityChecker: ShippingEligibilityChecker<{
|
|
4
|
-
orderMinimum: {
|
|
5
|
-
type: "int";
|
|
6
|
-
defaultValue: number;
|
|
7
|
-
ui: {
|
|
8
|
-
component: string;
|
|
9
|
-
};
|
|
10
|
-
label: {
|
|
11
|
-
languageCode: LanguageCode.en;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
description: {
|
|
15
|
-
languageCode: LanguageCode.en;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultShippingEligibilityChecker = void 0;
|
|
4
|
-
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
5
|
-
const shipping_eligibility_checker_1 = require("./shipping-eligibility-checker");
|
|
6
|
-
exports.defaultShippingEligibilityChecker = new shipping_eligibility_checker_1.ShippingEligibilityChecker({
|
|
7
|
-
code: 'default-shipping-eligibility-checker',
|
|
8
|
-
description: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Default Shipping Eligibility Checker' }],
|
|
9
|
-
args: {
|
|
10
|
-
orderMinimum: {
|
|
11
|
-
type: 'int',
|
|
12
|
-
defaultValue: 0,
|
|
13
|
-
ui: { component: 'currency-form-input' },
|
|
14
|
-
label: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Minimum order value' }],
|
|
15
|
-
description: [
|
|
16
|
-
{
|
|
17
|
-
languageCode: generated_types_1.LanguageCode.en,
|
|
18
|
-
value: 'Order is eligible only if its total is greater or equal to this value',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
check: (ctx, order, args) => {
|
|
24
|
-
return order.subTotalWithTax >= args.orderMinimum;
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=default-shipping-eligibility-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-shipping-eligibility-checker.js","sourceRoot":"","sources":["../../../src/config/shipping-method/default-shipping-eligibility-checker.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AAEnE,iFAA4E;AAE/D,QAAA,iCAAiC,GAAG,IAAI,yDAA0B,CAAC;IAC5E,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC;IAC/F,IAAI,EAAE;QACF,YAAY,EAAE;YACV,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,CAAC;YACf,EAAE,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE;YACxC,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,8BAAY,CAAC,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;YACxE,WAAW,EAAE;gBACT;oBACI,YAAY,EAAE,8BAAY,CAAC,EAAE;oBAC7B,KAAK,EAAE,uEAAuE;iBACjF;aACJ;SACJ;KACJ;IACD,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACxB,OAAO,KAAK,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,CAAC;IACtD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ConfigArg } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { RequestContext } from '../../api/common/request-context';
|
|
3
|
-
import { ConfigArgs, ConfigArgValues, ConfigurableOperationDef, ConfigurableOperationDefOptions } from '../../common/configurable-operation';
|
|
4
|
-
import { Order } from '../../entity/order/order.entity';
|
|
5
|
-
export interface ShippingCalculatorConfig<T extends ConfigArgs> extends ConfigurableOperationDefOptions<T> {
|
|
6
|
-
calculate: CalculateShippingFn<T>;
|
|
7
|
-
}
|
|
8
|
-
export declare class ShippingCalculator<T extends ConfigArgs = ConfigArgs> extends ConfigurableOperationDef<T> {
|
|
9
|
-
private readonly calculateFn;
|
|
10
|
-
constructor(config: ShippingCalculatorConfig<T>);
|
|
11
|
-
calculate(ctx: RequestContext, order: Order, args: ConfigArg[]): CalculateShippingFnResult;
|
|
12
|
-
}
|
|
13
|
-
export interface ShippingCalculationResult {
|
|
14
|
-
price: number;
|
|
15
|
-
priceIncludesTax: boolean;
|
|
16
|
-
taxRate: number;
|
|
17
|
-
metadata?: Record<string, any>;
|
|
18
|
-
}
|
|
19
|
-
export declare type CalculateShippingFnResult = ShippingCalculationResult | Promise<ShippingCalculationResult | undefined> | undefined;
|
|
20
|
-
export declare type CalculateShippingFn<T extends ConfigArgs> = (ctx: RequestContext, order: Order, args: ConfigArgValues<T>) => CalculateShippingFnResult;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShippingCalculator = void 0;
|
|
4
|
-
const configurable_operation_1 = require("../../common/configurable-operation");
|
|
5
|
-
class ShippingCalculator extends configurable_operation_1.ConfigurableOperationDef {
|
|
6
|
-
constructor(config) {
|
|
7
|
-
super(config);
|
|
8
|
-
this.calculateFn = config.calculate;
|
|
9
|
-
}
|
|
10
|
-
calculate(ctx, order, args) {
|
|
11
|
-
return this.calculateFn(ctx, order, this.argsArrayToHash(args));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ShippingCalculator = ShippingCalculator;
|
|
15
|
-
//# sourceMappingURL=shipping-calculator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-calculator.js","sourceRoot":"","sources":["../../../src/config/shipping-method/shipping-calculator.ts"],"names":[],"mappings":";;;AAGA,gFAK6C;AAuC7C,MAAa,kBAAsD,SAAQ,iDAA2B;IAGlG,YAAY,MAAmC;QAC3C,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC;IACxC,CAAC;IAQD,SAAS,CAAC,GAAmB,EAAE,KAAY,EAAE,IAAiB;QAC1D,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ;AAjBD,gDAiBC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ConfigArg } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { Json } from '@vendure/common/lib/shared-types';
|
|
3
|
-
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
-
import { ConfigArgs, ConfigArgValues, ConfigurableOperationDef, ConfigurableOperationDefOptions } from '../../common/configurable-operation';
|
|
5
|
-
import { Order } from '../../entity/order/order.entity';
|
|
6
|
-
export interface ShippingEligibilityCheckerConfig<T extends ConfigArgs> extends ConfigurableOperationDefOptions<T> {
|
|
7
|
-
check: CheckShippingEligibilityCheckerFn<T>;
|
|
8
|
-
shouldRunCheck?: ShouldRunCheckFn<T>;
|
|
9
|
-
}
|
|
10
|
-
export declare class ShippingEligibilityChecker<T extends ConfigArgs = ConfigArgs> extends ConfigurableOperationDef<T> {
|
|
11
|
-
private readonly checkFn;
|
|
12
|
-
private readonly shouldRunCheckFn?;
|
|
13
|
-
private shouldRunCheckCache;
|
|
14
|
-
constructor(config: ShippingEligibilityCheckerConfig<T>);
|
|
15
|
-
check(ctx: RequestContext, order: Order, args: ConfigArg[]): Promise<boolean>;
|
|
16
|
-
private shouldRunCheck;
|
|
17
|
-
}
|
|
18
|
-
export declare type CheckShippingEligibilityCheckerFn<T extends ConfigArgs> = (ctx: RequestContext, order: Order, args: ConfigArgValues<T>) => boolean | Promise<boolean>;
|
|
19
|
-
export declare type ShouldRunCheckFn<T extends ConfigArgs> = (ctx: RequestContext, order: Order, args: ConfigArgValues<T>) => Json | Promise<Json>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShippingEligibilityChecker = void 0;
|
|
4
|
-
const crypto_1 = require("crypto");
|
|
5
|
-
const configurable_operation_1 = require("../../common/configurable-operation");
|
|
6
|
-
const ttl_cache_1 = require("../../common/ttl-cache");
|
|
7
|
-
class ShippingEligibilityChecker extends configurable_operation_1.ConfigurableOperationDef {
|
|
8
|
-
constructor(config) {
|
|
9
|
-
super(config);
|
|
10
|
-
this.shouldRunCheckCache = new ttl_cache_1.TtlCache({ cacheSize: 5000, ttl: 1000 * 60 * 60 * 5 });
|
|
11
|
-
this.checkFn = config.check;
|
|
12
|
-
this.shouldRunCheckFn = config.shouldRunCheck;
|
|
13
|
-
}
|
|
14
|
-
async check(ctx, order, args) {
|
|
15
|
-
const shouldRunCheck = await this.shouldRunCheck(ctx, order, args);
|
|
16
|
-
return shouldRunCheck ? this.checkFn(ctx, order, this.argsArrayToHash(args)) : true;
|
|
17
|
-
}
|
|
18
|
-
async shouldRunCheck(ctx, order, args) {
|
|
19
|
-
var _a;
|
|
20
|
-
if (typeof this.shouldRunCheckFn === 'function') {
|
|
21
|
-
const cacheKey = (_a = ctx.session) === null || _a === void 0 ? void 0 : _a.id;
|
|
22
|
-
if (cacheKey) {
|
|
23
|
-
const checkResult = await this.shouldRunCheckFn(ctx, order, this.argsArrayToHash(args));
|
|
24
|
-
const checkResultHash = crypto_1.createHash('sha1')
|
|
25
|
-
.update(JSON.stringify(checkResult))
|
|
26
|
-
.digest('base64');
|
|
27
|
-
const lastResultHash = this.shouldRunCheckCache.get(cacheKey);
|
|
28
|
-
this.shouldRunCheckCache.set(cacheKey, checkResultHash);
|
|
29
|
-
if (checkResultHash === lastResultHash) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.ShippingEligibilityChecker = ShippingEligibilityChecker;
|
|
38
|
-
//# sourceMappingURL=shipping-eligibility-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-eligibility-checker.js","sourceRoot":"","sources":["../../../src/config/shipping-method/shipping-eligibility-checker.ts"],"names":[],"mappings":";;;AAEA,mCAAoC;AAGpC,gFAK6C;AAC7C,sDAAkD;AAqClD,MAAa,0BAA8D,SAAQ,iDAElF;IAKG,YAAY,MAA2C;QACnD,KAAK,CAAC,MAAM,CAAC,CAAC;QAHV,wBAAmB,GAAG,IAAI,oBAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;QAIrF,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,cAAc,CAAC;IAClD,CAAC;IAQD,KAAK,CAAC,KAAK,CAAC,GAAmB,EAAE,KAAY,EAAE,IAAiB;QAC5D,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QACnE,OAAO,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,CAAC;IAMO,KAAK,CAAC,cAAc,CAAC,GAAmB,EAAE,KAAY,EAAE,IAAiB;;QAC7E,IAAI,OAAO,IAAI,CAAC,gBAAgB,KAAK,UAAU,EAAE;YAC7C,MAAM,QAAQ,GAAG,MAAA,GAAG,CAAC,OAAO,0CAAE,EAAE,CAAC;YACjC,IAAI,QAAQ,EAAE;gBACV,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;gBACxF,MAAM,eAAe,GAAG,mBAAU,CAAC,MAAM,CAAC;qBACrC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;qBACnC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtB,MAAM,cAAc,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC9D,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;gBACxD,IAAI,eAAe,KAAK,cAAc,EAAE;oBACpC,OAAO,KAAK,CAAC;iBAChB;aACJ;SACJ;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA7CD,gEA6CC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TaxLine } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { CalculateTaxLinesArgs, TaxLineCalculationStrategy } from './tax-line-calculation-strategy';
|
|
3
|
-
export declare class DefaultTaxLineCalculationStrategy implements TaxLineCalculationStrategy {
|
|
4
|
-
calculate(args: CalculateTaxLinesArgs): TaxLine[];
|
|
5
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultTaxLineCalculationStrategy = void 0;
|
|
4
|
-
class DefaultTaxLineCalculationStrategy {
|
|
5
|
-
calculate(args) {
|
|
6
|
-
const { orderItem, applicableTaxRate } = args;
|
|
7
|
-
return [applicableTaxRate.apply(orderItem.proratedUnitPrice)];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.DefaultTaxLineCalculationStrategy = DefaultTaxLineCalculationStrategy;
|
|
11
|
-
//# sourceMappingURL=default-tax-line-calculation-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-tax-line-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/tax/default-tax-line-calculation-strategy.ts"],"names":[],"mappings":";;;AAWA,MAAa,iCAAiC;IAC1C,SAAS,CAAC,IAA2B;QACjC,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC;QAC9C,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ;AALD,8EAKC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RequestContext } from '../../api/common/request-context';
|
|
2
|
-
import { Channel, Order, Zone } from '../../entity';
|
|
3
|
-
import { TaxZoneStrategy } from './tax-zone-strategy';
|
|
4
|
-
export declare class DefaultTaxZoneStrategy implements TaxZoneStrategy {
|
|
5
|
-
determineTaxZone(ctx: RequestContext, zones: Zone[], channel: Channel, order?: Order): Zone;
|
|
6
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultTaxZoneStrategy = void 0;
|
|
4
|
-
class DefaultTaxZoneStrategy {
|
|
5
|
-
determineTaxZone(ctx, zones, channel, order) {
|
|
6
|
-
return channel.defaultTaxZone;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.DefaultTaxZoneStrategy = DefaultTaxZoneStrategy;
|
|
10
|
-
//# sourceMappingURL=default-tax-zone-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-tax-zone-strategy.js","sourceRoot":"","sources":["../../../src/config/tax/default-tax-zone-strategy.ts"],"names":[],"mappings":";;;AAWA,MAAa,sBAAsB;IAC/B,gBAAgB,CAAC,GAAmB,EAAE,KAAa,EAAE,OAAgB,EAAE,KAAa;QAChF,OAAO,OAAO,CAAC,cAAc,CAAC;IAClC,CAAC;CACJ;AAJD,wDAIC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TaxLine } from '@vendure/common/lib/generated-types';
|
|
2
|
-
import { RequestContext } from '../../api/common/request-context';
|
|
3
|
-
import { InjectableStrategy } from '../../common/types/injectable-strategy';
|
|
4
|
-
import { OrderItem } from '../../entity/order-item/order-item.entity';
|
|
5
|
-
import { OrderLine } from '../../entity/order-line/order-line.entity';
|
|
6
|
-
import { Order } from '../../entity/order/order.entity';
|
|
7
|
-
import { TaxRate } from '../../entity/tax-rate/tax-rate.entity';
|
|
8
|
-
export interface TaxLineCalculationStrategy extends InjectableStrategy {
|
|
9
|
-
calculate(args: CalculateTaxLinesArgs): TaxLine[] | Promise<TaxLine[]>;
|
|
10
|
-
}
|
|
11
|
-
export interface CalculateTaxLinesArgs {
|
|
12
|
-
ctx: RequestContext;
|
|
13
|
-
order: Order;
|
|
14
|
-
orderLine: OrderLine;
|
|
15
|
-
orderItem: OrderItem;
|
|
16
|
-
applicableTaxRate: TaxRate;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tax-line-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/tax/tax-line-calculation-strategy.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RequestContext } from '../../api/common/request-context';
|
|
2
|
-
import { InjectableStrategy } from '../../common/types/injectable-strategy';
|
|
3
|
-
import { Channel, Order, Zone } from '../../entity';
|
|
4
|
-
export interface TaxZoneStrategy extends InjectableStrategy {
|
|
5
|
-
determineTaxZone(ctx: RequestContext, zones: Zone[], channel: Channel, order?: Order): Zone | Promise<Zone> | undefined;
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tax-zone-strategy.js","sourceRoot":"","sources":["../../../src/config/tax/tax-zone-strategy.ts"],"names":[],"mappings":""}
|