@gradientedge/commercetools-utils 5.3.1 → 5.5.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/ge-commercetools-utils-browser.cjs.js +1 -1
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-node.esm.js +1 -1
- package/dist/typings/models/associate-role.d.ts +79 -0
- package/dist/typings/models/attribute-group.d.ts +68 -0
- package/dist/typings/models/business-unit.d.ts +272 -0
- package/dist/typings/models/cart-discount.d.ts +2 -2
- package/dist/typings/models/cart.d.ts +133 -115
- package/dist/typings/models/channel.d.ts +4 -4
- package/dist/typings/models/common.d.ts +49 -40
- package/dist/typings/models/customer.d.ts +16 -13
- package/dist/typings/models/error.d.ts +451 -18
- package/dist/typings/models/extension.d.ts +7 -3
- package/dist/typings/models/graph-ql.d.ts +3 -1
- package/dist/typings/models/index.d.ts +13 -6
- package/dist/typings/models/me.d.ts +179 -37
- package/dist/typings/models/message.d.ts +849 -20
- package/dist/typings/models/order-edit.d.ts +22 -16
- package/dist/typings/models/order.d.ts +124 -25
- package/dist/typings/models/payment.d.ts +19 -14
- package/dist/typings/models/product-selection.d.ts +39 -6
- package/dist/typings/models/product-type.d.ts +4 -4
- package/dist/typings/models/product.d.ts +13 -5
- package/dist/typings/models/project.d.ts +18 -3
- package/dist/typings/models/quote-request.d.ts +5 -1
- package/dist/typings/models/quote.d.ts +8 -3
- package/dist/typings/models/scalar-types.d.ts +0 -1
- package/dist/typings/models/shipping-method.d.ts +7 -7
- package/dist/typings/models/shopping-list.d.ts +22 -22
- package/dist/typings/models/staged-quote.d.ts +5 -1
- package/dist/typings/models/standalone-price.d.ts +9 -5
- package/dist/typings/models/state.d.ts +2 -2
- package/dist/typings/models/store-country.d.ts +3 -0
- package/dist/typings/models/store.d.ts +16 -1
- package/dist/typings/models/subscription.d.ts +27 -14
- package/dist/typings/models/tax-category.d.ts +6 -2
- package/dist/typings/models/type.d.ts +3 -3
- package/package.json +19 -19
|
@@ -4,10 +4,13 @@ import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier
|
|
|
4
4
|
export interface AssignedProductReference {
|
|
5
5
|
readonly product: ProductReference;
|
|
6
6
|
readonly variantSelection?: ProductVariantSelection;
|
|
7
|
+
readonly variantExclusion?: ProductVariantExclusion;
|
|
7
8
|
}
|
|
8
9
|
export interface AssignedProductSelection {
|
|
9
10
|
readonly productSelection: ProductSelectionReference;
|
|
10
11
|
readonly variantSelection?: ProductVariantSelection;
|
|
12
|
+
readonly variantExclusion?: ProductVariantExclusion;
|
|
13
|
+
readonly createdAt: string;
|
|
11
14
|
}
|
|
12
15
|
export interface AssignedProductSelectionPagedQueryResponse {
|
|
13
16
|
readonly limit: number;
|
|
@@ -26,19 +29,24 @@ export interface ProductSelection extends BaseResource {
|
|
|
26
29
|
readonly key?: string;
|
|
27
30
|
readonly name: LocalizedString;
|
|
28
31
|
readonly productCount: number;
|
|
29
|
-
readonly type
|
|
32
|
+
readonly type?: ProductSelectionTypeEnum;
|
|
33
|
+
readonly mode: ProductSelectionMode;
|
|
30
34
|
readonly custom?: CustomFields;
|
|
31
35
|
}
|
|
32
36
|
export interface ProductSelectionAssignment {
|
|
33
37
|
readonly product: ProductReference;
|
|
34
38
|
readonly productSelection: ProductSelectionReference;
|
|
35
39
|
readonly variantSelection?: ProductVariantSelection;
|
|
40
|
+
readonly variantExclusion?: ProductVariantExclusion;
|
|
36
41
|
}
|
|
37
42
|
export interface ProductSelectionDraft {
|
|
38
43
|
readonly key?: string;
|
|
39
44
|
readonly name: LocalizedString;
|
|
40
45
|
readonly custom?: CustomFieldsDraft;
|
|
46
|
+
readonly type?: ProductSelectionTypeEnum;
|
|
47
|
+
readonly mode?: ProductSelectionMode;
|
|
41
48
|
}
|
|
49
|
+
export type ProductSelectionMode = 'Individual' | 'IndividualExclusion' | string;
|
|
42
50
|
export interface ProductSelectionPagedQueryResponse {
|
|
43
51
|
readonly limit: number;
|
|
44
52
|
readonly offset: number;
|
|
@@ -63,27 +71,42 @@ export interface ProductSelectionResourceIdentifier {
|
|
|
63
71
|
readonly id?: string;
|
|
64
72
|
readonly key?: string;
|
|
65
73
|
}
|
|
66
|
-
export type ProductSelectionType = IndividualProductSelectionType;
|
|
74
|
+
export type ProductSelectionType = IndividualExclusionProductSelectionType | IndividualProductSelectionType;
|
|
75
|
+
export interface IndividualExclusionProductSelectionType {
|
|
76
|
+
readonly type: 'individualExclusion';
|
|
77
|
+
readonly name: LocalizedString;
|
|
78
|
+
}
|
|
67
79
|
export interface IndividualProductSelectionType {
|
|
68
80
|
readonly type: 'individual';
|
|
69
81
|
readonly name: LocalizedString;
|
|
70
82
|
}
|
|
71
|
-
export type ProductSelectionTypeEnum = 'individual';
|
|
83
|
+
export type ProductSelectionTypeEnum = 'individual' | 'individualExclusion' | string;
|
|
72
84
|
export interface ProductSelectionUpdate {
|
|
73
85
|
readonly version: number;
|
|
74
86
|
readonly actions: ProductSelectionUpdateAction[];
|
|
75
87
|
}
|
|
76
|
-
export type ProductSelectionUpdateAction = ProductSelectionAddProductAction | ProductSelectionChangeNameAction | ProductSelectionRemoveProductAction | ProductSelectionSetCustomFieldAction | ProductSelectionSetCustomTypeAction | ProductSelectionSetKeyAction | ProductSelectionSetVariantSelectionAction;
|
|
77
|
-
export
|
|
88
|
+
export type ProductSelectionUpdateAction = ProductSelectionAddProductAction | ProductSelectionChangeNameAction | ProductSelectionExcludeProductAction | ProductSelectionRemoveProductAction | ProductSelectionSetCustomFieldAction | ProductSelectionSetCustomTypeAction | ProductSelectionSetKeyAction | ProductSelectionSetVariantExclusionAction | ProductSelectionSetVariantSelectionAction;
|
|
89
|
+
export interface ProductVariantExclusion {
|
|
90
|
+
readonly skus: string[];
|
|
91
|
+
}
|
|
92
|
+
export type ProductVariantSelection = ProductVariantSelectionExclusion | ProductVariantSelectionIncludeAllExcept | ProductVariantSelectionIncludeOnly | ProductVariantSelectionInclusion;
|
|
78
93
|
export interface ProductVariantSelectionExclusion {
|
|
79
94
|
readonly type: 'exclusion';
|
|
80
95
|
readonly skus: string[];
|
|
81
96
|
}
|
|
97
|
+
export interface ProductVariantSelectionIncludeAllExcept {
|
|
98
|
+
readonly type: 'includeAllExcept';
|
|
99
|
+
readonly skus: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface ProductVariantSelectionIncludeOnly {
|
|
102
|
+
readonly type: 'includeOnly';
|
|
103
|
+
readonly skus: string[];
|
|
104
|
+
}
|
|
82
105
|
export interface ProductVariantSelectionInclusion {
|
|
83
106
|
readonly type: 'inclusion';
|
|
84
107
|
readonly skus: string[];
|
|
85
108
|
}
|
|
86
|
-
export type ProductVariantSelectionTypeEnum = 'exclusion' | 'inclusion';
|
|
109
|
+
export type ProductVariantSelectionTypeEnum = 'exclusion' | 'includeAllExcept' | 'includeOnly' | 'inclusion' | string;
|
|
87
110
|
export interface ProductsInStorePagedQueryResponse {
|
|
88
111
|
readonly limit: number;
|
|
89
112
|
readonly offset: number;
|
|
@@ -100,6 +123,11 @@ export interface ProductSelectionChangeNameAction {
|
|
|
100
123
|
readonly action: 'changeName';
|
|
101
124
|
readonly name: LocalizedString;
|
|
102
125
|
}
|
|
126
|
+
export interface ProductSelectionExcludeProductAction {
|
|
127
|
+
readonly action: 'excludeProduct';
|
|
128
|
+
readonly product: ProductResourceIdentifier;
|
|
129
|
+
readonly variantExclusion?: ProductVariantExclusion;
|
|
130
|
+
}
|
|
103
131
|
export interface ProductSelectionRemoveProductAction {
|
|
104
132
|
readonly action: 'removeProduct';
|
|
105
133
|
readonly product: ProductResourceIdentifier;
|
|
@@ -118,6 +146,11 @@ export interface ProductSelectionSetKeyAction {
|
|
|
118
146
|
readonly action: 'setKey';
|
|
119
147
|
readonly key?: string;
|
|
120
148
|
}
|
|
149
|
+
export interface ProductSelectionSetVariantExclusionAction {
|
|
150
|
+
readonly action: 'setVariantExclusion';
|
|
151
|
+
readonly product: ProductResourceIdentifier;
|
|
152
|
+
readonly variantExclusion?: ProductVariantExclusion;
|
|
153
|
+
}
|
|
121
154
|
export interface ProductSelectionSetVariantSelectionAction {
|
|
122
155
|
readonly action: 'setVariantSelection';
|
|
123
156
|
readonly product: ProductResourceIdentifier;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common';
|
|
2
|
-
export type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique';
|
|
3
|
-
export type AttributeConstraintEnumDraft = 'None';
|
|
2
|
+
export type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
|
|
3
|
+
export type AttributeConstraintEnumDraft = 'None' | string;
|
|
4
4
|
export interface AttributeDefinition {
|
|
5
5
|
readonly type: AttributeType;
|
|
6
6
|
readonly name: string;
|
|
@@ -29,7 +29,7 @@ export interface AttributePlainEnumValue {
|
|
|
29
29
|
readonly key: string;
|
|
30
30
|
readonly label: string;
|
|
31
31
|
}
|
|
32
|
-
export type AttributeReferenceTypeId = 'cart' | 'category' | 'channel' | 'customer' | 'key-value-document' | 'order' | 'product' | 'product-type' | 'review' | 'shipping-method' | 'state' | 'zone';
|
|
32
|
+
export type AttributeReferenceTypeId = 'cart' | 'category' | 'channel' | 'customer' | 'key-value-document' | 'order' | 'product' | 'product-type' | 'review' | 'shipping-method' | 'state' | 'zone' | string;
|
|
33
33
|
export type AttributeType = AttributeBooleanType | AttributeDateTimeType | AttributeDateType | AttributeEnumType | AttributeLocalizableTextType | AttributeLocalizedEnumType | AttributeMoneyType | AttributeNestedType | AttributeNumberType | AttributeReferenceType | AttributeSetType | AttributeTextType | AttributeTimeType;
|
|
34
34
|
export interface AttributeBooleanType {
|
|
35
35
|
readonly name: 'boolean';
|
|
@@ -115,7 +115,7 @@ export interface ProductTypeUpdate {
|
|
|
115
115
|
readonly actions: ProductTypeUpdateAction[];
|
|
116
116
|
}
|
|
117
117
|
export type ProductTypeUpdateAction = ProductTypeAddAttributeDefinitionAction | ProductTypeAddLocalizedEnumValueAction | ProductTypeAddPlainEnumValueAction | ProductTypeChangeAttributeConstraintAction | ProductTypeChangeAttributeNameAction | ProductTypeChangeAttributeOrderByNameAction | ProductTypeChangeDescriptionAction | ProductTypeChangeEnumKeyAction | ProductTypeChangeInputHintAction | ProductTypeChangeIsSearchableAction | ProductTypeChangeLabelAction | ProductTypeChangeLocalizedEnumValueLabelAction | ProductTypeChangeLocalizedEnumValueOrderAction | ProductTypeChangeNameAction | ProductTypeChangePlainEnumValueLabelAction | ProductTypeChangePlainEnumValueOrderAction | ProductTypeRemoveAttributeDefinitionAction | ProductTypeRemoveEnumValuesAction | ProductTypeSetInputTipAction | ProductTypeSetKeyAction;
|
|
118
|
-
export type TextInputHint = 'MultiLine' | 'SingleLine';
|
|
118
|
+
export type TextInputHint = 'MultiLine' | 'SingleLine' | string;
|
|
119
119
|
export interface ProductTypeAddAttributeDefinitionAction {
|
|
120
120
|
readonly action: 'addAttributeDefinition';
|
|
121
121
|
readonly attribute: AttributeDefinitionDraft;
|
|
@@ -34,7 +34,7 @@ export interface FacetTerm {
|
|
|
34
34
|
readonly count: number;
|
|
35
35
|
readonly productCount?: number;
|
|
36
36
|
}
|
|
37
|
-
export type FacetTypes = 'filter' | 'range' | 'terms';
|
|
37
|
+
export type FacetTypes = 'filter' | 'range' | 'terms' | string;
|
|
38
38
|
export interface FilteredFacetResult {
|
|
39
39
|
readonly type: 'filter';
|
|
40
40
|
readonly count: number;
|
|
@@ -100,11 +100,13 @@ export interface ProductPagedQueryResponse {
|
|
|
100
100
|
readonly total?: number;
|
|
101
101
|
readonly results: Product[];
|
|
102
102
|
}
|
|
103
|
-
export type ProductPriceModeEnum = 'Embedded' | 'Standalone';
|
|
103
|
+
export type ProductPriceModeEnum = 'Embedded' | 'Standalone' | string;
|
|
104
104
|
export interface ProductProjection extends BaseResource {
|
|
105
105
|
readonly id: string;
|
|
106
106
|
readonly version: number;
|
|
107
107
|
readonly key?: string;
|
|
108
|
+
readonly createdAt: string;
|
|
109
|
+
readonly lastModifiedAt: string;
|
|
108
110
|
readonly productType: ProductTypeReference;
|
|
109
111
|
readonly name: LocalizedString;
|
|
110
112
|
readonly description?: LocalizedString;
|
|
@@ -153,7 +155,7 @@ export interface ProductUpdate {
|
|
|
153
155
|
readonly version: number;
|
|
154
156
|
readonly actions: ProductUpdateAction[];
|
|
155
157
|
}
|
|
156
|
-
export type ProductUpdateAction = ProductAddAssetAction | ProductAddExternalImageAction | ProductAddPriceAction | ProductAddToCategoryAction | ProductAddVariantAction | ProductChangeAssetNameAction | ProductChangeAssetOrderAction | ProductChangeMasterVariantAction | ProductChangeNameAction | ProductChangePriceAction | ProductChangeSlugAction | ProductLegacySetSkuAction | ProductMoveImageToPositionAction | ProductPublishAction | ProductRemoveAssetAction | ProductRemoveFromCategoryAction | ProductRemoveImageAction | ProductRemovePriceAction | ProductRemoveVariantAction | ProductRevertStagedChangesAction | ProductRevertStagedVariantChangesAction | ProductSetAssetCustomFieldAction | ProductSetAssetCustomTypeAction | ProductSetAssetDescriptionAction | ProductSetAssetKeyAction | ProductSetAssetSourcesAction | ProductSetAssetTagsAction | ProductSetAttributeAction | ProductSetAttributeInAllVariantsAction | ProductSetCategoryOrderHintAction | ProductSetDescriptionAction | ProductSetDiscountedPriceAction | ProductSetImageLabelAction | ProductSetKeyAction | ProductSetMetaDescriptionAction | ProductSetMetaKeywordsAction | ProductSetMetaTitleAction | ProductSetPriceModeAction | ProductSetPricesAction | ProductSetProductPriceCustomFieldAction | ProductSetProductPriceCustomTypeAction | ProductSetProductVariantKeyAction | ProductSetSearchKeywordsAction | ProductSetSkuAction | ProductSetTaxCategoryAction | ProductTransitionStateAction | ProductUnpublishAction;
|
|
158
|
+
export type ProductUpdateAction = ProductAddAssetAction | ProductAddExternalImageAction | ProductAddPriceAction | ProductAddToCategoryAction | ProductAddVariantAction | ProductChangeAssetNameAction | ProductChangeAssetOrderAction | ProductChangeMasterVariantAction | ProductChangeNameAction | ProductChangePriceAction | ProductChangeSlugAction | ProductLegacySetSkuAction | ProductMoveImageToPositionAction | ProductPublishAction | ProductRemoveAssetAction | ProductRemoveFromCategoryAction | ProductRemoveImageAction | ProductRemovePriceAction | ProductRemoveVariantAction | ProductRevertStagedChangesAction | ProductRevertStagedVariantChangesAction | ProductSetAssetCustomFieldAction | ProductSetAssetCustomTypeAction | ProductSetAssetDescriptionAction | ProductSetAssetKeyAction | ProductSetAssetSourcesAction | ProductSetAssetTagsAction | ProductSetAttributeAction | ProductSetAttributeInAllVariantsAction | ProductSetCategoryOrderHintAction | ProductSetDescriptionAction | ProductSetDiscountedPriceAction | ProductSetImageLabelAction | ProductSetKeyAction | ProductSetMetaDescriptionAction | ProductSetMetaKeywordsAction | ProductSetMetaTitleAction | ProductSetPriceKeyAction | ProductSetPriceModeAction | ProductSetPricesAction | ProductSetProductPriceCustomFieldAction | ProductSetProductPriceCustomTypeAction | ProductSetProductVariantKeyAction | ProductSetSearchKeywordsAction | ProductSetSkuAction | ProductSetTaxCategoryAction | ProductTransitionStateAction | ProductUnpublishAction;
|
|
157
159
|
export interface ProductVariant {
|
|
158
160
|
readonly id: number;
|
|
159
161
|
readonly sku?: string;
|
|
@@ -222,7 +224,7 @@ export interface TermFacetResult {
|
|
|
222
224
|
readonly other: number;
|
|
223
225
|
readonly terms: FacetTerm[];
|
|
224
226
|
}
|
|
225
|
-
export type TermFacetResultType = 'boolean' | 'date' | 'datetime' | 'number' | 'text' | 'time';
|
|
227
|
+
export type TermFacetResultType = 'boolean' | 'date' | 'datetime' | 'number' | 'text' | 'time' | string;
|
|
226
228
|
export interface WhitespaceTokenizer {
|
|
227
229
|
readonly type: 'whitespace';
|
|
228
230
|
}
|
|
@@ -262,7 +264,7 @@ export interface ProductAddVariantAction {
|
|
|
262
264
|
readonly images?: Image[];
|
|
263
265
|
readonly attributes?: Attribute[];
|
|
264
266
|
readonly staged?: boolean;
|
|
265
|
-
readonly assets?:
|
|
267
|
+
readonly assets?: AssetDraft[];
|
|
266
268
|
}
|
|
267
269
|
export interface ProductChangeAssetNameAction {
|
|
268
270
|
readonly action: 'changeAssetName';
|
|
@@ -470,6 +472,12 @@ export interface ProductSetMetaTitleAction {
|
|
|
470
472
|
readonly metaTitle?: LocalizedString;
|
|
471
473
|
readonly staged?: boolean;
|
|
472
474
|
}
|
|
475
|
+
export interface ProductSetPriceKeyAction {
|
|
476
|
+
readonly action: 'setPriceKey';
|
|
477
|
+
readonly priceId: string;
|
|
478
|
+
readonly staged?: boolean;
|
|
479
|
+
readonly key?: string;
|
|
480
|
+
}
|
|
473
481
|
export interface ProductSetPriceModeAction {
|
|
474
482
|
readonly action: 'setPriceMode';
|
|
475
483
|
readonly priceMode?: ProductPriceModeEnum;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { AssociateRoleKeyReference, AssociateRoleResourceIdentifier } from './associate-role';
|
|
1
2
|
import { LastModifiedBy } from './common';
|
|
2
3
|
import { MessagesConfiguration, MessagesConfigurationDraft } from './message';
|
|
3
4
|
import { CustomFieldLocalizedEnumValue } from './type';
|
|
5
|
+
export interface BusinessUnitConfiguration {
|
|
6
|
+
readonly myBusinessUnitStatusOnCreation: BusinessUnitConfigurationStatus;
|
|
7
|
+
readonly myBusinessUnitAssociateRoleOnCreation?: AssociateRoleKeyReference;
|
|
8
|
+
}
|
|
9
|
+
export type BusinessUnitConfigurationStatus = 'Active' | 'Inactive' | string;
|
|
4
10
|
export interface CartsConfiguration {
|
|
5
11
|
readonly deleteDaysAfterLastModification?: number;
|
|
6
12
|
readonly countryTaxRateFallbackEnabled?: boolean;
|
|
@@ -9,7 +15,7 @@ export interface ExternalOAuth {
|
|
|
9
15
|
readonly url: string;
|
|
10
16
|
readonly authorizationHeader: string;
|
|
11
17
|
}
|
|
12
|
-
export type OrderSearchStatus = 'Activated' | 'Deactivated';
|
|
18
|
+
export type OrderSearchStatus = 'Activated' | 'Deactivated' | string;
|
|
13
19
|
export interface Project {
|
|
14
20
|
readonly version: number;
|
|
15
21
|
readonly key: string;
|
|
@@ -25,17 +31,18 @@ export interface Project {
|
|
|
25
31
|
readonly shippingRateInputType?: ShippingRateInputType;
|
|
26
32
|
readonly externalOAuth?: ExternalOAuth;
|
|
27
33
|
readonly searchIndexing?: SearchIndexingConfiguration;
|
|
34
|
+
readonly businessUnits?: BusinessUnitConfiguration;
|
|
28
35
|
}
|
|
29
36
|
export interface ProjectUpdate {
|
|
30
37
|
readonly version: number;
|
|
31
38
|
readonly actions: ProjectUpdateAction[];
|
|
32
39
|
}
|
|
33
|
-
export type ProjectUpdateAction = ProjectChangeCartsConfigurationAction | ProjectChangeCountriesAction | ProjectChangeCountryTaxRateFallbackEnabledAction | ProjectChangeCurrenciesAction | ProjectChangeLanguagesAction | ProjectChangeMessagesConfigurationAction | ProjectChangeNameAction | ProjectChangeOrderSearchStatusAction | ProjectChangeProductSearchIndexingEnabledAction | ProjectChangeShoppingListsConfigurationAction | ProjectSetExternalOAuthAction | ProjectSetShippingRateInputTypeAction;
|
|
40
|
+
export type ProjectUpdateAction = ProjectChangeBusinessUnitStatusOnCreationAction | ProjectChangeCartsConfigurationAction | ProjectChangeCountriesAction | ProjectChangeCountryTaxRateFallbackEnabledAction | ProjectChangeCurrenciesAction | ProjectChangeLanguagesAction | ProjectChangeMessagesConfigurationAction | ProjectChangeNameAction | ProjectChangeOrderSearchStatusAction | ProjectChangeProductSearchIndexingEnabledAction | ProjectChangeShoppingListsConfigurationAction | ProjectSetBusinessUnitAssociateRoleOnCreationAction | ProjectSetExternalOAuthAction | ProjectSetShippingRateInputTypeAction;
|
|
34
41
|
export interface SearchIndexingConfiguration {
|
|
35
42
|
readonly products?: SearchIndexingConfigurationValues;
|
|
36
43
|
readonly orders?: SearchIndexingConfigurationValues;
|
|
37
44
|
}
|
|
38
|
-
export type SearchIndexingConfigurationStatus = 'Activated' | 'Deactivated' | 'Indexing';
|
|
45
|
+
export type SearchIndexingConfigurationStatus = 'Activated' | 'Deactivated' | 'Indexing' | string;
|
|
39
46
|
export interface SearchIndexingConfigurationValues {
|
|
40
47
|
readonly status?: SearchIndexingConfigurationStatus;
|
|
41
48
|
readonly lastModifiedAt?: string;
|
|
@@ -55,6 +62,10 @@ export interface CartValueType {
|
|
|
55
62
|
export interface ShoppingListsConfiguration {
|
|
56
63
|
readonly deleteDaysAfterLastModification?: number;
|
|
57
64
|
}
|
|
65
|
+
export interface ProjectChangeBusinessUnitStatusOnCreationAction {
|
|
66
|
+
readonly action: 'changeMyBusinessUnitStatusOnCreation';
|
|
67
|
+
readonly status: BusinessUnitConfigurationStatus;
|
|
68
|
+
}
|
|
58
69
|
export interface ProjectChangeCartsConfigurationAction {
|
|
59
70
|
readonly action: 'changeCartsConfiguration';
|
|
60
71
|
readonly cartsConfiguration: CartsConfiguration;
|
|
@@ -95,6 +106,10 @@ export interface ProjectChangeShoppingListsConfigurationAction {
|
|
|
95
106
|
readonly action: 'changeShoppingListsConfiguration';
|
|
96
107
|
readonly shoppingListsConfiguration: ShoppingListsConfiguration;
|
|
97
108
|
}
|
|
109
|
+
export interface ProjectSetBusinessUnitAssociateRoleOnCreationAction {
|
|
110
|
+
readonly action: 'setMyBusinessUnitAssociateRoleOnCreation';
|
|
111
|
+
readonly associateRole: AssociateRoleResourceIdentifier;
|
|
112
|
+
}
|
|
98
113
|
export interface ProjectSetExternalOAuthAction {
|
|
99
114
|
readonly action: 'setExternalOAuth';
|
|
100
115
|
readonly externalOAuth?: ExternalOAuth;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BusinessUnitKeyReference } from './business-unit';
|
|
1
2
|
import { CartResourceIdentifier, CustomLineItem, DirectDiscount, InventoryMode, LineItem, RoundingMode, ShippingInfo, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxMode } from './cart';
|
|
2
3
|
import { Address, BaseResource, CreatedBy, LastModifiedBy, TypedMoney } from './common';
|
|
3
4
|
import { CustomerReference } from './customer';
|
|
@@ -37,6 +38,8 @@ export interface QuoteRequest extends BaseResource {
|
|
|
37
38
|
readonly directDiscounts?: DirectDiscount[];
|
|
38
39
|
readonly custom?: CustomFields;
|
|
39
40
|
readonly state?: StateReference;
|
|
41
|
+
readonly purchaseOrderNumber?: string;
|
|
42
|
+
readonly businessUnit?: BusinessUnitKeyReference;
|
|
40
43
|
}
|
|
41
44
|
export interface QuoteRequestDraft {
|
|
42
45
|
readonly cart: CartResourceIdentifier;
|
|
@@ -45,6 +48,7 @@ export interface QuoteRequestDraft {
|
|
|
45
48
|
readonly comment: string;
|
|
46
49
|
readonly custom?: CustomFieldsDraft;
|
|
47
50
|
readonly state?: StateReference;
|
|
51
|
+
readonly purchaseOrderNumber?: string;
|
|
48
52
|
}
|
|
49
53
|
export interface QuoteRequestPagedQueryResponse {
|
|
50
54
|
readonly limit: number;
|
|
@@ -63,7 +67,7 @@ export interface QuoteRequestResourceIdentifier {
|
|
|
63
67
|
readonly id?: string;
|
|
64
68
|
readonly key?: string;
|
|
65
69
|
}
|
|
66
|
-
export type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted';
|
|
70
|
+
export type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted' | string;
|
|
67
71
|
export interface QuoteRequestUpdate {
|
|
68
72
|
readonly version: number;
|
|
69
73
|
readonly actions: QuoteRequestUpdateAction[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BusinessUnitKeyReference } from './business-unit';
|
|
1
2
|
import { CustomLineItem, DirectDiscount, InventoryMode, LineItem, RoundingMode, ShippingInfo, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxMode } from './cart';
|
|
2
3
|
import { Address, BaseResource, CreatedBy, LastModifiedBy, TypedMoney } from './common';
|
|
3
4
|
import { CustomerReference } from './customer';
|
|
@@ -41,14 +42,18 @@ export interface Quote extends BaseResource {
|
|
|
41
42
|
readonly itemShippingAddresses?: Address[];
|
|
42
43
|
readonly directDiscounts?: DirectDiscount[];
|
|
43
44
|
readonly custom?: CustomFields;
|
|
45
|
+
readonly quoteState: QuoteState;
|
|
44
46
|
readonly state?: StateReference;
|
|
47
|
+
readonly purchaseOrderNumber?: string;
|
|
48
|
+
readonly businessUnit?: BusinessUnitKeyReference;
|
|
45
49
|
}
|
|
46
50
|
export interface QuoteDraft {
|
|
51
|
+
readonly key?: string;
|
|
47
52
|
readonly stagedQuote: StagedQuoteResourceIdentifier;
|
|
48
53
|
readonly stagedQuoteVersion: number;
|
|
49
|
-
readonly
|
|
50
|
-
readonly custom?: CustomFieldsDraft;
|
|
54
|
+
readonly stagedQuoteStateToSent?: boolean;
|
|
51
55
|
readonly state?: StateReference;
|
|
56
|
+
readonly custom?: CustomFieldsDraft;
|
|
52
57
|
}
|
|
53
58
|
export interface QuotePagedQueryResponse {
|
|
54
59
|
readonly limit: number;
|
|
@@ -67,7 +72,7 @@ export interface QuoteResourceIdentifier {
|
|
|
67
72
|
readonly id?: string;
|
|
68
73
|
readonly key?: string;
|
|
69
74
|
}
|
|
70
|
-
export type QuoteState = 'Accepted' | 'Declined' | 'DeclinedForRenegotiation' | 'Failed' | 'Pending' | 'Withdrawn';
|
|
75
|
+
export type QuoteState = 'Accepted' | 'Declined' | 'DeclinedForRenegotiation' | 'Failed' | 'Pending' | 'Withdrawn' | string;
|
|
71
76
|
export interface QuoteUpdate {
|
|
72
77
|
readonly version: number;
|
|
73
78
|
readonly actions: QuoteUpdateAction[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString,
|
|
1
|
+
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString, TypedMoney, _Money } from './common';
|
|
2
2
|
import { TaxCategoryReference, TaxCategoryResourceIdentifier } from './tax-category';
|
|
3
3
|
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
4
4
|
import { ZoneReference, ZoneResourceIdentifier } from './zone';
|
|
@@ -65,31 +65,31 @@ export interface ShippingRate {
|
|
|
65
65
|
readonly tiers: ShippingRatePriceTier[];
|
|
66
66
|
}
|
|
67
67
|
export interface ShippingRateDraft {
|
|
68
|
-
readonly price:
|
|
69
|
-
readonly freeAbove?:
|
|
68
|
+
readonly price: _Money;
|
|
69
|
+
readonly freeAbove?: _Money;
|
|
70
70
|
readonly tiers?: ShippingRatePriceTier[];
|
|
71
71
|
}
|
|
72
72
|
export type ShippingRatePriceTier = CartClassificationTier | CartScoreTier | CartValueTier;
|
|
73
73
|
export interface CartClassificationTier {
|
|
74
74
|
readonly type: 'CartClassification';
|
|
75
75
|
readonly value: string;
|
|
76
|
-
readonly price:
|
|
76
|
+
readonly price: _Money;
|
|
77
77
|
readonly isMatching?: boolean;
|
|
78
78
|
}
|
|
79
79
|
export interface CartScoreTier {
|
|
80
80
|
readonly type: 'CartScore';
|
|
81
81
|
readonly score: number;
|
|
82
|
-
readonly price?:
|
|
82
|
+
readonly price?: _Money;
|
|
83
83
|
readonly priceFunction?: PriceFunction;
|
|
84
84
|
readonly isMatching?: boolean;
|
|
85
85
|
}
|
|
86
86
|
export interface CartValueTier {
|
|
87
87
|
readonly type: 'CartValue';
|
|
88
88
|
readonly minimumCentAmount: number;
|
|
89
|
-
readonly price:
|
|
89
|
+
readonly price: _Money;
|
|
90
90
|
readonly isMatching?: boolean;
|
|
91
91
|
}
|
|
92
|
-
export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue';
|
|
92
|
+
export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
|
|
93
93
|
export interface ZoneRate {
|
|
94
94
|
readonly zone: ZoneReference;
|
|
95
95
|
readonly shippingRates: ShippingRate[];
|
|
@@ -7,34 +7,34 @@ import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier
|
|
|
7
7
|
export interface ShoppingList extends BaseResource {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly version: number;
|
|
10
|
-
readonly createdAt: string;
|
|
11
|
-
readonly lastModifiedAt: string;
|
|
12
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
13
|
-
readonly createdBy?: CreatedBy;
|
|
14
|
-
readonly custom?: CustomFields;
|
|
15
|
-
readonly customer?: CustomerReference;
|
|
16
|
-
readonly deleteDaysAfterLastModification?: number;
|
|
17
|
-
readonly description?: LocalizedString;
|
|
18
|
-
readonly key?: string;
|
|
19
|
-
readonly lineItems?: ShoppingListLineItem[];
|
|
20
10
|
readonly name: LocalizedString;
|
|
11
|
+
readonly key?: string;
|
|
12
|
+
readonly customer?: CustomerReference;
|
|
21
13
|
readonly slug?: LocalizedString;
|
|
22
|
-
readonly
|
|
14
|
+
readonly description?: LocalizedString;
|
|
15
|
+
readonly lineItems: ShoppingListLineItem[];
|
|
16
|
+
readonly textLineItems: TextLineItem[];
|
|
17
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
23
18
|
readonly anonymousId?: string;
|
|
24
19
|
readonly store?: StoreKeyReference;
|
|
20
|
+
readonly custom?: CustomFields;
|
|
21
|
+
readonly createdAt: string;
|
|
22
|
+
readonly lastModifiedAt: string;
|
|
23
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
24
|
+
readonly createdBy?: CreatedBy;
|
|
25
25
|
}
|
|
26
26
|
export interface ShoppingListDraft {
|
|
27
|
-
readonly
|
|
27
|
+
readonly name: LocalizedString;
|
|
28
|
+
readonly slug?: LocalizedString;
|
|
28
29
|
readonly customer?: CustomerResourceIdentifier;
|
|
29
|
-
readonly deleteDaysAfterLastModification?: number;
|
|
30
|
-
readonly description?: LocalizedString;
|
|
31
30
|
readonly key?: string;
|
|
31
|
+
readonly description?: LocalizedString;
|
|
32
|
+
readonly anonymousId?: string;
|
|
33
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
32
34
|
readonly lineItems?: ShoppingListLineItemDraft[];
|
|
33
|
-
readonly name: LocalizedString;
|
|
34
|
-
readonly slug?: LocalizedString;
|
|
35
35
|
readonly textLineItems?: TextLineItemDraft[];
|
|
36
|
-
readonly anonymousId?: string;
|
|
37
36
|
readonly store?: StoreResourceIdentifier;
|
|
37
|
+
readonly custom?: CustomFieldsDraft;
|
|
38
38
|
}
|
|
39
39
|
export interface ShoppingListLineItem {
|
|
40
40
|
readonly addedAt: string;
|
|
@@ -43,19 +43,19 @@ export interface ShoppingListLineItem {
|
|
|
43
43
|
readonly id: string;
|
|
44
44
|
readonly name: LocalizedString;
|
|
45
45
|
readonly productId: string;
|
|
46
|
-
readonly productSlug?: LocalizedString;
|
|
47
46
|
readonly productType: ProductTypeReference;
|
|
48
47
|
readonly quantity: number;
|
|
49
|
-
readonly variant?: ProductVariant;
|
|
50
48
|
readonly variantId?: number;
|
|
49
|
+
readonly variant?: ProductVariant;
|
|
50
|
+
readonly productSlug?: LocalizedString;
|
|
51
51
|
}
|
|
52
52
|
export interface ShoppingListLineItemDraft {
|
|
53
|
+
readonly productId?: string;
|
|
54
|
+
readonly variantId?: number;
|
|
55
|
+
readonly sku?: string;
|
|
53
56
|
readonly addedAt?: string;
|
|
54
57
|
readonly custom?: CustomFieldsDraft;
|
|
55
|
-
readonly sku?: string;
|
|
56
|
-
readonly productId?: string;
|
|
57
58
|
readonly quantity?: number;
|
|
58
|
-
readonly variantId?: number;
|
|
59
59
|
}
|
|
60
60
|
export interface ShoppingListPagedQueryResponse {
|
|
61
61
|
readonly limit: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BusinessUnitKeyReference } from './business-unit';
|
|
1
2
|
import { CartReference } from './cart';
|
|
2
3
|
import { BaseResource, CreatedBy, LastModifiedBy } from './common';
|
|
3
4
|
import { CustomerReference } from './customer';
|
|
@@ -20,10 +21,13 @@ export interface StagedQuote extends BaseResource {
|
|
|
20
21
|
readonly sellerComment?: string;
|
|
21
22
|
readonly custom?: CustomFields;
|
|
22
23
|
readonly state?: StateReference;
|
|
24
|
+
readonly purchaseOrderNumber?: string;
|
|
25
|
+
readonly businessUnit?: BusinessUnitKeyReference;
|
|
23
26
|
}
|
|
24
27
|
export interface StagedQuoteDraft {
|
|
25
28
|
readonly quoteRequest: QuoteRequestResourceIdentifier;
|
|
26
29
|
readonly quoteRequestVersion: number;
|
|
30
|
+
readonly quoteRequestStateToAccepted?: boolean;
|
|
27
31
|
readonly key?: string;
|
|
28
32
|
readonly custom?: CustomFieldsDraft;
|
|
29
33
|
readonly state?: StateReference;
|
|
@@ -45,7 +49,7 @@ export interface StagedQuoteResourceIdentifier {
|
|
|
45
49
|
readonly id?: string;
|
|
46
50
|
readonly key?: string;
|
|
47
51
|
}
|
|
48
|
-
export type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent';
|
|
52
|
+
export type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent' | string;
|
|
49
53
|
export interface StagedQuoteUpdate {
|
|
50
54
|
readonly version: number;
|
|
51
55
|
readonly actions: StagedQuoteUpdateAction[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
2
|
-
import { BaseResource, CreatedBy, DiscountedPrice, DiscountedPriceDraft, LastModifiedBy,
|
|
2
|
+
import { BaseResource, CreatedBy, DiscountedPrice, DiscountedPriceDraft, LastModifiedBy, PriceTier, PriceTierDraft, TypedMoney, _Money } from './common';
|
|
3
3
|
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
4
4
|
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
5
5
|
export interface StagedStandalonePrice {
|
|
6
6
|
readonly value: TypedMoney;
|
|
7
|
-
readonly discounted
|
|
7
|
+
readonly discounted?: DiscountedPrice;
|
|
8
8
|
}
|
|
9
9
|
export interface StandalonePrice extends BaseResource {
|
|
10
10
|
readonly id: string;
|
|
@@ -30,7 +30,7 @@ export interface StandalonePrice extends BaseResource {
|
|
|
30
30
|
export interface StandalonePriceDraft {
|
|
31
31
|
readonly key?: string;
|
|
32
32
|
readonly sku: string;
|
|
33
|
-
readonly value:
|
|
33
|
+
readonly value: _Money;
|
|
34
34
|
readonly country?: string;
|
|
35
35
|
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
36
36
|
readonly channel?: ChannelResourceIdentifier;
|
|
@@ -62,7 +62,7 @@ export interface StandalonePriceUpdate {
|
|
|
62
62
|
readonly version: number;
|
|
63
63
|
readonly actions: StandalonePriceUpdateAction[];
|
|
64
64
|
}
|
|
65
|
-
export type StandalonePriceUpdateAction = StandalonePriceApplyStagedChangesAction | StandalonePriceChangeActiveAction | StandalonePriceChangeValueAction | StandalonePriceSetCustomFieldAction | StandalonePriceSetCustomTypeAction | StandalonePriceSetDiscountedPriceAction;
|
|
65
|
+
export type StandalonePriceUpdateAction = StandalonePriceApplyStagedChangesAction | StandalonePriceChangeActiveAction | StandalonePriceChangeValueAction | StandalonePriceSetCustomFieldAction | StandalonePriceSetCustomTypeAction | StandalonePriceSetDiscountedPriceAction | StandalonePriceSetKeyAction;
|
|
66
66
|
export interface StandalonePriceApplyStagedChangesAction {
|
|
67
67
|
readonly action: 'applyStagedChanges';
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ export interface StandalonePriceChangeActiveAction {
|
|
|
72
72
|
}
|
|
73
73
|
export interface StandalonePriceChangeValueAction {
|
|
74
74
|
readonly action: 'changeValue';
|
|
75
|
-
readonly value:
|
|
75
|
+
readonly value: _Money;
|
|
76
76
|
readonly staged?: boolean;
|
|
77
77
|
}
|
|
78
78
|
export interface StandalonePriceSetCustomFieldAction {
|
|
@@ -89,3 +89,7 @@ export interface StandalonePriceSetDiscountedPriceAction {
|
|
|
89
89
|
readonly action: 'setDiscountedPrice';
|
|
90
90
|
readonly discounted?: DiscountedPriceDraft;
|
|
91
91
|
}
|
|
92
|
+
export interface StandalonePriceSetKeyAction {
|
|
93
|
+
readonly action: 'setKey';
|
|
94
|
+
readonly key?: string;
|
|
95
|
+
}
|
|
@@ -41,8 +41,8 @@ export interface StateResourceIdentifier {
|
|
|
41
41
|
readonly id?: string;
|
|
42
42
|
readonly key?: string;
|
|
43
43
|
}
|
|
44
|
-
export type StateRoleEnum = 'Return' | 'ReviewIncludedInStatistics';
|
|
45
|
-
export type StateTypeEnum = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'QuoteRequestState' | 'QuoteState' | 'ReviewState' | 'StagedQuoteState';
|
|
44
|
+
export type StateRoleEnum = 'Return' | 'ReviewIncludedInStatistics' | string;
|
|
45
|
+
export type StateTypeEnum = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'QuoteRequestState' | 'QuoteState' | 'ReviewState' | 'StagedQuoteState' | string;
|
|
46
46
|
export interface StateUpdate {
|
|
47
47
|
readonly version: number;
|
|
48
48
|
readonly actions: StateUpdateAction[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
2
2
|
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common';
|
|
3
3
|
import { ProductSelectionReference, ProductSelectionResourceIdentifier } from './product-selection';
|
|
4
|
+
import { StoreCountry } from './store-country';
|
|
4
5
|
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
5
6
|
export interface ProductSelectionSetting {
|
|
6
7
|
readonly productSelection: ProductSelectionReference;
|
|
@@ -20,6 +21,7 @@ export interface Store extends BaseResource {
|
|
|
20
21
|
readonly key: string;
|
|
21
22
|
readonly name?: LocalizedString;
|
|
22
23
|
readonly languages: string[];
|
|
24
|
+
readonly countries: StoreCountry[];
|
|
23
25
|
readonly distributionChannels: ChannelReference[];
|
|
24
26
|
readonly supplyChannels: ChannelReference[];
|
|
25
27
|
readonly productSelections: ProductSelectionSetting[];
|
|
@@ -29,6 +31,7 @@ export interface StoreDraft {
|
|
|
29
31
|
readonly key: string;
|
|
30
32
|
readonly name?: LocalizedString;
|
|
31
33
|
readonly languages?: string[];
|
|
34
|
+
readonly countries?: StoreCountry[];
|
|
32
35
|
readonly distributionChannels?: ChannelResourceIdentifier[];
|
|
33
36
|
readonly supplyChannels?: ChannelResourceIdentifier[];
|
|
34
37
|
readonly productSelections?: ProductSelectionSettingDraft[];
|
|
@@ -59,7 +62,11 @@ export interface StoreUpdate {
|
|
|
59
62
|
readonly version: number;
|
|
60
63
|
readonly actions: StoreUpdateAction[];
|
|
61
64
|
}
|
|
62
|
-
export type StoreUpdateAction = StoreAddDistributionChannelAction | StoreAddProductSelectionAction | StoreAddSupplyChannelAction | StoreChangeProductSelectionAction | StoreRemoveDistributionChannelAction | StoreRemoveProductSelectionAction | StoreRemoveSupplyChannelAction | StoreSetCustomFieldAction | StoreSetCustomTypeAction | StoreSetDistributionChannelsAction | StoreSetLanguagesAction | StoreSetNameAction | StoreSetProductSelectionsAction | StoreSetSupplyChannelsAction;
|
|
65
|
+
export type StoreUpdateAction = StoreAddCountryAction | StoreAddDistributionChannelAction | StoreAddProductSelectionAction | StoreAddSupplyChannelAction | StoreChangeProductSelectionAction | StoreRemoveCountryAction | StoreRemoveDistributionChannelAction | StoreRemoveProductSelectionAction | StoreRemoveSupplyChannelAction | StoreSetCountriesAction | StoreSetCustomFieldAction | StoreSetCustomTypeAction | StoreSetDistributionChannelsAction | StoreSetLanguagesAction | StoreSetNameAction | StoreSetProductSelectionsAction | StoreSetSupplyChannelsAction;
|
|
66
|
+
export interface StoreAddCountryAction {
|
|
67
|
+
readonly action: 'addCountry';
|
|
68
|
+
readonly country: StoreCountry;
|
|
69
|
+
}
|
|
63
70
|
export interface StoreAddDistributionChannelAction {
|
|
64
71
|
readonly action: 'addDistributionChannel';
|
|
65
72
|
readonly distributionChannel: ChannelResourceIdentifier;
|
|
@@ -78,6 +85,10 @@ export interface StoreChangeProductSelectionAction {
|
|
|
78
85
|
readonly productSelection: ProductSelectionResourceIdentifier;
|
|
79
86
|
readonly active?: boolean;
|
|
80
87
|
}
|
|
88
|
+
export interface StoreRemoveCountryAction {
|
|
89
|
+
readonly action: 'removeCountry';
|
|
90
|
+
readonly country: StoreCountry;
|
|
91
|
+
}
|
|
81
92
|
export interface StoreRemoveDistributionChannelAction {
|
|
82
93
|
readonly action: 'removeDistributionChannel';
|
|
83
94
|
readonly distributionChannel: ChannelResourceIdentifier;
|
|
@@ -90,6 +101,10 @@ export interface StoreRemoveSupplyChannelAction {
|
|
|
90
101
|
readonly action: 'removeSupplyChannel';
|
|
91
102
|
readonly supplyChannel: ChannelResourceIdentifier;
|
|
92
103
|
}
|
|
104
|
+
export interface StoreSetCountriesAction {
|
|
105
|
+
readonly action: 'setCountries';
|
|
106
|
+
readonly countries?: StoreCountry[];
|
|
107
|
+
}
|
|
93
108
|
export interface StoreSetCustomFieldAction {
|
|
94
109
|
readonly action: 'setCustomField';
|
|
95
110
|
readonly name: string;
|