@gradientedge/commercetools-utils 4.11.1 → 4.12.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 +2 -0
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-browser.esm.js +2 -0
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -0
- package/dist/ge-commercetools-utils-node.cjs.js +2 -0
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-node.esm.js +1 -0
- package/dist/typings/api/CommercetoolsApi.d.ts +436 -0
- package/{build → dist/typings}/api/index.d.ts +0 -1
- package/dist/typings/api/types.d.ts +12 -0
- package/dist/typings/auth/CommercetoolsAuth.d.ts +22 -0
- package/dist/typings/auth/CommercetoolsAuthApi.d.ts +21 -0
- package/dist/typings/auth/CommercetoolsGrant.d.ts +13 -0
- package/{build → dist/typings}/auth/constants.d.ts +0 -4
- package/dist/typings/auth/index.d.ts +3 -0
- package/dist/typings/auth/scopes.d.ts +2 -0
- package/dist/typings/auth/types.d.ts +43 -0
- package/{build → dist/typings}/auth/utils.d.ts +0 -1
- package/dist/typings/constants.d.ts +1 -0
- package/dist/typings/error/CommercetoolsError.d.ts +16 -0
- package/{build → dist/typings}/error/index.d.ts +0 -1
- package/dist/typings/index.d.ts +6 -0
- package/dist/typings/models/cart-discount.d.ts +196 -0
- package/dist/typings/models/cart.d.ts +597 -0
- package/dist/typings/models/category.d.ts +166 -0
- package/dist/typings/models/channel.d.ts +103 -0
- package/dist/typings/models/common.d.ts +232 -0
- package/dist/typings/models/custom-object.d.ts +30 -0
- package/dist/typings/models/customer-group.d.ts +58 -0
- package/dist/typings/models/customer.d.ts +276 -0
- package/dist/typings/models/discount-code.d.ts +116 -0
- package/dist/typings/models/error.d.ts +412 -0
- package/dist/typings/models/extension.d.ts +78 -0
- package/dist/typings/models/graph-ql.d.ts +21 -0
- package/dist/typings/models/index.d.ts +33 -0
- package/dist/typings/models/inventory.d.ts +82 -0
- package/dist/typings/models/me.d.ts +481 -0
- package/dist/typings/models/message.d.ts +1823 -0
- package/dist/typings/models/order-edit.d.ts +565 -0
- package/dist/typings/models/order.d.ts +558 -0
- package/dist/typings/models/payment.d.ts +208 -0
- package/dist/typings/models/product-discount.d.ts +123 -0
- package/dist/typings/models/product-selection.d.ts +106 -0
- package/dist/typings/models/product-type.d.ts +216 -0
- package/dist/typings/models/product.d.ts +517 -0
- package/dist/typings/models/project.d.ts +108 -0
- package/dist/typings/models/review.d.ts +115 -0
- package/dist/typings/models/scalar-types.d.ts +4 -0
- package/dist/typings/models/shipping-method.d.ts +160 -0
- package/dist/typings/models/shopping-list.d.ts +217 -0
- package/dist/typings/models/state.d.ts +86 -0
- package/dist/typings/models/store.d.ts +121 -0
- package/dist/typings/models/subscription.d.ts +148 -0
- package/dist/typings/models/tax-category.d.ts +87 -0
- package/dist/typings/models/type.d.ts +182 -0
- package/dist/typings/models/zone.d.ts +65 -0
- package/dist/typings/types.d.ts +21 -0
- package/dist/typings/utils/format.d.ts +1 -0
- package/{build → dist/typings}/utils/index.d.ts +0 -1
- package/dist/typings/utils/mask.d.ts +6 -0
- package/dist/typings/utils/useragent.d.ts +1 -0
- package/package.json +40 -18
- package/.husky/pre-commit +0 -4
- package/.nvmrc +0 -1
- package/build/api/CommercetoolsApi.d.ts +0 -1096
- package/build/api/CommercetoolsApi.d.ts.map +0 -1
- package/build/api/CommercetoolsApi.js +0 -1419
- package/build/api/CommercetoolsApi.js.map +0 -1
- package/build/api/index.d.ts.map +0 -1
- package/build/api/index.js +0 -15
- package/build/api/index.js.map +0 -1
- package/build/api/types.d.ts +0 -33
- package/build/api/types.d.ts.map +0 -1
- package/build/api/types.js +0 -3
- package/build/api/types.js.map +0 -1
- package/build/auth/CommercetoolsAuth.d.ts +0 -182
- package/build/auth/CommercetoolsAuth.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuth.js +0 -326
- package/build/auth/CommercetoolsAuth.js.map +0 -1
- package/build/auth/CommercetoolsAuthApi.d.ts +0 -74
- package/build/auth/CommercetoolsAuthApi.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuthApi.js +0 -249
- package/build/auth/CommercetoolsAuthApi.js.map +0 -1
- package/build/auth/CommercetoolsGrant.d.ts +0 -66
- package/build/auth/CommercetoolsGrant.d.ts.map +0 -1
- package/build/auth/CommercetoolsGrant.js +0 -82
- package/build/auth/CommercetoolsGrant.js.map +0 -1
- package/build/auth/constants.d.ts.map +0 -1
- package/build/auth/constants.js +0 -32
- package/build/auth/constants.js.map +0 -1
- package/build/auth/index.d.ts +0 -4
- package/build/auth/index.d.ts.map +0 -1
- package/build/auth/index.js +0 -18
- package/build/auth/index.js.map +0 -1
- package/build/auth/scopes.d.ts +0 -11
- package/build/auth/scopes.d.ts.map +0 -1
- package/build/auth/scopes.js +0 -30
- package/build/auth/scopes.js.map +0 -1
- package/build/auth/types.d.ts +0 -120
- package/build/auth/types.d.ts.map +0 -1
- package/build/auth/types.js +0 -28
- package/build/auth/types.js.map +0 -1
- package/build/auth/utils.d.ts.map +0 -1
- package/build/auth/utils.js +0 -8
- package/build/auth/utils.js.map +0 -1
- package/build/constants.d.ts +0 -6
- package/build/constants.d.ts.map +0 -1
- package/build/constants.js +0 -9
- package/build/constants.js.map +0 -1
- package/build/error/CommercetoolsError.d.ts +0 -38
- package/build/error/CommercetoolsError.d.ts.map +0 -1
- package/build/error/CommercetoolsError.js +0 -117
- package/build/error/CommercetoolsError.js.map +0 -1
- package/build/error/index.d.ts.map +0 -1
- package/build/error/index.js +0 -14
- package/build/error/index.js.map +0 -1
- package/build/index.d.ts +0 -7
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -21
- package/build/index.js.map +0 -1
- package/build/types.d.ts +0 -44
- package/build/types.d.ts.map +0 -1
- package/build/types.js +0 -16
- package/build/types.js.map +0 -1
- package/build/utils/format.d.ts +0 -11
- package/build/utils/format.d.ts.map +0 -1
- package/build/utils/format.js +0 -48
- package/build/utils/format.js.map +0 -1
- package/build/utils/index.d.ts.map +0 -1
- package/build/utils/index.js +0 -16
- package/build/utils/index.js.map +0 -1
- package/build/utils/mask.d.ts +0 -28
- package/build/utils/mask.d.ts.map +0 -1
- package/build/utils/mask.js +0 -56
- package/build/utils/mask.js.map +0 -1
- package/build/utils/useragent.d.ts +0 -10
- package/build/utils/useragent.d.ts.map +0 -1
- package/build/utils/useragent.js +0 -20
- package/build/utils/useragent.js.map +0 -1
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { DiscountCodeInfo, ExternalLineItemTotalPrice, ExternalTaxRateDraft, InventoryMode, ItemShippingDetailsDraft, ItemShippingTarget, TaxMode } from './cart';
|
|
2
|
+
import { ChannelResourceIdentifier } from './channel';
|
|
3
|
+
import { BaseAddress, LocalizedString, Money, TypedMoney } from './common';
|
|
4
|
+
import { CustomerReference } from './customer';
|
|
5
|
+
import { DiscountCodeReference } from './discount-code';
|
|
6
|
+
import { PaymentMethodInfo, PaymentResourceIdentifier, Transaction, TransactionDraft, TransactionType } from './payment';
|
|
7
|
+
import { ShippingMethodResourceIdentifier } from './shipping-method';
|
|
8
|
+
import { ShoppingListLineItemDraft, TextLineItemDraft } from './shopping-list';
|
|
9
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store';
|
|
10
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
11
|
+
export interface MyCartDraft {
|
|
12
|
+
readonly currency: string;
|
|
13
|
+
readonly customerEmail?: string;
|
|
14
|
+
readonly country?: string;
|
|
15
|
+
readonly inventoryMode?: InventoryMode;
|
|
16
|
+
readonly lineItems?: MyLineItemDraft[];
|
|
17
|
+
readonly shippingAddress?: BaseAddress;
|
|
18
|
+
readonly billingAddress?: BaseAddress;
|
|
19
|
+
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
20
|
+
readonly custom?: CustomFieldsDraft;
|
|
21
|
+
readonly locale?: string;
|
|
22
|
+
readonly taxMode?: TaxMode;
|
|
23
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
24
|
+
readonly itemShippingAddresses?: BaseAddress[];
|
|
25
|
+
readonly store?: StoreKeyReference;
|
|
26
|
+
readonly discountCodes?: DiscountCodeInfo[];
|
|
27
|
+
}
|
|
28
|
+
export interface MyCartUpdate {
|
|
29
|
+
readonly version: number;
|
|
30
|
+
readonly actions: MyCartUpdateAction[];
|
|
31
|
+
}
|
|
32
|
+
export declare type MyCartUpdateAction = MyCartAddDiscountCodeAction | MyCartAddItemShippingAddressAction | MyCartAddLineItemAction | MyCartAddPaymentAction | MyCartApplyDeltaToLineItemShippingDetailsTargetsAction | MyCartChangeLineItemQuantityAction | MyCartChangeTaxModeAction | MyCartRecalculateAction | MyCartRemoveDiscountCodeAction | MyCartRemoveItemShippingAddressAction | MyCartRemoveLineItemAction | MyCartRemovePaymentAction | MyCartSetBillingAddressAction | MyCartSetCountryAction | MyCartSetCustomFieldAction | MyCartSetCustomTypeAction | MyCartSetCustomerEmailAction | MyCartSetDeleteDaysAfterLastModificationAction | MyCartSetLineItemCustomFieldAction | MyCartSetLineItemCustomTypeAction | MyCartSetLineItemDistributionChannelAction | MyCartSetLineItemShippingDetailsAction | MyCartSetLineItemSupplyChannelAction | MyCartSetLocaleAction | MyCartSetShippingAddressAction | MyCartSetShippingMethodAction | MyCartUpdateItemShippingAddressAction;
|
|
33
|
+
export interface MyCustomerDraft {
|
|
34
|
+
readonly email: string;
|
|
35
|
+
readonly password: string;
|
|
36
|
+
readonly firstName?: string;
|
|
37
|
+
readonly lastName?: string;
|
|
38
|
+
readonly middleName?: string;
|
|
39
|
+
readonly title?: string;
|
|
40
|
+
readonly dateOfBirth?: string;
|
|
41
|
+
readonly companyName?: string;
|
|
42
|
+
readonly vatId?: string;
|
|
43
|
+
readonly addresses?: BaseAddress[];
|
|
44
|
+
readonly defaultShippingAddress?: number;
|
|
45
|
+
readonly defaultBillingAddress?: number;
|
|
46
|
+
readonly custom?: CustomFields;
|
|
47
|
+
readonly locale?: string;
|
|
48
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
49
|
+
}
|
|
50
|
+
export interface MyCustomerUpdate {
|
|
51
|
+
readonly version: number;
|
|
52
|
+
readonly actions: MyCustomerUpdateAction[];
|
|
53
|
+
}
|
|
54
|
+
export declare type MyCustomerUpdateAction = MyCustomerAddAddressAction | MyCustomerAddBillingAddressIdAction | MyCustomerAddShippingAddressIdAction | MyCustomerChangeAddressAction | MyCustomerChangeEmailAction | MyCustomerRemoveAddressAction | MyCustomerRemoveBillingAddressIdAction | MyCustomerRemoveShippingAddressIdAction | MyCustomerSetCompanyNameAction | MyCustomerSetCustomFieldAction | MyCustomerSetCustomTypeAction | MyCustomerSetDateOfBirthAction | MyCustomerSetDefaultBillingAddressAction | MyCustomerSetDefaultShippingAddressAction | MyCustomerSetFirstNameAction | MyCustomerSetLastNameAction | MyCustomerSetLocaleAction | MyCustomerSetMiddleNameAction | MyCustomerSetSalutationAction | MyCustomerSetTitleAction | MyCustomerSetVatIdAction;
|
|
55
|
+
export interface MyLineItemDraft {
|
|
56
|
+
readonly productId?: string;
|
|
57
|
+
readonly variantId?: number;
|
|
58
|
+
readonly quantity: number;
|
|
59
|
+
readonly addedAt?: string;
|
|
60
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
61
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
62
|
+
readonly custom?: CustomFieldsDraft;
|
|
63
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
64
|
+
readonly sku?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface MyOrderFromCartDraft {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
readonly version: number;
|
|
69
|
+
}
|
|
70
|
+
export interface MyPayment {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly version: number;
|
|
73
|
+
readonly customer?: CustomerReference;
|
|
74
|
+
readonly anonymousId?: string;
|
|
75
|
+
readonly amountPlanned: TypedMoney;
|
|
76
|
+
readonly paymentMethodInfo: PaymentMethodInfo;
|
|
77
|
+
readonly transactions: Transaction[];
|
|
78
|
+
readonly custom?: CustomFields;
|
|
79
|
+
}
|
|
80
|
+
export interface MyPaymentDraft {
|
|
81
|
+
readonly amountPlanned: Money;
|
|
82
|
+
readonly paymentMethodInfo?: PaymentMethodInfo;
|
|
83
|
+
readonly custom?: CustomFieldsDraft;
|
|
84
|
+
readonly transaction?: MyTransactionDraft;
|
|
85
|
+
}
|
|
86
|
+
export interface MyPaymentPagedQueryResponse {
|
|
87
|
+
readonly limit: number;
|
|
88
|
+
readonly count: number;
|
|
89
|
+
readonly total?: number;
|
|
90
|
+
readonly offset: number;
|
|
91
|
+
readonly results: MyPayment[];
|
|
92
|
+
}
|
|
93
|
+
export interface MyPaymentUpdate {
|
|
94
|
+
readonly version: number;
|
|
95
|
+
readonly actions: MyPaymentUpdateAction[];
|
|
96
|
+
}
|
|
97
|
+
export declare type MyPaymentUpdateAction = MyPaymentAddTransactionAction | MyPaymentChangeAmountPlannedAction | MyPaymentSetCustomFieldAction | MyPaymentSetMethodInfoInterfaceAction | MyPaymentSetMethodInfoMethodAction | MyPaymentSetMethodInfoNameAction | MyPaymentSetTransactionCustomFieldAction;
|
|
98
|
+
export interface MyShoppingListDraft {
|
|
99
|
+
readonly name: LocalizedString;
|
|
100
|
+
readonly description?: LocalizedString;
|
|
101
|
+
readonly lineItems?: ShoppingListLineItemDraft[];
|
|
102
|
+
readonly textLineItems?: TextLineItemDraft[];
|
|
103
|
+
readonly custom?: CustomFieldsDraft;
|
|
104
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
105
|
+
readonly store?: StoreResourceIdentifier;
|
|
106
|
+
}
|
|
107
|
+
export interface MyShoppingListUpdate {
|
|
108
|
+
readonly version: number;
|
|
109
|
+
readonly actions: MyShoppingListUpdateAction[];
|
|
110
|
+
}
|
|
111
|
+
export declare type MyShoppingListUpdateAction = MyShoppingListAddLineItemAction | MyShoppingListAddTextLineItemAction | MyShoppingListChangeLineItemQuantityAction | MyShoppingListChangeLineItemsOrderAction | MyShoppingListChangeNameAction | MyShoppingListChangeTextLineItemNameAction | MyShoppingListChangeTextLineItemQuantityAction | MyShoppingListChangeTextLineItemsOrderAction | MyShoppingListRemoveLineItemAction | MyShoppingListRemoveTextLineItemAction | MyShoppingListSetCustomFieldAction | MyShoppingListSetCustomTypeAction | MyShoppingListSetDeleteDaysAfterLastModificationAction | MyShoppingListSetDescriptionAction | MyShoppingListSetLineItemCustomFieldAction | MyShoppingListSetLineItemCustomTypeAction | MyShoppingListSetTextLineItemCustomFieldAction | MyShoppingListSetTextLineItemCustomTypeAction | MyShoppingListSetTextLineItemDescriptionAction;
|
|
112
|
+
export interface MyTransactionDraft {
|
|
113
|
+
readonly timestamp?: string;
|
|
114
|
+
readonly type: TransactionType;
|
|
115
|
+
readonly amount: Money;
|
|
116
|
+
readonly interactionId?: string;
|
|
117
|
+
readonly custom?: CustomFields;
|
|
118
|
+
}
|
|
119
|
+
export interface MyCartAddDiscountCodeAction {
|
|
120
|
+
readonly action: 'addDiscountCode';
|
|
121
|
+
readonly code: string;
|
|
122
|
+
}
|
|
123
|
+
export interface MyCartAddItemShippingAddressAction {
|
|
124
|
+
readonly action: 'addItemShippingAddress';
|
|
125
|
+
readonly address: BaseAddress;
|
|
126
|
+
}
|
|
127
|
+
export interface MyCartAddLineItemAction {
|
|
128
|
+
readonly action: 'addLineItem';
|
|
129
|
+
readonly custom?: CustomFieldsDraft;
|
|
130
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
131
|
+
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
132
|
+
readonly productId?: string;
|
|
133
|
+
readonly variantId?: number;
|
|
134
|
+
readonly sku?: string;
|
|
135
|
+
readonly quantity?: number;
|
|
136
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
137
|
+
readonly externalPrice?: Money;
|
|
138
|
+
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
139
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
140
|
+
readonly addedAt?: string;
|
|
141
|
+
}
|
|
142
|
+
export interface MyCartAddPaymentAction {
|
|
143
|
+
readonly action: 'addPayment';
|
|
144
|
+
readonly payment: PaymentResourceIdentifier;
|
|
145
|
+
}
|
|
146
|
+
export interface MyCartApplyDeltaToLineItemShippingDetailsTargetsAction {
|
|
147
|
+
readonly action: 'applyDeltaToLineItemShippingDetailsTargets';
|
|
148
|
+
readonly lineItemId: string;
|
|
149
|
+
readonly targetsDelta: ItemShippingTarget[];
|
|
150
|
+
}
|
|
151
|
+
export interface MyCartChangeLineItemQuantityAction {
|
|
152
|
+
readonly action: 'changeLineItemQuantity';
|
|
153
|
+
readonly lineItemId: string;
|
|
154
|
+
readonly quantity: number;
|
|
155
|
+
readonly externalPrice?: Money;
|
|
156
|
+
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
157
|
+
}
|
|
158
|
+
export interface MyCartChangeTaxModeAction {
|
|
159
|
+
readonly action: 'changeTaxMode';
|
|
160
|
+
readonly taxMode: TaxMode;
|
|
161
|
+
}
|
|
162
|
+
export interface MyCartRecalculateAction {
|
|
163
|
+
readonly action: 'recalculate';
|
|
164
|
+
readonly updateProductData?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface MyCartRemoveDiscountCodeAction {
|
|
167
|
+
readonly action: 'removeDiscountCode';
|
|
168
|
+
readonly discountCode: DiscountCodeReference;
|
|
169
|
+
}
|
|
170
|
+
export interface MyCartRemoveItemShippingAddressAction {
|
|
171
|
+
readonly action: 'removeItemShippingAddress';
|
|
172
|
+
readonly addressKey: string;
|
|
173
|
+
}
|
|
174
|
+
export interface MyCartRemoveLineItemAction {
|
|
175
|
+
readonly action: 'removeLineItem';
|
|
176
|
+
readonly lineItemId: string;
|
|
177
|
+
readonly quantity?: number;
|
|
178
|
+
readonly externalPrice?: Money;
|
|
179
|
+
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
180
|
+
readonly shippingDetailsToRemove?: ItemShippingDetailsDraft;
|
|
181
|
+
}
|
|
182
|
+
export interface MyCartRemovePaymentAction {
|
|
183
|
+
readonly action: 'removePayment';
|
|
184
|
+
readonly payment: PaymentResourceIdentifier;
|
|
185
|
+
}
|
|
186
|
+
export interface MyCartSetBillingAddressAction {
|
|
187
|
+
readonly action: 'setBillingAddress';
|
|
188
|
+
readonly address?: BaseAddress;
|
|
189
|
+
}
|
|
190
|
+
export interface MyCartSetCountryAction {
|
|
191
|
+
readonly action: 'setCountry';
|
|
192
|
+
readonly country?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface MyCartSetCustomFieldAction {
|
|
195
|
+
readonly action: 'setCustomField';
|
|
196
|
+
readonly name: string;
|
|
197
|
+
readonly value?: any;
|
|
198
|
+
}
|
|
199
|
+
export interface MyCartSetCustomTypeAction {
|
|
200
|
+
readonly action: 'setCustomType';
|
|
201
|
+
readonly type?: TypeResourceIdentifier;
|
|
202
|
+
readonly fields?: FieldContainer;
|
|
203
|
+
}
|
|
204
|
+
export interface MyCartSetCustomerEmailAction {
|
|
205
|
+
readonly action: 'setCustomerEmail';
|
|
206
|
+
readonly email?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface MyCartSetDeleteDaysAfterLastModificationAction {
|
|
209
|
+
readonly action: 'setDeleteDaysAfterLastModification';
|
|
210
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
211
|
+
}
|
|
212
|
+
export interface MyCartSetLineItemCustomFieldAction {
|
|
213
|
+
readonly action: 'setLineItemCustomField';
|
|
214
|
+
readonly lineItemId: string;
|
|
215
|
+
readonly name: string;
|
|
216
|
+
readonly value?: any;
|
|
217
|
+
}
|
|
218
|
+
export interface MyCartSetLineItemCustomTypeAction {
|
|
219
|
+
readonly action: 'setLineItemCustomType';
|
|
220
|
+
readonly lineItemId: string;
|
|
221
|
+
readonly type?: TypeResourceIdentifier;
|
|
222
|
+
readonly fields?: FieldContainer;
|
|
223
|
+
}
|
|
224
|
+
export interface MyCartSetLineItemDistributionChannelAction {
|
|
225
|
+
readonly action: 'setLineItemDistributionChannel';
|
|
226
|
+
readonly lineItemId: string;
|
|
227
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
228
|
+
}
|
|
229
|
+
export interface MyCartSetLineItemShippingDetailsAction {
|
|
230
|
+
readonly action: 'setLineItemShippingDetails';
|
|
231
|
+
readonly lineItemId: string;
|
|
232
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
233
|
+
}
|
|
234
|
+
export interface MyCartSetLineItemSupplyChannelAction {
|
|
235
|
+
readonly action: 'setLineItemSupplyChannel';
|
|
236
|
+
readonly lineItemId: string;
|
|
237
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
238
|
+
}
|
|
239
|
+
export interface MyCartSetLocaleAction {
|
|
240
|
+
readonly action: 'setLocale';
|
|
241
|
+
readonly locale?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface MyCartSetShippingAddressAction {
|
|
244
|
+
readonly action: 'setShippingAddress';
|
|
245
|
+
readonly address?: BaseAddress;
|
|
246
|
+
}
|
|
247
|
+
export interface MyCartSetShippingMethodAction {
|
|
248
|
+
readonly action: 'setShippingMethod';
|
|
249
|
+
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
250
|
+
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
251
|
+
}
|
|
252
|
+
export interface MyCartUpdateItemShippingAddressAction {
|
|
253
|
+
readonly action: 'updateItemShippingAddress';
|
|
254
|
+
readonly address: BaseAddress;
|
|
255
|
+
}
|
|
256
|
+
export interface MyCustomerAddAddressAction {
|
|
257
|
+
readonly action: 'addAddress';
|
|
258
|
+
readonly address: BaseAddress;
|
|
259
|
+
}
|
|
260
|
+
export interface MyCustomerAddBillingAddressIdAction {
|
|
261
|
+
readonly action: 'addBillingAddressId';
|
|
262
|
+
readonly addressId?: string;
|
|
263
|
+
readonly addressKey?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface MyCustomerAddShippingAddressIdAction {
|
|
266
|
+
readonly action: 'addShippingAddressId';
|
|
267
|
+
readonly addressId?: string;
|
|
268
|
+
readonly addressKey?: string;
|
|
269
|
+
}
|
|
270
|
+
export interface MyCustomerChangeAddressAction {
|
|
271
|
+
readonly action: 'changeAddress';
|
|
272
|
+
readonly addressId?: string;
|
|
273
|
+
readonly addressKey?: string;
|
|
274
|
+
readonly address: BaseAddress;
|
|
275
|
+
}
|
|
276
|
+
export interface MyCustomerChangeEmailAction {
|
|
277
|
+
readonly action: 'changeEmail';
|
|
278
|
+
readonly email: string;
|
|
279
|
+
}
|
|
280
|
+
export interface MyCustomerRemoveAddressAction {
|
|
281
|
+
readonly action: 'removeAddress';
|
|
282
|
+
readonly addressId?: string;
|
|
283
|
+
readonly addressKey?: string;
|
|
284
|
+
}
|
|
285
|
+
export interface MyCustomerRemoveBillingAddressIdAction {
|
|
286
|
+
readonly action: 'removeBillingAddressId';
|
|
287
|
+
readonly addressId?: string;
|
|
288
|
+
readonly addressKey?: string;
|
|
289
|
+
}
|
|
290
|
+
export interface MyCustomerRemoveShippingAddressIdAction {
|
|
291
|
+
readonly action: 'removeShippingAddressId';
|
|
292
|
+
readonly addressId?: string;
|
|
293
|
+
readonly addressKey?: string;
|
|
294
|
+
}
|
|
295
|
+
export interface MyCustomerSetCompanyNameAction {
|
|
296
|
+
readonly action: 'setCompanyName';
|
|
297
|
+
readonly companyName?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface MyCustomerSetCustomFieldAction {
|
|
300
|
+
readonly action: 'setCustomField';
|
|
301
|
+
readonly name: string;
|
|
302
|
+
readonly value?: any;
|
|
303
|
+
}
|
|
304
|
+
export interface MyCustomerSetCustomTypeAction {
|
|
305
|
+
readonly action: 'setCustomType';
|
|
306
|
+
readonly type?: TypeResourceIdentifier;
|
|
307
|
+
readonly fields?: FieldContainer;
|
|
308
|
+
}
|
|
309
|
+
export interface MyCustomerSetDateOfBirthAction {
|
|
310
|
+
readonly action: 'setDateOfBirth';
|
|
311
|
+
readonly dateOfBirth?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface MyCustomerSetDefaultBillingAddressAction {
|
|
314
|
+
readonly action: 'setDefaultBillingAddress';
|
|
315
|
+
readonly addressId?: string;
|
|
316
|
+
readonly addressKey?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface MyCustomerSetDefaultShippingAddressAction {
|
|
319
|
+
readonly action: 'setDefaultShippingAddress';
|
|
320
|
+
readonly addressId?: string;
|
|
321
|
+
readonly addressKey?: string;
|
|
322
|
+
}
|
|
323
|
+
export interface MyCustomerSetFirstNameAction {
|
|
324
|
+
readonly action: 'setFirstName';
|
|
325
|
+
readonly firstName?: string;
|
|
326
|
+
}
|
|
327
|
+
export interface MyCustomerSetLastNameAction {
|
|
328
|
+
readonly action: 'setLastName';
|
|
329
|
+
readonly lastName?: string;
|
|
330
|
+
}
|
|
331
|
+
export interface MyCustomerSetLocaleAction {
|
|
332
|
+
readonly action: 'setLocale';
|
|
333
|
+
readonly locale?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface MyCustomerSetMiddleNameAction {
|
|
336
|
+
readonly action: 'setMiddleName';
|
|
337
|
+
readonly middleName?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface MyCustomerSetSalutationAction {
|
|
340
|
+
readonly action: 'setSalutation';
|
|
341
|
+
readonly salutation?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface MyCustomerSetTitleAction {
|
|
344
|
+
readonly action: 'setTitle';
|
|
345
|
+
readonly title?: string;
|
|
346
|
+
}
|
|
347
|
+
export interface MyCustomerSetVatIdAction {
|
|
348
|
+
readonly action: 'setVatId';
|
|
349
|
+
readonly vatId?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface MyPaymentAddTransactionAction {
|
|
352
|
+
readonly action: 'addTransaction';
|
|
353
|
+
readonly transaction: TransactionDraft;
|
|
354
|
+
}
|
|
355
|
+
export interface MyPaymentChangeAmountPlannedAction {
|
|
356
|
+
readonly action: 'changeAmountPlanned';
|
|
357
|
+
readonly amount: Money;
|
|
358
|
+
}
|
|
359
|
+
export interface MyPaymentSetCustomFieldAction {
|
|
360
|
+
readonly action: 'setCustomField';
|
|
361
|
+
readonly name: string;
|
|
362
|
+
readonly value?: any;
|
|
363
|
+
}
|
|
364
|
+
export interface MyPaymentSetMethodInfoInterfaceAction {
|
|
365
|
+
readonly action: 'setMethodInfoInterface';
|
|
366
|
+
readonly interface: string;
|
|
367
|
+
}
|
|
368
|
+
export interface MyPaymentSetMethodInfoMethodAction {
|
|
369
|
+
readonly action: 'setMethodInfoMethod';
|
|
370
|
+
readonly method?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface MyPaymentSetMethodInfoNameAction {
|
|
373
|
+
readonly action: 'setMethodInfoName';
|
|
374
|
+
readonly name?: LocalizedString;
|
|
375
|
+
}
|
|
376
|
+
export interface MyPaymentSetTransactionCustomFieldAction {
|
|
377
|
+
readonly action: 'setTransactionCustomField';
|
|
378
|
+
readonly name: string;
|
|
379
|
+
readonly value?: any;
|
|
380
|
+
}
|
|
381
|
+
export interface MyShoppingListAddLineItemAction {
|
|
382
|
+
readonly action: 'addLineItem';
|
|
383
|
+
readonly sku?: string;
|
|
384
|
+
readonly productId?: string;
|
|
385
|
+
readonly variantId?: number;
|
|
386
|
+
readonly quantity?: number;
|
|
387
|
+
readonly addedAt?: string;
|
|
388
|
+
readonly custom?: CustomFieldsDraft;
|
|
389
|
+
}
|
|
390
|
+
export interface MyShoppingListAddTextLineItemAction {
|
|
391
|
+
readonly action: 'addTextLineItem';
|
|
392
|
+
readonly name: LocalizedString;
|
|
393
|
+
readonly description?: LocalizedString;
|
|
394
|
+
readonly quantity?: number;
|
|
395
|
+
readonly addedAt?: string;
|
|
396
|
+
readonly custom?: CustomFieldsDraft;
|
|
397
|
+
}
|
|
398
|
+
export interface MyShoppingListChangeLineItemQuantityAction {
|
|
399
|
+
readonly action: 'changeLineItemQuantity';
|
|
400
|
+
readonly lineItemId: string;
|
|
401
|
+
readonly quantity: number;
|
|
402
|
+
}
|
|
403
|
+
export interface MyShoppingListChangeLineItemsOrderAction {
|
|
404
|
+
readonly action: 'changeLineItemsOrder';
|
|
405
|
+
readonly lineItemOrder: string[];
|
|
406
|
+
}
|
|
407
|
+
export interface MyShoppingListChangeNameAction {
|
|
408
|
+
readonly action: 'changeName';
|
|
409
|
+
readonly name: LocalizedString;
|
|
410
|
+
}
|
|
411
|
+
export interface MyShoppingListChangeTextLineItemNameAction {
|
|
412
|
+
readonly action: 'changeTextLineItemName';
|
|
413
|
+
readonly textLineItemId: string;
|
|
414
|
+
readonly name: LocalizedString;
|
|
415
|
+
}
|
|
416
|
+
export interface MyShoppingListChangeTextLineItemQuantityAction {
|
|
417
|
+
readonly action: 'changeTextLineItemQuantity';
|
|
418
|
+
readonly textLineItemId: string;
|
|
419
|
+
readonly quantity: number;
|
|
420
|
+
}
|
|
421
|
+
export interface MyShoppingListChangeTextLineItemsOrderAction {
|
|
422
|
+
readonly action: 'changeTextLineItemsOrder';
|
|
423
|
+
readonly textLineItemOrder: string[];
|
|
424
|
+
}
|
|
425
|
+
export interface MyShoppingListRemoveLineItemAction {
|
|
426
|
+
readonly action: 'removeLineItem';
|
|
427
|
+
readonly lineItemId: string;
|
|
428
|
+
readonly quantity?: number;
|
|
429
|
+
}
|
|
430
|
+
export interface MyShoppingListRemoveTextLineItemAction {
|
|
431
|
+
readonly action: 'removeTextLineItem';
|
|
432
|
+
readonly textLineItemId: string;
|
|
433
|
+
readonly quantity?: number;
|
|
434
|
+
}
|
|
435
|
+
export interface MyShoppingListSetCustomFieldAction {
|
|
436
|
+
readonly action: 'setCustomField';
|
|
437
|
+
readonly name: string;
|
|
438
|
+
readonly value?: any;
|
|
439
|
+
}
|
|
440
|
+
export interface MyShoppingListSetCustomTypeAction {
|
|
441
|
+
readonly action: 'setCustomType';
|
|
442
|
+
readonly type?: TypeResourceIdentifier;
|
|
443
|
+
readonly fields?: FieldContainer;
|
|
444
|
+
}
|
|
445
|
+
export interface MyShoppingListSetDeleteDaysAfterLastModificationAction {
|
|
446
|
+
readonly action: 'setDeleteDaysAfterLastModification';
|
|
447
|
+
readonly deleteDaysAfterLastModification?: number;
|
|
448
|
+
}
|
|
449
|
+
export interface MyShoppingListSetDescriptionAction {
|
|
450
|
+
readonly action: 'setDescription';
|
|
451
|
+
readonly description?: LocalizedString;
|
|
452
|
+
}
|
|
453
|
+
export interface MyShoppingListSetLineItemCustomFieldAction {
|
|
454
|
+
readonly action: 'setLineItemCustomField';
|
|
455
|
+
readonly lineItemId: string;
|
|
456
|
+
readonly name: string;
|
|
457
|
+
readonly value?: any;
|
|
458
|
+
}
|
|
459
|
+
export interface MyShoppingListSetLineItemCustomTypeAction {
|
|
460
|
+
readonly action: 'setLineItemCustomType';
|
|
461
|
+
readonly lineItemId: string;
|
|
462
|
+
readonly type?: TypeResourceIdentifier;
|
|
463
|
+
readonly fields?: FieldContainer;
|
|
464
|
+
}
|
|
465
|
+
export interface MyShoppingListSetTextLineItemCustomFieldAction {
|
|
466
|
+
readonly action: 'setTextLineItemCustomField';
|
|
467
|
+
readonly textLineItemId: string;
|
|
468
|
+
readonly name: string;
|
|
469
|
+
readonly value?: any;
|
|
470
|
+
}
|
|
471
|
+
export interface MyShoppingListSetTextLineItemCustomTypeAction {
|
|
472
|
+
readonly action: 'setTextLineItemCustomType';
|
|
473
|
+
readonly textLineItemId: string;
|
|
474
|
+
readonly type?: TypeResourceIdentifier;
|
|
475
|
+
readonly fields?: FieldContainer;
|
|
476
|
+
}
|
|
477
|
+
export interface MyShoppingListSetTextLineItemDescriptionAction {
|
|
478
|
+
readonly action: 'setTextLineItemDescription';
|
|
479
|
+
readonly textLineItemId: string;
|
|
480
|
+
readonly description?: LocalizedString;
|
|
481
|
+
}
|