@gradientedge/commercetools-utils 5.9.1 → 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,166 +0,0 @@
|
|
|
1
|
-
import { Asset, AssetDraft, AssetSource, BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common';
|
|
2
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
3
|
-
export interface Category extends BaseResource {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly version: number;
|
|
6
|
-
readonly createdAt: string;
|
|
7
|
-
readonly lastModifiedAt: string;
|
|
8
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
9
|
-
readonly createdBy?: CreatedBy;
|
|
10
|
-
readonly name: LocalizedString;
|
|
11
|
-
readonly slug: LocalizedString;
|
|
12
|
-
readonly description?: LocalizedString;
|
|
13
|
-
readonly ancestors: CategoryReference[];
|
|
14
|
-
readonly parent?: CategoryReference;
|
|
15
|
-
readonly orderHint: string;
|
|
16
|
-
readonly externalId?: string;
|
|
17
|
-
readonly metaTitle?: LocalizedString;
|
|
18
|
-
readonly metaDescription?: LocalizedString;
|
|
19
|
-
readonly metaKeywords?: LocalizedString;
|
|
20
|
-
readonly custom?: CustomFields;
|
|
21
|
-
readonly assets?: Asset[];
|
|
22
|
-
readonly key?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface CategoryDraft {
|
|
25
|
-
readonly name: LocalizedString;
|
|
26
|
-
readonly slug: LocalizedString;
|
|
27
|
-
readonly description?: LocalizedString;
|
|
28
|
-
readonly parent?: CategoryResourceIdentifier;
|
|
29
|
-
readonly orderHint?: string;
|
|
30
|
-
readonly externalId?: string;
|
|
31
|
-
readonly metaTitle?: LocalizedString;
|
|
32
|
-
readonly metaDescription?: LocalizedString;
|
|
33
|
-
readonly metaKeywords?: LocalizedString;
|
|
34
|
-
readonly custom?: CustomFieldsDraft;
|
|
35
|
-
readonly assets?: AssetDraft[];
|
|
36
|
-
readonly key?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface CategoryPagedQueryResponse {
|
|
39
|
-
readonly limit: number;
|
|
40
|
-
readonly offset: number;
|
|
41
|
-
readonly count: number;
|
|
42
|
-
readonly total?: number;
|
|
43
|
-
readonly results: Category[];
|
|
44
|
-
}
|
|
45
|
-
export interface CategoryReference {
|
|
46
|
-
readonly typeId: 'category';
|
|
47
|
-
readonly id: string;
|
|
48
|
-
readonly obj?: Category;
|
|
49
|
-
}
|
|
50
|
-
export interface CategoryResourceIdentifier {
|
|
51
|
-
readonly typeId: 'category';
|
|
52
|
-
readonly id?: string;
|
|
53
|
-
readonly key?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface CategoryUpdate {
|
|
56
|
-
readonly version: number;
|
|
57
|
-
readonly actions: CategoryUpdateAction[];
|
|
58
|
-
}
|
|
59
|
-
export type CategoryUpdateAction = CategoryAddAssetAction | CategoryChangeAssetNameAction | CategoryChangeAssetOrderAction | CategoryChangeNameAction | CategoryChangeOrderHintAction | CategoryChangeParentAction | CategoryChangeSlugAction | CategoryRemoveAssetAction | CategorySetAssetCustomFieldAction | CategorySetAssetCustomTypeAction | CategorySetAssetDescriptionAction | CategorySetAssetKeyAction | CategorySetAssetSourcesAction | CategorySetAssetTagsAction | CategorySetCustomFieldAction | CategorySetCustomTypeAction | CategorySetDescriptionAction | CategorySetExternalIdAction | CategorySetKeyAction | CategorySetMetaDescriptionAction | CategorySetMetaKeywordsAction | CategorySetMetaTitleAction;
|
|
60
|
-
export interface CategoryAddAssetAction {
|
|
61
|
-
readonly action: 'addAsset';
|
|
62
|
-
readonly asset: AssetDraft;
|
|
63
|
-
readonly position?: number;
|
|
64
|
-
}
|
|
65
|
-
export interface CategoryChangeAssetNameAction {
|
|
66
|
-
readonly action: 'changeAssetName';
|
|
67
|
-
readonly assetId?: string;
|
|
68
|
-
readonly assetKey?: string;
|
|
69
|
-
readonly name: LocalizedString;
|
|
70
|
-
}
|
|
71
|
-
export interface CategoryChangeAssetOrderAction {
|
|
72
|
-
readonly action: 'changeAssetOrder';
|
|
73
|
-
readonly assetOrder: string[];
|
|
74
|
-
}
|
|
75
|
-
export interface CategoryChangeNameAction {
|
|
76
|
-
readonly action: 'changeName';
|
|
77
|
-
readonly name: LocalizedString;
|
|
78
|
-
}
|
|
79
|
-
export interface CategoryChangeOrderHintAction {
|
|
80
|
-
readonly action: 'changeOrderHint';
|
|
81
|
-
readonly orderHint: string;
|
|
82
|
-
}
|
|
83
|
-
export interface CategoryChangeParentAction {
|
|
84
|
-
readonly action: 'changeParent';
|
|
85
|
-
readonly parent: CategoryResourceIdentifier;
|
|
86
|
-
}
|
|
87
|
-
export interface CategoryChangeSlugAction {
|
|
88
|
-
readonly action: 'changeSlug';
|
|
89
|
-
readonly slug: LocalizedString;
|
|
90
|
-
}
|
|
91
|
-
export interface CategoryRemoveAssetAction {
|
|
92
|
-
readonly action: 'removeAsset';
|
|
93
|
-
readonly assetId?: string;
|
|
94
|
-
readonly assetKey?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface CategorySetAssetCustomFieldAction {
|
|
97
|
-
readonly action: 'setAssetCustomField';
|
|
98
|
-
readonly assetId?: string;
|
|
99
|
-
readonly assetKey?: string;
|
|
100
|
-
readonly name: string;
|
|
101
|
-
readonly value?: any;
|
|
102
|
-
}
|
|
103
|
-
export interface CategorySetAssetCustomTypeAction {
|
|
104
|
-
readonly action: 'setAssetCustomType';
|
|
105
|
-
readonly assetId?: string;
|
|
106
|
-
readonly assetKey?: string;
|
|
107
|
-
readonly type?: TypeResourceIdentifier;
|
|
108
|
-
readonly fields?: FieldContainer;
|
|
109
|
-
}
|
|
110
|
-
export interface CategorySetAssetDescriptionAction {
|
|
111
|
-
readonly action: 'setAssetDescription';
|
|
112
|
-
readonly assetId?: string;
|
|
113
|
-
readonly assetKey?: string;
|
|
114
|
-
readonly description?: LocalizedString;
|
|
115
|
-
}
|
|
116
|
-
export interface CategorySetAssetKeyAction {
|
|
117
|
-
readonly action: 'setAssetKey';
|
|
118
|
-
readonly assetId: string;
|
|
119
|
-
readonly assetKey?: string;
|
|
120
|
-
}
|
|
121
|
-
export interface CategorySetAssetSourcesAction {
|
|
122
|
-
readonly action: 'setAssetSources';
|
|
123
|
-
readonly assetId?: string;
|
|
124
|
-
readonly assetKey?: string;
|
|
125
|
-
readonly sources: AssetSource[];
|
|
126
|
-
}
|
|
127
|
-
export interface CategorySetAssetTagsAction {
|
|
128
|
-
readonly action: 'setAssetTags';
|
|
129
|
-
readonly assetId?: string;
|
|
130
|
-
readonly assetKey?: string;
|
|
131
|
-
readonly tags?: string[];
|
|
132
|
-
}
|
|
133
|
-
export interface CategorySetCustomFieldAction {
|
|
134
|
-
readonly action: 'setCustomField';
|
|
135
|
-
readonly name: string;
|
|
136
|
-
readonly value?: any;
|
|
137
|
-
}
|
|
138
|
-
export interface CategorySetCustomTypeAction {
|
|
139
|
-
readonly action: 'setCustomType';
|
|
140
|
-
readonly type?: TypeResourceIdentifier;
|
|
141
|
-
readonly fields?: FieldContainer;
|
|
142
|
-
}
|
|
143
|
-
export interface CategorySetDescriptionAction {
|
|
144
|
-
readonly action: 'setDescription';
|
|
145
|
-
readonly description?: LocalizedString;
|
|
146
|
-
}
|
|
147
|
-
export interface CategorySetExternalIdAction {
|
|
148
|
-
readonly action: 'setExternalId';
|
|
149
|
-
readonly externalId?: string;
|
|
150
|
-
}
|
|
151
|
-
export interface CategorySetKeyAction {
|
|
152
|
-
readonly action: 'setKey';
|
|
153
|
-
readonly key?: string;
|
|
154
|
-
}
|
|
155
|
-
export interface CategorySetMetaDescriptionAction {
|
|
156
|
-
readonly action: 'setMetaDescription';
|
|
157
|
-
readonly metaDescription?: LocalizedString;
|
|
158
|
-
}
|
|
159
|
-
export interface CategorySetMetaKeywordsAction {
|
|
160
|
-
readonly action: 'setMetaKeywords';
|
|
161
|
-
readonly metaKeywords?: LocalizedString;
|
|
162
|
-
}
|
|
163
|
-
export interface CategorySetMetaTitleAction {
|
|
164
|
-
readonly action: 'setMetaTitle';
|
|
165
|
-
readonly metaTitle?: LocalizedString;
|
|
166
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { Address, BaseResource, CreatedBy, GeoJson, LastModifiedBy, LocalizedString, _BaseAddress } from './common';
|
|
2
|
-
import { ReviewRatingStatistics } from './review';
|
|
3
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
4
|
-
export interface Channel 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 key: string;
|
|
12
|
-
readonly roles: ChannelRoleEnum[];
|
|
13
|
-
readonly name?: LocalizedString;
|
|
14
|
-
readonly description?: LocalizedString;
|
|
15
|
-
readonly address?: Address;
|
|
16
|
-
readonly reviewRatingStatistics?: ReviewRatingStatistics;
|
|
17
|
-
readonly custom?: CustomFields;
|
|
18
|
-
readonly geoLocation?: GeoJson;
|
|
19
|
-
}
|
|
20
|
-
export interface ChannelDraft {
|
|
21
|
-
readonly key: string;
|
|
22
|
-
readonly roles?: ChannelRoleEnum[];
|
|
23
|
-
readonly name?: LocalizedString;
|
|
24
|
-
readonly description?: LocalizedString;
|
|
25
|
-
readonly address?: _BaseAddress;
|
|
26
|
-
readonly custom?: CustomFieldsDraft;
|
|
27
|
-
readonly geoLocation?: GeoJson;
|
|
28
|
-
}
|
|
29
|
-
export interface ChannelPagedQueryResponse {
|
|
30
|
-
readonly limit: number;
|
|
31
|
-
readonly offset: number;
|
|
32
|
-
readonly count: number;
|
|
33
|
-
readonly total?: number;
|
|
34
|
-
readonly results: Channel[];
|
|
35
|
-
}
|
|
36
|
-
export interface ChannelReference {
|
|
37
|
-
readonly typeId: 'channel';
|
|
38
|
-
readonly id: string;
|
|
39
|
-
readonly obj?: Channel;
|
|
40
|
-
}
|
|
41
|
-
export interface ChannelResourceIdentifier {
|
|
42
|
-
readonly typeId: 'channel';
|
|
43
|
-
readonly id?: string;
|
|
44
|
-
readonly key?: string;
|
|
45
|
-
}
|
|
46
|
-
export type ChannelRoleEnum = 'InventorySupply' | 'OrderExport' | 'OrderImport' | 'Primary' | 'ProductDistribution' | string;
|
|
47
|
-
export interface ChannelUpdate {
|
|
48
|
-
readonly version: number;
|
|
49
|
-
readonly actions: ChannelUpdateAction[];
|
|
50
|
-
}
|
|
51
|
-
export type ChannelUpdateAction = ChannelAddRolesAction | ChannelChangeDescriptionAction | ChannelChangeKeyAction | ChannelChangeNameAction | ChannelRemoveRolesAction | ChannelSetAddressAction | ChannelSetAddressCustomFieldAction | ChannelSetAddressCustomTypeAction | ChannelSetCustomFieldAction | ChannelSetCustomTypeAction | ChannelSetGeoLocationAction | ChannelSetRolesAction;
|
|
52
|
-
export interface ChannelAddRolesAction {
|
|
53
|
-
readonly action: 'addRoles';
|
|
54
|
-
readonly roles: ChannelRoleEnum[];
|
|
55
|
-
}
|
|
56
|
-
export interface ChannelChangeDescriptionAction {
|
|
57
|
-
readonly action: 'changeDescription';
|
|
58
|
-
readonly description: LocalizedString;
|
|
59
|
-
}
|
|
60
|
-
export interface ChannelChangeKeyAction {
|
|
61
|
-
readonly action: 'changeKey';
|
|
62
|
-
readonly key: string;
|
|
63
|
-
}
|
|
64
|
-
export interface ChannelChangeNameAction {
|
|
65
|
-
readonly action: 'changeName';
|
|
66
|
-
readonly name: LocalizedString;
|
|
67
|
-
}
|
|
68
|
-
export interface ChannelRemoveRolesAction {
|
|
69
|
-
readonly action: 'removeRoles';
|
|
70
|
-
readonly roles: ChannelRoleEnum[];
|
|
71
|
-
}
|
|
72
|
-
export interface ChannelSetAddressAction {
|
|
73
|
-
readonly action: 'setAddress';
|
|
74
|
-
readonly address?: _BaseAddress;
|
|
75
|
-
}
|
|
76
|
-
export interface ChannelSetAddressCustomFieldAction {
|
|
77
|
-
readonly action: 'setAddressCustomField';
|
|
78
|
-
readonly name: string;
|
|
79
|
-
readonly value?: any;
|
|
80
|
-
}
|
|
81
|
-
export interface ChannelSetAddressCustomTypeAction {
|
|
82
|
-
readonly action: 'setAddressCustomType';
|
|
83
|
-
readonly type?: TypeResourceIdentifier;
|
|
84
|
-
readonly fields?: FieldContainer;
|
|
85
|
-
}
|
|
86
|
-
export interface ChannelSetCustomFieldAction {
|
|
87
|
-
readonly action: 'setCustomField';
|
|
88
|
-
readonly name: string;
|
|
89
|
-
readonly value?: any;
|
|
90
|
-
}
|
|
91
|
-
export interface ChannelSetCustomTypeAction {
|
|
92
|
-
readonly action: 'setCustomType';
|
|
93
|
-
readonly type?: TypeResourceIdentifier;
|
|
94
|
-
readonly fields?: FieldContainer;
|
|
95
|
-
}
|
|
96
|
-
export interface ChannelSetGeoLocationAction {
|
|
97
|
-
readonly action: 'setGeoLocation';
|
|
98
|
-
readonly geoLocation?: GeoJson;
|
|
99
|
-
}
|
|
100
|
-
export interface ChannelSetRolesAction {
|
|
101
|
-
readonly action: 'setRoles';
|
|
102
|
-
readonly roles: ChannelRoleEnum[];
|
|
103
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { AssociateRole, AssociateRoleKeyReference, AssociateRoleReference, AssociateRoleResourceIdentifier } from './associate-role';
|
|
2
|
-
import { AttributeGroup, AttributeGroupReference, AttributeGroupResourceIdentifier } from './attribute-group';
|
|
3
|
-
import { BusinessUnit, BusinessUnitKeyReference, BusinessUnitReference, BusinessUnitResourceIdentifier } from './business-unit';
|
|
4
|
-
import { Cart, CartReference, CartResourceIdentifier, DirectDiscountReference } from './cart';
|
|
5
|
-
import { CartDiscount, CartDiscountReference, CartDiscountResourceIdentifier } from './cart-discount';
|
|
6
|
-
import { Category, CategoryReference, CategoryResourceIdentifier } from './category';
|
|
7
|
-
import { Channel, ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
8
|
-
import { CustomObject, CustomObjectReference } from './custom-object';
|
|
9
|
-
import { Customer, CustomerReference, CustomerResourceIdentifier } from './customer';
|
|
10
|
-
import { CustomerGroup, CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
11
|
-
import { DiscountCode, DiscountCodeReference, DiscountCodeResourceIdentifier } from './discount-code';
|
|
12
|
-
import { Extension } from './extension';
|
|
13
|
-
import { InventoryEntry, InventoryEntryReference, InventoryEntryResourceIdentifier } from './inventory';
|
|
14
|
-
import { Message } from './message';
|
|
15
|
-
import { Order, OrderReference, OrderResourceIdentifier } from './order';
|
|
16
|
-
import { OrderEdit, OrderEditReference, OrderEditResourceIdentifier } from './order-edit';
|
|
17
|
-
import { Payment, PaymentReference, PaymentResourceIdentifier } from './payment';
|
|
18
|
-
import { Product, ProductProjection, ProductReference, ProductResourceIdentifier } from './product';
|
|
19
|
-
import { ProductDiscount, ProductDiscountReference, ProductDiscountResourceIdentifier } from './product-discount';
|
|
20
|
-
import { ProductSelection, ProductSelectionReference, ProductSelectionResourceIdentifier } from './product-selection';
|
|
21
|
-
import { ProductType, ProductTypeReference, ProductTypeResourceIdentifier } from './product-type';
|
|
22
|
-
import { Quote, QuoteReference, QuoteResourceIdentifier } from './quote';
|
|
23
|
-
import { QuoteRequest, QuoteRequestReference, QuoteRequestResourceIdentifier } from './quote-request';
|
|
24
|
-
import { Review, ReviewReference, ReviewResourceIdentifier } from './review';
|
|
25
|
-
import { ShippingMethod, ShippingMethodReference, ShippingMethodResourceIdentifier } from './shipping-method';
|
|
26
|
-
import { ShoppingList, ShoppingListReference, ShoppingListResourceIdentifier } from './shopping-list';
|
|
27
|
-
import { StagedQuote, StagedQuoteReference, StagedQuoteResourceIdentifier } from './staged-quote';
|
|
28
|
-
import { StandalonePrice, StandalonePriceReference, StandalonePriceResourceIdentifier } from './standalone-price';
|
|
29
|
-
import { State, StateReference, StateResourceIdentifier } from './state';
|
|
30
|
-
import { Store, StoreKeyReference, StoreReference, StoreResourceIdentifier } from './store';
|
|
31
|
-
import { Subscription } from './subscription';
|
|
32
|
-
import { TaxCategory, TaxCategoryReference, TaxCategoryResourceIdentifier } from './tax-category';
|
|
33
|
-
import { CustomFields, CustomFieldsDraft, Type, TypeReference, TypeResourceIdentifier } from './type';
|
|
34
|
-
import { Zone, ZoneReference, ZoneResourceIdentifier } from './zone';
|
|
35
|
-
export interface PagedQueryResponse {
|
|
36
|
-
readonly limit: number;
|
|
37
|
-
readonly offset: number;
|
|
38
|
-
readonly count: number;
|
|
39
|
-
readonly total?: number;
|
|
40
|
-
readonly results: BaseResource[];
|
|
41
|
-
readonly meta?: any;
|
|
42
|
-
}
|
|
43
|
-
export interface Update {
|
|
44
|
-
readonly version: number;
|
|
45
|
-
readonly actions: UpdateAction[];
|
|
46
|
-
}
|
|
47
|
-
export interface UpdateAction {
|
|
48
|
-
readonly action: string;
|
|
49
|
-
}
|
|
50
|
-
export interface Asset {
|
|
51
|
-
readonly id: string;
|
|
52
|
-
readonly sources: AssetSource[];
|
|
53
|
-
readonly name: LocalizedString;
|
|
54
|
-
readonly description?: LocalizedString;
|
|
55
|
-
readonly tags?: string[];
|
|
56
|
-
readonly custom?: CustomFields;
|
|
57
|
-
readonly key?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface AssetDimensions {
|
|
60
|
-
readonly w: number;
|
|
61
|
-
readonly h: number;
|
|
62
|
-
}
|
|
63
|
-
export interface AssetDraft {
|
|
64
|
-
readonly sources: AssetSource[];
|
|
65
|
-
readonly name: LocalizedString;
|
|
66
|
-
readonly description?: LocalizedString;
|
|
67
|
-
readonly tags?: string[];
|
|
68
|
-
readonly custom?: CustomFieldsDraft;
|
|
69
|
-
readonly key?: string;
|
|
70
|
-
}
|
|
71
|
-
export interface AssetSource {
|
|
72
|
-
readonly uri: string;
|
|
73
|
-
readonly key?: string;
|
|
74
|
-
readonly dimensions?: AssetDimensions;
|
|
75
|
-
readonly contentType?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface BaseAddress {
|
|
78
|
-
readonly id?: string;
|
|
79
|
-
readonly key?: string;
|
|
80
|
-
readonly country: string;
|
|
81
|
-
readonly title?: string;
|
|
82
|
-
readonly salutation?: string;
|
|
83
|
-
readonly firstName?: string;
|
|
84
|
-
readonly lastName?: string;
|
|
85
|
-
readonly streetName?: string;
|
|
86
|
-
readonly streetNumber?: string;
|
|
87
|
-
readonly additionalStreetInfo?: string;
|
|
88
|
-
readonly postalCode?: string;
|
|
89
|
-
readonly city?: string;
|
|
90
|
-
readonly region?: string;
|
|
91
|
-
readonly state?: string;
|
|
92
|
-
readonly company?: string;
|
|
93
|
-
readonly department?: string;
|
|
94
|
-
readonly building?: string;
|
|
95
|
-
readonly apartment?: string;
|
|
96
|
-
readonly pOBox?: string;
|
|
97
|
-
readonly phone?: string;
|
|
98
|
-
readonly mobile?: string;
|
|
99
|
-
readonly email?: string;
|
|
100
|
-
readonly fax?: string;
|
|
101
|
-
readonly additionalAddressInfo?: string;
|
|
102
|
-
readonly externalId?: string;
|
|
103
|
-
}
|
|
104
|
-
export type _BaseAddress = BaseAddress | Address | AddressDraft;
|
|
105
|
-
export interface Address extends BaseAddress {
|
|
106
|
-
readonly custom?: CustomFields;
|
|
107
|
-
}
|
|
108
|
-
export interface AddressDraft extends BaseAddress {
|
|
109
|
-
readonly custom?: CustomFieldsDraft;
|
|
110
|
-
}
|
|
111
|
-
export interface BaseResource {
|
|
112
|
-
readonly id: string;
|
|
113
|
-
readonly version: number;
|
|
114
|
-
readonly createdAt: string;
|
|
115
|
-
readonly lastModifiedAt: string;
|
|
116
|
-
}
|
|
117
|
-
export type _BaseResource = BaseResource | AssociateRole | AttributeGroup | BusinessUnit | Cart | CartDiscount | Category | Channel | CustomObject | Customer | CustomerGroup | DiscountCode | Extension | InventoryEntry | Message | Order | OrderEdit | Payment | Product | ProductDiscount | ProductProjection | ProductSelection | ProductType | Quote | QuoteRequest | Review | ShippingMethod | ShoppingList | StagedQuote | StandalonePrice | State | Store | Subscription | TaxCategory | Type | Zone;
|
|
118
|
-
export interface ClientLogging {
|
|
119
|
-
readonly clientId?: string;
|
|
120
|
-
readonly externalUserId?: string;
|
|
121
|
-
readonly customer?: CustomerReference;
|
|
122
|
-
readonly anonymousId?: string;
|
|
123
|
-
}
|
|
124
|
-
export type _ClientLogging = ClientLogging | CreatedBy | LastModifiedBy;
|
|
125
|
-
export interface CreatedBy extends ClientLogging {
|
|
126
|
-
readonly clientId?: string;
|
|
127
|
-
readonly externalUserId?: string;
|
|
128
|
-
readonly customer?: CustomerReference;
|
|
129
|
-
readonly anonymousId?: string;
|
|
130
|
-
}
|
|
131
|
-
export interface DiscountedPrice {
|
|
132
|
-
readonly value: TypedMoney;
|
|
133
|
-
readonly discount: ProductDiscountReference;
|
|
134
|
-
}
|
|
135
|
-
export interface DiscountedPriceDraft {
|
|
136
|
-
readonly value: _Money;
|
|
137
|
-
readonly discount: ProductDiscountReference;
|
|
138
|
-
}
|
|
139
|
-
export type GeoJson = GeoJsonPoint;
|
|
140
|
-
export interface GeoJsonPoint {
|
|
141
|
-
readonly type: 'Point';
|
|
142
|
-
readonly coordinates: number[];
|
|
143
|
-
}
|
|
144
|
-
export interface Image {
|
|
145
|
-
readonly url: string;
|
|
146
|
-
readonly dimensions: ImageDimensions;
|
|
147
|
-
readonly label?: string;
|
|
148
|
-
}
|
|
149
|
-
export interface ImageDimensions {
|
|
150
|
-
readonly w: number;
|
|
151
|
-
readonly h: number;
|
|
152
|
-
}
|
|
153
|
-
export type KeyReference = AssociateRoleKeyReference | BusinessUnitKeyReference | StoreKeyReference;
|
|
154
|
-
export interface LastModifiedBy extends ClientLogging {
|
|
155
|
-
readonly clientId?: string;
|
|
156
|
-
readonly externalUserId?: string;
|
|
157
|
-
readonly customer?: CustomerReference;
|
|
158
|
-
readonly anonymousId?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface LocalizedString {
|
|
161
|
-
[key: string]: string;
|
|
162
|
-
}
|
|
163
|
-
export interface Money {
|
|
164
|
-
readonly centAmount: number;
|
|
165
|
-
readonly currencyCode: string;
|
|
166
|
-
}
|
|
167
|
-
export type _Money = Money | TypedMoney | TypedMoneyDraft;
|
|
168
|
-
export type MoneyType = 'centPrecision' | 'highPrecision' | string;
|
|
169
|
-
export interface Price {
|
|
170
|
-
readonly id: string;
|
|
171
|
-
readonly key?: string;
|
|
172
|
-
readonly value: TypedMoney;
|
|
173
|
-
readonly country?: string;
|
|
174
|
-
readonly customerGroup?: CustomerGroupReference;
|
|
175
|
-
readonly channel?: ChannelReference;
|
|
176
|
-
readonly validFrom?: string;
|
|
177
|
-
readonly validUntil?: string;
|
|
178
|
-
readonly discounted?: DiscountedPrice;
|
|
179
|
-
readonly tiers?: PriceTier[];
|
|
180
|
-
readonly custom?: CustomFields;
|
|
181
|
-
}
|
|
182
|
-
export interface PriceDraft {
|
|
183
|
-
readonly key?: string;
|
|
184
|
-
readonly value: _Money;
|
|
185
|
-
readonly country?: string;
|
|
186
|
-
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
187
|
-
readonly channel?: ChannelResourceIdentifier;
|
|
188
|
-
readonly validFrom?: string;
|
|
189
|
-
readonly validUntil?: string;
|
|
190
|
-
readonly discounted?: DiscountedPriceDraft;
|
|
191
|
-
readonly tiers?: PriceTierDraft[];
|
|
192
|
-
readonly custom?: CustomFieldsDraft;
|
|
193
|
-
}
|
|
194
|
-
export interface PriceTier {
|
|
195
|
-
readonly minimumQuantity: number;
|
|
196
|
-
readonly value: TypedMoney;
|
|
197
|
-
}
|
|
198
|
-
export interface PriceTierDraft {
|
|
199
|
-
readonly minimumQuantity: number;
|
|
200
|
-
readonly value: _Money;
|
|
201
|
-
}
|
|
202
|
-
export interface QueryPrice {
|
|
203
|
-
readonly id?: string;
|
|
204
|
-
readonly value: _Money;
|
|
205
|
-
readonly country?: string;
|
|
206
|
-
readonly customerGroup?: CustomerGroupReference;
|
|
207
|
-
readonly channel?: ChannelReference;
|
|
208
|
-
readonly validFrom?: string;
|
|
209
|
-
readonly validUntil?: string;
|
|
210
|
-
readonly discounted?: DiscountedPriceDraft;
|
|
211
|
-
readonly custom?: CustomFields;
|
|
212
|
-
readonly tiers?: PriceTierDraft[];
|
|
213
|
-
}
|
|
214
|
-
export type Reference = AssociateRoleReference | AttributeGroupReference | BusinessUnitReference | CartDiscountReference | CartReference | CategoryReference | ChannelReference | CustomObjectReference | CustomerGroupReference | CustomerReference | DirectDiscountReference | DiscountCodeReference | InventoryEntryReference | OrderEditReference | OrderReference | PaymentReference | ProductDiscountReference | ProductReference | ProductSelectionReference | ProductTypeReference | QuoteReference | QuoteRequestReference | ReviewReference | ShippingMethodReference | ShoppingListReference | StagedQuoteReference | StandalonePriceReference | StateReference | StoreReference | TaxCategoryReference | TypeReference | ZoneReference;
|
|
215
|
-
export type ReferenceTypeId = 'associate-role' | 'attribute-group' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'direct-discount' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-price' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
|
|
216
|
-
export type ResourceIdentifier = AssociateRoleResourceIdentifier | AttributeGroupResourceIdentifier | BusinessUnitResourceIdentifier | CartDiscountResourceIdentifier | CartResourceIdentifier | CategoryResourceIdentifier | ChannelResourceIdentifier | CustomerGroupResourceIdentifier | CustomerResourceIdentifier | DiscountCodeResourceIdentifier | InventoryEntryResourceIdentifier | OrderEditResourceIdentifier | OrderResourceIdentifier | PaymentResourceIdentifier | ProductDiscountResourceIdentifier | ProductResourceIdentifier | ProductSelectionResourceIdentifier | ProductTypeResourceIdentifier | QuoteRequestResourceIdentifier | QuoteResourceIdentifier | ReviewResourceIdentifier | ShippingMethodResourceIdentifier | ShoppingListResourceIdentifier | StagedQuoteResourceIdentifier | StandalonePriceResourceIdentifier | StateResourceIdentifier | StoreResourceIdentifier | TaxCategoryResourceIdentifier | TypeResourceIdentifier | ZoneResourceIdentifier;
|
|
217
|
-
export interface ScopedPrice {
|
|
218
|
-
readonly id: string;
|
|
219
|
-
readonly value: TypedMoney;
|
|
220
|
-
readonly currentValue: TypedMoney;
|
|
221
|
-
readonly country?: string;
|
|
222
|
-
readonly customerGroup?: CustomerGroupReference;
|
|
223
|
-
readonly channel?: ChannelReference;
|
|
224
|
-
readonly validFrom?: string;
|
|
225
|
-
readonly validUntil?: string;
|
|
226
|
-
readonly discounted?: DiscountedPrice;
|
|
227
|
-
readonly custom?: CustomFields;
|
|
228
|
-
}
|
|
229
|
-
export type TypedMoney = CentPrecisionMoney | HighPrecisionMoney;
|
|
230
|
-
export interface CentPrecisionMoney {
|
|
231
|
-
readonly type: 'centPrecision';
|
|
232
|
-
readonly centAmount: number;
|
|
233
|
-
readonly currencyCode: string;
|
|
234
|
-
readonly fractionDigits: number;
|
|
235
|
-
}
|
|
236
|
-
export interface HighPrecisionMoney {
|
|
237
|
-
readonly type: 'highPrecision';
|
|
238
|
-
readonly centAmount: number;
|
|
239
|
-
readonly currencyCode: string;
|
|
240
|
-
readonly fractionDigits: number;
|
|
241
|
-
readonly preciseAmount: number;
|
|
242
|
-
}
|
|
243
|
-
export type TypedMoneyDraft = CentPrecisionMoneyDraft | HighPrecisionMoneyDraft;
|
|
244
|
-
export interface CentPrecisionMoneyDraft {
|
|
245
|
-
readonly type: 'centPrecision';
|
|
246
|
-
readonly centAmount: number;
|
|
247
|
-
readonly currencyCode: string;
|
|
248
|
-
readonly fractionDigits?: number;
|
|
249
|
-
}
|
|
250
|
-
export interface HighPrecisionMoneyDraft {
|
|
251
|
-
readonly type: 'highPrecision';
|
|
252
|
-
readonly centAmount?: number;
|
|
253
|
-
readonly currencyCode: string;
|
|
254
|
-
readonly fractionDigits: number;
|
|
255
|
-
readonly preciseAmount: number;
|
|
256
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseResource, CreatedBy, LastModifiedBy } from './common';
|
|
2
|
-
export interface CustomObject extends BaseResource {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly version: number;
|
|
5
|
-
readonly createdAt: string;
|
|
6
|
-
readonly lastModifiedAt: string;
|
|
7
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
8
|
-
readonly createdBy?: CreatedBy;
|
|
9
|
-
readonly container: string;
|
|
10
|
-
readonly key: string;
|
|
11
|
-
readonly value: any;
|
|
12
|
-
}
|
|
13
|
-
export interface CustomObjectDraft {
|
|
14
|
-
readonly container: string;
|
|
15
|
-
readonly key: string;
|
|
16
|
-
readonly value: any;
|
|
17
|
-
readonly version?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface CustomObjectPagedQueryResponse {
|
|
20
|
-
readonly limit: number;
|
|
21
|
-
readonly offset: number;
|
|
22
|
-
readonly count: number;
|
|
23
|
-
readonly total?: number;
|
|
24
|
-
readonly results: CustomObject[];
|
|
25
|
-
}
|
|
26
|
-
export interface CustomObjectReference {
|
|
27
|
-
readonly typeId: 'key-value-document';
|
|
28
|
-
readonly id: string;
|
|
29
|
-
readonly obj?: CustomObject;
|
|
30
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BaseResource, CreatedBy, LastModifiedBy } from './common';
|
|
2
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
3
|
-
export interface CustomerGroup extends BaseResource {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly version: number;
|
|
6
|
-
readonly createdAt: string;
|
|
7
|
-
readonly lastModifiedAt: string;
|
|
8
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
9
|
-
readonly createdBy?: CreatedBy;
|
|
10
|
-
readonly key?: string;
|
|
11
|
-
readonly name: string;
|
|
12
|
-
readonly custom?: CustomFields;
|
|
13
|
-
}
|
|
14
|
-
export interface CustomerGroupDraft {
|
|
15
|
-
readonly key?: string;
|
|
16
|
-
readonly groupName: string;
|
|
17
|
-
readonly custom?: CustomFieldsDraft;
|
|
18
|
-
}
|
|
19
|
-
export interface CustomerGroupPagedQueryResponse {
|
|
20
|
-
readonly limit: number;
|
|
21
|
-
readonly offset: number;
|
|
22
|
-
readonly count: number;
|
|
23
|
-
readonly total?: number;
|
|
24
|
-
readonly results: CustomerGroup[];
|
|
25
|
-
}
|
|
26
|
-
export interface CustomerGroupReference {
|
|
27
|
-
readonly typeId: 'customer-group';
|
|
28
|
-
readonly id: string;
|
|
29
|
-
readonly obj?: CustomerGroup;
|
|
30
|
-
}
|
|
31
|
-
export interface CustomerGroupResourceIdentifier {
|
|
32
|
-
readonly typeId: 'customer-group';
|
|
33
|
-
readonly id?: string;
|
|
34
|
-
readonly key?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface CustomerGroupUpdate {
|
|
37
|
-
readonly version: number;
|
|
38
|
-
readonly actions: CustomerGroupUpdateAction[];
|
|
39
|
-
}
|
|
40
|
-
export type CustomerGroupUpdateAction = CustomerGroupChangeNameAction | CustomerGroupSetCustomFieldAction | CustomerGroupSetCustomTypeAction | CustomerGroupSetKeyAction;
|
|
41
|
-
export interface CustomerGroupChangeNameAction {
|
|
42
|
-
readonly action: 'changeName';
|
|
43
|
-
readonly name: string;
|
|
44
|
-
}
|
|
45
|
-
export interface CustomerGroupSetCustomFieldAction {
|
|
46
|
-
readonly action: 'setCustomField';
|
|
47
|
-
readonly name: string;
|
|
48
|
-
readonly value?: any;
|
|
49
|
-
}
|
|
50
|
-
export interface CustomerGroupSetCustomTypeAction {
|
|
51
|
-
readonly action: 'setCustomType';
|
|
52
|
-
readonly type?: TypeResourceIdentifier;
|
|
53
|
-
readonly fields?: FieldContainer;
|
|
54
|
-
}
|
|
55
|
-
export interface CustomerGroupSetKeyAction {
|
|
56
|
-
readonly action: 'setKey';
|
|
57
|
-
readonly key?: string;
|
|
58
|
-
}
|