@gradientedge/commercetools-utils 5.18.2 → 5.20.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 +11 -11
- package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/cjs/api/CommercetoolsApi.js +7 -7
- package/dist/cjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types.d.ts +1 -0
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/utils/get-attribute-value.d.ts +1 -1
- package/dist/cjs/utils/get-attribute-value.d.ts.map +1 -1
- package/dist/cjs/utils/get-attribute-value.js.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.d.ts +11 -11
- package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.js +8 -8
- package/dist/mjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/mjs/index.d.ts +0 -1
- package/dist/mjs/index.d.ts.map +1 -1
- package/dist/mjs/index.js +0 -1
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/types.d.ts +1 -0
- package/dist/mjs/types.d.ts.map +1 -1
- package/dist/mjs/utils/get-attribute-value.d.ts +1 -1
- package/dist/mjs/utils/get-attribute-value.d.ts.map +1 -1
- package/dist/mjs/utils/get-attribute-value.js.map +1 -1
- package/package.json +2 -1
- package/dist/cjs/models/associate-role.d.ts +0 -319
- package/dist/cjs/models/associate-role.d.ts.map +0 -1
- package/dist/cjs/models/associate-role.js +0 -8
- package/dist/cjs/models/associate-role.js.map +0 -1
- package/dist/cjs/models/attribute-group.d.ts +0 -253
- package/dist/cjs/models/attribute-group.d.ts.map +0 -1
- package/dist/cjs/models/attribute-group.js +0 -8
- package/dist/cjs/models/attribute-group.js.map +0 -1
- package/dist/cjs/models/business-unit.d.ts +0 -1197
- package/dist/cjs/models/business-unit.d.ts.map +0 -1
- package/dist/cjs/models/business-unit.js +0 -8
- package/dist/cjs/models/business-unit.js.map +0 -1
- package/dist/cjs/models/cart-discount.d.ts +0 -716
- package/dist/cjs/models/cart-discount.d.ts.map +0 -1
- package/dist/cjs/models/cart-discount.js +0 -8
- package/dist/cjs/models/cart-discount.js.map +0 -1
- package/dist/cjs/models/cart.d.ts +0 -3366
- package/dist/cjs/models/cart.d.ts.map +0 -1
- package/dist/cjs/models/cart.js +0 -8
- package/dist/cjs/models/cart.js.map +0 -1
- package/dist/cjs/models/category.d.ts +0 -634
- package/dist/cjs/models/category.d.ts.map +0 -1
- package/dist/cjs/models/category.js +0 -8
- package/dist/cjs/models/category.js.map +0 -1
- package/dist/cjs/models/channel.d.ts +0 -379
- package/dist/cjs/models/channel.d.ts.map +0 -1
- package/dist/cjs/models/channel.js +0 -8
- package/dist/cjs/models/channel.js.map +0 -1
- package/dist/cjs/models/common.d.ts +0 -1096
- package/dist/cjs/models/common.d.ts.map +0 -1
- package/dist/cjs/models/common.js +0 -8
- package/dist/cjs/models/common.js.map +0 -1
- package/dist/cjs/models/custom-object.d.ts +0 -151
- package/dist/cjs/models/custom-object.d.ts.map +0 -1
- package/dist/cjs/models/custom-object.js +0 -8
- package/dist/cjs/models/custom-object.js.map +0 -1
- package/dist/cjs/models/customer-group.d.ts +0 -235
- package/dist/cjs/models/customer-group.d.ts.map +0 -1
- package/dist/cjs/models/customer-group.js +0 -8
- package/dist/cjs/models/customer-group.js.map +0 -1
- package/dist/cjs/models/customer.d.ts +0 -1221
- package/dist/cjs/models/customer.d.ts.map +0 -1
- package/dist/cjs/models/customer.js +0 -8
- package/dist/cjs/models/customer.js.map +0 -1
- package/dist/cjs/models/discount-code.d.ts +0 -439
- package/dist/cjs/models/discount-code.d.ts.map +0 -1
- package/dist/cjs/models/discount-code.js +0 -8
- package/dist/cjs/models/discount-code.js.map +0 -1
- package/dist/cjs/models/error.d.ts +0 -3062
- package/dist/cjs/models/error.d.ts.map +0 -1
- package/dist/cjs/models/error.js +0 -8
- package/dist/cjs/models/error.js.map +0 -1
- package/dist/cjs/models/extension.d.ts +0 -335
- package/dist/cjs/models/extension.d.ts.map +0 -1
- package/dist/cjs/models/extension.js +0 -8
- package/dist/cjs/models/extension.js.map +0 -1
- package/dist/cjs/models/graph-ql.d.ts +0 -63
- package/dist/cjs/models/graph-ql.d.ts.map +0 -1
- package/dist/cjs/models/graph-ql.js +0 -8
- package/dist/cjs/models/graph-ql.js.map +0 -1
- package/dist/cjs/models/index.d.ts +0 -42
- package/dist/cjs/models/index.d.ts.map +0 -1
- package/dist/cjs/models/index.js +0 -58
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/inventory.d.ts +0 -327
- package/dist/cjs/models/inventory.d.ts.map +0 -1
- package/dist/cjs/models/inventory.js +0 -8
- package/dist/cjs/models/inventory.js.map +0 -1
- package/dist/cjs/models/me.d.ts +0 -2483
- package/dist/cjs/models/me.d.ts.map +0 -1
- package/dist/cjs/models/me.js +0 -8
- package/dist/cjs/models/me.js.map +0 -1
- package/dist/cjs/models/message.d.ts +0 -15095
- package/dist/cjs/models/message.d.ts.map +0 -1
- package/dist/cjs/models/message.js +0 -8
- package/dist/cjs/models/message.js.map +0 -1
- package/dist/cjs/models/order-edit.d.ts +0 -1645
- package/dist/cjs/models/order-edit.d.ts.map +0 -1
- package/dist/cjs/models/order-edit.js +0 -8
- package/dist/cjs/models/order-edit.js.map +0 -1
- package/dist/cjs/models/order.d.ts +0 -2157
- package/dist/cjs/models/order.d.ts.map +0 -1
- package/dist/cjs/models/order.js +0 -8
- package/dist/cjs/models/order.js.map +0 -1
- package/dist/cjs/models/payment.d.ts +0 -734
- package/dist/cjs/models/payment.d.ts.map +0 -1
- package/dist/cjs/models/payment.js +0 -8
- package/dist/cjs/models/payment.js.map +0 -1
- package/dist/cjs/models/product-discount.d.ts +0 -461
- package/dist/cjs/models/product-discount.d.ts.map +0 -1
- package/dist/cjs/models/product-discount.js +0 -8
- package/dist/cjs/models/product-discount.js.map +0 -1
- package/dist/cjs/models/product-selection.d.ts +0 -638
- package/dist/cjs/models/product-selection.d.ts.map +0 -1
- package/dist/cjs/models/product-selection.js +0 -8
- package/dist/cjs/models/product-selection.js.map +0 -1
- package/dist/cjs/models/product-type.d.ts +0 -774
- package/dist/cjs/models/product-type.d.ts.map +0 -1
- package/dist/cjs/models/product-type.js +0 -8
- package/dist/cjs/models/product-type.js.map +0 -1
- package/dist/cjs/models/product.d.ts +0 -2282
- package/dist/cjs/models/product.d.ts.map +0 -1
- package/dist/cjs/models/product.js +0 -8
- package/dist/cjs/models/product.js.map +0 -1
- package/dist/cjs/models/project.d.ts +0 -381
- package/dist/cjs/models/project.d.ts.map +0 -1
- package/dist/cjs/models/project.js +0 -8
- package/dist/cjs/models/project.js.map +0 -1
- package/dist/cjs/models/quote-request.d.ts +0 -430
- package/dist/cjs/models/quote-request.d.ts.map +0 -1
- package/dist/cjs/models/quote-request.js +0 -8
- package/dist/cjs/models/quote-request.js.map +0 -1
- package/dist/cjs/models/quote.d.ts +0 -458
- package/dist/cjs/models/quote.d.ts.map +0 -1
- package/dist/cjs/models/quote.js +0 -8
- package/dist/cjs/models/quote.js.map +0 -1
- package/dist/cjs/models/review.d.ts +0 -435
- package/dist/cjs/models/review.d.ts.map +0 -1
- package/dist/cjs/models/review.js +0 -8
- package/dist/cjs/models/review.js.map +0 -1
- package/dist/cjs/models/scalar-types.d.ts +0 -9
- package/dist/cjs/models/scalar-types.d.ts.map +0 -1
- package/dist/cjs/models/scalar-types.js +0 -8
- package/dist/cjs/models/scalar-types.js.map +0 -1
- package/dist/cjs/models/shipping-method.d.ts +0 -569
- package/dist/cjs/models/shipping-method.d.ts.map +0 -1
- package/dist/cjs/models/shipping-method.js +0 -8
- package/dist/cjs/models/shipping-method.js.map +0 -1
- package/dist/cjs/models/shopping-list.d.ts +0 -844
- package/dist/cjs/models/shopping-list.d.ts.map +0 -1
- package/dist/cjs/models/shopping-list.js +0 -8
- package/dist/cjs/models/shopping-list.js.map +0 -1
- package/dist/cjs/models/staged-quote.d.ts +0 -338
- package/dist/cjs/models/staged-quote.d.ts.map +0 -1
- package/dist/cjs/models/staged-quote.js +0 -8
- package/dist/cjs/models/staged-quote.js.map +0 -1
- package/dist/cjs/models/standalone-price.d.ts +0 -410
- package/dist/cjs/models/standalone-price.d.ts.map +0 -1
- package/dist/cjs/models/standalone-price.js +0 -8
- package/dist/cjs/models/standalone-price.js.map +0 -1
- package/dist/cjs/models/state.d.ts +0 -341
- package/dist/cjs/models/state.d.ts.map +0 -1
- package/dist/cjs/models/state.js +0 -8
- package/dist/cjs/models/state.js.map +0 -1
- package/dist/cjs/models/store-country.d.ts +0 -14
- package/dist/cjs/models/store-country.d.ts.map +0 -1
- package/dist/cjs/models/store-country.js +0 -8
- package/dist/cjs/models/store-country.js.map +0 -1
- package/dist/cjs/models/store.d.ts +0 -547
- package/dist/cjs/models/store.d.ts.map +0 -1
- package/dist/cjs/models/store.js +0 -8
- package/dist/cjs/models/store.js.map +0 -1
- package/dist/cjs/models/subscription.d.ts +0 -717
- package/dist/cjs/models/subscription.d.ts.map +0 -1
- package/dist/cjs/models/subscription.js +0 -8
- package/dist/cjs/models/subscription.js.map +0 -1
- package/dist/cjs/models/tax-category.d.ts +0 -376
- package/dist/cjs/models/tax-category.d.ts.map +0 -1
- package/dist/cjs/models/tax-category.js +0 -8
- package/dist/cjs/models/tax-category.js.map +0 -1
- package/dist/cjs/models/type.d.ts +0 -645
- package/dist/cjs/models/type.d.ts.map +0 -1
- package/dist/cjs/models/type.js +0 -8
- package/dist/cjs/models/type.js.map +0 -1
- package/dist/cjs/models/zone.d.ts +0 -234
- package/dist/cjs/models/zone.d.ts.map +0 -1
- package/dist/cjs/models/zone.js +0 -8
- package/dist/cjs/models/zone.js.map +0 -1
- package/dist/mjs/models/associate-role.d.ts +0 -319
- package/dist/mjs/models/associate-role.d.ts.map +0 -1
- package/dist/mjs/models/associate-role.js +0 -7
- package/dist/mjs/models/associate-role.js.map +0 -1
- package/dist/mjs/models/attribute-group.d.ts +0 -253
- package/dist/mjs/models/attribute-group.d.ts.map +0 -1
- package/dist/mjs/models/attribute-group.js +0 -7
- package/dist/mjs/models/attribute-group.js.map +0 -1
- package/dist/mjs/models/business-unit.d.ts +0 -1197
- package/dist/mjs/models/business-unit.d.ts.map +0 -1
- package/dist/mjs/models/business-unit.js +0 -7
- package/dist/mjs/models/business-unit.js.map +0 -1
- package/dist/mjs/models/cart-discount.d.ts +0 -716
- package/dist/mjs/models/cart-discount.d.ts.map +0 -1
- package/dist/mjs/models/cart-discount.js +0 -7
- package/dist/mjs/models/cart-discount.js.map +0 -1
- package/dist/mjs/models/cart.d.ts +0 -3366
- package/dist/mjs/models/cart.d.ts.map +0 -1
- package/dist/mjs/models/cart.js +0 -7
- package/dist/mjs/models/cart.js.map +0 -1
- package/dist/mjs/models/category.d.ts +0 -634
- package/dist/mjs/models/category.d.ts.map +0 -1
- package/dist/mjs/models/category.js +0 -7
- package/dist/mjs/models/category.js.map +0 -1
- package/dist/mjs/models/channel.d.ts +0 -379
- package/dist/mjs/models/channel.d.ts.map +0 -1
- package/dist/mjs/models/channel.js +0 -7
- package/dist/mjs/models/channel.js.map +0 -1
- package/dist/mjs/models/common.d.ts +0 -1096
- package/dist/mjs/models/common.d.ts.map +0 -1
- package/dist/mjs/models/common.js +0 -7
- package/dist/mjs/models/common.js.map +0 -1
- package/dist/mjs/models/custom-object.d.ts +0 -151
- package/dist/mjs/models/custom-object.d.ts.map +0 -1
- package/dist/mjs/models/custom-object.js +0 -7
- package/dist/mjs/models/custom-object.js.map +0 -1
- package/dist/mjs/models/customer-group.d.ts +0 -235
- package/dist/mjs/models/customer-group.d.ts.map +0 -1
- package/dist/mjs/models/customer-group.js +0 -7
- package/dist/mjs/models/customer-group.js.map +0 -1
- package/dist/mjs/models/customer.d.ts +0 -1221
- package/dist/mjs/models/customer.d.ts.map +0 -1
- package/dist/mjs/models/customer.js +0 -7
- package/dist/mjs/models/customer.js.map +0 -1
- package/dist/mjs/models/discount-code.d.ts +0 -439
- package/dist/mjs/models/discount-code.d.ts.map +0 -1
- package/dist/mjs/models/discount-code.js +0 -7
- package/dist/mjs/models/discount-code.js.map +0 -1
- package/dist/mjs/models/error.d.ts +0 -3062
- package/dist/mjs/models/error.d.ts.map +0 -1
- package/dist/mjs/models/error.js +0 -7
- package/dist/mjs/models/error.js.map +0 -1
- package/dist/mjs/models/extension.d.ts +0 -335
- package/dist/mjs/models/extension.d.ts.map +0 -1
- package/dist/mjs/models/extension.js +0 -7
- package/dist/mjs/models/extension.js.map +0 -1
- package/dist/mjs/models/graph-ql.d.ts +0 -63
- package/dist/mjs/models/graph-ql.d.ts.map +0 -1
- package/dist/mjs/models/graph-ql.js +0 -7
- package/dist/mjs/models/graph-ql.js.map +0 -1
- package/dist/mjs/models/index.d.ts +0 -42
- package/dist/mjs/models/index.d.ts.map +0 -1
- package/dist/mjs/models/index.js +0 -42
- package/dist/mjs/models/index.js.map +0 -1
- package/dist/mjs/models/inventory.d.ts +0 -327
- package/dist/mjs/models/inventory.d.ts.map +0 -1
- package/dist/mjs/models/inventory.js +0 -7
- package/dist/mjs/models/inventory.js.map +0 -1
- package/dist/mjs/models/me.d.ts +0 -2483
- package/dist/mjs/models/me.d.ts.map +0 -1
- package/dist/mjs/models/me.js +0 -7
- package/dist/mjs/models/me.js.map +0 -1
- package/dist/mjs/models/message.d.ts +0 -15095
- package/dist/mjs/models/message.d.ts.map +0 -1
- package/dist/mjs/models/message.js +0 -7
- package/dist/mjs/models/message.js.map +0 -1
- package/dist/mjs/models/order-edit.d.ts +0 -1645
- package/dist/mjs/models/order-edit.d.ts.map +0 -1
- package/dist/mjs/models/order-edit.js +0 -7
- package/dist/mjs/models/order-edit.js.map +0 -1
- package/dist/mjs/models/order.d.ts +0 -2157
- package/dist/mjs/models/order.d.ts.map +0 -1
- package/dist/mjs/models/order.js +0 -7
- package/dist/mjs/models/order.js.map +0 -1
- package/dist/mjs/models/payment.d.ts +0 -734
- package/dist/mjs/models/payment.d.ts.map +0 -1
- package/dist/mjs/models/payment.js +0 -7
- package/dist/mjs/models/payment.js.map +0 -1
- package/dist/mjs/models/product-discount.d.ts +0 -461
- package/dist/mjs/models/product-discount.d.ts.map +0 -1
- package/dist/mjs/models/product-discount.js +0 -7
- package/dist/mjs/models/product-discount.js.map +0 -1
- package/dist/mjs/models/product-selection.d.ts +0 -638
- package/dist/mjs/models/product-selection.d.ts.map +0 -1
- package/dist/mjs/models/product-selection.js +0 -7
- package/dist/mjs/models/product-selection.js.map +0 -1
- package/dist/mjs/models/product-type.d.ts +0 -774
- package/dist/mjs/models/product-type.d.ts.map +0 -1
- package/dist/mjs/models/product-type.js +0 -7
- package/dist/mjs/models/product-type.js.map +0 -1
- package/dist/mjs/models/product.d.ts +0 -2282
- package/dist/mjs/models/product.d.ts.map +0 -1
- package/dist/mjs/models/product.js +0 -7
- package/dist/mjs/models/product.js.map +0 -1
- package/dist/mjs/models/project.d.ts +0 -381
- package/dist/mjs/models/project.d.ts.map +0 -1
- package/dist/mjs/models/project.js +0 -7
- package/dist/mjs/models/project.js.map +0 -1
- package/dist/mjs/models/quote-request.d.ts +0 -430
- package/dist/mjs/models/quote-request.d.ts.map +0 -1
- package/dist/mjs/models/quote-request.js +0 -7
- package/dist/mjs/models/quote-request.js.map +0 -1
- package/dist/mjs/models/quote.d.ts +0 -458
- package/dist/mjs/models/quote.d.ts.map +0 -1
- package/dist/mjs/models/quote.js +0 -7
- package/dist/mjs/models/quote.js.map +0 -1
- package/dist/mjs/models/review.d.ts +0 -435
- package/dist/mjs/models/review.d.ts.map +0 -1
- package/dist/mjs/models/review.js +0 -7
- package/dist/mjs/models/review.js.map +0 -1
- package/dist/mjs/models/scalar-types.d.ts +0 -9
- package/dist/mjs/models/scalar-types.d.ts.map +0 -1
- package/dist/mjs/models/scalar-types.js +0 -7
- package/dist/mjs/models/scalar-types.js.map +0 -1
- package/dist/mjs/models/shipping-method.d.ts +0 -569
- package/dist/mjs/models/shipping-method.d.ts.map +0 -1
- package/dist/mjs/models/shipping-method.js +0 -7
- package/dist/mjs/models/shipping-method.js.map +0 -1
- package/dist/mjs/models/shopping-list.d.ts +0 -844
- package/dist/mjs/models/shopping-list.d.ts.map +0 -1
- package/dist/mjs/models/shopping-list.js +0 -7
- package/dist/mjs/models/shopping-list.js.map +0 -1
- package/dist/mjs/models/staged-quote.d.ts +0 -338
- package/dist/mjs/models/staged-quote.d.ts.map +0 -1
- package/dist/mjs/models/staged-quote.js +0 -7
- package/dist/mjs/models/staged-quote.js.map +0 -1
- package/dist/mjs/models/standalone-price.d.ts +0 -410
- package/dist/mjs/models/standalone-price.d.ts.map +0 -1
- package/dist/mjs/models/standalone-price.js +0 -7
- package/dist/mjs/models/standalone-price.js.map +0 -1
- package/dist/mjs/models/state.d.ts +0 -341
- package/dist/mjs/models/state.d.ts.map +0 -1
- package/dist/mjs/models/state.js +0 -7
- package/dist/mjs/models/state.js.map +0 -1
- package/dist/mjs/models/store-country.d.ts +0 -14
- package/dist/mjs/models/store-country.d.ts.map +0 -1
- package/dist/mjs/models/store-country.js +0 -7
- package/dist/mjs/models/store-country.js.map +0 -1
- package/dist/mjs/models/store.d.ts +0 -547
- package/dist/mjs/models/store.d.ts.map +0 -1
- package/dist/mjs/models/store.js +0 -7
- package/dist/mjs/models/store.js.map +0 -1
- package/dist/mjs/models/subscription.d.ts +0 -717
- package/dist/mjs/models/subscription.d.ts.map +0 -1
- package/dist/mjs/models/subscription.js +0 -7
- package/dist/mjs/models/subscription.js.map +0 -1
- package/dist/mjs/models/tax-category.d.ts +0 -376
- package/dist/mjs/models/tax-category.d.ts.map +0 -1
- package/dist/mjs/models/tax-category.js +0 -7
- package/dist/mjs/models/tax-category.js.map +0 -1
- package/dist/mjs/models/type.d.ts +0 -645
- package/dist/mjs/models/type.d.ts.map +0 -1
- package/dist/mjs/models/type.js +0 -7
- package/dist/mjs/models/type.js.map +0 -1
- package/dist/mjs/models/zone.d.ts +0 -234
- package/dist/mjs/models/zone.d.ts.map +0 -1
- package/dist/mjs/models/zone.js +0 -7
- package/dist/mjs/models/zone.js.map +0 -1
|
@@ -1,638 +0,0 @@
|
|
|
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
|
-
import { ProductReference, ProductResourceIdentifier } from './product.js';
|
|
8
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
9
|
-
export interface AssignedProductReference {
|
|
10
|
-
/**
|
|
11
|
-
* Reference to a Product that is assigned to the Product Selection.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
readonly product: ProductReference;
|
|
15
|
-
/**
|
|
16
|
-
* The Variants of the Product that are included from the Product Selection.
|
|
17
|
-
*
|
|
18
|
-
* This field may exist only in Product Selections with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
19
|
-
* In absence of this field, all Variants are deemed to be included.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
readonly variantSelection?: ProductVariantSelection;
|
|
24
|
-
/**
|
|
25
|
-
* The Variants of the Product that are excluded from the Product Selection.
|
|
26
|
-
*
|
|
27
|
-
* This field may exist only in Product Selections with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
28
|
-
* In absence of this field, all Variants are deemed to be excluded.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
readonly variantExclusion?: ProductVariantExclusion;
|
|
33
|
-
}
|
|
34
|
-
export interface AssignedProductSelection {
|
|
35
|
-
/**
|
|
36
|
-
* Reference to the Product Selection that this assignment is part of.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
readonly productSelection: ProductSelectionReference;
|
|
40
|
-
/**
|
|
41
|
-
* Defines which Variants of the Product will be included in the Product Selection.
|
|
42
|
-
*
|
|
43
|
-
* This field is only available for assignments to a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
readonly variantSelection?: ProductVariantSelection;
|
|
48
|
-
/**
|
|
49
|
-
* Defines which Variants of the Product will be excluded from the Product Selection.
|
|
50
|
-
*
|
|
51
|
-
* This field is only available for assignments to a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
readonly variantExclusion?: ProductVariantExclusion;
|
|
56
|
-
/**
|
|
57
|
-
* Date and time (UTC) this assignment was initially created.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
readonly createdAt: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* [PagedQueryResult](/general-concepts#pagedqueryresult) containing an array of [AssignedProductSelection](ctp:api:type:AssignedProductSelection).
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
export interface AssignedProductSelectionPagedQueryResponse {
|
|
67
|
-
/**
|
|
68
|
-
* Number of [results requested](/../api/general-concepts#limit).
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
readonly limit: number;
|
|
73
|
-
/**
|
|
74
|
-
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
readonly offset: number;
|
|
79
|
-
/**
|
|
80
|
-
* Actual number of results returned.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
readonly count: number;
|
|
85
|
-
/**
|
|
86
|
-
* Total number of results matching the query.
|
|
87
|
-
* This number is an estimation that is not [strongly consistent](/general-concepts#strong-consistency).
|
|
88
|
-
* Unlike other endpoints, the Product Selection endpoint does not return this field by default.
|
|
89
|
-
* To get `total`, pass the query parameter `withTotal` set to `true`.
|
|
90
|
-
* When the results are filtered with a [Query Predicate](/predicates/query), `total` is subject to a [limit](/limits#queries).
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
readonly total?: number;
|
|
95
|
-
/**
|
|
96
|
-
* References to ProductSelection that are assigned to the Product.
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
readonly results: AssignedProductSelection[];
|
|
100
|
-
}
|
|
101
|
-
export interface ProductSelection extends BaseResource {
|
|
102
|
-
/**
|
|
103
|
-
* Unique identifier of the ProductSelection.
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
readonly id: string;
|
|
108
|
-
/**
|
|
109
|
-
* Current version of the ProductSelection.
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
112
|
-
readonly version: number;
|
|
113
|
-
/**
|
|
114
|
-
* Date and time (UTC) the ProductSelection was initially created.
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
readonly createdAt: string;
|
|
118
|
-
/**
|
|
119
|
-
* Date and time (UTC) the ProductSelection was last updated.
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
readonly lastModifiedAt: string;
|
|
123
|
-
/**
|
|
124
|
-
* Present on resources updated after 1/02/2019 except for [events not tracked](/../api/client-logging#events-tracked).
|
|
125
|
-
*
|
|
126
|
-
*/
|
|
127
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
128
|
-
/**
|
|
129
|
-
* Present on resources created after 1/02/2019 except for [events not tracked](/../api/client-logging#events-tracked).
|
|
130
|
-
*
|
|
131
|
-
*/
|
|
132
|
-
readonly createdBy?: CreatedBy;
|
|
133
|
-
/**
|
|
134
|
-
* User-defined unique identifier of the ProductSelection.
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*/
|
|
138
|
-
readonly key?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Name of the ProductSelection.
|
|
141
|
-
*
|
|
142
|
-
*/
|
|
143
|
-
readonly name: LocalizedString;
|
|
144
|
-
/**
|
|
145
|
-
* Number of Products that are currently assigned to this ProductSelection.
|
|
146
|
-
*
|
|
147
|
-
*/
|
|
148
|
-
readonly productCount: number;
|
|
149
|
-
/**
|
|
150
|
-
* Specifies in which way the Products are assigned to the ProductSelection.
|
|
151
|
-
* Currently, the only way of doing this is to specify each Product individually, either by [including or excluding](ctp:api:type:ProductSelectionMode) them explicitly.
|
|
152
|
-
* @deprecated
|
|
153
|
-
*/
|
|
154
|
-
readonly type?: ProductSelectionTypeEnum;
|
|
155
|
-
/**
|
|
156
|
-
* Specifies in which way the Products are assigned to the ProductSelection.
|
|
157
|
-
* Currently, the only way of doing this is to specify each Product individually, either by [including or excluding](ctp:api:type:ProductSelectionMode) them explicitly.
|
|
158
|
-
*
|
|
159
|
-
*/
|
|
160
|
-
readonly mode: ProductSelectionMode;
|
|
161
|
-
/**
|
|
162
|
-
* Custom Fields of the ProductSelection.
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
readonly custom?: CustomFields;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
*
|
|
169
|
-
* Given the mode of Product Selection, this assignment refers to, it may contain:
|
|
170
|
-
*
|
|
171
|
-
* - `variantSelection` field for a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
172
|
-
* - `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode) ([BETA](/../offering/api-contract#public-beta)).
|
|
173
|
-
*/
|
|
174
|
-
export interface ProductSelectionAssignment {
|
|
175
|
-
/**
|
|
176
|
-
* Reference to a Product that is assigned to the ProductSelection.
|
|
177
|
-
*
|
|
178
|
-
*/
|
|
179
|
-
readonly product: ProductReference;
|
|
180
|
-
/**
|
|
181
|
-
* Reference to the Product Selection that this assignment is part of.
|
|
182
|
-
*
|
|
183
|
-
*/
|
|
184
|
-
readonly productSelection: ProductSelectionReference;
|
|
185
|
-
/**
|
|
186
|
-
* Define which Variants of the added Product will be included in the Product Selection.
|
|
187
|
-
*
|
|
188
|
-
* This field is only available for assignments to a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
189
|
-
* The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*/
|
|
193
|
-
readonly variantSelection?: ProductVariantSelection;
|
|
194
|
-
/**
|
|
195
|
-
* Defines which Variants of the Product will be excluded from the Product Selection.
|
|
196
|
-
*
|
|
197
|
-
* This field is only available for assignments to a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
198
|
-
* The list of SKUs will be updated automatically on any change of those performed on the respective Product itself.
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*/
|
|
202
|
-
readonly variantExclusion?: ProductVariantExclusion;
|
|
203
|
-
}
|
|
204
|
-
export interface ProductSelectionDraft {
|
|
205
|
-
/**
|
|
206
|
-
* User-defined unique identifier for the ProductSelection.
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
209
|
-
readonly key?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Name of the ProductSelection. Not checked for uniqueness, but distinct names are recommended.
|
|
212
|
-
*
|
|
213
|
-
*/
|
|
214
|
-
readonly name: LocalizedString;
|
|
215
|
-
/**
|
|
216
|
-
* Custom Fields of this ProductSelection.
|
|
217
|
-
*
|
|
218
|
-
*/
|
|
219
|
-
readonly custom?: CustomFieldsDraft;
|
|
220
|
-
/**
|
|
221
|
-
* Type of the Product Selection.
|
|
222
|
-
* @deprecated
|
|
223
|
-
*/
|
|
224
|
-
readonly type?: ProductSelectionTypeEnum;
|
|
225
|
-
/**
|
|
226
|
-
* Mode of the Product Selection.
|
|
227
|
-
*
|
|
228
|
-
*/
|
|
229
|
-
readonly mode?: ProductSelectionMode;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Product Selections can have the following modes:
|
|
233
|
-
*
|
|
234
|
-
*/
|
|
235
|
-
export type ProductSelectionMode = 'Individual' | 'IndividualExclusion' | string;
|
|
236
|
-
/**
|
|
237
|
-
* [PagedQueryResult](/general-concepts#pagedqueryresult) containing an array of [ProductSelection](ctp:api:type:ProductSelection).
|
|
238
|
-
*
|
|
239
|
-
*/
|
|
240
|
-
export interface ProductSelectionPagedQueryResponse {
|
|
241
|
-
/**
|
|
242
|
-
* Number of [results requested](/../api/general-concepts#limit).
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*/
|
|
246
|
-
readonly limit: number;
|
|
247
|
-
/**
|
|
248
|
-
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*/
|
|
252
|
-
readonly offset: number;
|
|
253
|
-
/**
|
|
254
|
-
* Actual number of results returned.
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*/
|
|
258
|
-
readonly count: number;
|
|
259
|
-
/**
|
|
260
|
-
* Total number of results matching the query.
|
|
261
|
-
* This number is an estimation that is not [strongly consistent](/general-concepts#strong-consistency).
|
|
262
|
-
* Unlike other endpoints, the Product Selection endpoint does not return this field by default.
|
|
263
|
-
* To get `total`, pass the query parameter `withTotal` set to `true`.
|
|
264
|
-
* When the results are filtered with a [Query Predicate](/predicates/query), `total` is subject to a [limit](/limits#queries).
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*/
|
|
268
|
-
readonly total?: number;
|
|
269
|
-
/**
|
|
270
|
-
* [ProductSelections](ctp:api:type:ProductSelection) matching the query.
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
readonly results: ProductSelection[];
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* [PagedQueryResult](/general-concepts#pagedqueryresult) containing an array of [AssignedProductReference](ctp:api:type:AssignedProductReference).
|
|
278
|
-
*
|
|
279
|
-
*/
|
|
280
|
-
export interface ProductSelectionProductPagedQueryResponse {
|
|
281
|
-
/**
|
|
282
|
-
* Number of [results requested](/../api/general-concepts#limit).
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*/
|
|
286
|
-
readonly limit: number;
|
|
287
|
-
/**
|
|
288
|
-
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*/
|
|
292
|
-
readonly offset: number;
|
|
293
|
-
/**
|
|
294
|
-
* Actual number of results returned.
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*/
|
|
298
|
-
readonly count: number;
|
|
299
|
-
/**
|
|
300
|
-
* Total number of results matching the query.
|
|
301
|
-
* This number is an estimation that is not [strongly consistent](/general-concepts#strong-consistency).
|
|
302
|
-
* Unlike other endpoints, the Product Selection endpoint does not return this field by default.
|
|
303
|
-
* To get `total`, pass the query parameter `withTotal` set to `true`.
|
|
304
|
-
* When the results are filtered with a [Query Predicate](/predicates/query), `total` is subject to a [limit](/limits#queries).
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*/
|
|
308
|
-
readonly total?: number;
|
|
309
|
-
/**
|
|
310
|
-
* References to Products that are assigned to the ProductSelection.
|
|
311
|
-
*
|
|
312
|
-
*/
|
|
313
|
-
readonly results: AssignedProductReference[];
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* [Reference](ctp:api:type:Reference) to a [ProductSelection](ctp:api:type:ProductSelection).
|
|
317
|
-
*
|
|
318
|
-
*/
|
|
319
|
-
export interface ProductSelectionReference {
|
|
320
|
-
readonly typeId: 'product-selection';
|
|
321
|
-
/**
|
|
322
|
-
* Unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection).
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*/
|
|
326
|
-
readonly id: string;
|
|
327
|
-
/**
|
|
328
|
-
* Contains the representation of the expanded ProductSelection. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for ProductSelections.
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*/
|
|
332
|
-
readonly obj?: ProductSelection;
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductSelection](ctp:api:type:ProductSelection).
|
|
336
|
-
*
|
|
337
|
-
*/
|
|
338
|
-
export interface ProductSelectionResourceIdentifier {
|
|
339
|
-
readonly typeId: 'product-selection';
|
|
340
|
-
/**
|
|
341
|
-
* Unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Either `id` or `key` is required.
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*/
|
|
345
|
-
readonly id?: string;
|
|
346
|
-
/**
|
|
347
|
-
* User-defined unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Either `id` or `key` is required.
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*/
|
|
351
|
-
readonly key?: string;
|
|
352
|
-
}
|
|
353
|
-
export type ProductSelectionType = IndividualExclusionProductSelectionType | IndividualProductSelectionType;
|
|
354
|
-
export interface IndividualExclusionProductSelectionType {
|
|
355
|
-
readonly type: 'individualExclusion';
|
|
356
|
-
/**
|
|
357
|
-
* The name of the ProductSelection which is recommended to be unique.
|
|
358
|
-
*
|
|
359
|
-
*/
|
|
360
|
-
readonly name: LocalizedString;
|
|
361
|
-
}
|
|
362
|
-
export interface IndividualProductSelectionType {
|
|
363
|
-
readonly type: 'individual';
|
|
364
|
-
/**
|
|
365
|
-
* The name of the ProductSelection which is recommended to be unique.
|
|
366
|
-
*
|
|
367
|
-
*/
|
|
368
|
-
readonly name: LocalizedString;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* The following types of Product Selections are supported:
|
|
372
|
-
*
|
|
373
|
-
*/
|
|
374
|
-
export type ProductSelectionTypeEnum = 'individual' | 'individualExclusion' | string;
|
|
375
|
-
export interface ProductSelectionUpdate {
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
*/
|
|
379
|
-
readonly version: number;
|
|
380
|
-
/**
|
|
381
|
-
*
|
|
382
|
-
*/
|
|
383
|
-
readonly actions: ProductSelectionUpdateAction[];
|
|
384
|
-
}
|
|
385
|
-
export type ProductSelectionUpdateAction = ProductSelectionAddProductAction | ProductSelectionChangeNameAction | ProductSelectionExcludeProductAction | ProductSelectionRemoveProductAction | ProductSelectionSetCustomFieldAction | ProductSelectionSetCustomTypeAction | ProductSelectionSetKeyAction | ProductSelectionSetVariantExclusionAction | ProductSelectionSetVariantSelectionAction;
|
|
386
|
-
/**
|
|
387
|
-
* Only Product Variants with the explicitly listed SKUs are part of a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
388
|
-
*
|
|
389
|
-
*/
|
|
390
|
-
export interface ProductVariantExclusion {
|
|
391
|
-
/**
|
|
392
|
-
* Non-empty array of SKUs representing Product Variants to be included in the Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
396
|
-
readonly skus: string[];
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Polymorphic base type for Product Variant Selections. The actual type is determined by the `type` field.
|
|
400
|
-
*
|
|
401
|
-
*/
|
|
402
|
-
export type ProductVariantSelection = ProductVariantSelectionExclusion | ProductVariantSelectionIncludeAllExcept | ProductVariantSelectionIncludeOnly | ProductVariantSelectionInclusion;
|
|
403
|
-
/**
|
|
404
|
-
* All Product Variants except the explicitly stated SKUs are part of the Product Selection.
|
|
405
|
-
*
|
|
406
|
-
*/
|
|
407
|
-
export interface ProductVariantSelectionExclusion {
|
|
408
|
-
readonly type: 'exclusion';
|
|
409
|
-
/**
|
|
410
|
-
* Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*/
|
|
414
|
-
readonly skus: string[];
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* All Product Variants except the explicitly stated SKUs are part of the Product Selection.
|
|
418
|
-
*
|
|
419
|
-
*/
|
|
420
|
-
export interface ProductVariantSelectionIncludeAllExcept {
|
|
421
|
-
readonly type: 'includeAllExcept';
|
|
422
|
-
/**
|
|
423
|
-
* Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*/
|
|
427
|
-
readonly skus: string[];
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Only Product Variants with explicitly stated SKUs are part of the Product Selection.
|
|
431
|
-
*
|
|
432
|
-
*/
|
|
433
|
-
export interface ProductVariantSelectionIncludeOnly {
|
|
434
|
-
readonly type: 'includeOnly';
|
|
435
|
-
/**
|
|
436
|
-
* Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*/
|
|
440
|
-
readonly skus: string[];
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Only Product Variants with explicitly stated SKUs are part of the Product Selection.
|
|
444
|
-
*
|
|
445
|
-
*/
|
|
446
|
-
export interface ProductVariantSelectionInclusion {
|
|
447
|
-
readonly type: 'inclusion';
|
|
448
|
-
/**
|
|
449
|
-
* Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*/
|
|
453
|
-
readonly skus: string[];
|
|
454
|
-
}
|
|
455
|
-
export type ProductVariantSelectionTypeEnum = 'exclusion' | 'includeAllExcept' | 'includeOnly' | 'inclusion' | string;
|
|
456
|
-
/**
|
|
457
|
-
* [PagedQueryResult](/general-concepts#pagedqueryresult) containing an array of [ProductSelectionAssignment](ctp:api:type:ProductSelectionAssignment).
|
|
458
|
-
*
|
|
459
|
-
*/
|
|
460
|
-
export interface ProductsInStorePagedQueryResponse {
|
|
461
|
-
/**
|
|
462
|
-
* Number of [results requested](/../api/general-concepts#limit).
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
*/
|
|
466
|
-
readonly limit: number;
|
|
467
|
-
/**
|
|
468
|
-
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*/
|
|
472
|
-
readonly offset: number;
|
|
473
|
-
/**
|
|
474
|
-
* Actual number of results returned.
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*/
|
|
478
|
-
readonly count: number;
|
|
479
|
-
/**
|
|
480
|
-
* Total number of results matching the query.
|
|
481
|
-
* This number is an estimation that is not [strongly consistent](/general-concepts#strong-consistency).
|
|
482
|
-
* Unlike other endpoints, the Product Selection endpoint does not return this field by default.
|
|
483
|
-
* To get `total`, pass the query parameter `withTotal` set to `true`.
|
|
484
|
-
* When the results are filtered with a [Query Predicate](/predicates/query), `total` is subject to a [limit](/limits#queries).
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*/
|
|
488
|
-
readonly total?: number;
|
|
489
|
-
/**
|
|
490
|
-
* ProductSelectionAssignments matching the query.
|
|
491
|
-
*
|
|
492
|
-
*/
|
|
493
|
-
readonly results: ProductSelectionAssignment[];
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Adds a Product to the Product Selection.
|
|
497
|
-
*
|
|
498
|
-
* If the specified Product is already assigned to the Product Selection, but the existing Product Selection has a different Product Variant Selection, a [ProductPresentWithDifferentVariantSelection](ctp:api:type:ProductPresentWithDifferentVariantSelectionError) error is returned.
|
|
499
|
-
*
|
|
500
|
-
*/
|
|
501
|
-
export interface ProductSelectionAddProductAction {
|
|
502
|
-
readonly action: 'addProduct';
|
|
503
|
-
/**
|
|
504
|
-
* ResourceIdentifier of the Product
|
|
505
|
-
*
|
|
506
|
-
*/
|
|
507
|
-
readonly product: ProductResourceIdentifier;
|
|
508
|
-
/**
|
|
509
|
-
* Defines which Variants of the Product will be included in the Product Selection.
|
|
510
|
-
* If not supplied all Variants are deemed to be included.
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*/
|
|
514
|
-
readonly variantSelection?: ProductVariantSelection;
|
|
515
|
-
}
|
|
516
|
-
export interface ProductSelectionChangeNameAction {
|
|
517
|
-
readonly action: 'changeName';
|
|
518
|
-
/**
|
|
519
|
-
* The new name to be set for the ProductSelection.
|
|
520
|
-
*
|
|
521
|
-
*/
|
|
522
|
-
readonly name: LocalizedString;
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* Excludes a Product from a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
526
|
-
*
|
|
527
|
-
* If the specified Product is already assigned to the Product Selection, but the existing Product Selection has a different Product Variant Exclusion, a [ProductPresentWithDifferentVariantSelection](ctp:api:type:ProductPresentWithDifferentVariantSelectionError) error is returned.
|
|
528
|
-
*
|
|
529
|
-
*/
|
|
530
|
-
export interface ProductSelectionExcludeProductAction {
|
|
531
|
-
readonly action: 'excludeProduct';
|
|
532
|
-
/**
|
|
533
|
-
* ResourceIdentifier of the Product
|
|
534
|
-
*
|
|
535
|
-
*/
|
|
536
|
-
readonly product: ProductResourceIdentifier;
|
|
537
|
-
/**
|
|
538
|
-
* Defines which Variants of the Product will be excluded from the Product Selection.
|
|
539
|
-
* If not supplied all Variants are deemed to be excluded.
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*/
|
|
543
|
-
readonly variantExclusion?: ProductVariantExclusion;
|
|
544
|
-
}
|
|
545
|
-
export interface ProductSelectionRemoveProductAction {
|
|
546
|
-
readonly action: 'removeProduct';
|
|
547
|
-
/**
|
|
548
|
-
* ResourceIdentifier of the Product
|
|
549
|
-
*
|
|
550
|
-
*/
|
|
551
|
-
readonly product: ProductResourceIdentifier;
|
|
552
|
-
}
|
|
553
|
-
export interface ProductSelectionSetCustomFieldAction {
|
|
554
|
-
readonly action: 'setCustomField';
|
|
555
|
-
/**
|
|
556
|
-
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
*/
|
|
560
|
-
readonly name: string;
|
|
561
|
-
/**
|
|
562
|
-
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
563
|
-
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
564
|
-
* If `value` is provided, it is set for the field defined by `name`.
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*/
|
|
568
|
-
readonly value?: any;
|
|
569
|
-
}
|
|
570
|
-
export interface ProductSelectionSetCustomTypeAction {
|
|
571
|
-
readonly action: 'setCustomType';
|
|
572
|
-
/**
|
|
573
|
-
* Defines the [Type](ctp:api:type:Type) that extends the ProductSelection with [Custom Fields](/../api/projects/custom-fields).
|
|
574
|
-
* If absent, any existing Type and Custom Fields are removed from the ProductSelection.
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*/
|
|
578
|
-
readonly type?: TypeResourceIdentifier;
|
|
579
|
-
/**
|
|
580
|
-
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the ProductSelection.
|
|
581
|
-
*
|
|
582
|
-
*
|
|
583
|
-
*/
|
|
584
|
-
readonly fields?: FieldContainer;
|
|
585
|
-
}
|
|
586
|
-
export interface ProductSelectionSetKeyAction {
|
|
587
|
-
readonly action: 'setKey';
|
|
588
|
-
/**
|
|
589
|
-
* If `key` is absent or `null`, the existing key, if any, will be removed.
|
|
590
|
-
*
|
|
591
|
-
*/
|
|
592
|
-
readonly key?: string;
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Updates the Product Variant Exclusion of an existing [Product Selection Assignment](ctp:api:type:ProductSelectionAssignment).
|
|
596
|
-
* A [ProductVariantExclusion](ctp:api:type:ProductVariantExclusion) can only be set if the [Product](ctp:api:type:Product) has already been excluded from the [Product Selection](ctp:api:type:ProductSelection) with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
597
|
-
*
|
|
598
|
-
* If the specified Product is not assigned to the Product Selection, a [ProductAssignmentMissing](ctp:api:type:ProductAssignmentMissingError) error is returned.
|
|
599
|
-
*
|
|
600
|
-
*/
|
|
601
|
-
export interface ProductSelectionSetVariantExclusionAction {
|
|
602
|
-
readonly action: 'setVariantExclusion';
|
|
603
|
-
/**
|
|
604
|
-
* ResourceIdentifier of the Product
|
|
605
|
-
*
|
|
606
|
-
*/
|
|
607
|
-
readonly product: ProductResourceIdentifier;
|
|
608
|
-
/**
|
|
609
|
-
* Determines which Variants of the previously excluded Product are to be included in the Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
610
|
-
* Leave it empty to unset an existing Variant Exclusion.
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
*/
|
|
614
|
-
readonly variantExclusion?: ProductVariantExclusion;
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* Updates the Product Variant Selection of an existing [Product Selection Assignment](ctp:api:type:ProductSelectionAssignment).
|
|
618
|
-
* A [ProductVariantSelection](ctp:api:type:ProductVariantSelection) can only be set if the [Product](ctp:api:type:Product) has already been included in the Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode).
|
|
619
|
-
*
|
|
620
|
-
* If the specified Product is not assigned to the Product Selection, a [ProductAssignmentMissing](ctp:api:type:ProductAssignmentMissingError) error is returned.
|
|
621
|
-
*
|
|
622
|
-
*/
|
|
623
|
-
export interface ProductSelectionSetVariantSelectionAction {
|
|
624
|
-
readonly action: 'setVariantSelection';
|
|
625
|
-
/**
|
|
626
|
-
* ResourceIdentifier of the Product
|
|
627
|
-
*
|
|
628
|
-
*/
|
|
629
|
-
readonly product: ProductResourceIdentifier;
|
|
630
|
-
/**
|
|
631
|
-
* Determines which Variants of the previously added Product are to be included in, or excluded from, the Product Selection.
|
|
632
|
-
* Leave it empty to unset an existing Variant Selection.
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
*/
|
|
636
|
-
readonly variantSelection?: ProductVariantSelection;
|
|
637
|
-
}
|
|
638
|
-
//# sourceMappingURL=product-selection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-selection.d.ts","sourceRoot":"","sources":["../../../src/lib/models/product-selection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAEnG,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;IAClC;;;;;;;OAOG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IACnD;;;;;;;OAOG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;CACpD;AACD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,yBAAyB,CAAA;IACpD;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IACnD;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IACnD;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AACD;;;GAGG;AACH,MAAM,WAAW,0CAA0C;IACzD;;;;OA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OAGG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB;AACD;;;;;;GAMG;AACH,MAAM,WAAW,yCAAyC;IACxD,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAA;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;CACpD;AACD;;;;;;GAMG;AACH,MAAM,WAAW,yCAAyC;IACxD,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAA;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;CACpD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=product-selection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-selection.js","sourceRoot":"","sources":["../../../src/lib/models/product-selection.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|