@gradientedge/commercetools-utils 5.9.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/CommercetoolsApi.d.ts +1252 -0
- package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -0
- package/dist/cjs/api/CommercetoolsApi.js +2106 -0
- package/dist/cjs/api/CommercetoolsApi.js.map +1 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.d.ts.map +1 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/index.js.map +1 -0
- package/dist/cjs/api/types.d.ts +33 -0
- package/dist/cjs/api/types.d.ts.map +1 -0
- package/dist/cjs/api/types.js +3 -0
- package/dist/cjs/api/types.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuth.d.ts +182 -0
- package/dist/cjs/auth/CommercetoolsAuth.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuth.js +238 -0
- package/dist/cjs/auth/CommercetoolsAuth.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.d.ts +83 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.js +169 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsGrant.d.ts +66 -0
- package/dist/cjs/auth/CommercetoolsGrant.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsGrant.js +99 -0
- package/dist/cjs/auth/CommercetoolsGrant.js.map +1 -0
- package/dist/cjs/auth/constants.d.ts +7 -0
- package/dist/cjs/auth/constants.d.ts.map +1 -0
- package/dist/cjs/auth/constants.js +31 -0
- package/dist/cjs/auth/constants.js.map +1 -0
- package/dist/cjs/auth/index.d.ts +4 -0
- package/dist/cjs/auth/index.d.ts.map +1 -0
- package/dist/cjs/auth/index.js +19 -0
- package/dist/cjs/auth/index.js.map +1 -0
- package/dist/cjs/auth/scopes.d.ts +11 -0
- package/dist/cjs/auth/scopes.d.ts.map +1 -0
- package/dist/cjs/auth/scopes.js +30 -0
- package/dist/cjs/auth/scopes.js.map +1 -0
- package/dist/cjs/auth/types.d.ts +118 -0
- package/dist/cjs/auth/types.d.ts.map +1 -0
- package/dist/cjs/auth/types.js +28 -0
- package/dist/cjs/auth/types.js.map +1 -0
- package/dist/{typings → cjs}/auth/utils.d.ts +1 -0
- package/dist/cjs/auth/utils.d.ts.map +1 -0
- package/dist/cjs/auth/utils.js +14 -0
- package/dist/cjs/auth/utils.js.map +1 -0
- package/dist/cjs/constants.d.ts +33 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +46 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/error/CommercetoolsError.d.ts +33 -0
- package/dist/cjs/error/CommercetoolsError.d.ts.map +1 -0
- package/dist/cjs/error/CommercetoolsError.js +110 -0
- package/dist/cjs/error/CommercetoolsError.js.map +1 -0
- package/dist/cjs/error/index.d.ts +2 -0
- package/dist/cjs/error/index.d.ts.map +1 -0
- package/dist/cjs/error/index.js +18 -0
- package/dist/cjs/error/index.js.map +1 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +26 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/models/associate-role.d.ts +319 -0
- package/dist/cjs/models/associate-role.d.ts.map +1 -0
- package/dist/cjs/models/associate-role.js +8 -0
- package/dist/cjs/models/associate-role.js.map +1 -0
- package/dist/cjs/models/attribute-group.d.ts +253 -0
- package/dist/cjs/models/attribute-group.d.ts.map +1 -0
- package/dist/cjs/models/attribute-group.js +8 -0
- package/dist/cjs/models/attribute-group.js.map +1 -0
- package/dist/cjs/models/business-unit.d.ts +1197 -0
- package/dist/cjs/models/business-unit.d.ts.map +1 -0
- package/dist/cjs/models/business-unit.js +8 -0
- package/dist/cjs/models/business-unit.js.map +1 -0
- package/dist/cjs/models/cart-discount.d.ts +716 -0
- package/dist/cjs/models/cart-discount.d.ts.map +1 -0
- package/dist/cjs/models/cart-discount.js +8 -0
- package/dist/cjs/models/cart-discount.js.map +1 -0
- package/dist/cjs/models/cart.d.ts +3350 -0
- package/dist/cjs/models/cart.d.ts.map +1 -0
- package/dist/cjs/models/cart.js +8 -0
- package/dist/cjs/models/cart.js.map +1 -0
- package/dist/cjs/models/category.d.ts +634 -0
- package/dist/cjs/models/category.d.ts.map +1 -0
- package/dist/cjs/models/category.js +8 -0
- package/dist/cjs/models/category.js.map +1 -0
- package/dist/cjs/models/channel.d.ts +379 -0
- package/dist/cjs/models/channel.d.ts.map +1 -0
- package/dist/cjs/models/channel.js +8 -0
- package/dist/cjs/models/channel.js.map +1 -0
- package/dist/cjs/models/common.d.ts +1096 -0
- package/dist/cjs/models/common.d.ts.map +1 -0
- package/dist/cjs/models/common.js +8 -0
- package/dist/cjs/models/common.js.map +1 -0
- package/dist/cjs/models/custom-object.d.ts +151 -0
- package/dist/cjs/models/custom-object.d.ts.map +1 -0
- package/dist/cjs/models/custom-object.js +8 -0
- package/dist/cjs/models/custom-object.js.map +1 -0
- package/dist/cjs/models/customer-group.d.ts +235 -0
- package/dist/cjs/models/customer-group.d.ts.map +1 -0
- package/dist/cjs/models/customer-group.js +8 -0
- package/dist/cjs/models/customer-group.js.map +1 -0
- package/dist/cjs/models/customer.d.ts +1221 -0
- package/dist/cjs/models/customer.d.ts.map +1 -0
- package/dist/cjs/models/customer.js +8 -0
- package/dist/cjs/models/customer.js.map +1 -0
- package/dist/cjs/models/discount-code.d.ts +439 -0
- package/dist/cjs/models/discount-code.d.ts.map +1 -0
- package/dist/cjs/models/discount-code.js +8 -0
- package/dist/cjs/models/discount-code.js.map +1 -0
- package/dist/cjs/models/error.d.ts +3062 -0
- package/dist/cjs/models/error.d.ts.map +1 -0
- package/dist/cjs/models/error.js +8 -0
- package/dist/cjs/models/error.js.map +1 -0
- package/dist/cjs/models/extension.d.ts +335 -0
- package/dist/cjs/models/extension.d.ts.map +1 -0
- package/dist/cjs/models/extension.js +8 -0
- package/dist/cjs/models/extension.js.map +1 -0
- package/dist/cjs/models/graph-ql.d.ts +63 -0
- package/dist/cjs/models/graph-ql.d.ts.map +1 -0
- package/dist/cjs/models/graph-ql.js +8 -0
- package/dist/cjs/models/graph-ql.js.map +1 -0
- package/dist/cjs/models/index.d.ts +42 -0
- package/dist/cjs/models/index.d.ts.map +1 -0
- package/dist/cjs/models/index.js +58 -0
- package/dist/cjs/models/index.js.map +1 -0
- package/dist/cjs/models/inventory.d.ts +327 -0
- package/dist/cjs/models/inventory.d.ts.map +1 -0
- package/dist/cjs/models/inventory.js +8 -0
- package/dist/cjs/models/inventory.js.map +1 -0
- package/dist/cjs/models/me.d.ts +2483 -0
- package/dist/cjs/models/me.d.ts.map +1 -0
- package/dist/cjs/models/me.js +8 -0
- package/dist/cjs/models/me.js.map +1 -0
- package/dist/cjs/models/message.d.ts +15095 -0
- package/dist/cjs/models/message.d.ts.map +1 -0
- package/dist/cjs/models/message.js +8 -0
- package/dist/cjs/models/message.js.map +1 -0
- package/dist/cjs/models/order-edit.d.ts +1645 -0
- package/dist/cjs/models/order-edit.d.ts.map +1 -0
- package/dist/cjs/models/order-edit.js +8 -0
- package/dist/cjs/models/order-edit.js.map +1 -0
- package/dist/{typings → cjs}/models/order.d.ts +1490 -15
- package/dist/cjs/models/order.d.ts.map +1 -0
- package/dist/cjs/models/order.js +8 -0
- package/dist/cjs/models/order.js.map +1 -0
- package/dist/cjs/models/payment.d.ts +734 -0
- package/dist/cjs/models/payment.d.ts.map +1 -0
- package/dist/cjs/models/payment.js +8 -0
- package/dist/cjs/models/payment.js.map +1 -0
- package/dist/cjs/models/product-discount.d.ts +461 -0
- package/dist/cjs/models/product-discount.d.ts.map +1 -0
- package/dist/cjs/models/product-discount.js +8 -0
- package/dist/cjs/models/product-discount.js.map +1 -0
- package/dist/cjs/models/product-selection.d.ts +638 -0
- package/dist/cjs/models/product-selection.d.ts.map +1 -0
- package/dist/cjs/models/product-selection.js +8 -0
- package/dist/cjs/models/product-selection.js.map +1 -0
- package/dist/cjs/models/product-type.d.ts +774 -0
- package/dist/cjs/models/product-type.d.ts.map +1 -0
- package/dist/cjs/models/product-type.js +8 -0
- package/dist/cjs/models/product-type.js.map +1 -0
- package/dist/cjs/models/product.d.ts +2282 -0
- package/dist/cjs/models/product.d.ts.map +1 -0
- package/dist/cjs/models/product.js +8 -0
- package/dist/cjs/models/product.js.map +1 -0
- package/dist/cjs/models/project.d.ts +381 -0
- package/dist/cjs/models/project.d.ts.map +1 -0
- package/dist/cjs/models/project.js +8 -0
- package/dist/cjs/models/project.js.map +1 -0
- package/dist/cjs/models/quote-request.d.ts +430 -0
- package/dist/cjs/models/quote-request.d.ts.map +1 -0
- package/dist/cjs/models/quote-request.js +8 -0
- package/dist/cjs/models/quote-request.js.map +1 -0
- package/dist/cjs/models/quote.d.ts +458 -0
- package/dist/cjs/models/quote.d.ts.map +1 -0
- package/dist/cjs/models/quote.js +8 -0
- package/dist/cjs/models/quote.js.map +1 -0
- package/dist/cjs/models/review.d.ts +435 -0
- package/dist/cjs/models/review.d.ts.map +1 -0
- package/dist/cjs/models/review.js +8 -0
- package/dist/cjs/models/review.js.map +1 -0
- package/dist/cjs/models/scalar-types.d.ts +9 -0
- package/dist/cjs/models/scalar-types.d.ts.map +1 -0
- package/dist/cjs/models/scalar-types.js +8 -0
- package/dist/cjs/models/scalar-types.js.map +1 -0
- package/dist/cjs/models/shipping-method.d.ts +569 -0
- package/dist/cjs/models/shipping-method.d.ts.map +1 -0
- package/dist/cjs/models/shipping-method.js +8 -0
- package/dist/cjs/models/shipping-method.js.map +1 -0
- package/dist/cjs/models/shopping-list.d.ts +844 -0
- package/dist/cjs/models/shopping-list.d.ts.map +1 -0
- package/dist/cjs/models/shopping-list.js +8 -0
- package/dist/cjs/models/shopping-list.js.map +1 -0
- package/dist/cjs/models/staged-quote.d.ts +338 -0
- package/dist/cjs/models/staged-quote.d.ts.map +1 -0
- package/dist/cjs/models/staged-quote.js +8 -0
- package/dist/cjs/models/staged-quote.js.map +1 -0
- package/dist/cjs/models/standalone-price.d.ts +410 -0
- package/dist/cjs/models/standalone-price.d.ts.map +1 -0
- package/dist/cjs/models/standalone-price.js +8 -0
- package/dist/cjs/models/standalone-price.js.map +1 -0
- package/dist/cjs/models/state.d.ts +341 -0
- package/dist/cjs/models/state.d.ts.map +1 -0
- package/dist/cjs/models/state.js +8 -0
- package/dist/cjs/models/state.js.map +1 -0
- package/dist/cjs/models/store-country.d.ts +14 -0
- package/dist/cjs/models/store-country.d.ts.map +1 -0
- package/dist/cjs/models/store-country.js +8 -0
- package/dist/cjs/models/store-country.js.map +1 -0
- package/dist/cjs/models/store.d.ts +547 -0
- package/dist/cjs/models/store.d.ts.map +1 -0
- package/dist/cjs/models/store.js +8 -0
- package/dist/cjs/models/store.js.map +1 -0
- package/dist/cjs/models/subscription.d.ts +717 -0
- package/dist/cjs/models/subscription.d.ts.map +1 -0
- package/dist/cjs/models/subscription.js +8 -0
- package/dist/cjs/models/subscription.js.map +1 -0
- package/dist/cjs/models/tax-category.d.ts +376 -0
- package/dist/cjs/models/tax-category.d.ts.map +1 -0
- package/dist/cjs/models/tax-category.js +8 -0
- package/dist/cjs/models/tax-category.js.map +1 -0
- package/dist/cjs/models/type.d.ts +645 -0
- package/dist/cjs/models/type.d.ts.map +1 -0
- package/dist/cjs/models/type.js +8 -0
- package/dist/cjs/models/type.js.map +1 -0
- package/dist/cjs/models/zone.d.ts +234 -0
- package/dist/cjs/models/zone.d.ts.map +1 -0
- package/dist/cjs/models/zone.js +8 -0
- package/dist/cjs/models/zone.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/request/index.d.ts +3 -0
- package/dist/cjs/request/index.d.ts.map +1 -0
- package/dist/cjs/request/index.js +19 -0
- package/dist/cjs/request/index.js.map +1 -0
- package/dist/cjs/request/is-retryable-error.d.ts +6 -0
- package/dist/cjs/request/is-retryable-error.d.ts.map +1 -0
- package/dist/cjs/request/is-retryable-error.js +28 -0
- package/dist/cjs/request/is-retryable-error.js.map +1 -0
- package/dist/{typings → cjs}/request/request-executor.d.ts +3 -2
- package/dist/cjs/request/request-executor.d.ts.map +1 -0
- package/dist/cjs/request/request-executor.js +23 -0
- package/dist/cjs/request/request-executor.js.map +1 -0
- package/dist/{typings → cjs}/request/request.d.ts +3 -2
- package/dist/cjs/request/request.d.ts.map +1 -0
- package/dist/cjs/request/request.js +84 -0
- package/dist/cjs/request/request.js.map +1 -0
- package/dist/cjs/request/transform-error.d.ts +7 -0
- package/dist/cjs/request/transform-error.d.ts.map +1 -0
- package/dist/cjs/request/transform-error.js +16 -0
- package/dist/cjs/request/transform-error.js.map +1 -0
- package/dist/{typings → cjs}/types.d.ts +39 -1
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +16 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/convert-error.d.ts +2 -1
- package/dist/cjs/utils/axios/convert-error.d.ts.map +1 -0
- package/dist/cjs/utils/axios/convert-error.js +28 -0
- package/dist/cjs/utils/axios/convert-error.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/convert-response.d.ts +2 -1
- package/dist/cjs/utils/axios/convert-response.d.ts.map +1 -0
- package/dist/cjs/utils/axios/convert-response.js +23 -0
- package/dist/cjs/utils/axios/convert-response.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/create-instance.d.ts +5 -0
- package/dist/cjs/utils/axios/create-instance.d.ts.map +1 -0
- package/dist/cjs/utils/axios/create-instance.js +30 -0
- package/dist/cjs/utils/axios/create-instance.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/extract-headers.d.ts +1 -0
- package/dist/cjs/utils/axios/extract-headers.d.ts.map +1 -0
- package/dist/cjs/utils/axios/extract-headers.js +23 -0
- package/dist/cjs/utils/axios/extract-headers.js.map +1 -0
- package/dist/cjs/utils/axios/index.d.ts +5 -0
- package/dist/cjs/utils/axios/index.d.ts.map +1 -0
- package/dist/cjs/utils/axios/index.js +21 -0
- package/dist/cjs/utils/axios/index.js.map +1 -0
- package/dist/cjs/utils/calculate-delay.d.ts +7 -0
- package/dist/cjs/utils/calculate-delay.d.ts.map +1 -0
- package/dist/cjs/utils/calculate-delay.js +30 -0
- package/dist/cjs/utils/calculate-delay.js.map +1 -0
- package/dist/cjs/utils/ensure-non-empty-string.d.ts +16 -0
- package/dist/cjs/utils/ensure-non-empty-string.d.ts.map +1 -0
- package/dist/cjs/utils/ensure-non-empty-string.js +16 -0
- package/dist/cjs/utils/ensure-non-empty-string.js.map +1 -0
- package/dist/cjs/utils/format.d.ts +11 -0
- package/dist/cjs/utils/format.d.ts.map +1 -0
- package/dist/cjs/utils/format.js +48 -0
- package/dist/cjs/utils/format.js.map +1 -0
- package/dist/cjs/utils/get-attribute-value.d.ts +17 -0
- package/dist/cjs/utils/get-attribute-value.d.ts.map +1 -0
- package/dist/cjs/utils/get-attribute-value.js +19 -0
- package/dist/cjs/utils/get-attribute-value.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +9 -0
- package/dist/cjs/utils/index.d.ts.map +1 -0
- package/dist/cjs/utils/index.js +25 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/mask.d.ts +28 -0
- package/dist/cjs/utils/mask.d.ts.map +1 -0
- package/dist/cjs/utils/mask.js +63 -0
- package/dist/cjs/utils/mask.js.map +1 -0
- package/dist/cjs/utils/plain-clone.d.ts +14 -0
- package/dist/cjs/utils/plain-clone.d.ts.map +1 -0
- package/dist/cjs/utils/plain-clone.js +41 -0
- package/dist/cjs/utils/plain-clone.js.map +1 -0
- package/dist/cjs/utils/retry-on-conflict.d.ts +99 -0
- package/dist/cjs/utils/retry-on-conflict.d.ts.map +1 -0
- package/dist/cjs/utils/retry-on-conflict.js +109 -0
- package/dist/cjs/utils/retry-on-conflict.js.map +1 -0
- package/dist/cjs/utils/useragent.d.ts +10 -0
- package/dist/cjs/utils/useragent.d.ts.map +1 -0
- package/dist/cjs/utils/useragent.js +21 -0
- package/dist/cjs/utils/useragent.js.map +1 -0
- package/dist/mjs/api/CommercetoolsApi.d.ts +1252 -0
- package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -0
- package/dist/mjs/api/CommercetoolsApi.js +2102 -0
- package/dist/mjs/api/CommercetoolsApi.js.map +1 -0
- package/dist/mjs/api/index.d.ts +3 -0
- package/dist/mjs/api/index.d.ts.map +1 -0
- package/dist/mjs/api/index.js +3 -0
- package/dist/mjs/api/index.js.map +1 -0
- package/dist/mjs/api/types.d.ts +33 -0
- package/dist/mjs/api/types.d.ts.map +1 -0
- package/dist/mjs/api/types.js +2 -0
- package/dist/mjs/api/types.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuth.d.ts +182 -0
- package/dist/mjs/auth/CommercetoolsAuth.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuth.js +234 -0
- package/dist/mjs/auth/CommercetoolsAuth.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.d.ts +83 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.js +165 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsGrant.d.ts +66 -0
- package/dist/mjs/auth/CommercetoolsGrant.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsGrant.js +95 -0
- package/dist/mjs/auth/CommercetoolsGrant.js.map +1 -0
- package/dist/mjs/auth/constants.d.ts +7 -0
- package/dist/mjs/auth/constants.d.ts.map +1 -0
- package/dist/mjs/auth/constants.js +28 -0
- package/dist/mjs/auth/constants.js.map +1 -0
- package/dist/mjs/auth/index.d.ts +4 -0
- package/dist/mjs/auth/index.d.ts.map +1 -0
- package/dist/mjs/auth/index.js +3 -0
- package/dist/mjs/auth/index.js.map +1 -0
- package/dist/mjs/auth/scopes.d.ts +11 -0
- package/dist/mjs/auth/scopes.d.ts.map +1 -0
- package/dist/mjs/auth/scopes.js +25 -0
- package/dist/mjs/auth/scopes.js.map +1 -0
- package/dist/mjs/auth/types.d.ts +118 -0
- package/dist/mjs/auth/types.d.ts.map +1 -0
- package/dist/mjs/auth/types.js +25 -0
- package/dist/mjs/auth/types.js.map +1 -0
- package/dist/mjs/auth/utils.d.ts +2 -0
- package/dist/mjs/auth/utils.d.ts.map +1 -0
- package/dist/mjs/auth/utils.js +10 -0
- package/dist/mjs/auth/utils.js.map +1 -0
- package/dist/mjs/constants.d.ts +33 -0
- package/dist/mjs/constants.d.ts.map +1 -0
- package/dist/mjs/constants.js +43 -0
- package/dist/mjs/constants.js.map +1 -0
- package/dist/mjs/error/CommercetoolsError.d.ts +33 -0
- package/dist/mjs/error/CommercetoolsError.d.ts.map +1 -0
- package/dist/mjs/error/CommercetoolsError.js +103 -0
- package/dist/mjs/error/CommercetoolsError.js.map +1 -0
- package/dist/mjs/error/index.d.ts +2 -0
- package/dist/mjs/error/index.d.ts.map +1 -0
- package/dist/mjs/error/index.js +2 -0
- package/dist/mjs/error/index.js.map +1 -0
- package/dist/mjs/index.d.ts +8 -0
- package/dist/mjs/index.d.ts.map +1 -0
- package/dist/mjs/index.js +8 -0
- package/dist/mjs/index.js.map +1 -0
- package/dist/mjs/models/associate-role.d.ts +319 -0
- package/dist/mjs/models/associate-role.d.ts.map +1 -0
- package/dist/mjs/models/associate-role.js +7 -0
- package/dist/mjs/models/associate-role.js.map +1 -0
- package/dist/mjs/models/attribute-group.d.ts +253 -0
- package/dist/mjs/models/attribute-group.d.ts.map +1 -0
- package/dist/mjs/models/attribute-group.js +7 -0
- package/dist/mjs/models/attribute-group.js.map +1 -0
- package/dist/mjs/models/business-unit.d.ts +1197 -0
- package/dist/mjs/models/business-unit.d.ts.map +1 -0
- package/dist/mjs/models/business-unit.js +7 -0
- package/dist/mjs/models/business-unit.js.map +1 -0
- package/dist/mjs/models/cart-discount.d.ts +716 -0
- package/dist/mjs/models/cart-discount.d.ts.map +1 -0
- package/dist/mjs/models/cart-discount.js +7 -0
- package/dist/mjs/models/cart-discount.js.map +1 -0
- package/dist/mjs/models/cart.d.ts +3350 -0
- package/dist/mjs/models/cart.d.ts.map +1 -0
- package/dist/mjs/models/cart.js +7 -0
- package/dist/mjs/models/cart.js.map +1 -0
- package/dist/mjs/models/category.d.ts +634 -0
- package/dist/mjs/models/category.d.ts.map +1 -0
- package/dist/mjs/models/category.js +7 -0
- package/dist/mjs/models/category.js.map +1 -0
- package/dist/mjs/models/channel.d.ts +379 -0
- package/dist/mjs/models/channel.d.ts.map +1 -0
- package/dist/mjs/models/channel.js +7 -0
- package/dist/mjs/models/channel.js.map +1 -0
- package/dist/mjs/models/common.d.ts +1096 -0
- package/dist/mjs/models/common.d.ts.map +1 -0
- package/dist/mjs/models/common.js +7 -0
- package/dist/mjs/models/common.js.map +1 -0
- package/dist/mjs/models/custom-object.d.ts +151 -0
- package/dist/mjs/models/custom-object.d.ts.map +1 -0
- package/dist/mjs/models/custom-object.js +7 -0
- package/dist/mjs/models/custom-object.js.map +1 -0
- package/dist/mjs/models/customer-group.d.ts +235 -0
- package/dist/mjs/models/customer-group.d.ts.map +1 -0
- package/dist/mjs/models/customer-group.js +7 -0
- package/dist/mjs/models/customer-group.js.map +1 -0
- package/dist/mjs/models/customer.d.ts +1221 -0
- package/dist/mjs/models/customer.d.ts.map +1 -0
- package/dist/mjs/models/customer.js +7 -0
- package/dist/mjs/models/customer.js.map +1 -0
- package/dist/mjs/models/discount-code.d.ts +439 -0
- package/dist/mjs/models/discount-code.d.ts.map +1 -0
- package/dist/mjs/models/discount-code.js +7 -0
- package/dist/mjs/models/discount-code.js.map +1 -0
- package/dist/mjs/models/error.d.ts +3062 -0
- package/dist/mjs/models/error.d.ts.map +1 -0
- package/dist/mjs/models/error.js +7 -0
- package/dist/mjs/models/error.js.map +1 -0
- package/dist/mjs/models/extension.d.ts +335 -0
- package/dist/mjs/models/extension.d.ts.map +1 -0
- package/dist/mjs/models/extension.js +7 -0
- package/dist/mjs/models/extension.js.map +1 -0
- package/dist/mjs/models/graph-ql.d.ts +63 -0
- package/dist/mjs/models/graph-ql.d.ts.map +1 -0
- package/dist/mjs/models/graph-ql.js +7 -0
- package/dist/mjs/models/graph-ql.js.map +1 -0
- package/dist/mjs/models/index.d.ts +42 -0
- package/dist/mjs/models/index.d.ts.map +1 -0
- package/dist/mjs/models/index.js +42 -0
- package/dist/mjs/models/index.js.map +1 -0
- package/dist/mjs/models/inventory.d.ts +327 -0
- package/dist/mjs/models/inventory.d.ts.map +1 -0
- package/dist/mjs/models/inventory.js +7 -0
- package/dist/mjs/models/inventory.js.map +1 -0
- package/dist/mjs/models/me.d.ts +2483 -0
- package/dist/mjs/models/me.d.ts.map +1 -0
- package/dist/mjs/models/me.js +7 -0
- package/dist/mjs/models/me.js.map +1 -0
- package/dist/mjs/models/message.d.ts +15095 -0
- package/dist/mjs/models/message.d.ts.map +1 -0
- package/dist/mjs/models/message.js +7 -0
- package/dist/mjs/models/message.js.map +1 -0
- package/dist/mjs/models/order-edit.d.ts +1645 -0
- package/dist/mjs/models/order-edit.d.ts.map +1 -0
- package/dist/mjs/models/order-edit.js +7 -0
- package/dist/mjs/models/order-edit.js.map +1 -0
- package/dist/mjs/models/order.d.ts +2157 -0
- package/dist/mjs/models/order.d.ts.map +1 -0
- package/dist/mjs/models/order.js +7 -0
- package/dist/mjs/models/order.js.map +1 -0
- package/dist/mjs/models/payment.d.ts +734 -0
- package/dist/mjs/models/payment.d.ts.map +1 -0
- package/dist/mjs/models/payment.js +7 -0
- package/dist/mjs/models/payment.js.map +1 -0
- package/dist/mjs/models/product-discount.d.ts +461 -0
- package/dist/mjs/models/product-discount.d.ts.map +1 -0
- package/dist/mjs/models/product-discount.js +7 -0
- package/dist/mjs/models/product-discount.js.map +1 -0
- package/dist/mjs/models/product-selection.d.ts +638 -0
- package/dist/mjs/models/product-selection.d.ts.map +1 -0
- package/dist/mjs/models/product-selection.js +7 -0
- package/dist/mjs/models/product-selection.js.map +1 -0
- package/dist/mjs/models/product-type.d.ts +774 -0
- package/dist/mjs/models/product-type.d.ts.map +1 -0
- package/dist/mjs/models/product-type.js +7 -0
- package/dist/mjs/models/product-type.js.map +1 -0
- package/dist/mjs/models/product.d.ts +2282 -0
- package/dist/mjs/models/product.d.ts.map +1 -0
- package/dist/mjs/models/product.js +7 -0
- package/dist/mjs/models/product.js.map +1 -0
- package/dist/mjs/models/project.d.ts +381 -0
- package/dist/mjs/models/project.d.ts.map +1 -0
- package/dist/mjs/models/project.js +7 -0
- package/dist/mjs/models/project.js.map +1 -0
- package/dist/mjs/models/quote-request.d.ts +430 -0
- package/dist/mjs/models/quote-request.d.ts.map +1 -0
- package/dist/mjs/models/quote-request.js +7 -0
- package/dist/mjs/models/quote-request.js.map +1 -0
- package/dist/mjs/models/quote.d.ts +458 -0
- package/dist/mjs/models/quote.d.ts.map +1 -0
- package/dist/mjs/models/quote.js +7 -0
- package/dist/mjs/models/quote.js.map +1 -0
- package/dist/mjs/models/review.d.ts +435 -0
- package/dist/mjs/models/review.d.ts.map +1 -0
- package/dist/mjs/models/review.js +7 -0
- package/dist/mjs/models/review.js.map +1 -0
- package/dist/mjs/models/scalar-types.d.ts +9 -0
- package/dist/mjs/models/scalar-types.d.ts.map +1 -0
- package/dist/mjs/models/scalar-types.js +7 -0
- package/dist/mjs/models/scalar-types.js.map +1 -0
- package/dist/mjs/models/shipping-method.d.ts +569 -0
- package/dist/mjs/models/shipping-method.d.ts.map +1 -0
- package/dist/mjs/models/shipping-method.js +7 -0
- package/dist/mjs/models/shipping-method.js.map +1 -0
- package/dist/mjs/models/shopping-list.d.ts +844 -0
- package/dist/mjs/models/shopping-list.d.ts.map +1 -0
- package/dist/mjs/models/shopping-list.js +7 -0
- package/dist/mjs/models/shopping-list.js.map +1 -0
- package/dist/mjs/models/staged-quote.d.ts +338 -0
- package/dist/mjs/models/staged-quote.d.ts.map +1 -0
- package/dist/mjs/models/staged-quote.js +7 -0
- package/dist/mjs/models/staged-quote.js.map +1 -0
- package/dist/mjs/models/standalone-price.d.ts +410 -0
- package/dist/mjs/models/standalone-price.d.ts.map +1 -0
- package/dist/mjs/models/standalone-price.js +7 -0
- package/dist/mjs/models/standalone-price.js.map +1 -0
- package/dist/mjs/models/state.d.ts +341 -0
- package/dist/mjs/models/state.d.ts.map +1 -0
- package/dist/mjs/models/state.js +7 -0
- package/dist/mjs/models/state.js.map +1 -0
- package/dist/mjs/models/store-country.d.ts +14 -0
- package/dist/mjs/models/store-country.d.ts.map +1 -0
- package/dist/mjs/models/store-country.js +7 -0
- package/dist/mjs/models/store-country.js.map +1 -0
- package/dist/mjs/models/store.d.ts +547 -0
- package/dist/mjs/models/store.d.ts.map +1 -0
- package/dist/mjs/models/store.js +7 -0
- package/dist/mjs/models/store.js.map +1 -0
- package/dist/mjs/models/subscription.d.ts +717 -0
- package/dist/mjs/models/subscription.d.ts.map +1 -0
- package/dist/mjs/models/subscription.js +7 -0
- package/dist/mjs/models/subscription.js.map +1 -0
- package/dist/mjs/models/tax-category.d.ts +376 -0
- package/dist/mjs/models/tax-category.d.ts.map +1 -0
- package/dist/mjs/models/tax-category.js +7 -0
- package/dist/mjs/models/tax-category.js.map +1 -0
- package/dist/mjs/models/type.d.ts +645 -0
- package/dist/mjs/models/type.d.ts.map +1 -0
- package/dist/mjs/models/type.js +7 -0
- package/dist/mjs/models/type.js.map +1 -0
- package/dist/mjs/models/zone.d.ts +234 -0
- package/dist/mjs/models/zone.d.ts.map +1 -0
- package/dist/mjs/models/zone.js +7 -0
- package/dist/mjs/models/zone.js.map +1 -0
- package/dist/mjs/request/index.d.ts +3 -0
- package/dist/mjs/request/index.d.ts.map +1 -0
- package/dist/mjs/request/index.js +3 -0
- package/dist/mjs/request/index.js.map +1 -0
- package/dist/mjs/request/is-retryable-error.d.ts +6 -0
- package/dist/mjs/request/is-retryable-error.d.ts.map +1 -0
- package/dist/mjs/request/is-retryable-error.js +24 -0
- package/dist/mjs/request/is-retryable-error.js.map +1 -0
- package/dist/mjs/request/request-executor.d.ts +12 -0
- package/dist/mjs/request/request-executor.d.ts.map +1 -0
- package/dist/mjs/request/request-executor.js +19 -0
- package/dist/mjs/request/request-executor.js.map +1 -0
- package/dist/mjs/request/request.d.ts +11 -0
- package/dist/mjs/request/request.d.ts.map +1 -0
- package/dist/mjs/request/request.js +80 -0
- package/dist/mjs/request/request.js.map +1 -0
- package/dist/mjs/request/transform-error.d.ts +7 -0
- package/dist/mjs/request/transform-error.d.ts.map +1 -0
- package/dist/mjs/request/transform-error.js +12 -0
- package/dist/mjs/request/transform-error.js.map +1 -0
- package/dist/mjs/types.d.ts +96 -0
- package/dist/mjs/types.d.ts.map +1 -0
- package/dist/mjs/types.js +13 -0
- package/dist/mjs/types.js.map +1 -0
- package/dist/mjs/utils/axios/convert-error.d.ts +4 -0
- package/dist/mjs/utils/axios/convert-error.d.ts.map +1 -0
- package/dist/mjs/utils/axios/convert-error.js +24 -0
- package/dist/mjs/utils/axios/convert-error.js.map +1 -0
- package/dist/mjs/utils/axios/convert-response.d.ts +4 -0
- package/dist/mjs/utils/axios/convert-response.d.ts.map +1 -0
- package/dist/mjs/utils/axios/convert-response.js +19 -0
- package/dist/mjs/utils/axios/convert-response.js.map +1 -0
- package/dist/mjs/utils/axios/create-instance.d.ts +11 -0
- package/dist/mjs/utils/axios/create-instance.d.ts.map +1 -0
- package/dist/mjs/utils/axios/create-instance.js +23 -0
- package/dist/mjs/utils/axios/create-instance.js.map +1 -0
- package/dist/mjs/utils/axios/extract-headers.d.ts +2 -0
- package/dist/mjs/utils/axios/extract-headers.d.ts.map +1 -0
- package/dist/mjs/utils/axios/extract-headers.js +19 -0
- package/dist/mjs/utils/axios/extract-headers.js.map +1 -0
- package/dist/mjs/utils/axios/index.d.ts +5 -0
- package/dist/mjs/utils/axios/index.d.ts.map +1 -0
- package/dist/mjs/utils/axios/index.js +5 -0
- package/dist/mjs/utils/axios/index.js.map +1 -0
- package/dist/mjs/utils/calculate-delay.d.ts +7 -0
- package/dist/mjs/utils/calculate-delay.d.ts.map +1 -0
- package/dist/mjs/utils/calculate-delay.js +26 -0
- package/dist/mjs/utils/calculate-delay.js.map +1 -0
- package/dist/mjs/utils/ensure-non-empty-string.d.ts +16 -0
- package/dist/mjs/utils/ensure-non-empty-string.d.ts.map +1 -0
- package/dist/mjs/utils/ensure-non-empty-string.js +12 -0
- package/dist/mjs/utils/ensure-non-empty-string.js.map +1 -0
- package/dist/mjs/utils/format.d.ts +11 -0
- package/dist/mjs/utils/format.d.ts.map +1 -0
- package/dist/mjs/utils/format.js +44 -0
- package/dist/mjs/utils/format.js.map +1 -0
- package/dist/mjs/utils/get-attribute-value.d.ts +17 -0
- package/dist/mjs/utils/get-attribute-value.d.ts.map +1 -0
- package/dist/mjs/utils/get-attribute-value.js +15 -0
- package/dist/mjs/utils/get-attribute-value.js.map +1 -0
- package/dist/mjs/utils/index.d.ts +9 -0
- package/dist/mjs/utils/index.d.ts.map +1 -0
- package/dist/mjs/utils/index.js +9 -0
- package/dist/mjs/utils/index.js.map +1 -0
- package/dist/mjs/utils/mask.d.ts +28 -0
- package/dist/mjs/utils/mask.d.ts.map +1 -0
- package/dist/mjs/utils/mask.js +54 -0
- package/dist/mjs/utils/mask.js.map +1 -0
- package/dist/mjs/utils/plain-clone.d.ts +14 -0
- package/dist/mjs/utils/plain-clone.d.ts.map +1 -0
- package/dist/mjs/utils/plain-clone.js +37 -0
- package/dist/mjs/utils/plain-clone.js.map +1 -0
- package/dist/mjs/utils/retry-on-conflict.d.ts +99 -0
- package/dist/mjs/utils/retry-on-conflict.d.ts.map +1 -0
- package/dist/mjs/utils/retry-on-conflict.js +105 -0
- package/dist/mjs/utils/retry-on-conflict.js.map +1 -0
- package/dist/mjs/utils/useragent.d.ts +10 -0
- package/dist/mjs/utils/useragent.d.ts.map +1 -0
- package/dist/mjs/utils/useragent.js +17 -0
- package/dist/mjs/utils/useragent.js.map +1 -0
- package/package.json +48 -46
- package/dist/ge-commercetools-utils-browser.cjs.js +0 -2
- package/dist/ge-commercetools-utils-browser.cjs.js.map +0 -1
- package/dist/ge-commercetools-utils-browser.esm.js +0 -2
- package/dist/ge-commercetools-utils-browser.esm.js.map +0 -1
- package/dist/ge-commercetools-utils-node.cjs.js +0 -3
- package/dist/ge-commercetools-utils-node.cjs.js.LICENSE.txt +0 -13
- package/dist/ge-commercetools-utils-node.cjs.js.map +0 -1
- package/dist/ge-commercetools-utils-node.esm.js +0 -2
- package/dist/ge-commercetools-utils-node.esm.js.LICENSE.txt +0 -13
- package/dist/typings/api/CommercetoolsApi.d.ts +0 -515
- package/dist/typings/api/index.d.ts +0 -2
- package/dist/typings/api/types.d.ts +0 -12
- package/dist/typings/auth/CommercetoolsAuth.d.ts +0 -22
- package/dist/typings/auth/CommercetoolsAuthApi.d.ts +0 -27
- package/dist/typings/auth/CommercetoolsGrant.d.ts +0 -13
- package/dist/typings/auth/constants.d.ts +0 -3
- package/dist/typings/auth/index.d.ts +0 -3
- package/dist/typings/auth/scopes.d.ts +0 -2
- package/dist/typings/auth/types.d.ts +0 -41
- package/dist/typings/constants.d.ts +0 -12
- package/dist/typings/error/CommercetoolsError.d.ts +0 -11
- package/dist/typings/error/index.d.ts +0 -1
- package/dist/typings/index.d.ts +0 -7
- package/dist/typings/models/associate-role.d.ts +0 -79
- package/dist/typings/models/attribute-group.d.ts +0 -68
- package/dist/typings/models/business-unit.d.ts +0 -272
- package/dist/typings/models/cart-discount.d.ts +0 -196
- package/dist/typings/models/cart.d.ts +0 -745
- package/dist/typings/models/category.d.ts +0 -166
- package/dist/typings/models/channel.d.ts +0 -103
- package/dist/typings/models/common.d.ts +0 -256
- package/dist/typings/models/custom-object.d.ts +0 -30
- package/dist/typings/models/customer-group.d.ts +0 -58
- package/dist/typings/models/customer.d.ts +0 -293
- package/dist/typings/models/discount-code.d.ts +0 -116
- package/dist/typings/models/error.d.ts +0 -874
- package/dist/typings/models/extension.d.ts +0 -83
- package/dist/typings/models/graph-ql.d.ts +0 -23
- package/dist/typings/models/index.d.ts +0 -41
- package/dist/typings/models/inventory.d.ts +0 -88
- package/dist/typings/models/me.d.ts +0 -640
- package/dist/typings/models/message.d.ts +0 -3210
- package/dist/typings/models/order-edit.d.ts +0 -572
- package/dist/typings/models/payment.d.ts +0 -191
- package/dist/typings/models/product-discount.d.ts +0 -123
- package/dist/typings/models/product-selection.d.ts +0 -158
- package/dist/typings/models/product-type.d.ts +0 -213
- package/dist/typings/models/product.d.ts +0 -535
- package/dist/typings/models/project.d.ts +0 -120
- package/dist/typings/models/quote-request.d.ts +0 -94
- package/dist/typings/models/quote.d.ts +0 -103
- package/dist/typings/models/review.d.ts +0 -115
- package/dist/typings/models/scalar-types.d.ts +0 -3
- package/dist/typings/models/shipping-method.d.ts +0 -160
- package/dist/typings/models/shopping-list.d.ts +0 -217
- package/dist/typings/models/staged-quote.d.ts +0 -84
- package/dist/typings/models/standalone-price.d.ts +0 -95
- package/dist/typings/models/state.d.ts +0 -86
- package/dist/typings/models/store-country.d.ts +0 -3
- package/dist/typings/models/store.d.ts +0 -137
- package/dist/typings/models/subscription.d.ts +0 -161
- package/dist/typings/models/tax-category.d.ts +0 -91
- package/dist/typings/models/type.d.ts +0 -177
- package/dist/typings/models/zone.d.ts +0 -65
- package/dist/typings/request/index.d.ts +0 -2
- package/dist/typings/request/is-retryable-error.d.ts +0 -1
- package/dist/typings/request/transform-error.d.ts +0 -2
- package/dist/typings/utils/axios/index.d.ts +0 -4
- package/dist/typings/utils/calculate-delay.d.ts +0 -2
- package/dist/typings/utils/ensure-non-empty-string.d.ts +0 -5
- package/dist/typings/utils/format.d.ts +0 -1
- package/dist/typings/utils/get-attribute-value.d.ts +0 -6
- package/dist/typings/utils/index.d.ts +0 -8
- package/dist/typings/utils/mask.d.ts +0 -6
- package/dist/typings/utils/plain-clone.d.ts +0 -1
- package/dist/typings/utils/retry-on-conflict.d.ts +0 -7
- package/dist/typings/utils/useragent.d.ts +0 -1
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { Cart, CartResourceIdentifier } from './cart';
|
|
2
|
-
import { Address, BaseAddress, BaseResource, CreatedBy, LastModifiedBy, _BaseAddress } from './common';
|
|
3
|
-
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
4
|
-
import { StoreKeyReference, StoreResourceIdentifier } from './store';
|
|
5
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
6
|
-
export type AnonymousCartSignInMode = 'MergeWithExistingCustomerCart' | 'UseAsNewActiveCustomerCart' | string;
|
|
7
|
-
export type AuthenticationMode = 'ExternalAuth' | 'Password' | string;
|
|
8
|
-
export interface Customer extends BaseResource {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly version: number;
|
|
11
|
-
readonly key?: string;
|
|
12
|
-
readonly customerNumber?: string;
|
|
13
|
-
readonly externalId?: string;
|
|
14
|
-
readonly createdAt: string;
|
|
15
|
-
readonly lastModifiedAt: string;
|
|
16
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
17
|
-
readonly createdBy?: CreatedBy;
|
|
18
|
-
readonly email: string;
|
|
19
|
-
readonly password?: string;
|
|
20
|
-
readonly firstName?: string;
|
|
21
|
-
readonly lastName?: string;
|
|
22
|
-
readonly middleName?: string;
|
|
23
|
-
readonly title?: string;
|
|
24
|
-
readonly dateOfBirth?: string;
|
|
25
|
-
readonly companyName?: string;
|
|
26
|
-
readonly vatId?: string;
|
|
27
|
-
readonly addresses: Address[];
|
|
28
|
-
readonly defaultShippingAddressId?: string;
|
|
29
|
-
readonly shippingAddressIds?: string[];
|
|
30
|
-
readonly defaultBillingAddressId?: string;
|
|
31
|
-
readonly billingAddressIds?: string[];
|
|
32
|
-
readonly isEmailVerified: boolean;
|
|
33
|
-
readonly customerGroup?: CustomerGroupReference;
|
|
34
|
-
readonly custom?: CustomFields;
|
|
35
|
-
readonly locale?: string;
|
|
36
|
-
readonly salutation?: string;
|
|
37
|
-
readonly stores?: StoreKeyReference[];
|
|
38
|
-
readonly authenticationMode: AuthenticationMode;
|
|
39
|
-
}
|
|
40
|
-
export interface CustomerChangePassword {
|
|
41
|
-
readonly id: string;
|
|
42
|
-
readonly version: number;
|
|
43
|
-
readonly currentPassword: string;
|
|
44
|
-
readonly newPassword: string;
|
|
45
|
-
}
|
|
46
|
-
export interface CustomerCreateEmailToken {
|
|
47
|
-
readonly id: string;
|
|
48
|
-
readonly version?: number;
|
|
49
|
-
readonly ttlMinutes: number;
|
|
50
|
-
}
|
|
51
|
-
export interface CustomerCreatePasswordResetToken {
|
|
52
|
-
readonly email: string;
|
|
53
|
-
readonly ttlMinutes?: number;
|
|
54
|
-
}
|
|
55
|
-
export interface CustomerDraft {
|
|
56
|
-
readonly key?: string;
|
|
57
|
-
readonly customerNumber?: string;
|
|
58
|
-
readonly externalId?: string;
|
|
59
|
-
readonly email: string;
|
|
60
|
-
readonly password?: string;
|
|
61
|
-
readonly firstName?: string;
|
|
62
|
-
readonly lastName?: string;
|
|
63
|
-
readonly middleName?: string;
|
|
64
|
-
readonly title?: string;
|
|
65
|
-
readonly anonymousCartId?: string;
|
|
66
|
-
readonly anonymousCart?: CartResourceIdentifier;
|
|
67
|
-
readonly anonymousId?: string;
|
|
68
|
-
readonly dateOfBirth?: string;
|
|
69
|
-
readonly companyName?: string;
|
|
70
|
-
readonly vatId?: string;
|
|
71
|
-
readonly addresses?: BaseAddress[];
|
|
72
|
-
readonly defaultShippingAddress?: number;
|
|
73
|
-
readonly shippingAddresses?: number[];
|
|
74
|
-
readonly defaultBillingAddress?: number;
|
|
75
|
-
readonly billingAddresses?: number[];
|
|
76
|
-
readonly isEmailVerified?: boolean;
|
|
77
|
-
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
78
|
-
readonly custom?: CustomFieldsDraft;
|
|
79
|
-
readonly locale?: string;
|
|
80
|
-
readonly salutation?: string;
|
|
81
|
-
readonly stores?: StoreResourceIdentifier[];
|
|
82
|
-
readonly authenticationMode?: AuthenticationMode;
|
|
83
|
-
}
|
|
84
|
-
export interface CustomerEmailVerify {
|
|
85
|
-
readonly version?: number;
|
|
86
|
-
readonly tokenValue: string;
|
|
87
|
-
}
|
|
88
|
-
export interface CustomerPagedQueryResponse {
|
|
89
|
-
readonly limit: number;
|
|
90
|
-
readonly offset: number;
|
|
91
|
-
readonly count: number;
|
|
92
|
-
readonly total?: number;
|
|
93
|
-
readonly results: Customer[];
|
|
94
|
-
}
|
|
95
|
-
export interface CustomerReference {
|
|
96
|
-
readonly typeId: 'customer';
|
|
97
|
-
readonly id: string;
|
|
98
|
-
readonly obj?: Customer;
|
|
99
|
-
}
|
|
100
|
-
export interface CustomerResetPassword {
|
|
101
|
-
readonly tokenValue: string;
|
|
102
|
-
readonly newPassword: string;
|
|
103
|
-
readonly version?: number;
|
|
104
|
-
}
|
|
105
|
-
export interface CustomerResourceIdentifier {
|
|
106
|
-
readonly typeId: 'customer';
|
|
107
|
-
readonly id?: string;
|
|
108
|
-
readonly key?: string;
|
|
109
|
-
}
|
|
110
|
-
export interface CustomerSignInResult {
|
|
111
|
-
readonly customer: Customer;
|
|
112
|
-
readonly cart?: Cart;
|
|
113
|
-
}
|
|
114
|
-
export interface CustomerSignin {
|
|
115
|
-
readonly email: string;
|
|
116
|
-
readonly password: string;
|
|
117
|
-
readonly anonymousCartId?: string;
|
|
118
|
-
readonly anonymousCart?: CartResourceIdentifier;
|
|
119
|
-
readonly anonymousCartSignInMode?: AnonymousCartSignInMode;
|
|
120
|
-
readonly anonymousId?: string;
|
|
121
|
-
readonly updateProductData?: boolean;
|
|
122
|
-
}
|
|
123
|
-
export interface CustomerToken {
|
|
124
|
-
readonly id: string;
|
|
125
|
-
readonly createdAt: string;
|
|
126
|
-
readonly lastModifiedAt?: string;
|
|
127
|
-
readonly customerId: string;
|
|
128
|
-
readonly expiresAt: string;
|
|
129
|
-
readonly value: string;
|
|
130
|
-
}
|
|
131
|
-
export interface CustomerUpdate {
|
|
132
|
-
readonly version: number;
|
|
133
|
-
readonly actions: CustomerUpdateAction[];
|
|
134
|
-
}
|
|
135
|
-
export type CustomerUpdateAction = CustomerAddAddressAction | CustomerAddBillingAddressIdAction | CustomerAddShippingAddressIdAction | CustomerAddStoreAction | CustomerChangeAddressAction | CustomerChangeEmailAction | CustomerRemoveAddressAction | CustomerRemoveBillingAddressIdAction | CustomerRemoveShippingAddressIdAction | CustomerRemoveStoreAction | CustomerSetAddressCustomFieldAction | CustomerSetAddressCustomTypeAction | CustomerSetAuthenticationModeAction | CustomerSetCompanyNameAction | CustomerSetCustomFieldAction | CustomerSetCustomTypeAction | CustomerSetCustomerGroupAction | CustomerSetCustomerNumberAction | CustomerSetDateOfBirthAction | CustomerSetDefaultBillingAddressAction | CustomerSetDefaultShippingAddressAction | CustomerSetExternalIdAction | CustomerSetFirstNameAction | CustomerSetKeyAction | CustomerSetLastNameAction | CustomerSetLocaleAction | CustomerSetMiddleNameAction | CustomerSetSalutationAction | CustomerSetStoresAction | CustomerSetTitleAction | CustomerSetVatIdAction;
|
|
136
|
-
export interface MyCustomerChangePassword {
|
|
137
|
-
readonly version: number;
|
|
138
|
-
readonly currentPassword: string;
|
|
139
|
-
readonly newPassword: string;
|
|
140
|
-
}
|
|
141
|
-
export interface MyCustomerEmailVerify {
|
|
142
|
-
readonly tokenValue: string;
|
|
143
|
-
}
|
|
144
|
-
export interface MyCustomerResetPassword {
|
|
145
|
-
readonly tokenValue: string;
|
|
146
|
-
readonly newPassword: string;
|
|
147
|
-
}
|
|
148
|
-
export interface MyCustomerSignin {
|
|
149
|
-
readonly email: string;
|
|
150
|
-
readonly password: string;
|
|
151
|
-
readonly activeCartSignInMode?: AnonymousCartSignInMode;
|
|
152
|
-
readonly updateProductData?: boolean;
|
|
153
|
-
}
|
|
154
|
-
export interface CustomerAddAddressAction {
|
|
155
|
-
readonly action: 'addAddress';
|
|
156
|
-
readonly address: _BaseAddress;
|
|
157
|
-
}
|
|
158
|
-
export interface CustomerAddBillingAddressIdAction {
|
|
159
|
-
readonly action: 'addBillingAddressId';
|
|
160
|
-
readonly addressId?: string;
|
|
161
|
-
readonly addressKey?: string;
|
|
162
|
-
}
|
|
163
|
-
export interface CustomerAddShippingAddressIdAction {
|
|
164
|
-
readonly action: 'addShippingAddressId';
|
|
165
|
-
readonly addressId?: string;
|
|
166
|
-
readonly addressKey?: string;
|
|
167
|
-
}
|
|
168
|
-
export interface CustomerAddStoreAction {
|
|
169
|
-
readonly action: 'addStore';
|
|
170
|
-
readonly store: StoreResourceIdentifier;
|
|
171
|
-
}
|
|
172
|
-
export interface CustomerChangeAddressAction {
|
|
173
|
-
readonly action: 'changeAddress';
|
|
174
|
-
readonly addressId?: string;
|
|
175
|
-
readonly addressKey?: string;
|
|
176
|
-
readonly address: _BaseAddress;
|
|
177
|
-
}
|
|
178
|
-
export interface CustomerChangeEmailAction {
|
|
179
|
-
readonly action: 'changeEmail';
|
|
180
|
-
readonly email: string;
|
|
181
|
-
}
|
|
182
|
-
export interface CustomerRemoveAddressAction {
|
|
183
|
-
readonly action: 'removeAddress';
|
|
184
|
-
readonly addressId?: string;
|
|
185
|
-
readonly addressKey?: string;
|
|
186
|
-
}
|
|
187
|
-
export interface CustomerRemoveBillingAddressIdAction {
|
|
188
|
-
readonly action: 'removeBillingAddressId';
|
|
189
|
-
readonly addressId?: string;
|
|
190
|
-
readonly addressKey?: string;
|
|
191
|
-
}
|
|
192
|
-
export interface CustomerRemoveShippingAddressIdAction {
|
|
193
|
-
readonly action: 'removeShippingAddressId';
|
|
194
|
-
readonly addressId?: string;
|
|
195
|
-
readonly addressKey?: string;
|
|
196
|
-
}
|
|
197
|
-
export interface CustomerRemoveStoreAction {
|
|
198
|
-
readonly action: 'removeStore';
|
|
199
|
-
readonly store: StoreResourceIdentifier;
|
|
200
|
-
}
|
|
201
|
-
export interface CustomerSetAddressCustomFieldAction {
|
|
202
|
-
readonly action: 'setAddressCustomField';
|
|
203
|
-
readonly addressId: string;
|
|
204
|
-
readonly name: string;
|
|
205
|
-
readonly value?: any;
|
|
206
|
-
}
|
|
207
|
-
export interface CustomerSetAddressCustomTypeAction {
|
|
208
|
-
readonly action: 'setAddressCustomType';
|
|
209
|
-
readonly addressId: string;
|
|
210
|
-
readonly type?: TypeResourceIdentifier;
|
|
211
|
-
readonly fields?: FieldContainer;
|
|
212
|
-
}
|
|
213
|
-
export interface CustomerSetAuthenticationModeAction {
|
|
214
|
-
readonly action: 'setAuthenticationMode';
|
|
215
|
-
readonly authMode: AuthenticationMode;
|
|
216
|
-
readonly password?: string;
|
|
217
|
-
}
|
|
218
|
-
export interface CustomerSetCompanyNameAction {
|
|
219
|
-
readonly action: 'setCompanyName';
|
|
220
|
-
readonly companyName?: string;
|
|
221
|
-
}
|
|
222
|
-
export interface CustomerSetCustomFieldAction {
|
|
223
|
-
readonly action: 'setCustomField';
|
|
224
|
-
readonly name: string;
|
|
225
|
-
readonly value?: any;
|
|
226
|
-
}
|
|
227
|
-
export interface CustomerSetCustomTypeAction {
|
|
228
|
-
readonly action: 'setCustomType';
|
|
229
|
-
readonly type?: TypeResourceIdentifier;
|
|
230
|
-
readonly fields?: FieldContainer;
|
|
231
|
-
}
|
|
232
|
-
export interface CustomerSetCustomerGroupAction {
|
|
233
|
-
readonly action: 'setCustomerGroup';
|
|
234
|
-
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
235
|
-
}
|
|
236
|
-
export interface CustomerSetCustomerNumberAction {
|
|
237
|
-
readonly action: 'setCustomerNumber';
|
|
238
|
-
readonly customerNumber?: string;
|
|
239
|
-
}
|
|
240
|
-
export interface CustomerSetDateOfBirthAction {
|
|
241
|
-
readonly action: 'setDateOfBirth';
|
|
242
|
-
readonly dateOfBirth?: string;
|
|
243
|
-
}
|
|
244
|
-
export interface CustomerSetDefaultBillingAddressAction {
|
|
245
|
-
readonly action: 'setDefaultBillingAddress';
|
|
246
|
-
readonly addressId?: string;
|
|
247
|
-
readonly addressKey?: string;
|
|
248
|
-
}
|
|
249
|
-
export interface CustomerSetDefaultShippingAddressAction {
|
|
250
|
-
readonly action: 'setDefaultShippingAddress';
|
|
251
|
-
readonly addressId?: string;
|
|
252
|
-
readonly addressKey?: string;
|
|
253
|
-
}
|
|
254
|
-
export interface CustomerSetExternalIdAction {
|
|
255
|
-
readonly action: 'setExternalId';
|
|
256
|
-
readonly externalId?: string;
|
|
257
|
-
}
|
|
258
|
-
export interface CustomerSetFirstNameAction {
|
|
259
|
-
readonly action: 'setFirstName';
|
|
260
|
-
readonly firstName?: string;
|
|
261
|
-
}
|
|
262
|
-
export interface CustomerSetKeyAction {
|
|
263
|
-
readonly action: 'setKey';
|
|
264
|
-
readonly key?: string;
|
|
265
|
-
}
|
|
266
|
-
export interface CustomerSetLastNameAction {
|
|
267
|
-
readonly action: 'setLastName';
|
|
268
|
-
readonly lastName?: string;
|
|
269
|
-
}
|
|
270
|
-
export interface CustomerSetLocaleAction {
|
|
271
|
-
readonly action: 'setLocale';
|
|
272
|
-
readonly locale?: string;
|
|
273
|
-
}
|
|
274
|
-
export interface CustomerSetMiddleNameAction {
|
|
275
|
-
readonly action: 'setMiddleName';
|
|
276
|
-
readonly middleName?: string;
|
|
277
|
-
}
|
|
278
|
-
export interface CustomerSetSalutationAction {
|
|
279
|
-
readonly action: 'setSalutation';
|
|
280
|
-
readonly salutation?: string;
|
|
281
|
-
}
|
|
282
|
-
export interface CustomerSetStoresAction {
|
|
283
|
-
readonly action: 'setStores';
|
|
284
|
-
readonly stores?: StoreResourceIdentifier[];
|
|
285
|
-
}
|
|
286
|
-
export interface CustomerSetTitleAction {
|
|
287
|
-
readonly action: 'setTitle';
|
|
288
|
-
readonly title?: string;
|
|
289
|
-
}
|
|
290
|
-
export interface CustomerSetVatIdAction {
|
|
291
|
-
readonly action: 'setVatId';
|
|
292
|
-
readonly vatId?: string;
|
|
293
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { CartDiscountReference, CartDiscountResourceIdentifier } from './cart-discount';
|
|
2
|
-
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString, Reference } from './common';
|
|
3
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
4
|
-
export interface DiscountCode extends BaseResource {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly version: number;
|
|
7
|
-
readonly createdAt: string;
|
|
8
|
-
readonly lastModifiedAt: string;
|
|
9
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
10
|
-
readonly createdBy?: CreatedBy;
|
|
11
|
-
readonly name?: LocalizedString;
|
|
12
|
-
readonly description?: LocalizedString;
|
|
13
|
-
readonly code: string;
|
|
14
|
-
readonly cartDiscounts: CartDiscountReference[];
|
|
15
|
-
readonly cartPredicate?: string;
|
|
16
|
-
readonly isActive: boolean;
|
|
17
|
-
readonly references: Reference[];
|
|
18
|
-
readonly maxApplications?: number;
|
|
19
|
-
readonly maxApplicationsPerCustomer?: number;
|
|
20
|
-
readonly custom?: CustomFields;
|
|
21
|
-
readonly groups: string[];
|
|
22
|
-
readonly validFrom?: string;
|
|
23
|
-
readonly validUntil?: string;
|
|
24
|
-
readonly applicationVersion?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface DiscountCodeDraft {
|
|
27
|
-
readonly name?: LocalizedString;
|
|
28
|
-
readonly description?: LocalizedString;
|
|
29
|
-
readonly code: string;
|
|
30
|
-
readonly cartDiscounts: CartDiscountResourceIdentifier[];
|
|
31
|
-
readonly cartPredicate?: string;
|
|
32
|
-
readonly isActive?: boolean;
|
|
33
|
-
readonly maxApplications?: number;
|
|
34
|
-
readonly maxApplicationsPerCustomer?: number;
|
|
35
|
-
readonly custom?: CustomFieldsDraft;
|
|
36
|
-
readonly groups?: string[];
|
|
37
|
-
readonly validFrom?: string;
|
|
38
|
-
readonly validUntil?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface DiscountCodePagedQueryResponse {
|
|
41
|
-
readonly limit: number;
|
|
42
|
-
readonly offset: number;
|
|
43
|
-
readonly count: number;
|
|
44
|
-
readonly total?: number;
|
|
45
|
-
readonly results: DiscountCode[];
|
|
46
|
-
}
|
|
47
|
-
export interface DiscountCodeReference {
|
|
48
|
-
readonly typeId: 'discount-code';
|
|
49
|
-
readonly id: string;
|
|
50
|
-
readonly obj?: DiscountCode;
|
|
51
|
-
}
|
|
52
|
-
export interface DiscountCodeResourceIdentifier {
|
|
53
|
-
readonly typeId: 'discount-code';
|
|
54
|
-
readonly id?: string;
|
|
55
|
-
readonly key?: string;
|
|
56
|
-
}
|
|
57
|
-
export interface DiscountCodeUpdate {
|
|
58
|
-
readonly version: number;
|
|
59
|
-
readonly actions: DiscountCodeUpdateAction[];
|
|
60
|
-
}
|
|
61
|
-
export type DiscountCodeUpdateAction = DiscountCodeChangeCartDiscountsAction | DiscountCodeChangeGroupsAction | DiscountCodeChangeIsActiveAction | DiscountCodeSetCartPredicateAction | DiscountCodeSetCustomFieldAction | DiscountCodeSetCustomTypeAction | DiscountCodeSetDescriptionAction | DiscountCodeSetMaxApplicationsAction | DiscountCodeSetMaxApplicationsPerCustomerAction | DiscountCodeSetNameAction | DiscountCodeSetValidFromAction | DiscountCodeSetValidFromAndUntilAction | DiscountCodeSetValidUntilAction;
|
|
62
|
-
export interface DiscountCodeChangeCartDiscountsAction {
|
|
63
|
-
readonly action: 'changeCartDiscounts';
|
|
64
|
-
readonly cartDiscounts: CartDiscountResourceIdentifier[];
|
|
65
|
-
}
|
|
66
|
-
export interface DiscountCodeChangeGroupsAction {
|
|
67
|
-
readonly action: 'changeGroups';
|
|
68
|
-
readonly groups: string[];
|
|
69
|
-
}
|
|
70
|
-
export interface DiscountCodeChangeIsActiveAction {
|
|
71
|
-
readonly action: 'changeIsActive';
|
|
72
|
-
readonly isActive: boolean;
|
|
73
|
-
}
|
|
74
|
-
export interface DiscountCodeSetCartPredicateAction {
|
|
75
|
-
readonly action: 'setCartPredicate';
|
|
76
|
-
readonly cartPredicate?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface DiscountCodeSetCustomFieldAction {
|
|
79
|
-
readonly action: 'setCustomField';
|
|
80
|
-
readonly name: string;
|
|
81
|
-
readonly value?: any;
|
|
82
|
-
}
|
|
83
|
-
export interface DiscountCodeSetCustomTypeAction {
|
|
84
|
-
readonly action: 'setCustomType';
|
|
85
|
-
readonly type?: TypeResourceIdentifier;
|
|
86
|
-
readonly fields?: FieldContainer;
|
|
87
|
-
}
|
|
88
|
-
export interface DiscountCodeSetDescriptionAction {
|
|
89
|
-
readonly action: 'setDescription';
|
|
90
|
-
readonly description?: LocalizedString;
|
|
91
|
-
}
|
|
92
|
-
export interface DiscountCodeSetMaxApplicationsAction {
|
|
93
|
-
readonly action: 'setMaxApplications';
|
|
94
|
-
readonly maxApplications?: number;
|
|
95
|
-
}
|
|
96
|
-
export interface DiscountCodeSetMaxApplicationsPerCustomerAction {
|
|
97
|
-
readonly action: 'setMaxApplicationsPerCustomer';
|
|
98
|
-
readonly maxApplicationsPerCustomer?: number;
|
|
99
|
-
}
|
|
100
|
-
export interface DiscountCodeSetNameAction {
|
|
101
|
-
readonly action: 'setName';
|
|
102
|
-
readonly name?: LocalizedString;
|
|
103
|
-
}
|
|
104
|
-
export interface DiscountCodeSetValidFromAction {
|
|
105
|
-
readonly action: 'setValidFrom';
|
|
106
|
-
readonly validFrom?: string;
|
|
107
|
-
}
|
|
108
|
-
export interface DiscountCodeSetValidFromAndUntilAction {
|
|
109
|
-
readonly action: 'setValidFromAndUntil';
|
|
110
|
-
readonly validFrom?: string;
|
|
111
|
-
readonly validUntil?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface DiscountCodeSetValidUntilAction {
|
|
114
|
-
readonly action: 'setValidUntil';
|
|
115
|
-
readonly validUntil?: string;
|
|
116
|
-
}
|