@gradientedge/commercetools-utils 5.27.2 → 5.29.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/types.d.ts +0 -1
- package/dist/cjs/api/types.d.ts.map +1 -1
- package/dist/cjs/auth/scopes.js +2 -3
- package/dist/cjs/auth/scopes.js.map +1 -1
- package/dist/cjs/auth/types.d.ts +0 -1
- package/dist/cjs/auth/types.d.ts.map +1 -1
- package/dist/cjs/auth/utils.js +1 -2
- package/dist/cjs/auth/utils.js.map +1 -1
- package/dist/cjs/error/CommercetoolsError.d.ts.map +1 -1
- package/dist/cjs/error/CommercetoolsError.js +2 -0
- package/dist/cjs/error/CommercetoolsError.js.map +1 -1
- package/dist/cjs/request/is-retryable-error.js +1 -2
- package/dist/cjs/request/is-retryable-error.js.map +1 -1
- package/dist/cjs/request/request-executor.d.ts +0 -1
- package/dist/cjs/request/request-executor.d.ts.map +1 -1
- package/dist/cjs/request/request-executor.js +1 -2
- package/dist/cjs/request/request-executor.js.map +1 -1
- package/dist/cjs/request/request.js +1 -2
- package/dist/cjs/request/request.js.map +1 -1
- package/dist/cjs/request/transform-error.js +1 -2
- package/dist/cjs/request/transform-error.js.map +1 -1
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/cjs/types/models/approval-flow.d.ts +264 -0
- package/dist/cjs/types/models/approval-flow.d.ts.map +1 -0
- package/dist/cjs/types/models/approval-flow.js +8 -0
- package/dist/cjs/types/models/approval-flow.js.map +1 -0
- package/dist/cjs/types/models/approval-rule.d.ts +415 -0
- package/dist/cjs/types/models/approval-rule.d.ts.map +1 -0
- package/dist/cjs/types/models/approval-rule.js +8 -0
- package/dist/cjs/types/models/approval-rule.js.map +1 -0
- package/dist/cjs/types/models/associate-role.d.ts +319 -0
- package/dist/cjs/types/models/associate-role.d.ts.map +1 -0
- package/dist/cjs/types/models/associate-role.js +8 -0
- package/dist/cjs/types/models/associate-role.js.map +1 -0
- package/dist/cjs/types/models/attribute-group.d.ts +254 -0
- package/dist/cjs/types/models/attribute-group.d.ts.map +1 -0
- package/dist/cjs/types/models/attribute-group.js +8 -0
- package/dist/cjs/types/models/attribute-group.js.map +1 -0
- package/dist/cjs/types/models/business-unit.d.ts +1244 -0
- package/dist/cjs/types/models/business-unit.d.ts.map +1 -0
- package/dist/cjs/types/models/business-unit.js +8 -0
- package/dist/cjs/types/models/business-unit.js.map +1 -0
- package/dist/cjs/types/models/cart-discount.d.ts +848 -0
- package/dist/cjs/types/models/cart-discount.d.ts.map +1 -0
- package/dist/cjs/types/models/cart-discount.js +8 -0
- package/dist/cjs/types/models/cart-discount.js.map +1 -0
- package/dist/cjs/types/models/cart.d.ts +3593 -0
- package/dist/cjs/types/models/cart.d.ts.map +1 -0
- package/dist/cjs/types/models/cart.js +8 -0
- package/dist/cjs/types/models/cart.js.map +1 -0
- package/dist/cjs/types/models/category.d.ts +636 -0
- package/dist/cjs/types/models/category.d.ts.map +1 -0
- package/dist/cjs/types/models/category.js +8 -0
- package/dist/cjs/types/models/category.js.map +1 -0
- package/dist/cjs/types/models/channel.d.ts +380 -0
- package/dist/cjs/types/models/channel.d.ts.map +1 -0
- package/dist/cjs/types/models/channel.js +8 -0
- package/dist/cjs/types/models/channel.js.map +1 -0
- package/dist/cjs/types/models/common.d.ts +1163 -0
- package/dist/cjs/types/models/common.d.ts.map +1 -0
- package/dist/cjs/types/models/common.js +8 -0
- package/dist/cjs/types/models/common.js.map +1 -0
- package/dist/cjs/types/models/custom-object.d.ts +152 -0
- package/dist/cjs/types/models/custom-object.d.ts.map +1 -0
- package/dist/cjs/types/models/custom-object.js +8 -0
- package/dist/cjs/types/models/custom-object.js.map +1 -0
- package/dist/cjs/types/models/customer-group.d.ts +235 -0
- package/dist/cjs/types/models/customer-group.d.ts.map +1 -0
- package/dist/cjs/types/models/customer-group.js +8 -0
- package/dist/cjs/types/models/customer-group.js.map +1 -0
- package/dist/cjs/types/models/customer-search.d.ts +114 -0
- package/dist/cjs/types/models/customer-search.d.ts.map +1 -0
- package/dist/cjs/types/models/customer-search.js +8 -0
- package/dist/cjs/types/models/customer-search.js.map +1 -0
- package/dist/cjs/types/models/customer.d.ts +1270 -0
- package/dist/cjs/types/models/customer.d.ts.map +1 -0
- package/dist/cjs/types/models/customer.js +8 -0
- package/dist/cjs/types/models/customer.js.map +1 -0
- package/dist/cjs/types/models/discount-code.d.ts +473 -0
- package/dist/cjs/types/models/discount-code.d.ts.map +1 -0
- package/dist/cjs/types/models/discount-code.js +8 -0
- package/dist/cjs/types/models/discount-code.js.map +1 -0
- package/dist/cjs/types/models/error.d.ts +3330 -0
- package/dist/cjs/types/models/error.d.ts.map +1 -0
- package/dist/cjs/types/models/error.js +8 -0
- package/dist/cjs/types/models/error.js.map +1 -0
- package/dist/cjs/types/models/extension.d.ts +336 -0
- package/dist/cjs/types/models/extension.d.ts.map +1 -0
- package/dist/cjs/types/models/extension.js +8 -0
- package/dist/cjs/types/models/extension.js.map +1 -0
- package/dist/cjs/types/models/index.d.ts +48 -0
- package/dist/cjs/types/models/index.d.ts.map +1 -0
- package/dist/cjs/types/models/index.js +64 -0
- package/dist/cjs/types/models/index.js.map +1 -0
- package/dist/cjs/types/models/inventory.d.ts +330 -0
- package/dist/cjs/types/models/inventory.d.ts.map +1 -0
- package/dist/cjs/types/models/inventory.js +8 -0
- package/dist/cjs/types/models/inventory.js.map +1 -0
- package/dist/cjs/types/models/me.d.ts +2636 -0
- package/dist/cjs/types/models/me.d.ts.map +1 -0
- package/dist/cjs/types/models/me.js +8 -0
- package/dist/cjs/types/models/me.js.map +1 -0
- package/dist/cjs/types/models/message.d.ts +23707 -0
- package/dist/cjs/types/models/message.d.ts.map +1 -0
- package/dist/cjs/types/models/message.js +8 -0
- package/dist/cjs/types/models/message.js.map +1 -0
- package/dist/cjs/types/models/order-edit.d.ts +2725 -0
- package/dist/cjs/types/models/order-edit.d.ts.map +1 -0
- package/dist/cjs/types/models/order-edit.js +8 -0
- package/dist/cjs/types/models/order-edit.js.map +1 -0
- package/dist/cjs/types/models/order.d.ts +3187 -0
- package/dist/cjs/types/models/order.d.ts.map +1 -0
- package/dist/cjs/types/models/order.js +8 -0
- package/dist/cjs/types/models/order.js.map +1 -0
- package/dist/cjs/types/models/payment.d.ts +680 -0
- package/dist/cjs/types/models/payment.d.ts.map +1 -0
- package/dist/cjs/types/models/payment.js +8 -0
- package/dist/cjs/types/models/payment.js.map +1 -0
- package/dist/cjs/types/models/product-discount.d.ts +465 -0
- package/dist/cjs/types/models/product-discount.d.ts.map +1 -0
- package/dist/cjs/types/models/product-discount.js +8 -0
- package/dist/cjs/types/models/product-discount.js.map +1 -0
- package/dist/cjs/types/models/product-search.d.ts +437 -0
- package/dist/cjs/types/models/product-search.d.ts.map +1 -0
- package/dist/cjs/types/models/product-search.js +8 -0
- package/dist/cjs/types/models/product-search.js.map +1 -0
- package/dist/cjs/types/models/product-selection.d.ts +579 -0
- package/dist/cjs/types/models/product-selection.d.ts.map +1 -0
- package/dist/cjs/types/models/product-selection.js +8 -0
- package/dist/cjs/types/models/product-selection.js.map +1 -0
- package/dist/cjs/types/models/product-tailoring.d.ts +1368 -0
- package/dist/cjs/types/models/product-tailoring.d.ts.map +1 -0
- package/dist/cjs/types/models/product-tailoring.js +8 -0
- package/dist/cjs/types/models/product-tailoring.js.map +1 -0
- package/dist/cjs/types/models/product-type.d.ts +775 -0
- package/dist/cjs/types/models/product-type.d.ts.map +1 -0
- package/dist/cjs/types/models/product-type.js +8 -0
- package/dist/cjs/types/models/product-type.js.map +1 -0
- package/dist/cjs/types/models/product.d.ts +2314 -0
- package/dist/cjs/types/models/product.d.ts.map +1 -0
- package/dist/cjs/types/models/product.js +8 -0
- package/dist/cjs/types/models/product.js.map +1 -0
- package/dist/cjs/types/models/project.d.ts +418 -0
- package/dist/cjs/types/models/project.d.ts.map +1 -0
- package/dist/cjs/types/models/project.js +8 -0
- package/dist/cjs/types/models/project.js.map +1 -0
- package/dist/cjs/types/models/quote-request.d.ts +452 -0
- package/dist/cjs/types/models/quote-request.d.ts.map +1 -0
- package/dist/cjs/types/models/quote-request.js +8 -0
- package/dist/cjs/types/models/quote-request.js.map +1 -0
- package/dist/cjs/types/models/quote.d.ts +473 -0
- package/dist/cjs/types/models/quote.d.ts.map +1 -0
- package/dist/cjs/types/models/quote.js +8 -0
- package/dist/cjs/types/models/quote.js.map +1 -0
- package/dist/cjs/types/models/review.d.ts +435 -0
- package/dist/cjs/types/models/review.d.ts.map +1 -0
- package/dist/cjs/types/models/review.js +8 -0
- package/dist/cjs/types/models/review.js.map +1 -0
- package/dist/cjs/types/models/scalar-types.d.ts +10 -0
- package/dist/cjs/types/models/scalar-types.d.ts.map +1 -0
- package/dist/cjs/types/models/scalar-types.js +8 -0
- package/dist/cjs/types/models/scalar-types.js.map +1 -0
- package/dist/cjs/types/models/search.d.ts +334 -0
- package/dist/cjs/types/models/search.d.ts.map +1 -0
- package/dist/cjs/types/models/search.js +8 -0
- package/dist/cjs/types/models/search.js.map +1 -0
- package/dist/cjs/types/models/shipping-method.d.ts +595 -0
- package/dist/cjs/types/models/shipping-method.d.ts.map +1 -0
- package/dist/cjs/types/models/shipping-method.js +8 -0
- package/dist/cjs/types/models/shipping-method.js.map +1 -0
- package/dist/cjs/types/models/shopping-list.d.ts +941 -0
- package/dist/cjs/types/models/shopping-list.d.ts.map +1 -0
- package/dist/cjs/types/models/shopping-list.js +8 -0
- package/dist/cjs/types/models/shopping-list.js.map +1 -0
- package/dist/cjs/types/models/staged-quote.d.ts +345 -0
- package/dist/cjs/types/models/staged-quote.d.ts.map +1 -0
- package/dist/cjs/types/models/staged-quote.js +8 -0
- package/dist/cjs/types/models/staged-quote.js.map +1 -0
- package/dist/cjs/types/models/standalone-price.d.ts +546 -0
- package/dist/cjs/types/models/standalone-price.d.ts.map +1 -0
- package/dist/cjs/types/models/standalone-price.js +8 -0
- package/dist/cjs/types/models/standalone-price.js.map +1 -0
- package/dist/cjs/types/models/state.d.ts +342 -0
- package/dist/cjs/types/models/state.d.ts.map +1 -0
- package/dist/cjs/types/models/state.js +8 -0
- package/dist/cjs/types/models/state.js.map +1 -0
- package/dist/cjs/types/models/store-country.d.ts +14 -0
- package/dist/cjs/types/models/store-country.d.ts.map +1 -0
- package/dist/cjs/types/models/store-country.js +8 -0
- package/dist/cjs/types/models/store-country.js.map +1 -0
- package/dist/cjs/types/models/store.d.ts +548 -0
- package/dist/cjs/types/models/store.d.ts.map +1 -0
- package/dist/cjs/types/models/store.js +8 -0
- package/dist/cjs/types/models/store.js.map +1 -0
- package/dist/cjs/types/models/subscription.d.ts +772 -0
- package/dist/cjs/types/models/subscription.d.ts.map +1 -0
- package/dist/cjs/types/models/subscription.js +8 -0
- package/dist/cjs/types/models/subscription.js.map +1 -0
- package/dist/cjs/types/models/tax-category.d.ts +379 -0
- package/dist/cjs/types/models/tax-category.d.ts.map +1 -0
- package/dist/cjs/types/models/tax-category.js +8 -0
- package/dist/cjs/types/models/tax-category.js.map +1 -0
- package/dist/cjs/types/models/type.d.ts +646 -0
- package/dist/cjs/types/models/type.d.ts.map +1 -0
- package/dist/cjs/types/models/type.js +8 -0
- package/dist/cjs/types/models/type.js.map +1 -0
- package/dist/cjs/types/models/warning.d.ts +24 -0
- package/dist/cjs/types/models/warning.d.ts.map +1 -0
- package/dist/cjs/types/models/warning.js +8 -0
- package/dist/cjs/types/models/warning.js.map +1 -0
- package/dist/cjs/types/models/zone.d.ts +235 -0
- package/dist/cjs/types/models/zone.d.ts.map +1 -0
- package/dist/cjs/types/models/zone.js +8 -0
- package/dist/cjs/types/models/zone.js.map +1 -0
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +15 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/utils/axios/convert-error.js +1 -2
- package/dist/cjs/utils/axios/convert-error.js.map +1 -1
- package/dist/cjs/utils/axios/convert-response.js +1 -2
- package/dist/cjs/utils/axios/convert-response.js.map +1 -1
- package/dist/cjs/utils/axios/create-instance.d.ts +0 -1
- package/dist/cjs/utils/axios/create-instance.d.ts.map +1 -1
- package/dist/cjs/utils/axios/create-instance.js +3 -2
- package/dist/cjs/utils/axios/create-instance.js.map +1 -1
- package/dist/cjs/utils/axios/extract-headers.js +1 -2
- package/dist/cjs/utils/axios/extract-headers.js.map +1 -1
- package/dist/cjs/utils/calculate-delay.js +1 -2
- package/dist/cjs/utils/calculate-delay.js.map +1 -1
- package/dist/cjs/utils/ensure-non-empty-string.js +1 -2
- package/dist/cjs/utils/ensure-non-empty-string.js.map +1 -1
- package/dist/cjs/utils/format.js +1 -2
- package/dist/cjs/utils/format.js.map +1 -1
- package/dist/cjs/utils/get-attribute-value.js +1 -2
- package/dist/cjs/utils/get-attribute-value.js.map +1 -1
- package/dist/cjs/utils/mask.js +4 -4
- package/dist/cjs/utils/mask.js.map +1 -1
- package/dist/cjs/utils/plain-clone.js +1 -2
- package/dist/cjs/utils/plain-clone.js.map +1 -1
- package/dist/cjs/utils/retry-on-conflict.js +1 -2
- package/dist/cjs/utils/retry-on-conflict.js.map +1 -1
- package/dist/cjs/utils/useragent.js +1 -2
- package/dist/cjs/utils/useragent.js.map +1 -1
- package/dist/mjs/api/types.d.ts +0 -1
- package/dist/mjs/api/types.d.ts.map +1 -1
- package/dist/mjs/auth/types.d.ts +0 -1
- package/dist/mjs/auth/types.d.ts.map +1 -1
- package/dist/mjs/error/CommercetoolsError.d.ts.map +1 -1
- package/dist/mjs/error/CommercetoolsError.js +2 -0
- package/dist/mjs/error/CommercetoolsError.js.map +1 -1
- package/dist/mjs/request/request-executor.d.ts +0 -1
- package/dist/mjs/request/request-executor.d.ts.map +1 -1
- package/dist/mjs/tsconfig.tsbuildinfo +1 -0
- package/dist/mjs/types/models/approval-flow.d.ts +264 -0
- package/dist/mjs/types/models/approval-flow.d.ts.map +1 -0
- package/dist/mjs/types/models/approval-flow.js +7 -0
- package/dist/mjs/types/models/approval-flow.js.map +1 -0
- package/dist/mjs/types/models/approval-rule.d.ts +415 -0
- package/dist/mjs/types/models/approval-rule.d.ts.map +1 -0
- package/dist/mjs/types/models/approval-rule.js +7 -0
- package/dist/mjs/types/models/approval-rule.js.map +1 -0
- package/dist/mjs/types/models/associate-role.d.ts +319 -0
- package/dist/mjs/types/models/associate-role.d.ts.map +1 -0
- package/dist/mjs/types/models/associate-role.js +7 -0
- package/dist/mjs/types/models/associate-role.js.map +1 -0
- package/dist/mjs/types/models/attribute-group.d.ts +254 -0
- package/dist/mjs/types/models/attribute-group.d.ts.map +1 -0
- package/dist/mjs/types/models/attribute-group.js +7 -0
- package/dist/mjs/types/models/attribute-group.js.map +1 -0
- package/dist/mjs/types/models/business-unit.d.ts +1244 -0
- package/dist/mjs/types/models/business-unit.d.ts.map +1 -0
- package/dist/mjs/types/models/business-unit.js +7 -0
- package/dist/mjs/types/models/business-unit.js.map +1 -0
- package/dist/mjs/types/models/cart-discount.d.ts +848 -0
- package/dist/mjs/types/models/cart-discount.d.ts.map +1 -0
- package/dist/mjs/types/models/cart-discount.js +7 -0
- package/dist/mjs/types/models/cart-discount.js.map +1 -0
- package/dist/mjs/types/models/cart.d.ts +3593 -0
- package/dist/mjs/types/models/cart.d.ts.map +1 -0
- package/dist/mjs/types/models/cart.js +7 -0
- package/dist/mjs/types/models/cart.js.map +1 -0
- package/dist/mjs/types/models/category.d.ts +636 -0
- package/dist/mjs/types/models/category.d.ts.map +1 -0
- package/dist/mjs/types/models/category.js +7 -0
- package/dist/mjs/types/models/category.js.map +1 -0
- package/dist/mjs/types/models/channel.d.ts +380 -0
- package/dist/mjs/types/models/channel.d.ts.map +1 -0
- package/dist/mjs/types/models/channel.js +7 -0
- package/dist/mjs/types/models/channel.js.map +1 -0
- package/dist/mjs/types/models/common.d.ts +1163 -0
- package/dist/mjs/types/models/common.d.ts.map +1 -0
- package/dist/mjs/types/models/common.js +7 -0
- package/dist/mjs/types/models/common.js.map +1 -0
- package/dist/mjs/types/models/custom-object.d.ts +152 -0
- package/dist/mjs/types/models/custom-object.d.ts.map +1 -0
- package/dist/mjs/types/models/custom-object.js +7 -0
- package/dist/mjs/types/models/custom-object.js.map +1 -0
- package/dist/mjs/types/models/customer-group.d.ts +235 -0
- package/dist/mjs/types/models/customer-group.d.ts.map +1 -0
- package/dist/mjs/types/models/customer-group.js +7 -0
- package/dist/mjs/types/models/customer-group.js.map +1 -0
- package/dist/mjs/types/models/customer-search.d.ts +114 -0
- package/dist/mjs/types/models/customer-search.d.ts.map +1 -0
- package/dist/mjs/types/models/customer-search.js +7 -0
- package/dist/mjs/types/models/customer-search.js.map +1 -0
- package/dist/mjs/types/models/customer.d.ts +1270 -0
- package/dist/mjs/types/models/customer.d.ts.map +1 -0
- package/dist/mjs/types/models/customer.js +7 -0
- package/dist/mjs/types/models/customer.js.map +1 -0
- package/dist/mjs/types/models/discount-code.d.ts +473 -0
- package/dist/mjs/types/models/discount-code.d.ts.map +1 -0
- package/dist/mjs/types/models/discount-code.js +7 -0
- package/dist/mjs/types/models/discount-code.js.map +1 -0
- package/dist/mjs/types/models/error.d.ts +3330 -0
- package/dist/mjs/types/models/error.d.ts.map +1 -0
- package/dist/mjs/types/models/error.js +7 -0
- package/dist/mjs/types/models/error.js.map +1 -0
- package/dist/mjs/types/models/extension.d.ts +336 -0
- package/dist/mjs/types/models/extension.d.ts.map +1 -0
- package/dist/mjs/types/models/extension.js +7 -0
- package/dist/mjs/types/models/extension.js.map +1 -0
- package/dist/mjs/types/models/index.d.ts +48 -0
- package/dist/mjs/types/models/index.d.ts.map +1 -0
- package/dist/mjs/types/models/index.js +48 -0
- package/dist/mjs/types/models/index.js.map +1 -0
- package/dist/mjs/types/models/inventory.d.ts +330 -0
- package/dist/mjs/types/models/inventory.d.ts.map +1 -0
- package/dist/mjs/types/models/inventory.js +7 -0
- package/dist/mjs/types/models/inventory.js.map +1 -0
- package/dist/mjs/types/models/me.d.ts +2636 -0
- package/dist/mjs/types/models/me.d.ts.map +1 -0
- package/dist/mjs/types/models/me.js +7 -0
- package/dist/mjs/types/models/me.js.map +1 -0
- package/dist/mjs/types/models/message.d.ts +23707 -0
- package/dist/mjs/types/models/message.d.ts.map +1 -0
- package/dist/mjs/types/models/message.js +7 -0
- package/dist/mjs/types/models/message.js.map +1 -0
- package/dist/mjs/types/models/order-edit.d.ts +2725 -0
- package/dist/mjs/types/models/order-edit.d.ts.map +1 -0
- package/dist/mjs/types/models/order-edit.js +7 -0
- package/dist/mjs/types/models/order-edit.js.map +1 -0
- package/dist/mjs/types/models/order.d.ts +3187 -0
- package/dist/mjs/types/models/order.d.ts.map +1 -0
- package/dist/mjs/types/models/order.js +7 -0
- package/dist/mjs/types/models/order.js.map +1 -0
- package/dist/mjs/types/models/payment.d.ts +680 -0
- package/dist/mjs/types/models/payment.d.ts.map +1 -0
- package/dist/mjs/types/models/payment.js +7 -0
- package/dist/mjs/types/models/payment.js.map +1 -0
- package/dist/mjs/types/models/product-discount.d.ts +465 -0
- package/dist/mjs/types/models/product-discount.d.ts.map +1 -0
- package/dist/mjs/types/models/product-discount.js +7 -0
- package/dist/mjs/types/models/product-discount.js.map +1 -0
- package/dist/mjs/types/models/product-search.d.ts +437 -0
- package/dist/mjs/types/models/product-search.d.ts.map +1 -0
- package/dist/mjs/types/models/product-search.js +7 -0
- package/dist/mjs/types/models/product-search.js.map +1 -0
- package/dist/mjs/types/models/product-selection.d.ts +579 -0
- package/dist/mjs/types/models/product-selection.d.ts.map +1 -0
- package/dist/mjs/types/models/product-selection.js +7 -0
- package/dist/mjs/types/models/product-selection.js.map +1 -0
- package/dist/mjs/types/models/product-tailoring.d.ts +1368 -0
- package/dist/mjs/types/models/product-tailoring.d.ts.map +1 -0
- package/dist/mjs/types/models/product-tailoring.js +7 -0
- package/dist/mjs/types/models/product-tailoring.js.map +1 -0
- package/dist/mjs/types/models/product-type.d.ts +775 -0
- package/dist/mjs/types/models/product-type.d.ts.map +1 -0
- package/dist/mjs/types/models/product-type.js +7 -0
- package/dist/mjs/types/models/product-type.js.map +1 -0
- package/dist/mjs/types/models/product.d.ts +2314 -0
- package/dist/mjs/types/models/product.d.ts.map +1 -0
- package/dist/mjs/types/models/product.js +7 -0
- package/dist/mjs/types/models/product.js.map +1 -0
- package/dist/mjs/types/models/project.d.ts +418 -0
- package/dist/mjs/types/models/project.d.ts.map +1 -0
- package/dist/mjs/types/models/project.js +7 -0
- package/dist/mjs/types/models/project.js.map +1 -0
- package/dist/mjs/types/models/quote-request.d.ts +452 -0
- package/dist/mjs/types/models/quote-request.d.ts.map +1 -0
- package/dist/mjs/types/models/quote-request.js +7 -0
- package/dist/mjs/types/models/quote-request.js.map +1 -0
- package/dist/mjs/types/models/quote.d.ts +473 -0
- package/dist/mjs/types/models/quote.d.ts.map +1 -0
- package/dist/mjs/types/models/quote.js +7 -0
- package/dist/mjs/types/models/quote.js.map +1 -0
- package/dist/mjs/types/models/review.d.ts +435 -0
- package/dist/mjs/types/models/review.d.ts.map +1 -0
- package/dist/mjs/types/models/review.js +7 -0
- package/dist/mjs/types/models/review.js.map +1 -0
- package/dist/mjs/types/models/scalar-types.d.ts +10 -0
- package/dist/mjs/types/models/scalar-types.d.ts.map +1 -0
- package/dist/mjs/types/models/scalar-types.js +7 -0
- package/dist/mjs/types/models/scalar-types.js.map +1 -0
- package/dist/mjs/types/models/search.d.ts +334 -0
- package/dist/mjs/types/models/search.d.ts.map +1 -0
- package/dist/mjs/types/models/search.js +7 -0
- package/dist/mjs/types/models/search.js.map +1 -0
- package/dist/mjs/types/models/shipping-method.d.ts +595 -0
- package/dist/mjs/types/models/shipping-method.d.ts.map +1 -0
- package/dist/mjs/types/models/shipping-method.js +7 -0
- package/dist/mjs/types/models/shipping-method.js.map +1 -0
- package/dist/mjs/types/models/shopping-list.d.ts +941 -0
- package/dist/mjs/types/models/shopping-list.d.ts.map +1 -0
- package/dist/mjs/types/models/shopping-list.js +7 -0
- package/dist/mjs/types/models/shopping-list.js.map +1 -0
- package/dist/mjs/types/models/staged-quote.d.ts +345 -0
- package/dist/mjs/types/models/staged-quote.d.ts.map +1 -0
- package/dist/mjs/types/models/staged-quote.js +7 -0
- package/dist/mjs/types/models/staged-quote.js.map +1 -0
- package/dist/mjs/types/models/standalone-price.d.ts +546 -0
- package/dist/mjs/types/models/standalone-price.d.ts.map +1 -0
- package/dist/mjs/types/models/standalone-price.js +7 -0
- package/dist/mjs/types/models/standalone-price.js.map +1 -0
- package/dist/mjs/types/models/state.d.ts +342 -0
- package/dist/mjs/types/models/state.d.ts.map +1 -0
- package/dist/mjs/types/models/state.js +7 -0
- package/dist/mjs/types/models/state.js.map +1 -0
- package/dist/mjs/types/models/store-country.d.ts +14 -0
- package/dist/mjs/types/models/store-country.d.ts.map +1 -0
- package/dist/mjs/types/models/store-country.js +7 -0
- package/dist/mjs/types/models/store-country.js.map +1 -0
- package/dist/mjs/types/models/store.d.ts +548 -0
- package/dist/mjs/types/models/store.d.ts.map +1 -0
- package/dist/mjs/types/models/store.js +7 -0
- package/dist/mjs/types/models/store.js.map +1 -0
- package/dist/mjs/types/models/subscription.d.ts +772 -0
- package/dist/mjs/types/models/subscription.d.ts.map +1 -0
- package/dist/mjs/types/models/subscription.js +7 -0
- package/dist/mjs/types/models/subscription.js.map +1 -0
- package/dist/mjs/types/models/tax-category.d.ts +379 -0
- package/dist/mjs/types/models/tax-category.d.ts.map +1 -0
- package/dist/mjs/types/models/tax-category.js +7 -0
- package/dist/mjs/types/models/tax-category.js.map +1 -0
- package/dist/mjs/types/models/type.d.ts +646 -0
- package/dist/mjs/types/models/type.d.ts.map +1 -0
- package/dist/mjs/types/models/type.js +7 -0
- package/dist/mjs/types/models/type.js.map +1 -0
- package/dist/mjs/types/models/warning.d.ts +24 -0
- package/dist/mjs/types/models/warning.d.ts.map +1 -0
- package/dist/mjs/types/models/warning.js +7 -0
- package/dist/mjs/types/models/warning.js.map +1 -0
- package/dist/mjs/types/models/zone.d.ts +235 -0
- package/dist/mjs/types/models/zone.d.ts.map +1 -0
- package/dist/mjs/types/models/zone.js +7 -0
- package/dist/mjs/types/models/zone.js.map +1 -0
- package/dist/mjs/types.d.ts +1 -1
- package/dist/mjs/types.d.ts.map +1 -1
- package/dist/mjs/types.js +1 -0
- package/dist/mjs/types.js.map +1 -1
- package/dist/mjs/utils/axios/create-instance.d.ts +0 -1
- package/dist/mjs/utils/axios/create-instance.d.ts.map +1 -1
- package/dist/mjs/utils/axios/create-instance.js +2 -0
- package/dist/mjs/utils/axios/create-instance.js.map +1 -1
- package/package.json +27 -26
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
+
*/
|
|
6
|
+
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common.js';
|
|
7
|
+
/**
|
|
8
|
+
* Specifies how an Attribute (or a set of Attributes) should be validated across all variants of a Product:
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
|
|
12
|
+
export type AttributeConstraintEnumDraft = 'None' | string;
|
|
13
|
+
/**
|
|
14
|
+
* Describes a Product Attribute and allows you to define meta-information associated with the Attribute (like whether it should be searchable, or its constraints).
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export interface AttributeDefinition {
|
|
18
|
+
/**
|
|
19
|
+
* Describes the Type of the Attribute.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
readonly type: AttributeType;
|
|
23
|
+
/**
|
|
24
|
+
* User-defined name of the Attribute that is unique within the [Project](ctp:api:type:Project).
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Human-readable label for the Attribute.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
readonly label: LocalizedString;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, the Attribute must have a value on a [ProductVariant](ctp:api:type:ProductVariant).
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
readonly isRequired: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies how Attributes are validated across all variants of a Product.
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
readonly attributeConstraint: AttributeConstraintEnum;
|
|
45
|
+
/**
|
|
46
|
+
* Provides additional Attribute information to aid content managers configure Product details.
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
readonly inputTip?: LocalizedString;
|
|
51
|
+
/**
|
|
52
|
+
* Provides a visual representation directive for values of this Attribute (only relevant for [AttributeTextType](ctp:api:type:AttributeTextType) and [AttributeLocalizableTextType](ctp:api:type:AttributeLocalizableTextType)).
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
readonly inputHint: TextInputHint;
|
|
56
|
+
/**
|
|
57
|
+
* If `true`, the Attribute's values are available for the [Product Projections Search API](/../api/projects/products-search) for use in full-text search queries, filters, and facets.
|
|
58
|
+
*
|
|
59
|
+
* Which exact features are available with this flag depends on the specific [AttributeType](ctp:api:type:AttributeType).
|
|
60
|
+
* The maximum size of a searchable field is **restricted** by the [Field content size limit](/../api/limits#field-content-size).
|
|
61
|
+
* This constraint is enforced at both [Product creation](ctp:api:endpoint:/{projectKey}/products:POST) and [Product update](/../api/projects/products#update-product).
|
|
62
|
+
* If the length of the input exceeds the maximum size, an [InvalidField](ctp:api:type:InvalidFieldError) error is returned.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
readonly isSearchable: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Specify the Attribute to be created with the [ProductTypeDraft](ctp:api:type:ProductTypeDraft).
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export interface AttributeDefinitionDraft {
|
|
72
|
+
/**
|
|
73
|
+
* Describes the Type of the Attribute.
|
|
74
|
+
*
|
|
75
|
+
* When the `type` is different for an AttributeDefinition using the same name in multiple ProductTypes, an [AttributeDefinitionTypeConflict](ctp:api:type:AttributeDefinitionTypeConflictError) error is returned.
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
readonly type: AttributeType;
|
|
80
|
+
/**
|
|
81
|
+
* User-defined name of the Attribute that is unique with the [Project](ctp:api:type:Project).
|
|
82
|
+
*
|
|
83
|
+
* When using the same `name` for an Attribute in multiple ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes, else an [AttributeDefinitionAlreadyExists](ctp:api:type:AttributeDefinitionAlreadyExistsError) error is returned.
|
|
84
|
+
* An exception to this are the values of an `enum` or `lenum` Type and sets thereof.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
readonly name: string;
|
|
88
|
+
/**
|
|
89
|
+
* Human-readable label for the Attribute.
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
readonly label: LocalizedString;
|
|
93
|
+
/**
|
|
94
|
+
* Set to `true` if the Attribute is required to have a value on a [ProductVariant](ctp:api:type:ProductVariant).
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
readonly isRequired: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies how an Attribute or a combination of Attributes should be validated across all variants of a Product.
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
readonly attributeConstraint?: AttributeConstraintEnum;
|
|
105
|
+
/**
|
|
106
|
+
* Provides additional information about the Attribute that aids content managers when setting Product details.
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
readonly inputTip?: LocalizedString;
|
|
111
|
+
/**
|
|
112
|
+
* Provides a visual representation directive for values of this Attribute (only relevant for [AttributeTextType](ctp:api:type:AttributeTextType) and [AttributeLocalizableTextType](ctp:api:type:AttributeLocalizableTextType)).
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
readonly inputHint?: TextInputHint;
|
|
117
|
+
/**
|
|
118
|
+
* Set to `true` if the Attribute's values should be available in the [Product Projections Search API](/../api/projects/products-search) and can be used in full-text search queries, filters, and facets.
|
|
119
|
+
* Which exact features are available with this flag depends on the specific [AttributeType](ctp:api:type:AttributeType).
|
|
120
|
+
* The maximum size of a searchable field is **restricted** by the [Field content size limit](/../api/limits#field-content-size).
|
|
121
|
+
* This constraint is enforced at both Product creation and Product update.
|
|
122
|
+
* If the length of the input exceeds the maximum size, an InvalidField error is returned.
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
readonly isSearchable?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A localized enum value must be unique within the enum, else a [DuplicateEnumValues](ctp:api:type:DuplicateEnumValuesError) error is returned.
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
export interface AttributeLocalizedEnumValue {
|
|
132
|
+
/**
|
|
133
|
+
* Key of the value used as a programmatic identifier, for example in facets & filters.
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
readonly key: string;
|
|
138
|
+
/**
|
|
139
|
+
* Descriptive, localized label of the value.
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
readonly label: LocalizedString;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A plain enum value must be unique within the enum, else a [DuplicateEnumValues](ctp:api:type:DuplicateEnumValuesError) error is returned.
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
export interface AttributePlainEnumValue {
|
|
150
|
+
/**
|
|
151
|
+
* Key of the value used as a programmatic identifier, for example in facets & filters.
|
|
152
|
+
*
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
readonly key: string;
|
|
156
|
+
/**
|
|
157
|
+
* Descriptive label of the value.
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
readonly label: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Name of the resource type that the value should reference. Supported resource type identifiers:
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
export type AttributeReferenceTypeId = 'associate-role' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'key-value-document' | 'order' | 'product' | 'product-type' | 'review' | 'shipping-method' | 'state' | 'zone' | string;
|
|
168
|
+
/**
|
|
169
|
+
* Umbrella type for specific attribute types discriminated by property `name`.
|
|
170
|
+
*/
|
|
171
|
+
export type AttributeType = AttributeBooleanType | AttributeDateTimeType | AttributeDateType | AttributeEnumType | AttributeLocalizableTextType | AttributeLocalizedEnumType | AttributeMoneyType | AttributeNestedType | AttributeNumberType | AttributeReferenceType | AttributeSetType | AttributeTextType | AttributeTimeType;
|
|
172
|
+
/**
|
|
173
|
+
* Attribute type for Boolean values. Valid values for the Attribute are `true` and `false` (JSON Boolean).
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
export interface AttributeBooleanType {
|
|
177
|
+
readonly name: 'boolean';
|
|
178
|
+
}
|
|
179
|
+
export interface AttributeDateTimeType {
|
|
180
|
+
readonly name: 'datetime';
|
|
181
|
+
}
|
|
182
|
+
export interface AttributeDateType {
|
|
183
|
+
readonly name: 'date';
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Attribute type for plain enum values. Useful for predefined language-agnostic values selectable in drop downs when only one value should be selected. Use [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType instead if multiple values can be selected from the list.
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
export interface AttributeEnumType {
|
|
190
|
+
readonly name: 'enum';
|
|
191
|
+
/**
|
|
192
|
+
* Available values that can be assigned to Products.
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
readonly values: AttributePlainEnumValue[];
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Attribute type for [LocalizedString](ctp:api:type:LocalizedString) values.
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
export interface AttributeLocalizableTextType {
|
|
203
|
+
readonly name: 'ltext';
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Attribute type for localized enum values. Useful for predefined language-specific values selectable in drop-down menus if only one value can be selected. Use [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeLocalizedEnumValue instead if multiple values can be selected.
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
209
|
+
export interface AttributeLocalizedEnumType {
|
|
210
|
+
readonly name: 'lenum';
|
|
211
|
+
/**
|
|
212
|
+
* Available values that can be assigned to Products.
|
|
213
|
+
*
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
readonly values: AttributeLocalizedEnumValue[];
|
|
217
|
+
}
|
|
218
|
+
export interface AttributeMoneyType {
|
|
219
|
+
readonly name: 'money';
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Attribute type for nesting Attributes based on some existing ProductType. It does not support `isSearchable` and is not supported in queries. The only supported AttributeConstraint is `None`.
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
export interface AttributeNestedType {
|
|
226
|
+
readonly name: 'nested';
|
|
227
|
+
/**
|
|
228
|
+
* Attributes that can be stored as nested Attributes of the current Attribute.
|
|
229
|
+
*
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
readonly typeReference: ProductTypeReference;
|
|
233
|
+
}
|
|
234
|
+
export interface AttributeNumberType {
|
|
235
|
+
readonly name: 'number';
|
|
236
|
+
}
|
|
237
|
+
export interface AttributeReferenceType {
|
|
238
|
+
readonly name: 'reference';
|
|
239
|
+
/**
|
|
240
|
+
* Name of the resource type that the value should reference.
|
|
241
|
+
*
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
readonly referenceTypeId: AttributeReferenceTypeId;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* AttributeType that defines a set (without duplicate elements) with values of the given `elementType`. It does not support `isRequired`. Since this type itself is an AttributeType, it is possible to construct an AttributeSetType of an AttributeSetType of any AttributeType, and to continue with this iteration until terminating with any non-AttributeSetType. In case the AttributeSetType iteration terminates with an [AttributeNestedType](ctp:api:type:AttributeNestedType), the iteration can have 5 steps at maximum.
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
export interface AttributeSetType {
|
|
251
|
+
readonly name: 'set';
|
|
252
|
+
/**
|
|
253
|
+
* Attribute type of the elements in the set.
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
readonly elementType: AttributeType;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Attribute type for plain text values.
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
export interface AttributeTextType {
|
|
263
|
+
readonly name: 'text';
|
|
264
|
+
}
|
|
265
|
+
export interface AttributeTimeType {
|
|
266
|
+
readonly name: 'time';
|
|
267
|
+
}
|
|
268
|
+
export interface ProductType extends BaseResource {
|
|
269
|
+
/**
|
|
270
|
+
* Unique identifier of the ProductType.
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
readonly id: string;
|
|
274
|
+
/**
|
|
275
|
+
* Current version of the ProductType.
|
|
276
|
+
*
|
|
277
|
+
*
|
|
278
|
+
*/
|
|
279
|
+
readonly version: number;
|
|
280
|
+
/**
|
|
281
|
+
* Date and time (UTC) the ProductType was initially created.
|
|
282
|
+
*
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
readonly createdAt: string;
|
|
286
|
+
/**
|
|
287
|
+
* Date and time (UTC) the ProductType was last updated.
|
|
288
|
+
*
|
|
289
|
+
*
|
|
290
|
+
*/
|
|
291
|
+
readonly lastModifiedAt: string;
|
|
292
|
+
/**
|
|
293
|
+
* IDs and references that last modified the ProductType.
|
|
294
|
+
*
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
298
|
+
/**
|
|
299
|
+
* IDs and references that created the ProductType.
|
|
300
|
+
*
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
readonly createdBy?: CreatedBy;
|
|
304
|
+
/**
|
|
305
|
+
* User-defined unique identifier of the ProductType.
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
readonly key?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Name of the ProductType.
|
|
311
|
+
*
|
|
312
|
+
*
|
|
313
|
+
*/
|
|
314
|
+
readonly name: string;
|
|
315
|
+
/**
|
|
316
|
+
* Description of the ProductType.
|
|
317
|
+
*
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
readonly description: string;
|
|
321
|
+
/**
|
|
322
|
+
* Attributes specified for the ProductType.
|
|
323
|
+
*
|
|
324
|
+
*
|
|
325
|
+
*/
|
|
326
|
+
readonly attributes?: AttributeDefinition[];
|
|
327
|
+
}
|
|
328
|
+
export interface ProductTypeDraft {
|
|
329
|
+
/**
|
|
330
|
+
* User-defined unique identifier for the ProductType.
|
|
331
|
+
*
|
|
332
|
+
*/
|
|
333
|
+
readonly key?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Name of the ProductType.
|
|
336
|
+
*
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
readonly name: string;
|
|
340
|
+
/**
|
|
341
|
+
* Description of the ProductType.
|
|
342
|
+
*
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
readonly description: string;
|
|
346
|
+
/**
|
|
347
|
+
* Attributes to specify for the ProductType. Products of this ProductType have these Attributes available on their [ProductVariants](ctp:api:type:ProductVariant).
|
|
348
|
+
*
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
351
|
+
readonly attributes?: AttributeDefinitionDraft[];
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ProductType](ctp:api:type:ProductType).
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
export interface ProductTypePagedQueryResponse {
|
|
358
|
+
/**
|
|
359
|
+
* Number of [results requested](/../api/general-concepts#limit).
|
|
360
|
+
*
|
|
361
|
+
*
|
|
362
|
+
*/
|
|
363
|
+
readonly limit: number;
|
|
364
|
+
/**
|
|
365
|
+
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
366
|
+
*
|
|
367
|
+
*
|
|
368
|
+
*/
|
|
369
|
+
readonly offset: number;
|
|
370
|
+
/**
|
|
371
|
+
* Actual number of results returned.
|
|
372
|
+
*
|
|
373
|
+
*
|
|
374
|
+
*/
|
|
375
|
+
readonly count: number;
|
|
376
|
+
/**
|
|
377
|
+
* Total number of results matching the query.
|
|
378
|
+
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
|
|
379
|
+
* This field is returned by default.
|
|
380
|
+
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
|
|
381
|
+
* When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
|
|
382
|
+
*
|
|
383
|
+
*
|
|
384
|
+
*/
|
|
385
|
+
readonly total?: number;
|
|
386
|
+
/**
|
|
387
|
+
* [ProductTypes](ctp:api:type:ProductType) matching the query.
|
|
388
|
+
*
|
|
389
|
+
*
|
|
390
|
+
*/
|
|
391
|
+
readonly results: ProductType[];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* [Reference](ctp:api:type:Reference) to a [ProductType](ctp:api:type:ProductType).
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
397
|
+
export interface ProductTypeReference {
|
|
398
|
+
readonly typeId: 'product-type';
|
|
399
|
+
/**
|
|
400
|
+
* Unique identifier of the referenced [ProductType](ctp:api:type:ProductType).
|
|
401
|
+
*
|
|
402
|
+
*
|
|
403
|
+
*/
|
|
404
|
+
readonly id: string;
|
|
405
|
+
/**
|
|
406
|
+
* Contains the representation of the expanded ProductType. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for ProductTypes.
|
|
407
|
+
*
|
|
408
|
+
*
|
|
409
|
+
*/
|
|
410
|
+
readonly obj?: ProductType;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductType](ctp:api:type:ProductType). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
|
|
414
|
+
*
|
|
415
|
+
*/
|
|
416
|
+
export interface ProductTypeResourceIdentifier {
|
|
417
|
+
readonly typeId: 'product-type';
|
|
418
|
+
/**
|
|
419
|
+
* Unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Required if `key` is absent.
|
|
420
|
+
*
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
readonly id?: string;
|
|
424
|
+
/**
|
|
425
|
+
* User-defined unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Required if `id` is absent.
|
|
426
|
+
*
|
|
427
|
+
*
|
|
428
|
+
*/
|
|
429
|
+
readonly key?: string;
|
|
430
|
+
}
|
|
431
|
+
export interface ProductTypeUpdate {
|
|
432
|
+
/**
|
|
433
|
+
* Expected version of the ProductType on which the changes should be applied.
|
|
434
|
+
* If the expected version does not match the actual version, a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error will be returned.
|
|
435
|
+
*
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
readonly version: number;
|
|
439
|
+
/**
|
|
440
|
+
* Update actions to be performed on the ProductType.
|
|
441
|
+
*
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
readonly actions: ProductTypeUpdateAction[];
|
|
445
|
+
}
|
|
446
|
+
export type ProductTypeUpdateAction = ProductTypeAddAttributeDefinitionAction | ProductTypeAddLocalizedEnumValueAction | ProductTypeAddPlainEnumValueAction | ProductTypeChangeAttributeConstraintAction | ProductTypeChangeAttributeNameAction | ProductTypeChangeAttributeOrderByNameAction | ProductTypeChangeDescriptionAction | ProductTypeChangeEnumKeyAction | ProductTypeChangeInputHintAction | ProductTypeChangeIsSearchableAction | ProductTypeChangeLabelAction | ProductTypeChangeLocalizedEnumValueLabelAction | ProductTypeChangeLocalizedEnumValueOrderAction | ProductTypeChangeNameAction | ProductTypeChangePlainEnumValueLabelAction | ProductTypeChangePlainEnumValueOrderAction | ProductTypeRemoveAttributeDefinitionAction | ProductTypeRemoveEnumValuesAction | ProductTypeSetInputTipAction | ProductTypeSetKeyAction;
|
|
447
|
+
/**
|
|
448
|
+
* A text input hint is a string with one of the following values:
|
|
449
|
+
*
|
|
450
|
+
*/
|
|
451
|
+
export type TextInputHint = 'MultiLine' | 'SingleLine' | string;
|
|
452
|
+
export interface ProductTypeAddAttributeDefinitionAction {
|
|
453
|
+
readonly action: 'addAttributeDefinition';
|
|
454
|
+
/**
|
|
455
|
+
* Value to append to `attributes`.
|
|
456
|
+
*
|
|
457
|
+
*/
|
|
458
|
+
readonly attribute: AttributeDefinitionDraft;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Adds a localizable enum to the values of [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType). It can update an AttributeLocalizedEnumType AttributeDefinition or an [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeLocalizedEnumType AttributeDefinition.
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
export interface ProductTypeAddLocalizedEnumValueAction {
|
|
465
|
+
readonly action: 'addLocalizedEnumValue';
|
|
466
|
+
/**
|
|
467
|
+
* Name of the AttributeDefinition to update.
|
|
468
|
+
*
|
|
469
|
+
*
|
|
470
|
+
*/
|
|
471
|
+
readonly attributeName: string;
|
|
472
|
+
/**
|
|
473
|
+
* Value to append to the array.
|
|
474
|
+
*
|
|
475
|
+
*
|
|
476
|
+
*/
|
|
477
|
+
readonly value: AttributeLocalizedEnumValue;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Adds an enum to the values of [AttributeEnumType](ctp:api:type:AttributeEnumType) AttributeDefinition, or [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType AttributeDefinition.
|
|
481
|
+
*
|
|
482
|
+
*/
|
|
483
|
+
export interface ProductTypeAddPlainEnumValueAction {
|
|
484
|
+
readonly action: 'addPlainEnumValue';
|
|
485
|
+
/**
|
|
486
|
+
* Name of the AttributeDefinition to update.
|
|
487
|
+
*
|
|
488
|
+
*
|
|
489
|
+
*/
|
|
490
|
+
readonly attributeName: string;
|
|
491
|
+
/**
|
|
492
|
+
* Value to append to the array.
|
|
493
|
+
*
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
readonly value: AttributePlainEnumValue;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Updates the `attributeConstraint` of an [AttributeDefinition](ctp:api:type:AttributeDefinition). For now only following changes are supported: `SameForAll` to `None` and `Unique` to `None`.
|
|
500
|
+
*
|
|
501
|
+
*/
|
|
502
|
+
export interface ProductTypeChangeAttributeConstraintAction {
|
|
503
|
+
readonly action: 'changeAttributeConstraint';
|
|
504
|
+
/**
|
|
505
|
+
* Name of the AttributeDefinition to update.
|
|
506
|
+
*
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
readonly attributeName: string;
|
|
510
|
+
/**
|
|
511
|
+
* `None`
|
|
512
|
+
*
|
|
513
|
+
*
|
|
514
|
+
*/
|
|
515
|
+
readonly newValue: AttributeConstraintEnumDraft;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Renames an AttributeDefinition and also renames all corresponding Attributes on all [Products](/projects/products) with this ProductType. The renaming of the Attributes is [eventually consistent](/general-concepts#eventual-consistency).
|
|
519
|
+
*
|
|
520
|
+
* If the AttributeDefinition name to be changed does not exist, an [AttributeNameDoesNotExist](ctp:api:type:AttributeNameDoesNotExistError) error is returned.
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
523
|
+
export interface ProductTypeChangeAttributeNameAction {
|
|
524
|
+
readonly action: 'changeAttributeName';
|
|
525
|
+
/**
|
|
526
|
+
* Name of the AttributeDefinition to update.
|
|
527
|
+
*
|
|
528
|
+
*/
|
|
529
|
+
readonly attributeName: string;
|
|
530
|
+
/**
|
|
531
|
+
* New user-defined name of the Attribute that is unique with the [Project](ctp:api:type:Project).
|
|
532
|
+
*
|
|
533
|
+
* When using the same `name` for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an [AttributeDefinitionAlreadyExists](ctp:api:type:AttributeDefinitionAlreadyExistsError) error is returned.
|
|
534
|
+
* An exception to this are the values of an `enum` or `lenum` type and sets thereof.
|
|
535
|
+
*
|
|
536
|
+
*/
|
|
537
|
+
readonly newAttributeName: string;
|
|
538
|
+
}
|
|
539
|
+
export interface ProductTypeChangeAttributeOrderByNameAction {
|
|
540
|
+
readonly action: 'changeAttributeOrderByName';
|
|
541
|
+
/**
|
|
542
|
+
* Names of Attributes to reorder. This array must include all Attributes currently present on a ProductType in a different order.
|
|
543
|
+
*
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
readonly attributeNames: string[];
|
|
547
|
+
}
|
|
548
|
+
export interface ProductTypeChangeDescriptionAction {
|
|
549
|
+
readonly action: 'changeDescription';
|
|
550
|
+
/**
|
|
551
|
+
* New value to set.
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
readonly description: string;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Updates the key of a single enum `value` in an [AttributeEnumType](ctp:api:type:AttributeEnumType) AttributeDefinition, [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType) AttributeDefinition, [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType AttributeDefinition, or AttributeSetType of AttributeLocalizedEnumType AttributeDefinition.
|
|
558
|
+
*
|
|
559
|
+
* If the AttributeDefinition does not contain an enum with the referenced key, a [EnumKeyDoesNotExist](ctp:api:type:EnumKeyDoesNotExistError) error is returned.
|
|
560
|
+
*
|
|
561
|
+
* All Products will be updated to the new key in an [eventually consistent](/general-concepts#eventual-consistency) way.
|
|
562
|
+
*
|
|
563
|
+
*/
|
|
564
|
+
export interface ProductTypeChangeEnumKeyAction {
|
|
565
|
+
readonly action: 'changeEnumKey';
|
|
566
|
+
/**
|
|
567
|
+
* Name of the AttributeDefinition to update.
|
|
568
|
+
*
|
|
569
|
+
*/
|
|
570
|
+
readonly attributeName: string;
|
|
571
|
+
/**
|
|
572
|
+
* Existing key to be changed.
|
|
573
|
+
*
|
|
574
|
+
*
|
|
575
|
+
*/
|
|
576
|
+
readonly key: string;
|
|
577
|
+
/**
|
|
578
|
+
* New key to be set.
|
|
579
|
+
*
|
|
580
|
+
*
|
|
581
|
+
*/
|
|
582
|
+
readonly newKey: string;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Updates the `inputHint` of an [AttributeDefinition](ctp:api:type:AttributeDefinition).
|
|
586
|
+
*
|
|
587
|
+
*/
|
|
588
|
+
export interface ProductTypeChangeInputHintAction {
|
|
589
|
+
readonly action: 'changeInputHint';
|
|
590
|
+
/**
|
|
591
|
+
* Name of the AttributeDefinition to update.
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
readonly attributeName: string;
|
|
595
|
+
/**
|
|
596
|
+
* `SingleLine` or `MultiLine`
|
|
597
|
+
*
|
|
598
|
+
*
|
|
599
|
+
*/
|
|
600
|
+
readonly newValue: TextInputHint;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Following this update the Products are reindexed asynchronously to reflect this change on the search endpoint. When enabling search on an existing Attribute type definition, the constraint regarding the maximum size of a searchable Attribute will not be enforced. Instead, Product AttributeDefinitions exceeding this limit will be treated as not searchable and will not be available for full-text search.
|
|
604
|
+
*
|
|
605
|
+
*/
|
|
606
|
+
export interface ProductTypeChangeIsSearchableAction {
|
|
607
|
+
readonly action: 'changeIsSearchable';
|
|
608
|
+
/**
|
|
609
|
+
* Name of the AttributeDefinition to update.
|
|
610
|
+
*
|
|
611
|
+
*
|
|
612
|
+
*/
|
|
613
|
+
readonly attributeName: string;
|
|
614
|
+
/**
|
|
615
|
+
* Determines whether the Attribute's values can be used in full-text search queries, filters, and facets. See [AttributeDefinition](ctp:api:type:AttributeDefinition) for details.
|
|
616
|
+
*
|
|
617
|
+
*
|
|
618
|
+
*/
|
|
619
|
+
readonly isSearchable: boolean;
|
|
620
|
+
}
|
|
621
|
+
export interface ProductTypeChangeLabelAction {
|
|
622
|
+
readonly action: 'changeLabel';
|
|
623
|
+
/**
|
|
624
|
+
* Name of the AttributeDefinition to update.
|
|
625
|
+
*
|
|
626
|
+
*/
|
|
627
|
+
readonly attributeName: string;
|
|
628
|
+
/**
|
|
629
|
+
* New value to set. Must not be empty.
|
|
630
|
+
*
|
|
631
|
+
*/
|
|
632
|
+
readonly label: LocalizedString;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Updates the label of a single enum `value` in an [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType) AttributeDefinition, or [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeLocalizedEnumType AttributeDefinition.
|
|
636
|
+
*
|
|
637
|
+
* All Products will be updated to the new label in an [eventually consistent](/general-concepts#eventual-consistency) way.
|
|
638
|
+
*
|
|
639
|
+
*/
|
|
640
|
+
export interface ProductTypeChangeLocalizedEnumValueLabelAction {
|
|
641
|
+
readonly action: 'changeLocalizedEnumValueLabel';
|
|
642
|
+
/**
|
|
643
|
+
* Name of the AttributeDefinition to update.
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
readonly attributeName: string;
|
|
647
|
+
/**
|
|
648
|
+
* New value to set. Must be different from the existing value.
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
*/
|
|
652
|
+
readonly newValue: AttributeLocalizedEnumValue;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Updates the order of localized enum `values` in an [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType) AttributeDefinition. It can update an AttributeLocalizedEnumType AttributeDefinition or an [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeLocalizedEnumType AttributeDefinition.
|
|
656
|
+
*
|
|
657
|
+
*/
|
|
658
|
+
export interface ProductTypeChangeLocalizedEnumValueOrderAction {
|
|
659
|
+
readonly action: 'changeLocalizedEnumValueOrder';
|
|
660
|
+
/**
|
|
661
|
+
* Name of the AttributeDefinition to update.
|
|
662
|
+
*
|
|
663
|
+
*/
|
|
664
|
+
readonly attributeName: string;
|
|
665
|
+
/**
|
|
666
|
+
* Values must be equal to the values of the Attribute enum values (except for the order). If not, an [EnumValuesMustMatch](ctp:api:type:EnumValuesMustMatchError) error is returned.
|
|
667
|
+
*
|
|
668
|
+
*
|
|
669
|
+
*/
|
|
670
|
+
readonly values: AttributeLocalizedEnumValue[];
|
|
671
|
+
}
|
|
672
|
+
export interface ProductTypeChangeNameAction {
|
|
673
|
+
readonly action: 'changeName';
|
|
674
|
+
/**
|
|
675
|
+
* New value to set.
|
|
676
|
+
*
|
|
677
|
+
*/
|
|
678
|
+
readonly name: string;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Updates the label of a single enum `value` in an [AttributeEnumType](ctp:api:type:AttributeEnumType) AttributeDefinition, or [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType AttributeDefinition.
|
|
682
|
+
*
|
|
683
|
+
* All Products will be updated to the new label in an [eventually consistent](/general-concepts#eventual-consistency) way.
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
686
|
+
export interface ProductTypeChangePlainEnumValueLabelAction {
|
|
687
|
+
readonly action: 'changePlainEnumValueLabel';
|
|
688
|
+
/**
|
|
689
|
+
* Name of the AttributeDefinition to update.
|
|
690
|
+
*
|
|
691
|
+
*/
|
|
692
|
+
readonly attributeName: string;
|
|
693
|
+
/**
|
|
694
|
+
* New value to set. Must be different from the existing value.
|
|
695
|
+
*
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
698
|
+
readonly newValue: AttributePlainEnumValue;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Updates the order of enum `values` in an [AttributeEnumType](ctp:api:type:AttributeEnumType) AttributeDefinition. It can update an AttributeEnumType AttributeDefinition or an [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType AttributeDefinition.
|
|
702
|
+
*
|
|
703
|
+
*/
|
|
704
|
+
export interface ProductTypeChangePlainEnumValueOrderAction {
|
|
705
|
+
readonly action: 'changePlainEnumValueOrder';
|
|
706
|
+
/**
|
|
707
|
+
* Name of the AttributeDefinition to update.
|
|
708
|
+
*
|
|
709
|
+
*/
|
|
710
|
+
readonly attributeName: string;
|
|
711
|
+
/**
|
|
712
|
+
* Values must be equal to the values of the Attribute enum values (except for the order). If not, an [EnumValuesMustMatch](ctp:api:type:EnumValuesMustMatchError) error is returned.
|
|
713
|
+
*
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
readonly values: AttributePlainEnumValue[];
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Removes an AttributeDefinition and also deletes all corresponding Attributes on all [Products](/projects/products) with this ProductType. The removal of the Attributes is [eventually consistent](/general-concepts#eventual-consistency).
|
|
720
|
+
*
|
|
721
|
+
* The `CombinationUnique` constraint is not checked when an Attribute is removed, and uniqueness violations may occur when you remove an Attribute with a `CombinationUnique` constraint.
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
724
|
+
export interface ProductTypeRemoveAttributeDefinitionAction {
|
|
725
|
+
readonly action: 'removeAttributeDefinition';
|
|
726
|
+
/**
|
|
727
|
+
* Name of the Attribute to remove.
|
|
728
|
+
*
|
|
729
|
+
*/
|
|
730
|
+
readonly name: string;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Removes enum values from an AttributeDefinition of [AttributeEnumType](ctp:api:type:AttributeEnumType), [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType), [AttributeSetType](ctp:api:type:AttributeSetType) of AttributeEnumType, or AttributeSetType of AttributeLocalizedEnumType.
|
|
734
|
+
*
|
|
735
|
+
* If the Attribute is **not** required, the Attributes of all Products using those enum keys will also be removed in an [eventually consistent](/general-concepts#eventual-consistency) way. If the Attribute is required, the operation returns an [EnumValueIsUsed](ctp:api:type:EnumValueIsUsedError) error.
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
export interface ProductTypeRemoveEnumValuesAction {
|
|
739
|
+
readonly action: 'removeEnumValues';
|
|
740
|
+
/**
|
|
741
|
+
* Name of the AttributeDefinition to update.
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
readonly attributeName: string;
|
|
745
|
+
/**
|
|
746
|
+
* Keys of [AttributeEnumType](ctp:api:type:AttributeEnumType) or [AttributeLocalizedEnumType](ctp:api:type:AttributeLocalizedEnumType) to remove.
|
|
747
|
+
*
|
|
748
|
+
*
|
|
749
|
+
*/
|
|
750
|
+
readonly keys: string[];
|
|
751
|
+
}
|
|
752
|
+
export interface ProductTypeSetInputTipAction {
|
|
753
|
+
readonly action: 'setInputTip';
|
|
754
|
+
/**
|
|
755
|
+
* Name of the AttributeDefinition to update.
|
|
756
|
+
*
|
|
757
|
+
*
|
|
758
|
+
*/
|
|
759
|
+
readonly attributeName: string;
|
|
760
|
+
/**
|
|
761
|
+
* Value to set. If empty, any existing value will be removed.
|
|
762
|
+
*
|
|
763
|
+
*
|
|
764
|
+
*/
|
|
765
|
+
readonly inputTip?: LocalizedString;
|
|
766
|
+
}
|
|
767
|
+
export interface ProductTypeSetKeyAction {
|
|
768
|
+
readonly action: 'setKey';
|
|
769
|
+
/**
|
|
770
|
+
* Value to set. If empty, any existing value will be removed.
|
|
771
|
+
*
|
|
772
|
+
*/
|
|
773
|
+
readonly key?: string;
|
|
774
|
+
}
|
|
775
|
+
//# sourceMappingURL=product-type.d.ts.map
|