@gradientedge/commercetools-utils 5.30.0 → 5.32.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 +3 -4
- package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/cjs/api/CommercetoolsApi.js +2 -7
- package/dist/cjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/cjs/types/models/approval-flow.d.ts +15 -4
- package/dist/cjs/types/models/approval-flow.d.ts.map +1 -1
- package/dist/cjs/types/models/approval-flow.js +11 -0
- package/dist/cjs/types/models/approval-flow.js.map +1 -1
- package/dist/cjs/types/models/approval-rule.d.ts +19 -9
- package/dist/cjs/types/models/approval-rule.d.ts.map +1 -1
- package/dist/cjs/types/models/approval-rule.js +10 -0
- package/dist/cjs/types/models/approval-rule.js.map +1 -1
- package/dist/cjs/types/models/associate-role.d.ts +58 -11
- package/dist/cjs/types/models/associate-role.d.ts.map +1 -1
- package/dist/cjs/types/models/associate-role.js +47 -0
- package/dist/cjs/types/models/associate-role.js.map +1 -1
- package/dist/cjs/types/models/attribute-group.d.ts +15 -9
- package/dist/cjs/types/models/attribute-group.d.ts.map +1 -1
- package/dist/cjs/types/models/business-unit-search.d.ts +114 -0
- package/dist/cjs/types/models/business-unit-search.d.ts.map +1 -0
- package/dist/cjs/types/models/business-unit-search.js +8 -0
- package/dist/cjs/types/models/business-unit-search.js.map +1 -0
- package/dist/cjs/types/models/business-unit.d.ts +349 -35
- package/dist/cjs/types/models/business-unit.d.ts.map +1 -1
- package/dist/cjs/types/models/business-unit.js +55 -0
- package/dist/cjs/types/models/business-unit.js.map +1 -1
- package/dist/cjs/types/models/cart-discount.d.ts +218 -36
- package/dist/cjs/types/models/cart-discount.d.ts.map +1 -1
- package/dist/cjs/types/models/cart-discount.js +29 -0
- package/dist/cjs/types/models/cart-discount.js.map +1 -1
- package/dist/cjs/types/models/cart.d.ts +178 -88
- package/dist/cjs/types/models/cart.d.ts.map +1 -1
- package/dist/cjs/types/models/cart.js +127 -0
- package/dist/cjs/types/models/cart.js.map +1 -1
- package/dist/cjs/types/models/category.d.ts +32 -26
- package/dist/cjs/types/models/category.d.ts.map +1 -1
- package/dist/cjs/types/models/channel.d.ts +28 -15
- package/dist/cjs/types/models/channel.d.ts.map +1 -1
- package/dist/cjs/types/models/channel.js +13 -0
- package/dist/cjs/types/models/channel.js.map +1 -1
- package/dist/cjs/types/models/common.d.ts +167 -5
- package/dist/cjs/types/models/common.d.ts.map +1 -1
- package/dist/cjs/types/models/common.js +61 -0
- package/dist/cjs/types/models/common.js.map +1 -1
- package/dist/cjs/types/models/custom-object.d.ts +2 -2
- package/dist/cjs/types/models/custom-object.d.ts.map +1 -1
- package/dist/cjs/types/models/customer-group.d.ts +13 -7
- package/dist/cjs/types/models/customer-group.d.ts.map +1 -1
- package/dist/cjs/types/models/customer.d.ts +53 -39
- package/dist/cjs/types/models/customer.d.ts.map +1 -1
- package/dist/cjs/types/models/customer.js +11 -0
- package/dist/cjs/types/models/customer.js.map +1 -1
- package/dist/cjs/types/models/discount-code.d.ts +24 -18
- package/dist/cjs/types/models/discount-code.d.ts.map +1 -1
- package/dist/cjs/types/models/error.d.ts +193 -167
- package/dist/cjs/types/models/error.d.ts.map +1 -1
- package/dist/cjs/types/models/extension.d.ts +43 -9
- package/dist/cjs/types/models/extension.d.ts.map +1 -1
- package/dist/cjs/types/models/extension.js +27 -0
- package/dist/cjs/types/models/extension.js.map +1 -1
- package/dist/cjs/types/models/index.d.ts +1 -0
- package/dist/cjs/types/models/index.d.ts.map +1 -1
- package/dist/cjs/types/models/index.js +1 -0
- package/dist/cjs/types/models/index.js.map +1 -1
- package/dist/cjs/types/models/inventory.d.ts +19 -13
- package/dist/cjs/types/models/inventory.d.ts.map +1 -1
- package/dist/cjs/types/models/me.d.ts +210 -100
- package/dist/cjs/types/models/me.d.ts.map +1 -1
- package/dist/cjs/types/models/me.js +10 -0
- package/dist/cjs/types/models/me.js.map +1 -1
- package/dist/cjs/types/models/message.d.ts +871 -489
- package/dist/cjs/types/models/message.d.ts.map +1 -1
- package/dist/cjs/types/models/order-edit.d.ts +131 -108
- package/dist/cjs/types/models/order-edit.d.ts.map +1 -1
- package/dist/cjs/types/models/order.d.ts +211 -69
- package/dist/cjs/types/models/order.d.ts.map +1 -1
- package/dist/cjs/types/models/order.js +93 -0
- package/dist/cjs/types/models/order.js.map +1 -1
- package/dist/cjs/types/models/payment.d.ts +42 -23
- package/dist/cjs/types/models/payment.d.ts.map +1 -1
- package/dist/cjs/types/models/payment.js +20 -0
- package/dist/cjs/types/models/payment.js.map +1 -1
- package/dist/cjs/types/models/product-discount.d.ts +37 -19
- package/dist/cjs/types/models/product-discount.d.ts.map +1 -1
- package/dist/cjs/types/models/product-search.d.ts +43 -14
- package/dist/cjs/types/models/product-search.d.ts.map +1 -1
- package/dist/cjs/types/models/product-search.js +16 -0
- package/dist/cjs/types/models/product-search.js.map +1 -1
- package/dist/cjs/types/models/product-selection.d.ts +42 -16
- package/dist/cjs/types/models/product-selection.d.ts.map +1 -1
- package/dist/cjs/types/models/product-selection.js +17 -0
- package/dist/cjs/types/models/product-selection.js.map +1 -1
- package/dist/cjs/types/models/product-tailoring.d.ts +42 -33
- package/dist/cjs/types/models/product-tailoring.d.ts.map +1 -1
- package/dist/cjs/types/models/product-type.d.ts +83 -40
- package/dist/cjs/types/models/product-type.d.ts.map +1 -1
- package/dist/cjs/types/models/product-type.js +48 -0
- package/dist/cjs/types/models/product-type.js.map +1 -1
- package/dist/cjs/types/models/product.d.ts +97 -59
- package/dist/cjs/types/models/product.d.ts.map +1 -1
- package/dist/cjs/types/models/product.js +26 -0
- package/dist/cjs/types/models/product.js.map +1 -1
- package/dist/cjs/types/models/project.d.ts +94 -20
- package/dist/cjs/types/models/project.d.ts.map +1 -1
- package/dist/cjs/types/models/project.js +73 -0
- package/dist/cjs/types/models/project.js.map +1 -1
- package/dist/cjs/types/models/quote-request.d.ts +21 -8
- package/dist/cjs/types/models/quote-request.d.ts.map +1 -1
- package/dist/cjs/types/models/quote-request.js +13 -0
- package/dist/cjs/types/models/quote-request.js.map +1 -1
- package/dist/cjs/types/models/quote.d.ts +25 -11
- package/dist/cjs/types/models/quote.d.ts.map +1 -1
- package/dist/cjs/types/models/quote.js +14 -0
- package/dist/cjs/types/models/quote.js.map +1 -1
- package/dist/cjs/types/models/review.d.ts +20 -14
- package/dist/cjs/types/models/review.d.ts.map +1 -1
- package/dist/cjs/types/models/search.d.ts +62 -4
- package/dist/cjs/types/models/search.d.ts.map +1 -1
- package/dist/cjs/types/models/search.js +51 -0
- package/dist/cjs/types/models/search.js.map +1 -1
- package/dist/cjs/types/models/shipping-method.d.ts +38 -21
- package/dist/cjs/types/models/shipping-method.d.ts.map +1 -1
- package/dist/cjs/types/models/shipping-method.js +7 -0
- package/dist/cjs/types/models/shipping-method.js.map +1 -1
- package/dist/cjs/types/models/shopping-list.d.ts +66 -28
- package/dist/cjs/types/models/shopping-list.d.ts.map +1 -1
- package/dist/cjs/types/models/staged-quote.d.ts +21 -10
- package/dist/cjs/types/models/staged-quote.d.ts.map +1 -1
- package/dist/cjs/types/models/staged-quote.js +11 -0
- package/dist/cjs/types/models/staged-quote.js.map +1 -1
- package/dist/cjs/types/models/standalone-price.d.ts +23 -17
- package/dist/cjs/types/models/standalone-price.d.ts.map +1 -1
- package/dist/cjs/types/models/state.d.ts +33 -13
- package/dist/cjs/types/models/state.d.ts.map +1 -1
- package/dist/cjs/types/models/state.js +25 -0
- package/dist/cjs/types/models/state.js.map +1 -1
- package/dist/cjs/types/models/store.d.ts +29 -23
- package/dist/cjs/types/models/store.d.ts.map +1 -1
- package/dist/cjs/types/models/subscription.d.ts +138 -18
- package/dist/cjs/types/models/subscription.d.ts.map +1 -1
- package/dist/cjs/types/models/subscription.js +95 -0
- package/dist/cjs/types/models/subscription.js.map +1 -1
- package/dist/cjs/types/models/tax-category.d.ts +15 -9
- package/dist/cjs/types/models/tax-category.d.ts.map +1 -1
- package/dist/cjs/types/models/type.d.ts +101 -29
- package/dist/cjs/types/models/type.d.ts.map +1 -1
- package/dist/cjs/types/models/type.js +76 -0
- package/dist/cjs/types/models/type.js.map +1 -1
- package/dist/cjs/types/models/warning.d.ts +15 -1
- package/dist/cjs/types/models/warning.d.ts.map +1 -1
- package/dist/cjs/types/models/zone.d.ts +14 -8
- package/dist/cjs/types/models/zone.d.ts.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.d.ts +3 -4
- package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.js +2 -7
- package/dist/mjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/mjs/tsconfig.tsbuildinfo +1 -1
- package/dist/mjs/types/models/approval-flow.d.ts +15 -4
- package/dist/mjs/types/models/approval-flow.d.ts.map +1 -1
- package/dist/mjs/types/models/approval-flow.js +10 -1
- package/dist/mjs/types/models/approval-flow.js.map +1 -1
- package/dist/mjs/types/models/approval-rule.d.ts +19 -9
- package/dist/mjs/types/models/approval-rule.d.ts.map +1 -1
- package/dist/mjs/types/models/approval-rule.js +9 -1
- package/dist/mjs/types/models/approval-rule.js.map +1 -1
- package/dist/mjs/types/models/associate-role.d.ts +58 -11
- package/dist/mjs/types/models/associate-role.d.ts.map +1 -1
- package/dist/mjs/types/models/associate-role.js +46 -1
- package/dist/mjs/types/models/associate-role.js.map +1 -1
- package/dist/mjs/types/models/attribute-group.d.ts +15 -9
- package/dist/mjs/types/models/attribute-group.d.ts.map +1 -1
- package/dist/mjs/types/models/business-unit-search.d.ts +114 -0
- package/dist/mjs/types/models/business-unit-search.d.ts.map +1 -0
- package/dist/mjs/types/models/business-unit-search.js +7 -0
- package/dist/mjs/types/models/business-unit-search.js.map +1 -0
- package/dist/mjs/types/models/business-unit.d.ts +349 -35
- package/dist/mjs/types/models/business-unit.d.ts.map +1 -1
- package/dist/mjs/types/models/business-unit.js +54 -1
- package/dist/mjs/types/models/business-unit.js.map +1 -1
- package/dist/mjs/types/models/cart-discount.d.ts +218 -36
- package/dist/mjs/types/models/cart-discount.d.ts.map +1 -1
- package/dist/mjs/types/models/cart-discount.js +28 -1
- package/dist/mjs/types/models/cart-discount.js.map +1 -1
- package/dist/mjs/types/models/cart.d.ts +178 -88
- package/dist/mjs/types/models/cart.d.ts.map +1 -1
- package/dist/mjs/types/models/cart.js +126 -1
- package/dist/mjs/types/models/cart.js.map +1 -1
- package/dist/mjs/types/models/category.d.ts +32 -26
- package/dist/mjs/types/models/category.d.ts.map +1 -1
- package/dist/mjs/types/models/channel.d.ts +28 -15
- package/dist/mjs/types/models/channel.d.ts.map +1 -1
- package/dist/mjs/types/models/channel.js +12 -1
- package/dist/mjs/types/models/channel.js.map +1 -1
- package/dist/mjs/types/models/common.d.ts +167 -5
- package/dist/mjs/types/models/common.d.ts.map +1 -1
- package/dist/mjs/types/models/common.js +60 -1
- package/dist/mjs/types/models/common.js.map +1 -1
- package/dist/mjs/types/models/custom-object.d.ts +2 -2
- package/dist/mjs/types/models/custom-object.d.ts.map +1 -1
- package/dist/mjs/types/models/customer-group.d.ts +13 -7
- package/dist/mjs/types/models/customer-group.d.ts.map +1 -1
- package/dist/mjs/types/models/customer.d.ts +53 -39
- package/dist/mjs/types/models/customer.d.ts.map +1 -1
- package/dist/mjs/types/models/customer.js +10 -1
- package/dist/mjs/types/models/customer.js.map +1 -1
- package/dist/mjs/types/models/discount-code.d.ts +24 -18
- package/dist/mjs/types/models/discount-code.d.ts.map +1 -1
- package/dist/mjs/types/models/error.d.ts +193 -167
- package/dist/mjs/types/models/error.d.ts.map +1 -1
- package/dist/mjs/types/models/extension.d.ts +43 -9
- package/dist/mjs/types/models/extension.d.ts.map +1 -1
- package/dist/mjs/types/models/extension.js +26 -1
- package/dist/mjs/types/models/extension.js.map +1 -1
- package/dist/mjs/types/models/index.d.ts +1 -0
- package/dist/mjs/types/models/index.d.ts.map +1 -1
- package/dist/mjs/types/models/index.js +1 -0
- package/dist/mjs/types/models/index.js.map +1 -1
- package/dist/mjs/types/models/inventory.d.ts +19 -13
- package/dist/mjs/types/models/inventory.d.ts.map +1 -1
- package/dist/mjs/types/models/me.d.ts +210 -100
- package/dist/mjs/types/models/me.d.ts.map +1 -1
- package/dist/mjs/types/models/me.js +9 -1
- package/dist/mjs/types/models/me.js.map +1 -1
- package/dist/mjs/types/models/message.d.ts +871 -489
- package/dist/mjs/types/models/message.d.ts.map +1 -1
- package/dist/mjs/types/models/order-edit.d.ts +131 -108
- package/dist/mjs/types/models/order-edit.d.ts.map +1 -1
- package/dist/mjs/types/models/order.d.ts +211 -69
- package/dist/mjs/types/models/order.d.ts.map +1 -1
- package/dist/mjs/types/models/order.js +92 -1
- package/dist/mjs/types/models/order.js.map +1 -1
- package/dist/mjs/types/models/payment.d.ts +42 -23
- package/dist/mjs/types/models/payment.d.ts.map +1 -1
- package/dist/mjs/types/models/payment.js +19 -1
- package/dist/mjs/types/models/payment.js.map +1 -1
- package/dist/mjs/types/models/product-discount.d.ts +37 -19
- package/dist/mjs/types/models/product-discount.d.ts.map +1 -1
- package/dist/mjs/types/models/product-search.d.ts +43 -14
- package/dist/mjs/types/models/product-search.d.ts.map +1 -1
- package/dist/mjs/types/models/product-search.js +15 -1
- package/dist/mjs/types/models/product-search.js.map +1 -1
- package/dist/mjs/types/models/product-selection.d.ts +42 -16
- package/dist/mjs/types/models/product-selection.d.ts.map +1 -1
- package/dist/mjs/types/models/product-selection.js +16 -1
- package/dist/mjs/types/models/product-selection.js.map +1 -1
- package/dist/mjs/types/models/product-tailoring.d.ts +42 -33
- package/dist/mjs/types/models/product-tailoring.d.ts.map +1 -1
- package/dist/mjs/types/models/product-type.d.ts +83 -40
- package/dist/mjs/types/models/product-type.d.ts.map +1 -1
- package/dist/mjs/types/models/product-type.js +47 -1
- package/dist/mjs/types/models/product-type.js.map +1 -1
- package/dist/mjs/types/models/product.d.ts +97 -59
- package/dist/mjs/types/models/product.d.ts.map +1 -1
- package/dist/mjs/types/models/product.js +25 -1
- package/dist/mjs/types/models/product.js.map +1 -1
- package/dist/mjs/types/models/project.d.ts +94 -20
- package/dist/mjs/types/models/project.d.ts.map +1 -1
- package/dist/mjs/types/models/project.js +72 -1
- package/dist/mjs/types/models/project.js.map +1 -1
- package/dist/mjs/types/models/quote-request.d.ts +21 -8
- package/dist/mjs/types/models/quote-request.d.ts.map +1 -1
- package/dist/mjs/types/models/quote-request.js +12 -1
- package/dist/mjs/types/models/quote-request.js.map +1 -1
- package/dist/mjs/types/models/quote.d.ts +25 -11
- package/dist/mjs/types/models/quote.d.ts.map +1 -1
- package/dist/mjs/types/models/quote.js +13 -1
- package/dist/mjs/types/models/quote.js.map +1 -1
- package/dist/mjs/types/models/review.d.ts +20 -14
- package/dist/mjs/types/models/review.d.ts.map +1 -1
- package/dist/mjs/types/models/search.d.ts +62 -4
- package/dist/mjs/types/models/search.d.ts.map +1 -1
- package/dist/mjs/types/models/search.js +50 -1
- package/dist/mjs/types/models/search.js.map +1 -1
- package/dist/mjs/types/models/shipping-method.d.ts +38 -21
- package/dist/mjs/types/models/shipping-method.d.ts.map +1 -1
- package/dist/mjs/types/models/shipping-method.js +6 -1
- package/dist/mjs/types/models/shipping-method.js.map +1 -1
- package/dist/mjs/types/models/shopping-list.d.ts +66 -28
- package/dist/mjs/types/models/shopping-list.d.ts.map +1 -1
- package/dist/mjs/types/models/staged-quote.d.ts +21 -10
- package/dist/mjs/types/models/staged-quote.d.ts.map +1 -1
- package/dist/mjs/types/models/staged-quote.js +10 -1
- package/dist/mjs/types/models/staged-quote.js.map +1 -1
- package/dist/mjs/types/models/standalone-price.d.ts +23 -17
- package/dist/mjs/types/models/standalone-price.d.ts.map +1 -1
- package/dist/mjs/types/models/state.d.ts +33 -13
- package/dist/mjs/types/models/state.d.ts.map +1 -1
- package/dist/mjs/types/models/state.js +24 -1
- package/dist/mjs/types/models/state.js.map +1 -1
- package/dist/mjs/types/models/store.d.ts +29 -23
- package/dist/mjs/types/models/store.d.ts.map +1 -1
- package/dist/mjs/types/models/subscription.d.ts +138 -18
- package/dist/mjs/types/models/subscription.d.ts.map +1 -1
- package/dist/mjs/types/models/subscription.js +94 -1
- package/dist/mjs/types/models/subscription.js.map +1 -1
- package/dist/mjs/types/models/tax-category.d.ts +15 -9
- package/dist/mjs/types/models/tax-category.d.ts.map +1 -1
- package/dist/mjs/types/models/type.d.ts +101 -29
- package/dist/mjs/types/models/type.d.ts.map +1 -1
- package/dist/mjs/types/models/type.js +75 -1
- package/dist/mjs/types/models/type.js.map +1 -1
- package/dist/mjs/types/models/warning.d.ts +15 -1
- package/dist/mjs/types/models/warning.d.ts.map +1 -1
- package/dist/mjs/types/models/zone.d.ts +14 -8
- package/dist/mjs/types/models/zone.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,4 +5,55 @@
|
|
|
5
5
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SearchSortOrderValues = exports.SearchSortModeValues = exports.SearchMatchTypeValues = exports.SearchFieldTypeValues = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* Possible values for the `fieldType` property on [simple expressions](/../api/search-query-language#simple-expressions) indicating the data type of the `field`.
|
|
11
|
+
*/
|
|
12
|
+
var SearchFieldTypeValues;
|
|
13
|
+
(function (SearchFieldTypeValues) {
|
|
14
|
+
SearchFieldTypeValues["Boolean"] = "boolean";
|
|
15
|
+
SearchFieldTypeValues["Date"] = "date";
|
|
16
|
+
SearchFieldTypeValues["Datetime"] = "datetime";
|
|
17
|
+
SearchFieldTypeValues["Enum"] = "enum";
|
|
18
|
+
SearchFieldTypeValues["Lenum"] = "lenum";
|
|
19
|
+
SearchFieldTypeValues["Ltext"] = "ltext";
|
|
20
|
+
SearchFieldTypeValues["Money"] = "money";
|
|
21
|
+
SearchFieldTypeValues["Number"] = "number";
|
|
22
|
+
SearchFieldTypeValues["Reference"] = "reference";
|
|
23
|
+
SearchFieldTypeValues["SetBoolean"] = "set_boolean";
|
|
24
|
+
SearchFieldTypeValues["SetDate"] = "set_date";
|
|
25
|
+
SearchFieldTypeValues["SetDatetime"] = "set_datetime";
|
|
26
|
+
SearchFieldTypeValues["SetEnum"] = "set_enum";
|
|
27
|
+
SearchFieldTypeValues["SetLenum"] = "set_lenum";
|
|
28
|
+
SearchFieldTypeValues["SetLtext"] = "set_ltext";
|
|
29
|
+
SearchFieldTypeValues["SetMoney"] = "set_money";
|
|
30
|
+
SearchFieldTypeValues["SetNumber"] = "set_number";
|
|
31
|
+
SearchFieldTypeValues["SetReference"] = "set_reference";
|
|
32
|
+
SearchFieldTypeValues["SetText"] = "set_text";
|
|
33
|
+
SearchFieldTypeValues["SetTime"] = "set_time";
|
|
34
|
+
SearchFieldTypeValues["Text"] = "text";
|
|
35
|
+
SearchFieldTypeValues["Time"] = "time";
|
|
36
|
+
})(SearchFieldTypeValues || (exports.SearchFieldTypeValues = SearchFieldTypeValues = {}));
|
|
37
|
+
var SearchMatchTypeValues;
|
|
38
|
+
(function (SearchMatchTypeValues) {
|
|
39
|
+
SearchMatchTypeValues["All"] = "all";
|
|
40
|
+
SearchMatchTypeValues["Any"] = "any";
|
|
41
|
+
})(SearchMatchTypeValues || (exports.SearchMatchTypeValues = SearchMatchTypeValues = {}));
|
|
42
|
+
/**
|
|
43
|
+
* For set-type fields, only a single value of the set is taken into account for sorting.
|
|
44
|
+
* The sort mode determines whether the minimum or maximum value, or a calculated statistical value should be used as sorting value.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
var SearchSortModeValues;
|
|
48
|
+
(function (SearchSortModeValues) {
|
|
49
|
+
SearchSortModeValues["Avg"] = "avg";
|
|
50
|
+
SearchSortModeValues["Max"] = "max";
|
|
51
|
+
SearchSortModeValues["Min"] = "min";
|
|
52
|
+
SearchSortModeValues["Sum"] = "sum";
|
|
53
|
+
})(SearchSortModeValues || (exports.SearchSortModeValues = SearchSortModeValues = {}));
|
|
54
|
+
var SearchSortOrderValues;
|
|
55
|
+
(function (SearchSortOrderValues) {
|
|
56
|
+
SearchSortOrderValues["Asc"] = "asc";
|
|
57
|
+
SearchSortOrderValues["Desc"] = "desc";
|
|
58
|
+
})(SearchSortOrderValues || (exports.SearchSortOrderValues = SearchSortOrderValues = {}));
|
|
8
59
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../src/lib/types/models/search.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../src/lib/types/models/search.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH;;GAEG;AACH,IAAY,qBAuBX;AAvBD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,sCAAa,CAAA;IACb,8CAAqB,CAAA;IACrB,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,gDAAuB,CAAA;IACvB,mDAA0B,CAAA;IAC1B,6CAAoB,CAAA;IACpB,qDAA4B,CAAA;IAC5B,6CAAoB,CAAA;IACpB,+CAAsB,CAAA;IACtB,+CAAsB,CAAA;IACtB,+CAAsB,CAAA;IACtB,iDAAwB,CAAA;IACxB,uDAA8B,CAAA;IAC9B,6CAAoB,CAAA;IACpB,6CAAoB,CAAA;IACpB,sCAAa,CAAA;IACb,sCAAa,CAAA;AACf,CAAC,EAvBW,qBAAqB,qCAArB,qBAAqB,QAuBhC;AA0BD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,oCAAW,CAAA;AACb,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAmSD;;;;GAIG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;AACb,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAGD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
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
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { BaseResource, CentPrecisionMoney, CreatedBy, LastModifiedBy, LocalizedString, _Money } from './common.js';
|
|
6
|
+
import { BaseResource, CentPrecisionMoney, CreatedBy, IReference, IResourceIdentifier, LastModifiedBy, LocalizedString, _Money } from './common.js';
|
|
7
7
|
import { TaxCategoryReference, TaxCategoryResourceIdentifier } from './tax-category.js';
|
|
8
8
|
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
9
9
|
import { ZoneReference, ZoneResourceIdentifier } from './zone.js';
|
|
@@ -222,7 +222,7 @@ export interface ShippingMethodPagedQueryResponse {
|
|
|
222
222
|
* [Reference](ctp:api:type:Reference) to a [ShippingMethod](ctp:api:type:ShippingMethod).
|
|
223
223
|
*
|
|
224
224
|
*/
|
|
225
|
-
export interface ShippingMethodReference {
|
|
225
|
+
export interface ShippingMethodReference extends IReference {
|
|
226
226
|
readonly typeId: 'shipping-method';
|
|
227
227
|
/**
|
|
228
228
|
* Unique identifier of the referenced [ShippingMethod](ctp:api:type:ShippingMethod).
|
|
@@ -241,7 +241,7 @@ export interface ShippingMethodReference {
|
|
|
241
241
|
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ShippingMethod](ctp:api:type:ShippingMethod). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
|
|
242
242
|
*
|
|
243
243
|
*/
|
|
244
|
-
export interface ShippingMethodResourceIdentifier {
|
|
244
|
+
export interface ShippingMethodResourceIdentifier extends IResourceIdentifier {
|
|
245
245
|
readonly typeId: 'shipping-method';
|
|
246
246
|
/**
|
|
247
247
|
* Unique identifier of the referenced [ShippingMethod](ctp:api:type:ShippingMethod). Required if `key` is absent.
|
|
@@ -271,6 +271,12 @@ export interface ShippingMethodUpdate {
|
|
|
271
271
|
readonly actions: ShippingMethodUpdateAction[];
|
|
272
272
|
}
|
|
273
273
|
export type ShippingMethodUpdateAction = ShippingMethodAddShippingRateAction | ShippingMethodAddZoneAction | ShippingMethodChangeActiveAction | ShippingMethodChangeIsDefaultAction | ShippingMethodChangeNameAction | ShippingMethodChangeTaxCategoryAction | ShippingMethodRemoveShippingRateAction | ShippingMethodRemoveZoneAction | ShippingMethodSetCustomFieldAction | ShippingMethodSetCustomTypeAction | ShippingMethodSetDescriptionAction | ShippingMethodSetKeyAction | ShippingMethodSetLocalizedDescriptionAction | ShippingMethodSetLocalizedNameAction | ShippingMethodSetPredicateAction;
|
|
274
|
+
export interface IShippingMethodUpdateAction {
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
readonly action: string;
|
|
279
|
+
}
|
|
274
280
|
export interface ShippingRate {
|
|
275
281
|
/**
|
|
276
282
|
* Currency amount of the ShippingRate.
|
|
@@ -314,11 +320,17 @@ export interface ShippingRateDraft {
|
|
|
314
320
|
readonly tiers?: ShippingRatePriceTier[];
|
|
315
321
|
}
|
|
316
322
|
export type ShippingRatePriceTier = CartClassificationTier | CartScoreTier | CartValueTier;
|
|
323
|
+
export interface IShippingRatePriceTier {
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
*/
|
|
327
|
+
readonly type: ShippingRateTierType;
|
|
328
|
+
}
|
|
317
329
|
/**
|
|
318
330
|
* The [ShippingRate](ctp:api:type:ShippingRate) maps to an abstract Cart categorization expressed by strings (for example, `Light`, `Medium`, or `Heavy`).
|
|
319
331
|
*
|
|
320
332
|
*/
|
|
321
|
-
export interface CartClassificationTier {
|
|
333
|
+
export interface CartClassificationTier extends IShippingRatePriceTier {
|
|
322
334
|
readonly type: 'CartClassification';
|
|
323
335
|
/**
|
|
324
336
|
* `key` selected from the `values` of the [CartClassificationType](/projects/project#cartclassificationtype) configured in the Project.
|
|
@@ -344,7 +356,7 @@ export interface CartClassificationTier {
|
|
|
344
356
|
* Either `price` or `priceFunction` is required.
|
|
345
357
|
*
|
|
346
358
|
*/
|
|
347
|
-
export interface CartScoreTier {
|
|
359
|
+
export interface CartScoreTier extends IShippingRatePriceTier {
|
|
348
360
|
readonly type: 'CartScore';
|
|
349
361
|
/**
|
|
350
362
|
* Abstract value for categorizing a Cart. The range starts at `0`. The default price covers `0`, tiers start at `1`. See [Tiered shipping rates](/../api/shipping-delivery-overview#tiered-shipping-rates) for details and examples.
|
|
@@ -379,7 +391,7 @@ export interface CartScoreTier {
|
|
|
379
391
|
* Tiers contain the `centAmount` (a value of `100` in the currency `USD` corresponds to `$ 1.00`), and start at `1`.'
|
|
380
392
|
*
|
|
381
393
|
*/
|
|
382
|
-
export interface CartValueTier {
|
|
394
|
+
export interface CartValueTier extends IShippingRatePriceTier {
|
|
383
395
|
readonly type: 'CartValue';
|
|
384
396
|
/**
|
|
385
397
|
* Minimum total price of a Cart for which a shipping rate applies.
|
|
@@ -400,6 +412,11 @@ export interface CartValueTier {
|
|
|
400
412
|
*/
|
|
401
413
|
readonly isMatching?: boolean;
|
|
402
414
|
}
|
|
415
|
+
export declare enum ShippingRateTierTypeValues {
|
|
416
|
+
CartClassification = "CartClassification",
|
|
417
|
+
CartScore = "CartScore",
|
|
418
|
+
CartValue = "CartValue"
|
|
419
|
+
}
|
|
403
420
|
export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
|
|
404
421
|
/**
|
|
405
422
|
* Defines shipping rates in different currencies for a specific [Zone](ctp:api:type:Zone).
|
|
@@ -433,7 +450,7 @@ export interface ZoneRateDraft {
|
|
|
433
450
|
*/
|
|
434
451
|
readonly shippingRates: ShippingRateDraft[];
|
|
435
452
|
}
|
|
436
|
-
export interface ShippingMethodAddShippingRateAction {
|
|
453
|
+
export interface ShippingMethodAddShippingRateAction extends IShippingMethodUpdateAction {
|
|
437
454
|
readonly action: 'addShippingRate';
|
|
438
455
|
/**
|
|
439
456
|
* [Zone](ctp:api:type:Zone) to which the ShippingRate should be added.
|
|
@@ -447,7 +464,7 @@ export interface ShippingMethodAddShippingRateAction {
|
|
|
447
464
|
*/
|
|
448
465
|
readonly shippingRate: ShippingRateDraft;
|
|
449
466
|
}
|
|
450
|
-
export interface ShippingMethodAddZoneAction {
|
|
467
|
+
export interface ShippingMethodAddZoneAction extends IShippingMethodUpdateAction {
|
|
451
468
|
readonly action: 'addZone';
|
|
452
469
|
/**
|
|
453
470
|
* Value to add to `zoneRates`.
|
|
@@ -456,7 +473,7 @@ export interface ShippingMethodAddZoneAction {
|
|
|
456
473
|
*/
|
|
457
474
|
readonly zone: ZoneResourceIdentifier;
|
|
458
475
|
}
|
|
459
|
-
export interface ShippingMethodChangeActiveAction {
|
|
476
|
+
export interface ShippingMethodChangeActiveAction extends IShippingMethodUpdateAction {
|
|
460
477
|
readonly action: 'changeActive';
|
|
461
478
|
/**
|
|
462
479
|
* Value to set.
|
|
@@ -467,7 +484,7 @@ export interface ShippingMethodChangeActiveAction {
|
|
|
467
484
|
*/
|
|
468
485
|
readonly active: boolean;
|
|
469
486
|
}
|
|
470
|
-
export interface ShippingMethodChangeIsDefaultAction {
|
|
487
|
+
export interface ShippingMethodChangeIsDefaultAction extends IShippingMethodUpdateAction {
|
|
471
488
|
readonly action: 'changeIsDefault';
|
|
472
489
|
/**
|
|
473
490
|
* Value to set. Only one ShippingMethod can be default in a [Project](ctp:api:type:Project).
|
|
@@ -476,7 +493,7 @@ export interface ShippingMethodChangeIsDefaultAction {
|
|
|
476
493
|
*/
|
|
477
494
|
readonly isDefault: boolean;
|
|
478
495
|
}
|
|
479
|
-
export interface ShippingMethodChangeNameAction {
|
|
496
|
+
export interface ShippingMethodChangeNameAction extends IShippingMethodUpdateAction {
|
|
480
497
|
readonly action: 'changeName';
|
|
481
498
|
/**
|
|
482
499
|
* Unique value to set within a [Project](ctp:api:type:Project). Must not be empty.
|
|
@@ -484,7 +501,7 @@ export interface ShippingMethodChangeNameAction {
|
|
|
484
501
|
*/
|
|
485
502
|
readonly name: string;
|
|
486
503
|
}
|
|
487
|
-
export interface ShippingMethodChangeTaxCategoryAction {
|
|
504
|
+
export interface ShippingMethodChangeTaxCategoryAction extends IShippingMethodUpdateAction {
|
|
488
505
|
readonly action: 'changeTaxCategory';
|
|
489
506
|
/**
|
|
490
507
|
* Value to set.
|
|
@@ -492,7 +509,7 @@ export interface ShippingMethodChangeTaxCategoryAction {
|
|
|
492
509
|
*/
|
|
493
510
|
readonly taxCategory: TaxCategoryResourceIdentifier;
|
|
494
511
|
}
|
|
495
|
-
export interface ShippingMethodRemoveShippingRateAction {
|
|
512
|
+
export interface ShippingMethodRemoveShippingRateAction extends IShippingMethodUpdateAction {
|
|
496
513
|
readonly action: 'removeShippingRate';
|
|
497
514
|
/**
|
|
498
515
|
* [Zone](ctp:api:type:Zone) from which the ShippingRate should be removed.
|
|
@@ -506,7 +523,7 @@ export interface ShippingMethodRemoveShippingRateAction {
|
|
|
506
523
|
*/
|
|
507
524
|
readonly shippingRate: ShippingRateDraft;
|
|
508
525
|
}
|
|
509
|
-
export interface ShippingMethodRemoveZoneAction {
|
|
526
|
+
export interface ShippingMethodRemoveZoneAction extends IShippingMethodUpdateAction {
|
|
510
527
|
readonly action: 'removeZone';
|
|
511
528
|
/**
|
|
512
529
|
* Value to remove from `zoneRates`.
|
|
@@ -519,7 +536,7 @@ export interface ShippingMethodRemoveZoneAction {
|
|
|
519
536
|
* This action sets, overwrites, or removes any existing [Custom Field](/projects/custom-fields) for an existing ShippingMethod.
|
|
520
537
|
*
|
|
521
538
|
*/
|
|
522
|
-
export interface ShippingMethodSetCustomFieldAction {
|
|
539
|
+
export interface ShippingMethodSetCustomFieldAction extends IShippingMethodUpdateAction {
|
|
523
540
|
readonly action: 'setCustomField';
|
|
524
541
|
/**
|
|
525
542
|
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
@@ -536,7 +553,7 @@ export interface ShippingMethodSetCustomFieldAction {
|
|
|
536
553
|
*/
|
|
537
554
|
readonly value?: any;
|
|
538
555
|
}
|
|
539
|
-
export interface ShippingMethodSetCustomTypeAction {
|
|
556
|
+
export interface ShippingMethodSetCustomTypeAction extends IShippingMethodUpdateAction {
|
|
540
557
|
readonly action: 'setCustomType';
|
|
541
558
|
/**
|
|
542
559
|
* Defines the [Type](ctp:api:type:Type) that extends the ShippingMethod with [Custom Fields](/../api/projects/custom-fields).
|
|
@@ -552,7 +569,7 @@ export interface ShippingMethodSetCustomTypeAction {
|
|
|
552
569
|
*/
|
|
553
570
|
readonly fields?: FieldContainer;
|
|
554
571
|
}
|
|
555
|
-
export interface ShippingMethodSetDescriptionAction {
|
|
572
|
+
export interface ShippingMethodSetDescriptionAction extends IShippingMethodUpdateAction {
|
|
556
573
|
readonly action: 'setDescription';
|
|
557
574
|
/**
|
|
558
575
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -560,7 +577,7 @@ export interface ShippingMethodSetDescriptionAction {
|
|
|
560
577
|
*/
|
|
561
578
|
readonly description?: string;
|
|
562
579
|
}
|
|
563
|
-
export interface ShippingMethodSetKeyAction {
|
|
580
|
+
export interface ShippingMethodSetKeyAction extends IShippingMethodUpdateAction {
|
|
564
581
|
readonly action: 'setKey';
|
|
565
582
|
/**
|
|
566
583
|
* If `key` is absent or `null`, the existing key, if any, will be removed.
|
|
@@ -568,7 +585,7 @@ export interface ShippingMethodSetKeyAction {
|
|
|
568
585
|
*/
|
|
569
586
|
readonly key?: string;
|
|
570
587
|
}
|
|
571
|
-
export interface ShippingMethodSetLocalizedDescriptionAction {
|
|
588
|
+
export interface ShippingMethodSetLocalizedDescriptionAction extends IShippingMethodUpdateAction {
|
|
572
589
|
readonly action: 'setLocalizedDescription';
|
|
573
590
|
/**
|
|
574
591
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -576,7 +593,7 @@ export interface ShippingMethodSetLocalizedDescriptionAction {
|
|
|
576
593
|
*/
|
|
577
594
|
readonly localizedDescription?: LocalizedString;
|
|
578
595
|
}
|
|
579
|
-
export interface ShippingMethodSetLocalizedNameAction {
|
|
596
|
+
export interface ShippingMethodSetLocalizedNameAction extends IShippingMethodUpdateAction {
|
|
580
597
|
readonly action: 'setLocalizedName';
|
|
581
598
|
/**
|
|
582
599
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -584,7 +601,7 @@ export interface ShippingMethodSetLocalizedNameAction {
|
|
|
584
601
|
*/
|
|
585
602
|
readonly localizedName?: LocalizedString;
|
|
586
603
|
}
|
|
587
|
-
export interface ShippingMethodSetPredicateAction {
|
|
604
|
+
export interface ShippingMethodSetPredicateAction extends IShippingMethodUpdateAction {
|
|
588
605
|
readonly action: 'setPredicate';
|
|
589
606
|
/**
|
|
590
607
|
* A valid [Cart predicate](/projects/predicates#cart-predicates). If `predicate` is absent or `null`, it is removed if it exists.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/models/shipping-method.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/models/shipping-method.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,MAAM,EACP,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;A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A;IACjC;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AACD,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB;AACD,MAAM,WAAW,2CAA4C,SAAQ,2BAA2B;IAC9F,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAA;IAC1C;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,eAAe,CAAA;CAChD;AACD,MAAM,WAAW,oCAAqC,SAAQ,2BAA2B;IACvF,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,eAAe,CAAA;CACzC;AACD,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IACnF,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B"}
|
|
@@ -5,4 +5,11 @@
|
|
|
5
5
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ShippingRateTierTypeValues = void 0;
|
|
9
|
+
var ShippingRateTierTypeValues;
|
|
10
|
+
(function (ShippingRateTierTypeValues) {
|
|
11
|
+
ShippingRateTierTypeValues["CartClassification"] = "CartClassification";
|
|
12
|
+
ShippingRateTierTypeValues["CartScore"] = "CartScore";
|
|
13
|
+
ShippingRateTierTypeValues["CartValue"] = "CartValue";
|
|
14
|
+
})(ShippingRateTierTypeValues || (exports.ShippingRateTierTypeValues = ShippingRateTierTypeValues = {}));
|
|
8
15
|
//# sourceMappingURL=shipping-method.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-method.js","sourceRoot":"","sources":["../../../../src/lib/types/models/shipping-method.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
1
|
+
{"version":3,"file":"shipping-method.js","sourceRoot":"","sources":["../../../../src/lib/types/models/shipping-method.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAobH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,uEAAyC,CAAA;IACzC,qDAAuB,CAAA;IACvB,qDAAuB,CAAA;AACzB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
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
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { BusinessUnitKeyReference, BusinessUnitResourceIdentifier } from './business-unit.js';
|
|
7
|
+
import { BaseResource, CreatedBy, IReference, IResourceIdentifier, LastModifiedBy, LocalizedString } from './common.js';
|
|
7
8
|
import { CustomerReference, CustomerResourceIdentifier } from './customer.js';
|
|
8
9
|
import { ProductVariant } from './product.js';
|
|
9
10
|
import { ProductTypeReference } from './product-type.js';
|
|
@@ -78,6 +79,12 @@ export interface ShoppingList extends BaseResource {
|
|
|
78
79
|
*
|
|
79
80
|
*/
|
|
80
81
|
readonly store?: StoreKeyReference;
|
|
82
|
+
/**
|
|
83
|
+
* [Reference](ctp:api:type:Reference) to the Business Unit the Shopping List belongs to.
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
readonly businessUnit?: BusinessUnitKeyReference;
|
|
81
88
|
/**
|
|
82
89
|
* Custom Fields defined for the ShoppingList.
|
|
83
90
|
*
|
|
@@ -170,6 +177,12 @@ export interface ShoppingListDraft {
|
|
|
170
177
|
*
|
|
171
178
|
*/
|
|
172
179
|
readonly store?: StoreResourceIdentifier;
|
|
180
|
+
/**
|
|
181
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) of the Business Unit the Shopping List should belong to. When the `customer` of the Shopping List is set, the [Customer](ctp:api:type:Customer) must be an [Associate](ctp:api:type:Associate) of the Business Unit.
|
|
182
|
+
*
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
readonly businessUnit?: BusinessUnitResourceIdentifier;
|
|
173
186
|
/**
|
|
174
187
|
* Custom Fields defined for the ShoppingList.
|
|
175
188
|
*
|
|
@@ -349,7 +362,7 @@ export interface ShoppingListPagedQueryResponse {
|
|
|
349
362
|
* [Reference](ctp:api:type:Reference) to a [ShoppingList](ctp:api:type:ShoppingList).
|
|
350
363
|
*
|
|
351
364
|
*/
|
|
352
|
-
export interface ShoppingListReference {
|
|
365
|
+
export interface ShoppingListReference extends IReference {
|
|
353
366
|
readonly typeId: 'shopping-list';
|
|
354
367
|
/**
|
|
355
368
|
* Unique identifier of the referenced [ShoppingList](ctp:api:type:ShoppingList).
|
|
@@ -368,7 +381,7 @@ export interface ShoppingListReference {
|
|
|
368
381
|
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ShoppingList](ctp:api:type:ShoppingList). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
|
|
369
382
|
*
|
|
370
383
|
*/
|
|
371
|
-
export interface ShoppingListResourceIdentifier {
|
|
384
|
+
export interface ShoppingListResourceIdentifier extends IResourceIdentifier {
|
|
372
385
|
readonly typeId: 'shopping-list';
|
|
373
386
|
/**
|
|
374
387
|
* Unique identifier of the referenced [ShoppingList](ctp:api:type:ShoppingList). Required if `key` is absent.
|
|
@@ -398,7 +411,13 @@ export interface ShoppingListUpdate {
|
|
|
398
411
|
*/
|
|
399
412
|
readonly actions: ShoppingListUpdateAction[];
|
|
400
413
|
}
|
|
401
|
-
export type ShoppingListUpdateAction = ShoppingListAddLineItemAction | ShoppingListAddTextLineItemAction | ShoppingListChangeLineItemQuantityAction | ShoppingListChangeLineItemsOrderAction | ShoppingListChangeNameAction | ShoppingListChangeTextLineItemNameAction | ShoppingListChangeTextLineItemQuantityAction | ShoppingListChangeTextLineItemsOrderAction | ShoppingListRemoveLineItemAction | ShoppingListRemoveTextLineItemAction | ShoppingListSetAnonymousIdAction | ShoppingListSetCustomFieldAction | ShoppingListSetCustomTypeAction | ShoppingListSetCustomerAction | ShoppingListSetDeleteDaysAfterLastModificationAction | ShoppingListSetDescriptionAction | ShoppingListSetKeyAction | ShoppingListSetLineItemCustomFieldAction | ShoppingListSetLineItemCustomTypeAction | ShoppingListSetSlugAction | ShoppingListSetStoreAction | ShoppingListSetTextLineItemCustomFieldAction | ShoppingListSetTextLineItemCustomTypeAction | ShoppingListSetTextLineItemDescriptionAction;
|
|
414
|
+
export type ShoppingListUpdateAction = ShoppingListAddLineItemAction | ShoppingListAddTextLineItemAction | ShoppingListChangeLineItemQuantityAction | ShoppingListChangeLineItemsOrderAction | ShoppingListChangeNameAction | ShoppingListChangeTextLineItemNameAction | ShoppingListChangeTextLineItemQuantityAction | ShoppingListChangeTextLineItemsOrderAction | ShoppingListRemoveLineItemAction | ShoppingListRemoveTextLineItemAction | ShoppingListSetAnonymousIdAction | ShoppingListSetBusinessUnitAction | ShoppingListSetCustomFieldAction | ShoppingListSetCustomTypeAction | ShoppingListSetCustomerAction | ShoppingListSetDeleteDaysAfterLastModificationAction | ShoppingListSetDescriptionAction | ShoppingListSetKeyAction | ShoppingListSetLineItemCustomFieldAction | ShoppingListSetLineItemCustomTypeAction | ShoppingListSetSlugAction | ShoppingListSetStoreAction | ShoppingListSetTextLineItemCustomFieldAction | ShoppingListSetTextLineItemCustomTypeAction | ShoppingListSetTextLineItemDescriptionAction;
|
|
415
|
+
export interface IShoppingListUpdateAction {
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
*/
|
|
419
|
+
readonly action: string;
|
|
420
|
+
}
|
|
402
421
|
/**
|
|
403
422
|
* TextLineItems are Line Items that use text values instead of references to Products.
|
|
404
423
|
*
|
|
@@ -487,8 +506,10 @@ export interface TextLineItemDraft {
|
|
|
487
506
|
* If the ShoppingList already contains a ShoppingListLineItem for the same Product Variant with the same Custom Fields, then only the quantity of the existing ShoppingListLineItem is increased.
|
|
488
507
|
* A ShoppingListLineItem with an empty `variantId` is not considered the same as a ShoppingListLineItem with a `variantId` currently referring to the Master Variant.
|
|
489
508
|
*
|
|
509
|
+
* Produces the [Shopping List Line Item Added](ctp:api:type:ShoppingListLineItemAddedMessage) Message.
|
|
510
|
+
*
|
|
490
511
|
*/
|
|
491
|
-
export interface ShoppingListAddLineItemAction {
|
|
512
|
+
export interface ShoppingListAddLineItemAction extends IShoppingListUpdateAction {
|
|
492
513
|
readonly action: 'addLineItem';
|
|
493
514
|
/**
|
|
494
515
|
* User-defined identifier of the ShoppingListLineItem. Must be unique per [ShoppingList](ctp:api:type:ShoppingList).
|
|
@@ -533,7 +554,7 @@ export interface ShoppingListAddLineItemAction {
|
|
|
533
554
|
*/
|
|
534
555
|
readonly custom?: CustomFieldsDraft;
|
|
535
556
|
}
|
|
536
|
-
export interface ShoppingListAddTextLineItemAction {
|
|
557
|
+
export interface ShoppingListAddTextLineItemAction extends IShoppingListUpdateAction {
|
|
537
558
|
readonly action: 'addTextLineItem';
|
|
538
559
|
/**
|
|
539
560
|
* Name of the TextLineItem.
|
|
@@ -572,7 +593,7 @@ export interface ShoppingListAddTextLineItemAction {
|
|
|
572
593
|
*/
|
|
573
594
|
readonly custom?: CustomFieldsDraft;
|
|
574
595
|
}
|
|
575
|
-
export interface ShoppingListChangeLineItemQuantityAction {
|
|
596
|
+
export interface ShoppingListChangeLineItemQuantityAction extends IShoppingListUpdateAction {
|
|
576
597
|
readonly action: 'changeLineItemQuantity';
|
|
577
598
|
/**
|
|
578
599
|
* The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -593,7 +614,7 @@ export interface ShoppingListChangeLineItemQuantityAction {
|
|
|
593
614
|
*/
|
|
594
615
|
readonly quantity: number;
|
|
595
616
|
}
|
|
596
|
-
export interface ShoppingListChangeLineItemsOrderAction {
|
|
617
|
+
export interface ShoppingListChangeLineItemsOrderAction extends IShoppingListUpdateAction {
|
|
597
618
|
readonly action: 'changeLineItemsOrder';
|
|
598
619
|
/**
|
|
599
620
|
* All existing ShoppingListLineItem `id`s in the desired new order.
|
|
@@ -602,7 +623,7 @@ export interface ShoppingListChangeLineItemsOrderAction {
|
|
|
602
623
|
*/
|
|
603
624
|
readonly lineItemOrder: string[];
|
|
604
625
|
}
|
|
605
|
-
export interface ShoppingListChangeNameAction {
|
|
626
|
+
export interface ShoppingListChangeNameAction extends IShoppingListUpdateAction {
|
|
606
627
|
readonly action: 'changeName';
|
|
607
628
|
/**
|
|
608
629
|
* New value to set. Must not be empty.
|
|
@@ -611,7 +632,7 @@ export interface ShoppingListChangeNameAction {
|
|
|
611
632
|
*/
|
|
612
633
|
readonly name: LocalizedString;
|
|
613
634
|
}
|
|
614
|
-
export interface ShoppingListChangeTextLineItemNameAction {
|
|
635
|
+
export interface ShoppingListChangeTextLineItemNameAction extends IShoppingListUpdateAction {
|
|
615
636
|
readonly action: 'changeTextLineItemName';
|
|
616
637
|
/**
|
|
617
638
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -632,7 +653,7 @@ export interface ShoppingListChangeTextLineItemNameAction {
|
|
|
632
653
|
*/
|
|
633
654
|
readonly name: LocalizedString;
|
|
634
655
|
}
|
|
635
|
-
export interface ShoppingListChangeTextLineItemQuantityAction {
|
|
656
|
+
export interface ShoppingListChangeTextLineItemQuantityAction extends IShoppingListUpdateAction {
|
|
636
657
|
readonly action: 'changeTextLineItemQuantity';
|
|
637
658
|
/**
|
|
638
659
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -653,7 +674,7 @@ export interface ShoppingListChangeTextLineItemQuantityAction {
|
|
|
653
674
|
*/
|
|
654
675
|
readonly quantity: number;
|
|
655
676
|
}
|
|
656
|
-
export interface ShoppingListChangeTextLineItemsOrderAction {
|
|
677
|
+
export interface ShoppingListChangeTextLineItemsOrderAction extends IShoppingListUpdateAction {
|
|
657
678
|
readonly action: 'changeTextLineItemsOrder';
|
|
658
679
|
/**
|
|
659
680
|
* Must contain all existing [TextLineItem](ctp:api:type:TextLineItem) `id`s in the desired new order.
|
|
@@ -662,7 +683,11 @@ export interface ShoppingListChangeTextLineItemsOrderAction {
|
|
|
662
683
|
*/
|
|
663
684
|
readonly textLineItemOrder: string[];
|
|
664
685
|
}
|
|
665
|
-
|
|
686
|
+
/**
|
|
687
|
+
* Produces the [Shopping List Line Item Removed](ctp:api:type:ShoppingListLineItemRemovedMessage) Message.
|
|
688
|
+
*
|
|
689
|
+
*/
|
|
690
|
+
export interface ShoppingListRemoveLineItemAction extends IShoppingListUpdateAction {
|
|
666
691
|
readonly action: 'removeLineItem';
|
|
667
692
|
/**
|
|
668
693
|
* The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -683,7 +708,7 @@ export interface ShoppingListRemoveLineItemAction {
|
|
|
683
708
|
*/
|
|
684
709
|
readonly quantity?: number;
|
|
685
710
|
}
|
|
686
|
-
export interface ShoppingListRemoveTextLineItemAction {
|
|
711
|
+
export interface ShoppingListRemoveTextLineItemAction extends IShoppingListUpdateAction {
|
|
687
712
|
readonly action: 'removeTextLineItem';
|
|
688
713
|
/**
|
|
689
714
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -708,7 +733,7 @@ export interface ShoppingListRemoveTextLineItemAction {
|
|
|
708
733
|
* If the Shopping List is already associated with a Customer, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
|
|
709
734
|
*
|
|
710
735
|
*/
|
|
711
|
-
export interface ShoppingListSetAnonymousIdAction {
|
|
736
|
+
export interface ShoppingListSetAnonymousIdAction extends IShoppingListUpdateAction {
|
|
712
737
|
readonly action: 'setAnonymousId';
|
|
713
738
|
/**
|
|
714
739
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -717,7 +742,20 @@ export interface ShoppingListSetAnonymousIdAction {
|
|
|
717
742
|
*/
|
|
718
743
|
readonly anonymousId?: string;
|
|
719
744
|
}
|
|
720
|
-
|
|
745
|
+
/**
|
|
746
|
+
* Updates the Business Unit on the Shopping List. The Shopping List must have an existing Business Unit assigned already.
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
export interface ShoppingListSetBusinessUnitAction extends IShoppingListUpdateAction {
|
|
750
|
+
readonly action: 'setBusinessUnit';
|
|
751
|
+
/**
|
|
752
|
+
* The Business Unit to assign to the Shopping List, which must have access to the [Store](/../api/projects/stores) that is set on the Shopping List.
|
|
753
|
+
*
|
|
754
|
+
*
|
|
755
|
+
*/
|
|
756
|
+
readonly businessUnit: BusinessUnitResourceIdentifier;
|
|
757
|
+
}
|
|
758
|
+
export interface ShoppingListSetCustomFieldAction extends IShoppingListUpdateAction {
|
|
721
759
|
readonly action: 'setCustomField';
|
|
722
760
|
/**
|
|
723
761
|
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
@@ -734,7 +772,7 @@ export interface ShoppingListSetCustomFieldAction {
|
|
|
734
772
|
*/
|
|
735
773
|
readonly value?: any;
|
|
736
774
|
}
|
|
737
|
-
export interface ShoppingListSetCustomTypeAction {
|
|
775
|
+
export interface ShoppingListSetCustomTypeAction extends IShoppingListUpdateAction {
|
|
738
776
|
readonly action: 'setCustomType';
|
|
739
777
|
/**
|
|
740
778
|
* Defines the [Type](ctp:api:type:Type) that extends the ShoppingList with [Custom Fields](/../api/projects/custom-fields).
|
|
@@ -750,7 +788,7 @@ export interface ShoppingListSetCustomTypeAction {
|
|
|
750
788
|
*/
|
|
751
789
|
readonly fields?: FieldContainer;
|
|
752
790
|
}
|
|
753
|
-
export interface ShoppingListSetCustomerAction {
|
|
791
|
+
export interface ShoppingListSetCustomerAction extends IShoppingListUpdateAction {
|
|
754
792
|
readonly action: 'setCustomer';
|
|
755
793
|
/**
|
|
756
794
|
* The [Customer](ctp:api:type:Customer) the ShoppingList should be associated to. If empty, any existing value will be removed.
|
|
@@ -759,7 +797,7 @@ export interface ShoppingListSetCustomerAction {
|
|
|
759
797
|
*/
|
|
760
798
|
readonly customer?: CustomerResourceIdentifier;
|
|
761
799
|
}
|
|
762
|
-
export interface ShoppingListSetDeleteDaysAfterLastModificationAction {
|
|
800
|
+
export interface ShoppingListSetDeleteDaysAfterLastModificationAction extends IShoppingListUpdateAction {
|
|
763
801
|
readonly action: 'setDeleteDaysAfterLastModification';
|
|
764
802
|
/**
|
|
765
803
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -768,7 +806,7 @@ export interface ShoppingListSetDeleteDaysAfterLastModificationAction {
|
|
|
768
806
|
*/
|
|
769
807
|
readonly deleteDaysAfterLastModification?: number;
|
|
770
808
|
}
|
|
771
|
-
export interface ShoppingListSetDescriptionAction {
|
|
809
|
+
export interface ShoppingListSetDescriptionAction extends IShoppingListUpdateAction {
|
|
772
810
|
readonly action: 'setDescription';
|
|
773
811
|
/**
|
|
774
812
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -777,7 +815,7 @@ export interface ShoppingListSetDescriptionAction {
|
|
|
777
815
|
*/
|
|
778
816
|
readonly description?: LocalizedString;
|
|
779
817
|
}
|
|
780
|
-
export interface ShoppingListSetKeyAction {
|
|
818
|
+
export interface ShoppingListSetKeyAction extends IShoppingListUpdateAction {
|
|
781
819
|
readonly action: 'setKey';
|
|
782
820
|
/**
|
|
783
821
|
* Value to set. If empty, any existing value will be removed.
|
|
@@ -785,7 +823,7 @@ export interface ShoppingListSetKeyAction {
|
|
|
785
823
|
*/
|
|
786
824
|
readonly key?: string;
|
|
787
825
|
}
|
|
788
|
-
export interface ShoppingListSetLineItemCustomFieldAction {
|
|
826
|
+
export interface ShoppingListSetLineItemCustomFieldAction extends IShoppingListUpdateAction {
|
|
789
827
|
readonly action: 'setLineItemCustomField';
|
|
790
828
|
/**
|
|
791
829
|
* The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -814,7 +852,7 @@ export interface ShoppingListSetLineItemCustomFieldAction {
|
|
|
814
852
|
*/
|
|
815
853
|
readonly value?: any;
|
|
816
854
|
}
|
|
817
|
-
export interface ShoppingListSetLineItemCustomTypeAction {
|
|
855
|
+
export interface ShoppingListSetLineItemCustomTypeAction extends IShoppingListUpdateAction {
|
|
818
856
|
readonly action: 'setLineItemCustomType';
|
|
819
857
|
/**
|
|
820
858
|
* The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -842,7 +880,7 @@ export interface ShoppingListSetLineItemCustomTypeAction {
|
|
|
842
880
|
*/
|
|
843
881
|
readonly fields?: FieldContainer;
|
|
844
882
|
}
|
|
845
|
-
export interface ShoppingListSetSlugAction {
|
|
883
|
+
export interface ShoppingListSetSlugAction extends IShoppingListUpdateAction {
|
|
846
884
|
readonly action: 'setSlug';
|
|
847
885
|
/**
|
|
848
886
|
* Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern `^[A-Za-z0-9_-]{2,256}+$`
|
|
@@ -851,7 +889,7 @@ export interface ShoppingListSetSlugAction {
|
|
|
851
889
|
*/
|
|
852
890
|
readonly slug?: LocalizedString;
|
|
853
891
|
}
|
|
854
|
-
export interface ShoppingListSetStoreAction {
|
|
892
|
+
export interface ShoppingListSetStoreAction extends IShoppingListUpdateAction {
|
|
855
893
|
readonly action: 'setStore';
|
|
856
894
|
/**
|
|
857
895
|
* The [Store](ctp:api:type:Store) the ShoppingList should be assigned to. If empty, any existing value will be removed.
|
|
@@ -860,7 +898,7 @@ export interface ShoppingListSetStoreAction {
|
|
|
860
898
|
*/
|
|
861
899
|
readonly store?: StoreResourceIdentifier;
|
|
862
900
|
}
|
|
863
|
-
export interface ShoppingListSetTextLineItemCustomFieldAction {
|
|
901
|
+
export interface ShoppingListSetTextLineItemCustomFieldAction extends IShoppingListUpdateAction {
|
|
864
902
|
readonly action: 'setTextLineItemCustomField';
|
|
865
903
|
/**
|
|
866
904
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -889,7 +927,7 @@ export interface ShoppingListSetTextLineItemCustomFieldAction {
|
|
|
889
927
|
*/
|
|
890
928
|
readonly value?: any;
|
|
891
929
|
}
|
|
892
|
-
export interface ShoppingListSetTextLineItemCustomTypeAction {
|
|
930
|
+
export interface ShoppingListSetTextLineItemCustomTypeAction extends IShoppingListUpdateAction {
|
|
893
931
|
readonly action: 'setTextLineItemCustomType';
|
|
894
932
|
/**
|
|
895
933
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
@@ -917,7 +955,7 @@ export interface ShoppingListSetTextLineItemCustomTypeAction {
|
|
|
917
955
|
*/
|
|
918
956
|
readonly fields?: FieldContainer;
|
|
919
957
|
}
|
|
920
|
-
export interface ShoppingListSetTextLineItemDescriptionAction {
|
|
958
|
+
export interface ShoppingListSetTextLineItemDescriptionAction extends IShoppingListUpdateAction {
|
|
921
959
|
readonly action: 'setTextLineItemDescription';
|
|
922
960
|
/**
|
|
923
961
|
* The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|