@gradientedge/commercetools-utils 5.3.0 → 5.4.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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BaseResource, CreatedBy, LastModifiedBy } from './common';
|
|
2
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
3
|
+
export interface AssociateRole extends BaseResource {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly version: number;
|
|
6
|
+
readonly createdAt: string;
|
|
7
|
+
readonly lastModifiedAt: string;
|
|
8
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
9
|
+
readonly createdBy?: CreatedBy;
|
|
10
|
+
readonly key: string;
|
|
11
|
+
readonly buyerAssignable: boolean;
|
|
12
|
+
readonly name?: string;
|
|
13
|
+
readonly permissions: Permission[];
|
|
14
|
+
readonly custom?: CustomFields;
|
|
15
|
+
}
|
|
16
|
+
export interface AssociateRoleDraft {
|
|
17
|
+
readonly key: string;
|
|
18
|
+
readonly name?: string;
|
|
19
|
+
readonly buyerAssignable?: boolean;
|
|
20
|
+
readonly permissions?: Permission[];
|
|
21
|
+
readonly custom?: CustomFieldsDraft;
|
|
22
|
+
}
|
|
23
|
+
export interface AssociateRoleKeyReference {
|
|
24
|
+
readonly typeId: 'associate-role';
|
|
25
|
+
readonly key: string;
|
|
26
|
+
}
|
|
27
|
+
export interface AssociateRolePagedQueryResponse {
|
|
28
|
+
readonly limit: number;
|
|
29
|
+
readonly offset: number;
|
|
30
|
+
readonly count: number;
|
|
31
|
+
readonly total?: number;
|
|
32
|
+
readonly results: AssociateRole[];
|
|
33
|
+
}
|
|
34
|
+
export interface AssociateRoleReference {
|
|
35
|
+
readonly typeId: 'associate-role';
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly obj?: AssociateRole;
|
|
38
|
+
}
|
|
39
|
+
export interface AssociateRoleResourceIdentifier {
|
|
40
|
+
readonly typeId: 'associate-role';
|
|
41
|
+
readonly id?: string;
|
|
42
|
+
readonly key?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AssociateRoleUpdate {
|
|
45
|
+
readonly version: number;
|
|
46
|
+
readonly actions: AssociateRoleUpdateAction[];
|
|
47
|
+
}
|
|
48
|
+
export type AssociateRoleUpdateAction = AssociateRoleAddPermissionAction | AssociateRoleChangeBuyerAssignableAction | AssociateRoleRemovePermissionAction | AssociateRoleSetCustomFieldAction | AssociateRoleSetCustomTypeAction | AssociateRoleSetNameAction | AssociateRoleSetPermissionsAction;
|
|
49
|
+
export type Permission = 'AcceptMyQuotes' | 'AcceptOthersQuotes' | 'AddChildUnits' | 'CreateMyCarts' | 'CreateMyOrdersFromMyCarts' | 'CreateMyOrdersFromMyQuotes' | 'CreateMyQuoteRequestsFromMyCarts' | 'CreateOrdersFromOthersCarts' | 'CreateOrdersFromOthersQuotes' | 'CreateOthersCarts' | 'CreateQuoteRequestsFromOthersCarts' | 'DeclineMyQuotes' | 'DeclineOthersQuotes' | 'DeleteMyCarts' | 'DeleteOthersCarts' | 'RenegotiateMyQuotes' | 'RenegotiateOthersQuotes' | 'UpdateAssociates' | 'UpdateBusinessUnitDetails' | 'UpdateMyCarts' | 'UpdateMyOrders' | 'UpdateMyQuoteRequests' | 'UpdateOthersCarts' | 'UpdateOthersOrders' | 'UpdateOthersQuoteRequests' | 'UpdateParentUnit' | 'ViewMyCarts' | 'ViewMyOrders' | 'ViewMyQuoteRequests' | 'ViewMyQuotes' | 'ViewOthersCarts' | 'ViewOthersOrders' | 'ViewOthersQuoteRequests' | 'ViewOthersQuotes' | string;
|
|
50
|
+
export interface AssociateRoleAddPermissionAction {
|
|
51
|
+
readonly action: 'addPermission';
|
|
52
|
+
readonly permission: Permission;
|
|
53
|
+
}
|
|
54
|
+
export interface AssociateRoleChangeBuyerAssignableAction {
|
|
55
|
+
readonly action: 'changeBuyerAssignable';
|
|
56
|
+
readonly buyerAssignable: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface AssociateRoleRemovePermissionAction {
|
|
59
|
+
readonly action: 'removePermission';
|
|
60
|
+
readonly permission: Permission;
|
|
61
|
+
}
|
|
62
|
+
export interface AssociateRoleSetCustomFieldAction {
|
|
63
|
+
readonly action: 'setCustomField';
|
|
64
|
+
readonly name: string;
|
|
65
|
+
readonly value?: any;
|
|
66
|
+
}
|
|
67
|
+
export interface AssociateRoleSetCustomTypeAction {
|
|
68
|
+
readonly action: 'setCustomType';
|
|
69
|
+
readonly type?: TypeResourceIdentifier;
|
|
70
|
+
readonly fields?: FieldContainer;
|
|
71
|
+
}
|
|
72
|
+
export interface AssociateRoleSetNameAction {
|
|
73
|
+
readonly action: 'setName';
|
|
74
|
+
readonly name?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface AssociateRoleSetPermissionsAction {
|
|
77
|
+
readonly action: 'setPermissions';
|
|
78
|
+
readonly permissions?: Permission[];
|
|
79
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common';
|
|
2
|
+
export interface AttributeGroup extends BaseResource {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly version: number;
|
|
5
|
+
readonly createdAt: string;
|
|
6
|
+
readonly lastModifiedAt: string;
|
|
7
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
8
|
+
readonly createdBy?: CreatedBy;
|
|
9
|
+
readonly name: LocalizedString;
|
|
10
|
+
readonly description?: LocalizedString;
|
|
11
|
+
readonly attributes: AttributeReference[];
|
|
12
|
+
readonly key?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AttributeGroupDraft {
|
|
15
|
+
readonly name: LocalizedString;
|
|
16
|
+
readonly description?: LocalizedString;
|
|
17
|
+
readonly attributes: AttributeReference[];
|
|
18
|
+
readonly key?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AttributeGroupPagedQueryResponse {
|
|
21
|
+
readonly limit: number;
|
|
22
|
+
readonly offset: number;
|
|
23
|
+
readonly count: number;
|
|
24
|
+
readonly total?: number;
|
|
25
|
+
readonly results: AttributeGroup[];
|
|
26
|
+
}
|
|
27
|
+
export interface AttributeGroupReference {
|
|
28
|
+
readonly typeId: 'attribute-group';
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly obj?: AttributeGroup;
|
|
31
|
+
}
|
|
32
|
+
export interface AttributeGroupResourceIdentifier {
|
|
33
|
+
readonly typeId: 'attribute-group';
|
|
34
|
+
readonly id?: string;
|
|
35
|
+
readonly key?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AttributeGroupUpdate {
|
|
38
|
+
readonly version: number;
|
|
39
|
+
readonly actions: AttributeGroupUpdateAction[];
|
|
40
|
+
}
|
|
41
|
+
export type AttributeGroupUpdateAction = AttributeGroupAddAttributeAction | AttributeGroupChangeNameAction | AttributeGroupRemoveAttributeAction | AttributeGroupSetAttributesAction | AttributeGroupSetDescriptionAction | AttributeGroupSetKeyAction;
|
|
42
|
+
export interface AttributeReference {
|
|
43
|
+
readonly key: string;
|
|
44
|
+
}
|
|
45
|
+
export interface AttributeGroupAddAttributeAction {
|
|
46
|
+
readonly action: 'addAttribute';
|
|
47
|
+
readonly attribute: AttributeReference;
|
|
48
|
+
}
|
|
49
|
+
export interface AttributeGroupChangeNameAction {
|
|
50
|
+
readonly action: 'changeName';
|
|
51
|
+
readonly name: LocalizedString;
|
|
52
|
+
}
|
|
53
|
+
export interface AttributeGroupRemoveAttributeAction {
|
|
54
|
+
readonly action: 'removeAttribute';
|
|
55
|
+
readonly attribute: AttributeReference;
|
|
56
|
+
}
|
|
57
|
+
export interface AttributeGroupSetAttributesAction {
|
|
58
|
+
readonly action: 'setAttributes';
|
|
59
|
+
readonly attributes: AttributeReference[];
|
|
60
|
+
}
|
|
61
|
+
export interface AttributeGroupSetDescriptionAction {
|
|
62
|
+
readonly action: 'setDescription';
|
|
63
|
+
readonly description?: LocalizedString;
|
|
64
|
+
}
|
|
65
|
+
export interface AttributeGroupSetKeyAction {
|
|
66
|
+
readonly action: 'setKey';
|
|
67
|
+
readonly key?: string;
|
|
68
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { AssociateRoleKeyReference, AssociateRoleResourceIdentifier } from './associate-role';
|
|
2
|
+
import { Address, BaseAddress, CreatedBy, LastModifiedBy, _BaseAddress } from './common';
|
|
3
|
+
import { CustomerReference, CustomerResourceIdentifier } from './customer';
|
|
4
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store';
|
|
5
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
6
|
+
export interface Associate {
|
|
7
|
+
readonly associateRoleAssignments: AssociateRoleAssignment[];
|
|
8
|
+
readonly roles: AssociateRoleDeprecated[];
|
|
9
|
+
readonly customer: CustomerReference;
|
|
10
|
+
}
|
|
11
|
+
export interface AssociateDraft {
|
|
12
|
+
readonly associateRoleAssignments?: AssociateRoleAssignmentDraft[];
|
|
13
|
+
readonly roles?: AssociateRoleDeprecated[];
|
|
14
|
+
readonly customer: CustomerResourceIdentifier;
|
|
15
|
+
}
|
|
16
|
+
export interface AssociateRoleAssignment {
|
|
17
|
+
readonly associateRole: AssociateRoleKeyReference;
|
|
18
|
+
readonly inheritance: AssociateRoleInheritanceMode;
|
|
19
|
+
}
|
|
20
|
+
export interface AssociateRoleAssignmentDraft {
|
|
21
|
+
readonly associateRole: AssociateRoleResourceIdentifier;
|
|
22
|
+
readonly inheritance?: AssociateRoleInheritanceMode;
|
|
23
|
+
}
|
|
24
|
+
export type AssociateRoleDeprecated = 'Admin' | 'Buyer' | string;
|
|
25
|
+
export type AssociateRoleInheritanceMode = 'Disabled' | 'Enabled' | string;
|
|
26
|
+
export type BusinessUnit = Company | Division;
|
|
27
|
+
export type BusinessUnitAssociateMode = 'Explicit' | 'ExplicitAndFromParent' | string;
|
|
28
|
+
export type BusinessUnitDraft = CompanyDraft | DivisionDraft;
|
|
29
|
+
export interface BusinessUnitKeyReference {
|
|
30
|
+
readonly typeId: 'business-unit';
|
|
31
|
+
readonly key: string;
|
|
32
|
+
}
|
|
33
|
+
export interface BusinessUnitPagedQueryResponse {
|
|
34
|
+
readonly limit: number;
|
|
35
|
+
readonly offset: number;
|
|
36
|
+
readonly count: number;
|
|
37
|
+
readonly total?: number;
|
|
38
|
+
readonly results: BusinessUnit[];
|
|
39
|
+
}
|
|
40
|
+
export interface BusinessUnitReference {
|
|
41
|
+
readonly typeId: 'business-unit';
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly obj?: BusinessUnit;
|
|
44
|
+
}
|
|
45
|
+
export interface BusinessUnitResourceIdentifier {
|
|
46
|
+
readonly typeId: 'business-unit';
|
|
47
|
+
readonly id?: string;
|
|
48
|
+
readonly key?: string;
|
|
49
|
+
}
|
|
50
|
+
export type BusinessUnitStatus = 'Active' | 'Inactive' | string;
|
|
51
|
+
export type BusinessUnitStoreMode = 'Explicit' | 'FromParent' | string;
|
|
52
|
+
export type BusinessUnitType = 'Company' | 'Division' | string;
|
|
53
|
+
export interface BusinessUnitUpdate {
|
|
54
|
+
readonly version: number;
|
|
55
|
+
readonly actions: BusinessUnitUpdateAction[];
|
|
56
|
+
}
|
|
57
|
+
export type BusinessUnitUpdateAction = BusinessUnitAddAddressAction | BusinessUnitAddAssociateAction | BusinessUnitAddBillingAddressIdAction | BusinessUnitAddShippingAddressIdAction | BusinessUnitAddStoreAction | BusinessUnitChangeAddressAction | BusinessUnitChangeAssociateAction | BusinessUnitChangeAssociateModeAction | BusinessUnitChangeNameAction | BusinessUnitChangeParentUnitAction | BusinessUnitChangeStatusAction | BusinessUnitRemoveAddressAction | BusinessUnitRemoveAssociateAction | BusinessUnitRemoveBillingAddressIdAction | BusinessUnitRemoveShippingAddressIdAction | BusinessUnitRemoveStoreAction | BusinessUnitSetAddressCustomFieldAction | BusinessUnitSetAddressCustomTypeAction | BusinessUnitSetAssociatesAction | BusinessUnitSetContactEmailAction | BusinessUnitSetCustomFieldAction | BusinessUnitSetCustomTypeAction | BusinessUnitSetDefaultBillingAddressAction | BusinessUnitSetDefaultShippingAddressAction | BusinessUnitSetStoreModeAction | BusinessUnitSetStoresAction;
|
|
58
|
+
export interface Company {
|
|
59
|
+
readonly unitType: 'Company';
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly version: number;
|
|
62
|
+
readonly createdAt: string;
|
|
63
|
+
readonly lastModifiedAt: string;
|
|
64
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
65
|
+
readonly createdBy?: CreatedBy;
|
|
66
|
+
readonly key: string;
|
|
67
|
+
readonly status: BusinessUnitStatus;
|
|
68
|
+
readonly stores?: StoreKeyReference[];
|
|
69
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
70
|
+
readonly name: string;
|
|
71
|
+
readonly contactEmail?: string;
|
|
72
|
+
readonly custom?: CustomFields;
|
|
73
|
+
readonly addresses: Address[];
|
|
74
|
+
readonly shippingAddressIds?: string[];
|
|
75
|
+
readonly defaultShippingAddressId?: string;
|
|
76
|
+
readonly billingAddressIds?: string[];
|
|
77
|
+
readonly defaultBillingAddressId?: string;
|
|
78
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
79
|
+
readonly associates: Associate[];
|
|
80
|
+
readonly inheritedAssociates?: InheritedAssociate[];
|
|
81
|
+
readonly parentUnit?: BusinessUnitKeyReference;
|
|
82
|
+
readonly topLevelUnit: BusinessUnitKeyReference;
|
|
83
|
+
}
|
|
84
|
+
export interface CompanyDraft {
|
|
85
|
+
readonly unitType: 'Company';
|
|
86
|
+
readonly key: string;
|
|
87
|
+
readonly status?: BusinessUnitStatus;
|
|
88
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
89
|
+
readonly storeMode?: BusinessUnitStoreMode;
|
|
90
|
+
readonly name: string;
|
|
91
|
+
readonly contactEmail?: string;
|
|
92
|
+
readonly associateMode?: BusinessUnitAssociateMode;
|
|
93
|
+
readonly associates?: AssociateDraft[];
|
|
94
|
+
readonly addresses?: BaseAddress[];
|
|
95
|
+
readonly shippingAddresses?: number[];
|
|
96
|
+
readonly defaultShippingAddress?: number;
|
|
97
|
+
readonly billingAddresses?: number[];
|
|
98
|
+
readonly defaultBillingAddress?: number;
|
|
99
|
+
readonly custom?: CustomFieldsDraft;
|
|
100
|
+
}
|
|
101
|
+
export interface Division {
|
|
102
|
+
readonly unitType: 'Division';
|
|
103
|
+
readonly id: string;
|
|
104
|
+
readonly version: number;
|
|
105
|
+
readonly createdAt: string;
|
|
106
|
+
readonly lastModifiedAt: string;
|
|
107
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
108
|
+
readonly createdBy?: CreatedBy;
|
|
109
|
+
readonly key: string;
|
|
110
|
+
readonly status: BusinessUnitStatus;
|
|
111
|
+
readonly stores?: StoreKeyReference[];
|
|
112
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly contactEmail?: string;
|
|
115
|
+
readonly custom?: CustomFields;
|
|
116
|
+
readonly addresses: Address[];
|
|
117
|
+
readonly shippingAddressIds?: string[];
|
|
118
|
+
readonly defaultShippingAddressId?: string;
|
|
119
|
+
readonly billingAddressIds?: string[];
|
|
120
|
+
readonly defaultBillingAddressId?: string;
|
|
121
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
122
|
+
readonly associates: Associate[];
|
|
123
|
+
readonly inheritedAssociates?: InheritedAssociate[];
|
|
124
|
+
readonly parentUnit: BusinessUnitKeyReference;
|
|
125
|
+
readonly topLevelUnit: BusinessUnitKeyReference;
|
|
126
|
+
}
|
|
127
|
+
export interface DivisionDraft {
|
|
128
|
+
readonly unitType: 'Division';
|
|
129
|
+
readonly key: string;
|
|
130
|
+
readonly status?: BusinessUnitStatus;
|
|
131
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
132
|
+
readonly storeMode?: BusinessUnitStoreMode;
|
|
133
|
+
readonly name: string;
|
|
134
|
+
readonly contactEmail?: string;
|
|
135
|
+
readonly associateMode?: BusinessUnitAssociateMode;
|
|
136
|
+
readonly associates?: AssociateDraft[];
|
|
137
|
+
readonly addresses?: BaseAddress[];
|
|
138
|
+
readonly shippingAddresses?: number[];
|
|
139
|
+
readonly defaultShippingAddress?: number;
|
|
140
|
+
readonly billingAddresses?: number[];
|
|
141
|
+
readonly defaultBillingAddress?: number;
|
|
142
|
+
readonly custom?: CustomFieldsDraft;
|
|
143
|
+
readonly parentUnit: BusinessUnitResourceIdentifier;
|
|
144
|
+
}
|
|
145
|
+
export interface InheritedAssociate {
|
|
146
|
+
readonly associateRoleAssignments: InheritedAssociateRoleAssignment[];
|
|
147
|
+
readonly customer: CustomerReference;
|
|
148
|
+
}
|
|
149
|
+
export interface InheritedAssociateRoleAssignment {
|
|
150
|
+
readonly associateRole: AssociateRoleKeyReference;
|
|
151
|
+
readonly source: BusinessUnitKeyReference;
|
|
152
|
+
}
|
|
153
|
+
export interface BusinessUnitAddAddressAction {
|
|
154
|
+
readonly action: 'addAddress';
|
|
155
|
+
readonly address: _BaseAddress;
|
|
156
|
+
}
|
|
157
|
+
export interface BusinessUnitAddAssociateAction {
|
|
158
|
+
readonly action: 'addAssociate';
|
|
159
|
+
readonly associate: AssociateDraft;
|
|
160
|
+
}
|
|
161
|
+
export interface BusinessUnitAddBillingAddressIdAction {
|
|
162
|
+
readonly action: 'addBillingAddressId';
|
|
163
|
+
readonly addressId?: string;
|
|
164
|
+
readonly addressKey?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface BusinessUnitAddShippingAddressIdAction {
|
|
167
|
+
readonly action: 'addShippingAddressId';
|
|
168
|
+
readonly addressId?: string;
|
|
169
|
+
readonly addressKey?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface BusinessUnitAddStoreAction {
|
|
172
|
+
readonly action: 'addStore';
|
|
173
|
+
readonly store: StoreResourceIdentifier;
|
|
174
|
+
}
|
|
175
|
+
export interface BusinessUnitChangeAddressAction {
|
|
176
|
+
readonly action: 'changeAddress';
|
|
177
|
+
readonly addressId?: string;
|
|
178
|
+
readonly addressKey?: string;
|
|
179
|
+
readonly address: _BaseAddress;
|
|
180
|
+
}
|
|
181
|
+
export interface BusinessUnitChangeAssociateAction {
|
|
182
|
+
readonly action: 'changeAssociate';
|
|
183
|
+
readonly associate: AssociateDraft;
|
|
184
|
+
}
|
|
185
|
+
export interface BusinessUnitChangeAssociateModeAction {
|
|
186
|
+
readonly action: 'changeAssociateMode';
|
|
187
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
188
|
+
}
|
|
189
|
+
export interface BusinessUnitChangeNameAction {
|
|
190
|
+
readonly action: 'changeName';
|
|
191
|
+
readonly name: string;
|
|
192
|
+
}
|
|
193
|
+
export interface BusinessUnitChangeParentUnitAction {
|
|
194
|
+
readonly action: 'changeParentUnit';
|
|
195
|
+
readonly parentUnit: BusinessUnitResourceIdentifier;
|
|
196
|
+
}
|
|
197
|
+
export interface BusinessUnitChangeStatusAction {
|
|
198
|
+
readonly action: 'changeStatus';
|
|
199
|
+
readonly status: string;
|
|
200
|
+
}
|
|
201
|
+
export interface BusinessUnitRemoveAddressAction {
|
|
202
|
+
readonly action: 'removeAddress';
|
|
203
|
+
readonly addressId?: string;
|
|
204
|
+
readonly addressKey?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface BusinessUnitRemoveAssociateAction {
|
|
207
|
+
readonly action: 'removeAssociate';
|
|
208
|
+
readonly customer: CustomerResourceIdentifier;
|
|
209
|
+
}
|
|
210
|
+
export interface BusinessUnitRemoveBillingAddressIdAction {
|
|
211
|
+
readonly action: 'removeBillingAddressId';
|
|
212
|
+
readonly addressId?: string;
|
|
213
|
+
readonly addressKey?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface BusinessUnitRemoveShippingAddressIdAction {
|
|
216
|
+
readonly action: 'removeShippingAddressId';
|
|
217
|
+
readonly addressId?: string;
|
|
218
|
+
readonly addressKey?: string;
|
|
219
|
+
}
|
|
220
|
+
export interface BusinessUnitRemoveStoreAction {
|
|
221
|
+
readonly action: 'removeStore';
|
|
222
|
+
readonly store: StoreResourceIdentifier;
|
|
223
|
+
}
|
|
224
|
+
export interface BusinessUnitSetAddressCustomFieldAction {
|
|
225
|
+
readonly action: 'setAddressCustomField';
|
|
226
|
+
readonly addressId: string;
|
|
227
|
+
readonly name: string;
|
|
228
|
+
readonly value?: any;
|
|
229
|
+
}
|
|
230
|
+
export interface BusinessUnitSetAddressCustomTypeAction {
|
|
231
|
+
readonly action: 'setAddressCustomType';
|
|
232
|
+
readonly type?: TypeResourceIdentifier;
|
|
233
|
+
readonly fields?: FieldContainer;
|
|
234
|
+
readonly addressId: string;
|
|
235
|
+
}
|
|
236
|
+
export interface BusinessUnitSetAssociatesAction {
|
|
237
|
+
readonly action: 'setAssociates';
|
|
238
|
+
readonly associates: AssociateDraft[];
|
|
239
|
+
}
|
|
240
|
+
export interface BusinessUnitSetContactEmailAction {
|
|
241
|
+
readonly action: 'setContactEmail';
|
|
242
|
+
readonly contactEmail?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface BusinessUnitSetCustomFieldAction {
|
|
245
|
+
readonly action: 'setCustomField';
|
|
246
|
+
readonly name: string;
|
|
247
|
+
readonly value?: any;
|
|
248
|
+
}
|
|
249
|
+
export interface BusinessUnitSetCustomTypeAction {
|
|
250
|
+
readonly action: 'setCustomType';
|
|
251
|
+
readonly type?: TypeResourceIdentifier;
|
|
252
|
+
readonly fields?: FieldContainer;
|
|
253
|
+
}
|
|
254
|
+
export interface BusinessUnitSetDefaultBillingAddressAction {
|
|
255
|
+
readonly action: 'setDefaultBillingAddress';
|
|
256
|
+
readonly addressId?: string;
|
|
257
|
+
readonly addressKey?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface BusinessUnitSetDefaultShippingAddressAction {
|
|
260
|
+
readonly action: 'setDefaultShippingAddress';
|
|
261
|
+
readonly addressId?: string;
|
|
262
|
+
readonly addressKey?: string;
|
|
263
|
+
}
|
|
264
|
+
export interface BusinessUnitSetStoreModeAction {
|
|
265
|
+
readonly action: 'setStoreMode';
|
|
266
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
267
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
268
|
+
}
|
|
269
|
+
export interface BusinessUnitSetStoresAction {
|
|
270
|
+
readonly action: 'setStores';
|
|
271
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
272
|
+
}
|
|
@@ -129,8 +129,8 @@ export interface MultiBuyLineItemsTarget {
|
|
|
129
129
|
readonly maxOccurrence?: number;
|
|
130
130
|
readonly selectionMode: SelectionMode;
|
|
131
131
|
}
|
|
132
|
-
export type SelectionMode = 'Cheapest' | 'MostExpensive';
|
|
133
|
-
export type StackingMode = 'Stacking' | 'StopAfterThisDiscount';
|
|
132
|
+
export type SelectionMode = 'Cheapest' | 'MostExpensive' | string;
|
|
133
|
+
export type StackingMode = 'Stacking' | 'StopAfterThisDiscount' | string;
|
|
134
134
|
export interface CartDiscountChangeCartPredicateAction {
|
|
135
135
|
readonly action: 'changeCartPredicate';
|
|
136
136
|
readonly cartPredicate: string;
|