@commercetools/importapi-sdk 6.0.0 → 6.1.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/CHANGELOG.md +6 -0
- package/README.md +9 -9
- package/dist/commercetools-importapi-sdk.browser.cjs.js +615 -0
- package/dist/commercetools-importapi-sdk.browser.esm.js +591 -1
- package/dist/commercetools-importapi-sdk.cjs.dev.js +615 -0
- package/dist/commercetools-importapi-sdk.cjs.prod.js +615 -0
- package/dist/commercetools-importapi-sdk.esm.js +591 -1
- package/dist/declarations/src/generated/models/common.d.ts +109 -22
- package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customers.d.ts +4 -0
- package/dist/declarations/src/generated/models/customers.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customfields.d.ts +29 -22
- package/dist/declarations/src/generated/models/customfields.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/errors.d.ts +36 -24
- package/dist/declarations/src/generated/models/errors.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importoperations.d.ts +4 -0
- package/dist/declarations/src/generated/models/importoperations.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +23 -14
- package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/order-patches.d.ts +6 -0
- package/dist/declarations/src/generated/models/order-patches.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/orders.d.ts +82 -5
- package/dist/declarations/src/generated/models/orders.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/productdrafts.d.ts +1 -1
- package/dist/declarations/src/generated/models/products.d.ts +9 -3
- package/dist/declarations/src/generated/models/products.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/producttypes.d.ts +29 -13
- package/dist/declarations/src/generated/models/producttypes.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/productvariants.d.ts +36 -22
- package/dist/declarations/src/generated/models/productvariants.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/types.d.ts +71 -12
- package/dist/declarations/src/generated/models/types.d.ts.map +1 -1
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -50,10 +50,22 @@ export interface ErrorResponse {
|
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
export type ErrorObject = AccessDeniedError | ConcurrentModificationError | ContentionError | DuplicateAttributeValueError | DuplicateAttributeValuesError | DuplicateFieldError | DuplicateVariantValuesError | GenericError | InsufficientScopeError | InvalidCredentialsError | InvalidFieldError | InvalidFieldsUpdateError | InvalidInput | InvalidJsonInput | InvalidOperation | InvalidScopeError | InvalidStateTransitionError | InvalidTokenError | NewMasterVariantAdditionNotAllowedError | RequiredFieldError | ResourceCreationError | ResourceDeletionError | ResourceNotFoundError | ResourceUpdateError;
|
|
53
|
+
export interface IErrorObject {
|
|
54
|
+
/**
|
|
55
|
+
* An error identifier.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
readonly code: string;
|
|
59
|
+
/**
|
|
60
|
+
* A plain language description of the cause of an error.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}
|
|
53
65
|
/**
|
|
54
66
|
* This is the generic error code for access denied. In case of a wrong scope, an [InvalidScopeError](#invalidscopeerror) will be returned.
|
|
55
67
|
*/
|
|
56
|
-
export interface AccessDeniedError {
|
|
68
|
+
export interface AccessDeniedError extends IErrorObject {
|
|
57
69
|
readonly code: 'access_denied';
|
|
58
70
|
/**
|
|
59
71
|
* A plain language description of the cause of an error.
|
|
@@ -65,7 +77,7 @@ export interface AccessDeniedError {
|
|
|
65
77
|
* The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
|
|
66
78
|
*
|
|
67
79
|
*/
|
|
68
|
-
export interface InvalidScopeError {
|
|
80
|
+
export interface InvalidScopeError extends IErrorObject {
|
|
69
81
|
readonly code: 'invalid_scope';
|
|
70
82
|
/**
|
|
71
83
|
* A plain language description of the cause of an error.
|
|
@@ -78,7 +90,7 @@ export interface InvalidScopeError {
|
|
|
78
90
|
* The client application should validate the constraints described in the error message before sending the request again.
|
|
79
91
|
*
|
|
80
92
|
*/
|
|
81
|
-
export interface InvalidOperation {
|
|
93
|
+
export interface InvalidOperation extends IErrorObject {
|
|
82
94
|
readonly code: 'InvalidOperation';
|
|
83
95
|
/**
|
|
84
96
|
* A plain language description of the cause of an error.
|
|
@@ -89,7 +101,7 @@ export interface InvalidOperation {
|
|
|
89
101
|
/**
|
|
90
102
|
* The `Unique` [AttributeConstraintEnum](ctp:api:type:AttributeConstraintEnum) was violated.
|
|
91
103
|
*/
|
|
92
|
-
export interface DuplicateAttributeValueError {
|
|
104
|
+
export interface DuplicateAttributeValueError extends IErrorObject {
|
|
93
105
|
readonly code: 'DuplicateAttributeValue';
|
|
94
106
|
/**
|
|
95
107
|
* A plain language description of the cause of an error.
|
|
@@ -105,7 +117,7 @@ export interface DuplicateAttributeValueError {
|
|
|
105
117
|
/**
|
|
106
118
|
* The `CombinationUnique` [AttributeConstraintEnum](ctp:api:type:AttributeConstraintEnum) was violated.
|
|
107
119
|
*/
|
|
108
|
-
export interface DuplicateAttributeValuesError {
|
|
120
|
+
export interface DuplicateAttributeValuesError extends IErrorObject {
|
|
109
121
|
readonly code: 'DuplicateAttributeValues';
|
|
110
122
|
/**
|
|
111
123
|
* A plain language description of the cause of an error.
|
|
@@ -120,7 +132,7 @@ export interface DuplicateAttributeValuesError {
|
|
|
120
132
|
/**
|
|
121
133
|
* The given value already exists for a field that is checked for unique values.
|
|
122
134
|
*/
|
|
123
|
-
export interface DuplicateFieldError {
|
|
135
|
+
export interface DuplicateFieldError extends IErrorObject {
|
|
124
136
|
readonly code: 'DuplicateField';
|
|
125
137
|
/**
|
|
126
138
|
* A plain language description of the cause of an error.
|
|
@@ -143,7 +155,7 @@ export interface DuplicateFieldError {
|
|
|
143
155
|
* Every [Product Variant](ctp:api:type:ProductVariant) must have a distinct combination of SKU, prices, and custom attribute values.
|
|
144
156
|
*
|
|
145
157
|
*/
|
|
146
|
-
export interface DuplicateVariantValuesError {
|
|
158
|
+
export interface DuplicateVariantValuesError extends IErrorObject {
|
|
147
159
|
readonly code: 'DuplicateVariantValues';
|
|
148
160
|
/**
|
|
149
161
|
* A plain language description of the cause of an error.
|
|
@@ -170,7 +182,7 @@ export interface VariantValues {
|
|
|
170
182
|
*/
|
|
171
183
|
readonly attributes: Attribute[];
|
|
172
184
|
}
|
|
173
|
-
export interface InsufficientScopeError {
|
|
185
|
+
export interface InsufficientScopeError extends IErrorObject {
|
|
174
186
|
readonly code: 'insufficient_scope';
|
|
175
187
|
/**
|
|
176
188
|
* A plain language description of the cause of an error.
|
|
@@ -178,7 +190,7 @@ export interface InsufficientScopeError {
|
|
|
178
190
|
*/
|
|
179
191
|
readonly message: string;
|
|
180
192
|
}
|
|
181
|
-
export interface InvalidCredentialsError {
|
|
193
|
+
export interface InvalidCredentialsError extends IErrorObject {
|
|
182
194
|
readonly code: 'InvalidCredentials';
|
|
183
195
|
/**
|
|
184
196
|
* A plain language description of the cause of an error.
|
|
@@ -186,7 +198,7 @@ export interface InvalidCredentialsError {
|
|
|
186
198
|
*/
|
|
187
199
|
readonly message: string;
|
|
188
200
|
}
|
|
189
|
-
export interface InvalidTokenError {
|
|
201
|
+
export interface InvalidTokenError extends IErrorObject {
|
|
190
202
|
readonly code: 'invalid_token';
|
|
191
203
|
/**
|
|
192
204
|
* A plain language description of the cause of an error.
|
|
@@ -199,7 +211,7 @@ export interface InvalidTokenError {
|
|
|
199
211
|
* This error occurs, for example, if the field `variants`, which is not supported by [Product Import](ctp:import:type:ProductImport), is sent to the Product Import endpoint.
|
|
200
212
|
*
|
|
201
213
|
*/
|
|
202
|
-
export interface InvalidFieldError {
|
|
214
|
+
export interface InvalidFieldError extends IErrorObject {
|
|
203
215
|
readonly code: 'InvalidField';
|
|
204
216
|
/**
|
|
205
217
|
* A plain language description of the cause of an error.
|
|
@@ -230,7 +242,7 @@ export interface InvalidFieldError {
|
|
|
230
242
|
* Returned when a field cannot be updated.
|
|
231
243
|
*
|
|
232
244
|
*/
|
|
233
|
-
export interface InvalidFieldsUpdateError {
|
|
245
|
+
export interface InvalidFieldsUpdateError extends IErrorObject {
|
|
234
246
|
readonly code: 'InvalidFieldUpdate';
|
|
235
247
|
/**
|
|
236
248
|
* `"The following fields are currently not supported for changes/updates"`
|
|
@@ -250,7 +262,7 @@ export interface InvalidFieldsUpdateError {
|
|
|
250
262
|
* The client application should validate the input according to the constraints described in the error message before sending the request again.
|
|
251
263
|
*
|
|
252
264
|
*/
|
|
253
|
-
export interface InvalidJsonInput {
|
|
265
|
+
export interface InvalidJsonInput extends IErrorObject {
|
|
254
266
|
readonly code: 'InvalidJsonInput';
|
|
255
267
|
/**
|
|
256
268
|
* A plain language description of the cause of an error.
|
|
@@ -263,7 +275,7 @@ export interface InvalidJsonInput {
|
|
|
263
275
|
* constraints described in the error message before sending the request again.
|
|
264
276
|
*
|
|
265
277
|
*/
|
|
266
|
-
export interface InvalidInput {
|
|
278
|
+
export interface InvalidInput extends IErrorObject {
|
|
267
279
|
readonly code: 'InvalidInput';
|
|
268
280
|
/**
|
|
269
281
|
* A plain language description of the cause of an error.
|
|
@@ -271,7 +283,7 @@ export interface InvalidInput {
|
|
|
271
283
|
*/
|
|
272
284
|
readonly message: string;
|
|
273
285
|
}
|
|
274
|
-
export interface ResourceNotFoundError {
|
|
286
|
+
export interface ResourceNotFoundError extends IErrorObject {
|
|
275
287
|
readonly code: 'ResourceNotFound';
|
|
276
288
|
/**
|
|
277
289
|
* A plain language description of the cause of an error.
|
|
@@ -283,7 +295,7 @@ export interface ResourceNotFoundError {
|
|
|
283
295
|
*/
|
|
284
296
|
readonly resource?: any;
|
|
285
297
|
}
|
|
286
|
-
export interface ResourceCreationError {
|
|
298
|
+
export interface ResourceCreationError extends IErrorObject {
|
|
287
299
|
readonly code: 'ResourceCreation';
|
|
288
300
|
/**
|
|
289
301
|
* A plain language description of the cause of an error.
|
|
@@ -295,7 +307,7 @@ export interface ResourceCreationError {
|
|
|
295
307
|
*/
|
|
296
308
|
readonly resource?: any;
|
|
297
309
|
}
|
|
298
|
-
export interface ResourceUpdateError {
|
|
310
|
+
export interface ResourceUpdateError extends IErrorObject {
|
|
299
311
|
readonly code: 'ResourceUpdate';
|
|
300
312
|
/**
|
|
301
313
|
* A plain language description of the cause of an error.
|
|
@@ -307,7 +319,7 @@ export interface ResourceUpdateError {
|
|
|
307
319
|
*/
|
|
308
320
|
readonly resource?: any;
|
|
309
321
|
}
|
|
310
|
-
export interface ResourceDeletionError {
|
|
322
|
+
export interface ResourceDeletionError extends IErrorObject {
|
|
311
323
|
readonly code: 'ResourceDeletion';
|
|
312
324
|
/**
|
|
313
325
|
* A plain language description of the cause of an error.
|
|
@@ -322,7 +334,7 @@ export interface ResourceDeletionError {
|
|
|
322
334
|
/**
|
|
323
335
|
* A required field is missing a value.
|
|
324
336
|
*/
|
|
325
|
-
export interface RequiredFieldError {
|
|
337
|
+
export interface RequiredFieldError extends IErrorObject {
|
|
326
338
|
readonly code: 'RequiredField';
|
|
327
339
|
/**
|
|
328
340
|
* A plain language description of the cause of an error.
|
|
@@ -335,7 +347,7 @@ export interface RequiredFieldError {
|
|
|
335
347
|
*/
|
|
336
348
|
readonly field: string;
|
|
337
349
|
}
|
|
338
|
-
export interface InvalidStateTransitionError {
|
|
350
|
+
export interface InvalidStateTransitionError extends IErrorObject {
|
|
339
351
|
readonly code: 'InvalidTransition';
|
|
340
352
|
/**
|
|
341
353
|
* A plain language description of the cause of an error.
|
|
@@ -361,7 +373,7 @@ export interface InvalidStateTransitionError {
|
|
|
361
373
|
* The client application should resolve the conflict (with or without involving the end-user) before retrying the request.
|
|
362
374
|
*
|
|
363
375
|
*/
|
|
364
|
-
export interface ConcurrentModificationError {
|
|
376
|
+
export interface ConcurrentModificationError extends IErrorObject {
|
|
365
377
|
readonly code: 'ConcurrentModification';
|
|
366
378
|
/**
|
|
367
379
|
* A plain language description of the cause of an error.
|
|
@@ -384,7 +396,7 @@ export interface ConcurrentModificationError {
|
|
|
384
396
|
*/
|
|
385
397
|
readonly conflictedResource?: any;
|
|
386
398
|
}
|
|
387
|
-
export interface ContentionError {
|
|
399
|
+
export interface ContentionError extends IErrorObject {
|
|
388
400
|
readonly code: 'Contention';
|
|
389
401
|
/**
|
|
390
402
|
* A plain language description of the cause of an error.
|
|
@@ -392,7 +404,7 @@ export interface ContentionError {
|
|
|
392
404
|
*/
|
|
393
405
|
readonly message: string;
|
|
394
406
|
}
|
|
395
|
-
export interface GenericError {
|
|
407
|
+
export interface GenericError extends IErrorObject {
|
|
396
408
|
readonly code: 'Generic';
|
|
397
409
|
/**
|
|
398
410
|
* A plain language description of the cause of an error.
|
|
@@ -404,7 +416,7 @@ export interface GenericError {
|
|
|
404
416
|
* Returned when attempting to create a ProductVariant and set it as the Master Variant in the same [ProductVariantImport](ctp:import:type:ProductVariantImport).
|
|
405
417
|
*
|
|
406
418
|
*/
|
|
407
|
-
export interface NewMasterVariantAdditionNotAllowedError {
|
|
419
|
+
export interface NewMasterVariantAdditionNotAllowedError extends IErrorObject {
|
|
408
420
|
readonly code: 'NewMasterVariantAdditionNotAllowed';
|
|
409
421
|
/**
|
|
410
422
|
* `"Adding a new variant as master variant is not allowed."`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,oBAAgB;AAC1C,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,SAAS,EAAE,6BAAyB;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IACnC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;CAChC;AACD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB,iBAAiB,GACjB,2BAA2B,GAC3B,eAAe,GACf,4BAA4B,GAC5B,6BAA6B,GAC7B,mBAAmB,GACnB,2BAA2B,GAC3B,YAAY,GACZ,sBAAsB,GACtB,uBAAuB,GACvB,iBAAiB,GACjB,wBAAwB,GACxB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,2BAA2B,GAC3B,iBAAiB,GACjB,uCAAuC,GACvC,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,mBAAmB,CAAA;AACvB;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,oBAAgB;AAC1C,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,SAAS,EAAE,6BAAyB;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IACnC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;CAChC;AACD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB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B,CAAA;IACvC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAClC;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,GAAG,CAAA;CAClC;AACD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AACD,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AACD;;;GAGG;AACH,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,QAAQ,CAAC,IAAI,EAAE,oCAAoC,CAAA;IACnD;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -105,6 +105,10 @@ export interface ImportOperationPagedResponse {
|
|
|
105
105
|
* Describes the validation state of a newly created [ImportOperation](#importoperation).
|
|
106
106
|
*
|
|
107
107
|
*/
|
|
108
|
+
export declare enum ImportOperationStateValues {
|
|
109
|
+
Processing = "processing",
|
|
110
|
+
ValidationFailed = "validationFailed"
|
|
111
|
+
}
|
|
108
112
|
export type ImportOperationState = 'processing' | 'validationFailed' | string;
|
|
109
113
|
export interface ImportOperationStatus {
|
|
110
114
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importoperations.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importoperations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,oBAAgB;AAChE,OAAO,EAAE,WAAW,EAAE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,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,CAAA;CACpC;AACD;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,UAAU,eAAe;IACzB,gBAAgB,qBAAqB;CACtC;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAC7E,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAA;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;CAChC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
6
|
import { CategoryImport } from "./categories.js";
|
|
7
|
+
import { ImportResourceType } from "./common.js";
|
|
7
8
|
import { CustomerImport } from "./customers.js";
|
|
8
9
|
import { DiscountCodeImport } from "./discount-codes.js";
|
|
9
10
|
import { ImportOperationStatus } from "./importoperations.js";
|
|
@@ -22,6 +23,14 @@ import { TypeImport } from "./types.js";
|
|
|
22
23
|
*
|
|
23
24
|
*/
|
|
24
25
|
export type ImportRequest = CategoryImportRequest | CustomerImportRequest | DiscountCodeImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest | TypeImportRequest;
|
|
26
|
+
export interface IImportRequest {
|
|
27
|
+
/**
|
|
28
|
+
* The resource types that can be imported.
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
readonly type: ImportResourceType;
|
|
33
|
+
}
|
|
25
34
|
/**
|
|
26
35
|
* A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation).
|
|
27
36
|
* Used as a response at each resource-specific import endpoint, for example, at [Import Categories](ctp:import:type:CategoryImport) and [Import ProductTypes](ctp:import:type:ProductTypeImport).
|
|
@@ -37,7 +46,7 @@ export interface ImportResponse {
|
|
|
37
46
|
* The request body to [import Categories](#import-categories). Contains data for [Categories](ctp:api:type:Category) to be created or updated in a Project.
|
|
38
47
|
*
|
|
39
48
|
*/
|
|
40
|
-
export interface CategoryImportRequest {
|
|
49
|
+
export interface CategoryImportRequest extends IImportRequest {
|
|
41
50
|
readonly type: 'category';
|
|
42
51
|
/**
|
|
43
52
|
* The category import resources of this request.
|
|
@@ -50,7 +59,7 @@ export interface CategoryImportRequest {
|
|
|
50
59
|
* The request body to [import Products](#import-products). Contains data for [Products](ctp:api:type:Product) to be created or updated in a Project.
|
|
51
60
|
*
|
|
52
61
|
*/
|
|
53
|
-
export interface ProductImportRequest {
|
|
62
|
+
export interface ProductImportRequest extends IImportRequest {
|
|
54
63
|
readonly type: 'product';
|
|
55
64
|
/**
|
|
56
65
|
* The product import resources of this request.
|
|
@@ -63,7 +72,7 @@ export interface ProductImportRequest {
|
|
|
63
72
|
* The request body to [import ProductDrafts](#import-productdrafts). Contains data for [Products](ctp:api:type:Product) to be created or updated in a Project.
|
|
64
73
|
*
|
|
65
74
|
*/
|
|
66
|
-
export interface ProductDraftImportRequest {
|
|
75
|
+
export interface ProductDraftImportRequest extends IImportRequest {
|
|
67
76
|
readonly type: 'product-draft';
|
|
68
77
|
/**
|
|
69
78
|
* The product draft import resources of this request.
|
|
@@ -76,7 +85,7 @@ export interface ProductDraftImportRequest {
|
|
|
76
85
|
* The request body to [import ProductTypes](#import-producttypes). Contains data for [ProductTypes](ctp:api:type:ProductType) to be created or updated in a Project.
|
|
77
86
|
*
|
|
78
87
|
*/
|
|
79
|
-
export interface ProductTypeImportRequest {
|
|
88
|
+
export interface ProductTypeImportRequest extends IImportRequest {
|
|
80
89
|
readonly type: 'product-type';
|
|
81
90
|
/**
|
|
82
91
|
* The product type import resources of this request.
|
|
@@ -89,7 +98,7 @@ export interface ProductTypeImportRequest {
|
|
|
89
98
|
* The request body to [import ProductVariants](#import-productvariants). Contains data for [ProductVariants](ctp:api:type:ProductVariant) to be created or updated in a Project.
|
|
90
99
|
*
|
|
91
100
|
*/
|
|
92
|
-
export interface ProductVariantImportRequest {
|
|
101
|
+
export interface ProductVariantImportRequest extends IImportRequest {
|
|
93
102
|
readonly type: 'product-variant';
|
|
94
103
|
/**
|
|
95
104
|
* The product variant import resources of this request.
|
|
@@ -102,7 +111,7 @@ export interface ProductVariantImportRequest {
|
|
|
102
111
|
* The request body to [import Embedded Prices](#import-embedded-prices). Contains data for [Embedded Prices](/../api/types#price) to be created or updated in a Project.
|
|
103
112
|
*
|
|
104
113
|
*/
|
|
105
|
-
export interface PriceImportRequest {
|
|
114
|
+
export interface PriceImportRequest extends IImportRequest {
|
|
106
115
|
readonly type: 'price';
|
|
107
116
|
/**
|
|
108
117
|
* The price import resources of this request.
|
|
@@ -115,7 +124,7 @@ export interface PriceImportRequest {
|
|
|
115
124
|
* The request body to [import Standalone Prices](#import-standalone-prices). Contains data for [Standalone Prices](ctp:api:type:StandalonePrice) to be created or updated in a Project.
|
|
116
125
|
*
|
|
117
126
|
*/
|
|
118
|
-
export interface StandalonePriceImportRequest {
|
|
127
|
+
export interface StandalonePriceImportRequest extends IImportRequest {
|
|
119
128
|
readonly type: 'standalone-price';
|
|
120
129
|
/**
|
|
121
130
|
* The Standalone Price import resources of this request.
|
|
@@ -128,7 +137,7 @@ export interface StandalonePriceImportRequest {
|
|
|
128
137
|
* The request body to [import Orders](#import-orders). Contains data for [Orders](ctp:api:type:Order) to be created in a Project.
|
|
129
138
|
*
|
|
130
139
|
*/
|
|
131
|
-
export interface OrderImportRequest {
|
|
140
|
+
export interface OrderImportRequest extends IImportRequest {
|
|
132
141
|
readonly type: 'order';
|
|
133
142
|
/**
|
|
134
143
|
* The order import resources of this request.
|
|
@@ -141,7 +150,7 @@ export interface OrderImportRequest {
|
|
|
141
150
|
* The request body to [import OrderPatches](#import-orderpatches). The data to be imported are represented by [OrderPatchImport](#orderpatchimport).
|
|
142
151
|
*
|
|
143
152
|
*/
|
|
144
|
-
export interface OrderPatchImportRequest {
|
|
153
|
+
export interface OrderPatchImportRequest extends IImportRequest {
|
|
145
154
|
readonly type: 'order-patch';
|
|
146
155
|
/**
|
|
147
156
|
* The order patches of this request
|
|
@@ -154,7 +163,7 @@ export interface OrderPatchImportRequest {
|
|
|
154
163
|
* The request body to [import ProductVariantPatches](#import-productvariantpatches). The data to be imported are represented by [ProductVariantPatch](#productvariantpatch).
|
|
155
164
|
*
|
|
156
165
|
*/
|
|
157
|
-
export interface ProductVariantPatchRequest {
|
|
166
|
+
export interface ProductVariantPatchRequest extends IImportRequest {
|
|
158
167
|
readonly type: 'product-variant-patch';
|
|
159
168
|
/**
|
|
160
169
|
* The product variant patches of this request.
|
|
@@ -167,7 +176,7 @@ export interface ProductVariantPatchRequest {
|
|
|
167
176
|
* The request body to [import Customers](#import-customers). Contains data for [Customers](ctp:api:type:Customer) to be created or updated in a Project.
|
|
168
177
|
*
|
|
169
178
|
*/
|
|
170
|
-
export interface CustomerImportRequest {
|
|
179
|
+
export interface CustomerImportRequest extends IImportRequest {
|
|
171
180
|
readonly type: 'customer';
|
|
172
181
|
/**
|
|
173
182
|
* The customer import resources of this request.
|
|
@@ -180,7 +189,7 @@ export interface CustomerImportRequest {
|
|
|
180
189
|
* The request body to [import Inventories](#import-inventory). Contains data for [InventoryEntries](ctp:api:type:InventoryEntry) to be created or updated in a commercetools Project.
|
|
181
190
|
*
|
|
182
191
|
*/
|
|
183
|
-
export interface InventoryImportRequest {
|
|
192
|
+
export interface InventoryImportRequest extends IImportRequest {
|
|
184
193
|
readonly type: 'inventory';
|
|
185
194
|
/**
|
|
186
195
|
* The inventory import resources of this request.
|
|
@@ -193,7 +202,7 @@ export interface InventoryImportRequest {
|
|
|
193
202
|
* The request body to [import Types](#import-types). Contains data for [Types](ctp:api:type:Type) to be created or updated in a Project.
|
|
194
203
|
*
|
|
195
204
|
*/
|
|
196
|
-
export interface TypeImportRequest {
|
|
205
|
+
export interface TypeImportRequest extends IImportRequest {
|
|
197
206
|
readonly type: 'type';
|
|
198
207
|
/**
|
|
199
208
|
* The type import resources of this request.
|
|
@@ -206,7 +215,7 @@ export interface TypeImportRequest {
|
|
|
206
215
|
* The request body to [import Discount Codes](#import-discount-codes). Contains data for [Discount Codes](/../api/projects/discountCodes#discountcode) to be created or updated in a Project.
|
|
207
216
|
*
|
|
208
217
|
*/
|
|
209
|
-
export interface DiscountCodeImportRequest {
|
|
218
|
+
export interface DiscountCodeImportRequest extends IImportRequest {
|
|
210
219
|
readonly type: 'discount-code';
|
|
211
220
|
/**
|
|
212
221
|
* The Discount Code import resources of this request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importrequests.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importrequests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,wBAAoB;AAC7C,OAAO,EAAE,cAAc,EAAE,uBAAmB;AAC5C,OAAO,EAAE,kBAAkB,EAAE,4BAAwB;AACrD,OAAO,EAAE,qBAAqB,EAAE,8BAA0B;AAC1D,OAAO,EAAE,eAAe,EAAE,yBAAqB;AAC/C,OAAO,EAAE,gBAAgB,EAAE,2BAAuB;AAClD,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,kBAAkB,EAAE,2BAAuB;AACpD,OAAO,EAAE,aAAa,EAAE,sBAAkB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,0BAAsB;AAClD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,6BAAyB;AAC7E,OAAO,EAAE,qBAAqB,EAAE,+BAA2B;AAC3D,OAAO,EAAE,UAAU,EAAE,mBAAe;AAEpC;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,yBAAyB,GACzB,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,kBAAkB,GAClB,yBAAyB,GACzB,oBAAoB,GACpB,wBAAwB,GACxB,2BAA2B,GAC3B,0BAA0B,GAC1B,4BAA4B,GAC5B,iBAAiB,CAAA;AACrB;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,qBAAqB,EAAE,CAAA;CAClD;AACD;;;GAGG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"importrequests.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importrequests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,wBAAoB;AAC7C,OAAO,EAAE,kBAAkB,EAAE,oBAAgB;AAC7C,OAAO,EAAE,cAAc,EAAE,uBAAmB;AAC5C,OAAO,EAAE,kBAAkB,EAAE,4BAAwB;AACrD,OAAO,EAAE,qBAAqB,EAAE,8BAA0B;AAC1D,OAAO,EAAE,eAAe,EAAE,yBAAqB;AAC/C,OAAO,EAAE,gBAAgB,EAAE,2BAAuB;AAClD,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,WAAW,EAAE,oBAAgB;AACtC,OAAO,EAAE,kBAAkB,EAAE,2BAAuB;AACpD,OAAO,EAAE,aAAa,EAAE,sBAAkB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,0BAAsB;AAClD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,6BAAyB;AAC7E,OAAO,EAAE,qBAAqB,EAAE,+BAA2B;AAC3D,OAAO,EAAE,UAAU,EAAE,mBAAe;AAEpC;;;GAGG;AACH,MAAM,MAAM,aAAa,GACrB,qBAAqB,GACrB,qBAA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,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,EAAE,CAAA;CACjC;AACD;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,kBAAkB,EAAE,CAAA;CACzC"}
|
|
@@ -8,6 +8,12 @@ import { DeliveryItem, ParcelMeasurements, TrackingData } from "./orders.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Maps to `ReturnItem.shipmentState`
|
|
10
10
|
*/
|
|
11
|
+
export declare enum ReturnShipmentStateValues {
|
|
12
|
+
Advised = "Advised",
|
|
13
|
+
BackInStock = "BackInStock",
|
|
14
|
+
Returned = "Returned",
|
|
15
|
+
Unusable = "Unusable"
|
|
16
|
+
}
|
|
11
17
|
export type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
|
|
12
18
|
export interface ReturnItemDraft {
|
|
13
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-patches.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["order-patches.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,oBAAgB;AAClC,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,oBAAgB;AAEzE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,aAAa,GACb,UAAU,GACV,UAAU,GACV,MAAM,CAAA;AACV,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAClC;;OAEG;IACH,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AAE,YAAY,EAAE,CAAA;CAChC;AACD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AACD,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,UAAU,CAAA;IACnC;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAA;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,CAAA;IACxC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,mBAAmB,CAAA;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,6BAA6B,CAAA;IACjE;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IAClD;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,sBAAsB,CAAA;IACvD;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,kBAAkB,CAAA;IACnD;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,WAAW,EAAE,CAAA;CACxC;AACD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;CAC5B"}
|
|
@@ -211,9 +211,20 @@ export interface LineItemImportDraft {
|
|
|
211
211
|
*/
|
|
212
212
|
readonly custom?: Custom;
|
|
213
213
|
}
|
|
214
|
+
export declare enum ShippingRateTierTypeValues {
|
|
215
|
+
CartClassification = "CartClassification",
|
|
216
|
+
CartScore = "CartScore",
|
|
217
|
+
CartValue = "CartValue"
|
|
218
|
+
}
|
|
214
219
|
export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
|
|
215
220
|
export type ShippingRatePriceTier = CartClassificationTier;
|
|
216
|
-
export interface
|
|
221
|
+
export interface IShippingRatePriceTier {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
readonly type: ShippingRateTierType;
|
|
226
|
+
}
|
|
227
|
+
export interface CartClassificationTier extends IShippingRatePriceTier {
|
|
217
228
|
readonly type: 'CartClassification';
|
|
218
229
|
/**
|
|
219
230
|
*
|
|
@@ -366,9 +377,13 @@ export interface DiscountedLineItemPriceDraft {
|
|
|
366
377
|
*/
|
|
367
378
|
readonly includedDiscounts: DiscountedLineItemPortion[];
|
|
368
379
|
}
|
|
380
|
+
export declare enum ShippingMethodStateValues {
|
|
381
|
+
DoesNotMatchCart = "DoesNotMatchCart",
|
|
382
|
+
MatchesCart = "MatchesCart"
|
|
383
|
+
}
|
|
369
384
|
export type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart' | string;
|
|
370
385
|
/**
|
|
371
|
-
* Maps to an order's `shippingInfo` property. This field is usually populated by the cart
|
|
386
|
+
* Maps to an order's `shippingInfo` property. This field is usually populated by the cart associated with
|
|
372
387
|
* the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
|
|
373
388
|
*
|
|
374
389
|
*/
|
|
@@ -400,7 +415,7 @@ export interface ShippingInfoImportDraft {
|
|
|
400
415
|
*/
|
|
401
416
|
readonly shippingMethod?: ShippingMethodKeyReference;
|
|
402
417
|
/**
|
|
403
|
-
* Note that you can not add a `DeliveryItem` on import, as `LineItems` and `CustomLineItems` are not yet
|
|
418
|
+
* Note that you can not add a `DeliveryItem` on import, as `LineItems` and `CustomLineItems` are not yet referenceable by an `id`.
|
|
404
419
|
*
|
|
405
420
|
*/
|
|
406
421
|
readonly deliveries?: Delivery[];
|
|
@@ -542,34 +557,78 @@ export interface TaxedPrice {
|
|
|
542
557
|
/**
|
|
543
558
|
* Maps to `Order.taxMode`
|
|
544
559
|
*/
|
|
560
|
+
export declare enum TaxModeValues {
|
|
561
|
+
Disabled = "Disabled",
|
|
562
|
+
External = "External",
|
|
563
|
+
ExternalAmount = "ExternalAmount",
|
|
564
|
+
Platform = "Platform"
|
|
565
|
+
}
|
|
545
566
|
export type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
|
|
546
567
|
/**
|
|
547
568
|
* Maps to `Order.orderState`.
|
|
548
569
|
*/
|
|
570
|
+
export declare enum OrderStateValues {
|
|
571
|
+
Cancelled = "Cancelled",
|
|
572
|
+
Complete = "Complete",
|
|
573
|
+
Confirmed = "Confirmed",
|
|
574
|
+
Open = "Open"
|
|
575
|
+
}
|
|
549
576
|
export type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
|
|
550
577
|
/**
|
|
551
578
|
* Maps to `Order.shipmentState`.
|
|
552
579
|
*/
|
|
580
|
+
export declare enum ShipmentStateValues {
|
|
581
|
+
Backorder = "Backorder",
|
|
582
|
+
Delayed = "Delayed",
|
|
583
|
+
Partial = "Partial",
|
|
584
|
+
Pending = "Pending",
|
|
585
|
+
Ready = "Ready",
|
|
586
|
+
Shipped = "Shipped"
|
|
587
|
+
}
|
|
553
588
|
export type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
|
|
554
589
|
/**
|
|
555
590
|
* Maps to `Order.paymentState`.
|
|
556
591
|
*/
|
|
592
|
+
export declare enum PaymentStateValues {
|
|
593
|
+
BalanceDue = "BalanceDue",
|
|
594
|
+
CreditOwed = "CreditOwed",
|
|
595
|
+
Failed = "Failed",
|
|
596
|
+
Paid = "Paid",
|
|
597
|
+
Pending = "Pending"
|
|
598
|
+
}
|
|
557
599
|
export type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
|
|
558
600
|
/**
|
|
559
601
|
* Maps to `Order.inventoryMode`.
|
|
560
602
|
*/
|
|
603
|
+
export declare enum InventoryModeValues {
|
|
604
|
+
ReserveOnOrder = "ReserveOnOrder",
|
|
605
|
+
TrackOnly = "TrackOnly"
|
|
606
|
+
}
|
|
561
607
|
export type InventoryMode = 'ReserveOnOrder' | 'TrackOnly' | string;
|
|
562
608
|
/**
|
|
563
609
|
* Maps to `Order.taxRoundingMode`.
|
|
564
610
|
*/
|
|
611
|
+
export declare enum RoundingModeValues {
|
|
612
|
+
HalfDown = "HalfDown",
|
|
613
|
+
HalfEven = "HalfEven",
|
|
614
|
+
HalfUp = "HalfUp"
|
|
615
|
+
}
|
|
565
616
|
export type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
|
|
566
617
|
/**
|
|
567
618
|
* Maps to `Order.taxCalculationMode`.
|
|
568
619
|
*/
|
|
620
|
+
export declare enum TaxCalculationModeValues {
|
|
621
|
+
LineItemLevel = "LineItemLevel",
|
|
622
|
+
UnitPriceLevel = "UnitPriceLevel"
|
|
623
|
+
}
|
|
569
624
|
export type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
|
|
570
625
|
/**
|
|
571
626
|
* Maps to `Order.origin`.
|
|
572
627
|
*/
|
|
628
|
+
export declare enum CartOriginValues {
|
|
629
|
+
Customer = "Customer",
|
|
630
|
+
Merchant = "Merchant"
|
|
631
|
+
}
|
|
573
632
|
export type CartOrigin = 'Customer' | 'Merchant' | string;
|
|
574
633
|
export interface SyncInfo {
|
|
575
634
|
/**
|
|
@@ -591,6 +650,14 @@ export interface SyncInfo {
|
|
|
591
650
|
/**
|
|
592
651
|
* Maps to `DiscountCodeInfo.state`
|
|
593
652
|
*/
|
|
653
|
+
export declare enum DiscountCodeStateValues {
|
|
654
|
+
ApplicationStoppedByPreviousDiscount = "ApplicationStoppedByPreviousDiscount",
|
|
655
|
+
DoesNotMatchCart = "DoesNotMatchCart",
|
|
656
|
+
MatchesCart = "MatchesCart",
|
|
657
|
+
MaxApplicationReached = "MaxApplicationReached",
|
|
658
|
+
NotActive = "NotActive",
|
|
659
|
+
NotValid = "NotValid"
|
|
660
|
+
}
|
|
594
661
|
export type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
|
|
595
662
|
export interface DiscountCodeInfo {
|
|
596
663
|
/**
|
|
@@ -604,9 +671,19 @@ export interface DiscountCodeInfo {
|
|
|
604
671
|
*/
|
|
605
672
|
readonly state?: DiscountCodeState;
|
|
606
673
|
}
|
|
674
|
+
export declare enum ShippingRateInputTypeValues {
|
|
675
|
+
Classification = "Classification",
|
|
676
|
+
Score = "Score"
|
|
677
|
+
}
|
|
607
678
|
export type ShippingRateInputType = 'Classification' | 'Score' | string;
|
|
608
679
|
export type ShippingRateInput = ClassificationShippingRateInput | ScoreShippingRateInput;
|
|
609
|
-
export interface
|
|
680
|
+
export interface IShippingRateInput {
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
*/
|
|
684
|
+
readonly type: ShippingRateInputType;
|
|
685
|
+
}
|
|
686
|
+
export interface ClassificationShippingRateInput extends IShippingRateInput {
|
|
610
687
|
readonly type: 'Classification';
|
|
611
688
|
/**
|
|
612
689
|
*
|
|
@@ -625,7 +702,7 @@ export interface ClassificationShippingRateInput {
|
|
|
625
702
|
*/
|
|
626
703
|
readonly label: LocalizedString;
|
|
627
704
|
}
|
|
628
|
-
export interface ScoreShippingRateInput {
|
|
705
|
+
export interface ScoreShippingRateInput extends IShippingRateInput {
|
|
629
706
|
readonly type: 'Score';
|
|
630
707
|
/**
|
|
631
708
|
*
|