@commercetools/importapi-sdk 6.3.0 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +256 -62
- package/dist/commercetools-importapi-sdk.browser.esm.js +250 -63
- package/dist/commercetools-importapi-sdk.cjs.dev.js +256 -62
- package/dist/commercetools-importapi-sdk.cjs.prod.js +256 -62
- package/dist/commercetools-importapi-sdk.esm.js +250 -63
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts.map +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-discount-codes-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-by-import-container-key-request-builder.d.ts +38 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-by-import-container-key-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-request-builder.d.ts +29 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-standalone-prices-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/client/product-selections/by-project-key-product-selections-request-builder.d.ts +27 -0
- package/dist/declarations/src/generated/client/product-selections/by-project-key-product-selections-request-builder.d.ts.map +1 -0
- package/dist/declarations/src/generated/index.d.ts +4 -0
- package/dist/declarations/src/generated/index.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/categories.d.ts +5 -8
- package/dist/declarations/src/generated/models/categories.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/common.d.ts +160 -59
- package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customers.d.ts +12 -13
- package/dist/declarations/src/generated/models/customers.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customfields.d.ts +149 -91
- package/dist/declarations/src/generated/models/customfields.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/discount-codes.d.ts +12 -14
- package/dist/declarations/src/generated/models/discount-codes.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/errors.d.ts +6 -0
- package/dist/declarations/src/generated/models/errors.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importcontainers.d.ts +68 -23
- package/dist/declarations/src/generated/models/importcontainers.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importoperations.d.ts +19 -17
- package/dist/declarations/src/generated/models/importoperations.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +31 -17
- package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importsummaries.d.ts +11 -12
- package/dist/declarations/src/generated/models/importsummaries.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/inventories.d.ts +8 -8
- package/dist/declarations/src/generated/models/order-patches.d.ts +57 -7
- package/dist/declarations/src/generated/models/order-patches.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/orders.d.ts +138 -46
- package/dist/declarations/src/generated/models/orders.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/prices.d.ts +10 -14
- package/dist/declarations/src/generated/models/prices.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/product-selections.d.ts +109 -0
- package/dist/declarations/src/generated/models/product-selections.d.ts.map +1 -0
- package/dist/declarations/src/generated/models/productdrafts.d.ts +41 -64
- package/dist/declarations/src/generated/models/productdrafts.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/products.d.ts +22 -60
- package/dist/declarations/src/generated/models/products.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/producttypes.d.ts +23 -19
- package/dist/declarations/src/generated/models/producttypes.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/productvariants.d.ts +162 -89
- package/dist/declarations/src/generated/models/productvariants.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/standalone-prices.d.ts +14 -15
- package/dist/declarations/src/generated/models/standalone-prices.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/types.d.ts +11 -4
- package/dist/declarations/src/generated/models/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -170,6 +170,7 @@ export interface DuplicateVariantValuesError extends IErrorObject {
|
|
|
170
170
|
}
|
|
171
171
|
export interface VariantValues {
|
|
172
172
|
/**
|
|
173
|
+
* The SKU of the Product Variant.
|
|
173
174
|
*
|
|
174
175
|
*/
|
|
175
176
|
readonly sku?: string;
|
|
@@ -234,6 +235,7 @@ export interface InvalidFieldError extends IErrorObject {
|
|
|
234
235
|
*/
|
|
235
236
|
readonly allowedValues?: any[];
|
|
236
237
|
/**
|
|
238
|
+
* The index of the resource in the import request that contains the invalid field.
|
|
237
239
|
*
|
|
238
240
|
*/
|
|
239
241
|
readonly resourceIndex?: number;
|
|
@@ -291,6 +293,7 @@ export interface ResourceNotFoundError extends IErrorObject {
|
|
|
291
293
|
*/
|
|
292
294
|
readonly message: string;
|
|
293
295
|
/**
|
|
296
|
+
* The resource that was not found.
|
|
294
297
|
*
|
|
295
298
|
*/
|
|
296
299
|
readonly resource?: any;
|
|
@@ -303,6 +306,7 @@ export interface ResourceCreationError extends IErrorObject {
|
|
|
303
306
|
*/
|
|
304
307
|
readonly message: string;
|
|
305
308
|
/**
|
|
309
|
+
* The resource that was created.
|
|
306
310
|
*
|
|
307
311
|
*/
|
|
308
312
|
readonly resource?: any;
|
|
@@ -315,6 +319,7 @@ export interface ResourceUpdateError extends IErrorObject {
|
|
|
315
319
|
*/
|
|
316
320
|
readonly message: string;
|
|
317
321
|
/**
|
|
322
|
+
* The resource that was updated.
|
|
318
323
|
*
|
|
319
324
|
*/
|
|
320
325
|
readonly resource?: any;
|
|
@@ -327,6 +332,7 @@ export interface ResourceDeletionError extends IErrorObject {
|
|
|
327
332
|
*/
|
|
328
333
|
readonly message: string;
|
|
329
334
|
/**
|
|
335
|
+
* The resource that was deleted.
|
|
330
336
|
*
|
|
331
337
|
*/
|
|
332
338
|
readonly resource?: any;
|
|
@@ -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,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAA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,IAAI,EAAE,wBAAwB,CAAA;IACvC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAA;CACtC;AACD,MAAM,WAAW,aAAa;IAC5B
|
|
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,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB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,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"}
|
|
@@ -5,63 +5,108 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ImportResourceType } from "./common.js";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
|
|
8
|
+
* The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum StrategyEnumValues {
|
|
11
|
+
Ttl = "ttl"
|
|
12
|
+
}
|
|
13
|
+
export type StrategyEnum = 'ttl' | (string & {});
|
|
14
|
+
/**
|
|
15
|
+
* The retention policy of the ImportContainer. If not set, the ImportContainer does not expire.
|
|
16
|
+
*/
|
|
17
|
+
export type RetentionPolicy = TimeToLiveRetentionPolicy;
|
|
18
|
+
export interface IRetentionPolicy {
|
|
19
|
+
/**
|
|
20
|
+
* The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
readonly strategy: StrategyEnum;
|
|
24
|
+
}
|
|
25
|
+
export interface TimeToLiveConfig {
|
|
26
|
+
/**
|
|
27
|
+
* The time to live of the ImportContainer. Used to generate the `expiresAt` value of the ImportContainer. The lowest accepted value is `1h` and the highest accepted value is `30d`.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
readonly timeToLive: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Set a time to live retention policy for the ImportContainer.
|
|
34
|
+
*/
|
|
35
|
+
export interface TimeToLiveRetentionPolicy extends IRetentionPolicy {
|
|
36
|
+
readonly strategy: 'ttl';
|
|
37
|
+
/**
|
|
38
|
+
* The configuration of the time to live retention policy.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
readonly config: TimeToLiveConfig;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Contains the resources to be imported. Unless `resourceType` is specified, the ImportContainer can import all of the supported [ImportResourceTypes](ctp:import:type:ImportResourceType).
|
|
10
45
|
*
|
|
11
46
|
*/
|
|
12
47
|
export interface ImportContainer {
|
|
13
48
|
/**
|
|
14
|
-
* User-defined unique identifier
|
|
15
|
-
* Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
|
|
16
|
-
*
|
|
49
|
+
* User-defined unique identifier of the ImportContainer.
|
|
17
50
|
*
|
|
18
51
|
*/
|
|
19
52
|
readonly key: string;
|
|
20
53
|
/**
|
|
21
|
-
* The [resource type](
|
|
22
|
-
* If not present, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
|
|
54
|
+
* The [resource type](ctp:import:type:ImportResourceType) the ImportContainer supports. If not present, the ImportContainer can import all of the supported [ImportResourceTypes](ctp:import:type:ImportResourceType).
|
|
23
55
|
*
|
|
24
56
|
*
|
|
25
57
|
*/
|
|
26
58
|
readonly resourceType?: ImportResourceType;
|
|
27
59
|
/**
|
|
28
|
-
*
|
|
60
|
+
* Current version of the ImportContainer.
|
|
29
61
|
*
|
|
30
62
|
*/
|
|
31
63
|
readonly version: number;
|
|
32
64
|
/**
|
|
33
|
-
* The
|
|
65
|
+
* The retention policy of the ImportContainer.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
readonly retentionPolicy?: RetentionPolicy;
|
|
69
|
+
/**
|
|
70
|
+
* Date and time (UTC) the ImportContainer was initially created.
|
|
34
71
|
*
|
|
35
72
|
*/
|
|
36
73
|
readonly createdAt: string;
|
|
37
74
|
/**
|
|
38
|
-
*
|
|
75
|
+
* Date and time (UTC) the ImportContainer was last updated.
|
|
39
76
|
*
|
|
40
77
|
*/
|
|
41
78
|
readonly lastModifiedAt: string;
|
|
79
|
+
/**
|
|
80
|
+
* Date and time (UTC) the ImportContainer is automatically deleted. Only present if a `retentionPolicy` is set. ImportContainers without `expiresAt` are permanent until [manually deleted](#delete-importcontainer).
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
readonly expiresAt?: string;
|
|
42
84
|
}
|
|
43
85
|
/**
|
|
44
|
-
* The representation sent to the server
|
|
86
|
+
* The representation sent to the server to create an [ImportContainer](#importcontainer).
|
|
45
87
|
*
|
|
46
88
|
*/
|
|
47
89
|
export interface ImportContainerDraft {
|
|
48
90
|
/**
|
|
49
91
|
* User-defined unique identifier of the ImportContainer.
|
|
50
|
-
* Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
|
|
51
|
-
*
|
|
52
92
|
*
|
|
53
93
|
*/
|
|
54
94
|
readonly key: string;
|
|
55
95
|
/**
|
|
56
|
-
* The
|
|
57
|
-
* If not
|
|
96
|
+
* The resource type the ImportContainer will accept.
|
|
97
|
+
* If not specified, the ImportContainer can import all of the supported ImportResourceTypes.
|
|
58
98
|
*
|
|
59
99
|
*
|
|
60
100
|
*/
|
|
61
101
|
readonly resourceType?: ImportResourceType;
|
|
102
|
+
/**
|
|
103
|
+
* Set a retention policy to automatically delete the ImportContainer after a defined period.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
readonly retentionPolicy?: RetentionPolicy;
|
|
62
107
|
}
|
|
63
108
|
/**
|
|
64
|
-
* The representation sent to the server when updating an
|
|
109
|
+
* The representation sent to the server when updating an ImportContainer.
|
|
65
110
|
*
|
|
66
111
|
*/
|
|
67
112
|
export interface ImportContainerUpdateDraft {
|
|
@@ -71,16 +116,15 @@ export interface ImportContainerUpdateDraft {
|
|
|
71
116
|
*/
|
|
72
117
|
readonly version: number;
|
|
73
118
|
/**
|
|
74
|
-
* The [resource type](
|
|
75
|
-
* If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](
|
|
119
|
+
* The [resource type](ctp:import:type:ImportResourceType) to be imported.
|
|
120
|
+
* If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](ctp:import:type:ImportResourceType).
|
|
76
121
|
*
|
|
77
122
|
*
|
|
78
123
|
*/
|
|
79
124
|
readonly resourceType?: ImportResourceType;
|
|
80
125
|
}
|
|
81
126
|
/**
|
|
82
|
-
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult)
|
|
83
|
-
* Used as a response to a query request for [ImportContainers](#importcontainer).
|
|
127
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ImportContainer](ctp:import:type:ImportContainer).
|
|
84
128
|
*
|
|
85
129
|
*/
|
|
86
130
|
export interface ImportContainerPagedResponse {
|
|
@@ -96,17 +140,18 @@ export interface ImportContainerPagedResponse {
|
|
|
96
140
|
*/
|
|
97
141
|
readonly offset: number;
|
|
98
142
|
/**
|
|
99
|
-
*
|
|
143
|
+
* Actual number of results returned.
|
|
100
144
|
*
|
|
101
145
|
*/
|
|
102
146
|
readonly count: number;
|
|
103
147
|
/**
|
|
104
|
-
*
|
|
148
|
+
* Total number of results matching the query.
|
|
105
149
|
*
|
|
106
150
|
*/
|
|
107
151
|
readonly total: number;
|
|
108
152
|
/**
|
|
109
|
-
*
|
|
153
|
+
* [ImportContainers](ctp:import:type:ImportContainer) matching the query.
|
|
154
|
+
*
|
|
110
155
|
*
|
|
111
156
|
*/
|
|
112
157
|
readonly results: ImportContainer[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importcontainers.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importcontainers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,oBAAgB;AAE7C
|
|
1
|
+
{"version":3,"file":"importcontainers.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importcontainers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,oBAAgB;AAE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3C;AACD;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAA;CAC3C;AACD;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,CAAA;CACpC"}
|
|
@@ -6,65 +6,67 @@
|
|
|
6
6
|
import { ProcessingState, UnresolvedReferences } from "./common.js";
|
|
7
7
|
import { ErrorObject } from "./errors.js";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the import status of a resource.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
12
|
export interface ImportOperation {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Current version of the ImportOperation.
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
readonly version: number;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* `key` of the [ImportContainer](ctp:import:type:ImportContainer).
|
|
20
|
+
*
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
22
23
|
readonly importContainerKey: string;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* `key` of the resource being imported.
|
|
26
|
+
*
|
|
25
27
|
*
|
|
26
28
|
*/
|
|
27
29
|
readonly resourceKey: string;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Unique identifier of the ImportOperation.
|
|
30
32
|
*
|
|
31
33
|
*/
|
|
32
34
|
readonly id: string;
|
|
33
35
|
/**
|
|
34
|
-
* The import status of the resource.
|
|
36
|
+
* The import status of the resource. If `rejected` or `validationFailed`, the import was unsuccessful.
|
|
35
37
|
*
|
|
36
38
|
*
|
|
37
39
|
*/
|
|
38
40
|
readonly state: ProcessingState;
|
|
39
41
|
/**
|
|
40
|
-
* The version of the imported resource when the import was successful.
|
|
42
|
+
* The `version` of the imported resource when the import was successful.
|
|
41
43
|
*
|
|
42
44
|
*/
|
|
43
45
|
readonly resourceVersion?: number;
|
|
44
46
|
/**
|
|
45
|
-
* Contains
|
|
47
|
+
* Contains errors if the import was unsuccessful. See [Errors](/import-export/error).
|
|
46
48
|
*
|
|
47
49
|
*
|
|
48
50
|
*/
|
|
49
51
|
readonly errors?: ErrorObject[];
|
|
50
52
|
/**
|
|
51
|
-
*
|
|
53
|
+
* If the resource being imported contains references to resources which do not exist, these references are contained within this array.
|
|
52
54
|
*
|
|
53
55
|
*
|
|
54
56
|
*/
|
|
55
57
|
readonly unresolvedReferences?: UnresolvedReferences[];
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
59
|
+
* Date and time (UTC) the ImportOperation was created.
|
|
58
60
|
*
|
|
59
61
|
*/
|
|
60
62
|
readonly createdAt: string;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Date and time (UTC) the ImportOperation was last updated.
|
|
63
65
|
*
|
|
64
66
|
*/
|
|
65
67
|
readonly lastModifiedAt: string;
|
|
66
68
|
/**
|
|
67
|
-
*
|
|
69
|
+
* Date and time (UTC) the ImportOperation will be deleted.
|
|
68
70
|
*
|
|
69
71
|
*/
|
|
70
72
|
readonly expiresAt: string;
|
|
@@ -111,22 +113,22 @@ export declare enum ImportOperationStateValues {
|
|
|
111
113
|
}
|
|
112
114
|
export type ImportOperationState = 'processing' | 'validationFailed' | (string & {});
|
|
113
115
|
/**
|
|
114
|
-
* The
|
|
116
|
+
* The status of a new [ImportOperation](#importoperation).
|
|
115
117
|
*/
|
|
116
118
|
export interface ImportOperationStatus {
|
|
117
119
|
/**
|
|
118
|
-
*
|
|
120
|
+
* `id` of the [ImportOperation](#importoperation).
|
|
121
|
+
*
|
|
119
122
|
*
|
|
120
123
|
*/
|
|
121
124
|
readonly operationId?: string;
|
|
122
125
|
/**
|
|
123
|
-
*
|
|
126
|
+
* Validation state of the [ImportOperation](#importoperation).
|
|
124
127
|
*
|
|
125
128
|
*/
|
|
126
129
|
readonly state: ImportOperationState;
|
|
127
130
|
/**
|
|
128
|
-
*
|
|
129
|
-
* See [Errors](/import-export/error).
|
|
131
|
+
* [Errors](/import-export/error) for the [ImportOperation](#importoperation).
|
|
130
132
|
*
|
|
131
133
|
*
|
|
132
134
|
*/
|
|
@@ -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,oBAAgB;AAEtC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB
|
|
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,oBAAgB;AAEtC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;IACnC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,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12
12
|
import { OrderPatchImport } from "./order-patches.js";
|
|
13
13
|
import { OrderImport } from "./orders.js";
|
|
14
14
|
import { PriceImport } from "./prices.js";
|
|
15
|
+
import { ProductSelectionImport } from "./product-selections.js";
|
|
15
16
|
import { ProductDraftImport } from "./productdrafts.js";
|
|
16
17
|
import { ProductImport } from "./products.js";
|
|
17
18
|
import { ProductTypeImport } from "./producttypes.js";
|
|
@@ -22,7 +23,7 @@ import { TypeImport } from "./types.js";
|
|
|
22
23
|
* An import request batches multiple import resources of the same import resource type for processing by an Import Container.
|
|
23
24
|
*
|
|
24
25
|
*/
|
|
25
|
-
export type ImportRequest = CategoryImportRequest | CustomerImportRequest | DiscountCodeImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest | TypeImportRequest;
|
|
26
|
+
export type ImportRequest = CategoryImportRequest | CustomerImportRequest | DiscountCodeImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductSelectionImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest | TypeImportRequest;
|
|
26
27
|
export interface IImportRequest {
|
|
27
28
|
/**
|
|
28
29
|
* The resource types that can be imported.
|
|
@@ -32,18 +33,18 @@ export interface IImportRequest {
|
|
|
32
33
|
readonly type: ImportResourceType;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
|
-
* The response of each
|
|
36
|
+
* The response of each Import Request.
|
|
36
37
|
*
|
|
37
38
|
*/
|
|
38
39
|
export interface ImportResponse {
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
+
* The identifiers and status of the [ImportOperations](ctp:import:type:ImportOperation) created by the ImportRequest.
|
|
41
42
|
*
|
|
42
43
|
*/
|
|
43
44
|
readonly operationStatus: ImportOperationStatus[];
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
|
-
* The request body to [import Categories](
|
|
47
|
+
* The request body to [import Categories](ctp:import:endpoint:/{projectKey}/categories/import-containers/{importContainerKey}:POST). Contains data for [Categories](ctp:api:type:Category) to be created or updated in a Project.
|
|
47
48
|
*
|
|
48
49
|
*/
|
|
49
50
|
export interface CategoryImportRequest extends IImportRequest {
|
|
@@ -56,7 +57,7 @@ export interface CategoryImportRequest extends IImportRequest {
|
|
|
56
57
|
readonly resources: CategoryImport[];
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* The request body to [import Products](
|
|
60
|
+
* The request body to [import Products](ctp:import:endpoint:/{projectKey}/products/import-containers/{importContainerKey}:POST). Contains data for [Products](ctp:api:type:Product) to be created or updated in a Project.
|
|
60
61
|
*
|
|
61
62
|
*/
|
|
62
63
|
export interface ProductImportRequest extends IImportRequest {
|
|
@@ -69,7 +70,7 @@ export interface ProductImportRequest extends IImportRequest {
|
|
|
69
70
|
readonly resources: ProductImport[];
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
* The request body to [import ProductDrafts](
|
|
73
|
+
* The request body to [import ProductDrafts](ctp:import:endpoint:/{projectKey}/product-drafts/import-containers/{importContainerKey}:POST). Contains data for [Products](ctp:api:type:Product) to be created or updated in a Project.
|
|
73
74
|
*
|
|
74
75
|
*/
|
|
75
76
|
export interface ProductDraftImportRequest extends IImportRequest {
|
|
@@ -82,7 +83,7 @@ export interface ProductDraftImportRequest extends IImportRequest {
|
|
|
82
83
|
readonly resources: ProductDraftImport[];
|
|
83
84
|
}
|
|
84
85
|
/**
|
|
85
|
-
* The request body to [import ProductTypes](
|
|
86
|
+
* The request body to [import ProductTypes](ctp:import:endpoint:/{projectKey}/product-types/import-containers/{importContainerKey}:POST). Contains data for [ProductTypes](ctp:api:type:ProductType) to be created or updated in a Project.
|
|
86
87
|
*
|
|
87
88
|
*/
|
|
88
89
|
export interface ProductTypeImportRequest extends IImportRequest {
|
|
@@ -95,7 +96,7 @@ export interface ProductTypeImportRequest extends IImportRequest {
|
|
|
95
96
|
readonly resources: ProductTypeImport[];
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
|
-
* The request body to [import ProductVariants](
|
|
99
|
+
* The request body to [import ProductVariants](ctp:import:endpoint:/{projectKey}/product-variants/import-containers/{importContainerKey}:POST). Contains data for [ProductVariants](ctp:api:type:ProductVariant) to be created or updated in a Project.
|
|
99
100
|
*
|
|
100
101
|
*/
|
|
101
102
|
export interface ProductVariantImportRequest extends IImportRequest {
|
|
@@ -108,7 +109,7 @@ export interface ProductVariantImportRequest extends IImportRequest {
|
|
|
108
109
|
readonly resources: ProductVariantImport[];
|
|
109
110
|
}
|
|
110
111
|
/**
|
|
111
|
-
* The request body to [import Embedded Prices](
|
|
112
|
+
* The request body to [import Embedded Prices](ctp:import:endpoint:/{projectKey}/prices/import-containers/{importContainerKey}:POST). Contains data for [Embedded Prices](/../api/types#price) to be created or updated in a Project.
|
|
112
113
|
*
|
|
113
114
|
*/
|
|
114
115
|
export interface PriceImportRequest extends IImportRequest {
|
|
@@ -121,7 +122,7 @@ export interface PriceImportRequest extends IImportRequest {
|
|
|
121
122
|
readonly resources: PriceImport[];
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
|
-
* The request body to [import Standalone Prices](
|
|
125
|
+
* The request body to [import Standalone Prices](ctp:import:endpoint:/{projectKey}/standalone-prices/import-containers/{importContainerKey}:POST). Contains data for [Standalone Prices](ctp:api:type:StandalonePrice) to be created or updated in a Project.
|
|
125
126
|
*
|
|
126
127
|
*/
|
|
127
128
|
export interface StandalonePriceImportRequest extends IImportRequest {
|
|
@@ -134,7 +135,7 @@ export interface StandalonePriceImportRequest extends IImportRequest {
|
|
|
134
135
|
readonly resources: StandalonePriceImport[];
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
|
-
* The request body to [import Orders](
|
|
138
|
+
* The request body to [import Orders](ctp:import:endpoint:/{projectKey}/orders/import-containers/{importContainerKey}:POST). Contains data for [Orders](ctp:api:type:Order) to be created in a Project.
|
|
138
139
|
*
|
|
139
140
|
*/
|
|
140
141
|
export interface OrderImportRequest extends IImportRequest {
|
|
@@ -147,7 +148,7 @@ export interface OrderImportRequest extends IImportRequest {
|
|
|
147
148
|
readonly resources: OrderImport[];
|
|
148
149
|
}
|
|
149
150
|
/**
|
|
150
|
-
* The request body to [import OrderPatches](
|
|
151
|
+
* The request body to [import OrderPatches](ctp:import:endpoint:/{projectKey}/order-patches/import-containers/{importContainerKey}:POST). The data to be imported are represented by [OrderPatchImport](ctp:import:type:OrderPatchImport).
|
|
151
152
|
*
|
|
152
153
|
*/
|
|
153
154
|
export interface OrderPatchImportRequest extends IImportRequest {
|
|
@@ -160,7 +161,7 @@ export interface OrderPatchImportRequest extends IImportRequest {
|
|
|
160
161
|
readonly patches: OrderPatchImport[];
|
|
161
162
|
}
|
|
162
163
|
/**
|
|
163
|
-
* The request body to [import ProductVariantPatches](
|
|
164
|
+
* The request body to [import ProductVariantPatches](ctp:import:endpoint:/{projectKey}/product-variant-patches/import-containers/{importContainerKey}:POST). The data to be imported are represented by [ProductVariantPatch](ctp:import:type:ProductVariantPatch).
|
|
164
165
|
*
|
|
165
166
|
*/
|
|
166
167
|
export interface ProductVariantPatchRequest extends IImportRequest {
|
|
@@ -173,7 +174,7 @@ export interface ProductVariantPatchRequest extends IImportRequest {
|
|
|
173
174
|
readonly patches: ProductVariantPatch[];
|
|
174
175
|
}
|
|
175
176
|
/**
|
|
176
|
-
* The request body to [import Customers](
|
|
177
|
+
* The request body to [import Customers](ctp:import:endpoint:/{projectKey}/customers/import-containers/{importContainerKey}:POST). Contains data for [Customers](ctp:api:type:Customer) to be created or updated in a Project.
|
|
177
178
|
*
|
|
178
179
|
*/
|
|
179
180
|
export interface CustomerImportRequest extends IImportRequest {
|
|
@@ -186,7 +187,7 @@ export interface CustomerImportRequest extends IImportRequest {
|
|
|
186
187
|
readonly resources: CustomerImport[];
|
|
187
188
|
}
|
|
188
189
|
/**
|
|
189
|
-
* The request body to [import Inventories](
|
|
190
|
+
* The request body to [import Inventories](ctp:import:endpoint:/{projectKey}/inventories/import-containers/{importContainerKey}:POST). Contains data for [InventoryEntries](ctp:api:type:InventoryEntry) to be created or updated in a commercetools Project.
|
|
190
191
|
*
|
|
191
192
|
*/
|
|
192
193
|
export interface InventoryImportRequest extends IImportRequest {
|
|
@@ -199,7 +200,7 @@ export interface InventoryImportRequest extends IImportRequest {
|
|
|
199
200
|
readonly resources: InventoryImport[];
|
|
200
201
|
}
|
|
201
202
|
/**
|
|
202
|
-
* The request body to [import Types](
|
|
203
|
+
* The request body to [import Types](ctp:import:endpoint:/{projectKey}/types/import-containers/{importContainerKey}:POST). Contains data for [Types](ctp:api:type:Type) to be created or updated in a Project.
|
|
203
204
|
*
|
|
204
205
|
*/
|
|
205
206
|
export interface TypeImportRequest extends IImportRequest {
|
|
@@ -212,7 +213,7 @@ export interface TypeImportRequest extends IImportRequest {
|
|
|
212
213
|
readonly resources: TypeImport[];
|
|
213
214
|
}
|
|
214
215
|
/**
|
|
215
|
-
* The request body to [import
|
|
216
|
+
* The request body to [import DiscountCodes](ctp:import:endpoint:/{projectKey}/discount-codes/import-containers/{importContainerKey}:POST). Contains data for [Discount Codes](ctp:api:type:DiscountCode) to be created or updated in a Project.
|
|
216
217
|
*
|
|
217
218
|
*/
|
|
218
219
|
export interface DiscountCodeImportRequest extends IImportRequest {
|
|
@@ -224,4 +225,17 @@ export interface DiscountCodeImportRequest extends IImportRequest {
|
|
|
224
225
|
*/
|
|
225
226
|
readonly resources: DiscountCodeImport[];
|
|
226
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* The request body to [import Product Selections](ctp:import:endpoint:/{projectKey}/product-selections/import-containers/{importContainerKey}:POST). Contains data for [Product Selections](ctp:api:type:ProductSelection) to be created or updated in a Project.
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
export interface ProductSelectionImportRequest extends IImportRequest {
|
|
233
|
+
readonly type: 'product-selection';
|
|
234
|
+
/**
|
|
235
|
+
* The Product Selection import resources of this request.
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
readonly resources: ProductSelectionImport[];
|
|
240
|
+
}
|
|
227
241
|
//# sourceMappingURL=importrequests.d.ts.map
|
|
@@ -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,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,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,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH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C,SAAS,EAAE,kBAAkB,EAAE,CAAA;CACzC"}
|
|
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,sBAAsB,EAAE,gCAA4B;AAC7D,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,6BAA6B,GAC7B,wBAAwB,GACxB,2BAA2B,GAC3B,0BAA0B,GAC1B,4BAA4B,GAC5B,iBAAiB,CAAA;AACrB,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAClC;AACD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAAQ,C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IAAI,EAAE,mBAAmB,CAAA;IAClC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,sBAAsB,EAAE,CAAA;CAC7C"}
|
|
@@ -4,59 +4,58 @@
|
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* Can be used to monitor the import progress per [Import Container](ctp:import:type:ImportContainer).
|
|
7
|
+
* The current status of [ImportOperations](ctp:import:type:ImportOperation) in an [ImportContainer](ctp:import:type:ImportContainer).
|
|
9
8
|
*
|
|
10
9
|
*/
|
|
11
10
|
export interface ImportSummary {
|
|
12
11
|
/**
|
|
13
|
-
* The
|
|
12
|
+
* The current [ProcessingStates](ctp:import:type:ProcessingState) of ImportOperations in an ImportContainer.
|
|
14
13
|
*
|
|
15
14
|
*
|
|
16
15
|
*/
|
|
17
16
|
readonly states: OperationStates;
|
|
18
17
|
/**
|
|
19
|
-
* The total number of
|
|
18
|
+
* The total number of ImportOperations in `states`.
|
|
20
19
|
*
|
|
21
20
|
*/
|
|
22
21
|
readonly total: number;
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
|
-
* The number of
|
|
24
|
+
* The number of [ImportOperations](ctp:import:type:ImportOperation) in each [ProcessingState](ctp:import:type:ProcessingState).
|
|
26
25
|
*/
|
|
27
26
|
export interface OperationStates {
|
|
28
27
|
/**
|
|
29
|
-
* The number of
|
|
28
|
+
* The number of ImportOperations in the `processing` state.
|
|
30
29
|
*
|
|
31
30
|
*/
|
|
32
31
|
readonly processing: number;
|
|
33
32
|
/**
|
|
34
|
-
* The number of
|
|
33
|
+
* The number of ImportOperations in the `validationFailed` state.
|
|
35
34
|
*
|
|
36
35
|
*/
|
|
37
36
|
readonly validationFailed: number;
|
|
38
37
|
/**
|
|
39
|
-
* The number of
|
|
38
|
+
* The number of ImportOperations in the `unresolved` state.
|
|
40
39
|
*
|
|
41
40
|
*/
|
|
42
41
|
readonly unresolved: number;
|
|
43
42
|
/**
|
|
44
|
-
* The number of
|
|
43
|
+
* The number of ImportOperations in the `waitForMasterVariant` state.
|
|
45
44
|
*
|
|
46
45
|
*/
|
|
47
46
|
readonly waitForMasterVariant: number;
|
|
48
47
|
/**
|
|
49
|
-
* The number of
|
|
48
|
+
* The number of ImportOperations in the `imported` state.
|
|
50
49
|
*
|
|
51
50
|
*/
|
|
52
51
|
readonly imported: number;
|
|
53
52
|
/**
|
|
54
|
-
* The number of
|
|
53
|
+
* The number of ImportOperations in the `rejected` state.
|
|
55
54
|
*
|
|
56
55
|
*/
|
|
57
56
|
readonly rejected: number;
|
|
58
57
|
/**
|
|
59
|
-
* The number of
|
|
58
|
+
* The number of ImportOperations in the `canceled` state.
|
|
60
59
|
*
|
|
61
60
|
*/
|
|
62
61
|
readonly canceled: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importsummaries.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importsummaries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"importsummaries.d.ts","sourceRoot":"../../../../../src/generated/models","sources":["importsummaries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAA;IACrC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B"}
|