@commercetools/importapi-sdk 5.0.0 → 5.2.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.
@@ -1,21 +1,21 @@
1
- function _toPrimitive(input, hint) {
2
- if (typeof input !== "object" || input === null) return input;
3
- var prim = input[Symbol.toPrimitive];
4
- if (prim !== undefined) {
5
- var res = prim.call(input, hint || "default");
6
- if (typeof res !== "object") return res;
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
7
  throw new TypeError("@@toPrimitive must return a primitive value.");
8
8
  }
9
- return (hint === "string" ? String : Number)(input);
9
+ return ("string" === r ? String : Number)(t);
10
10
  }
11
11
 
12
- function _toPropertyKey(arg) {
13
- var key = _toPrimitive(arg, "string");
14
- return typeof key === "symbol" ? key : String(key);
12
+ function toPropertyKey(t) {
13
+ var i = toPrimitive(t, "string");
14
+ return "symbol" == typeof i ? i : String(i);
15
15
  }
16
16
 
17
17
  function _defineProperty(obj, key, value) {
18
- key = _toPropertyKey(key);
18
+ key = toPropertyKey(key);
19
19
  if (key in obj) {
20
20
  Object.defineProperty(obj, key, {
21
21
  value: value,
@@ -128,9 +128,9 @@ class ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder {
128
128
  pathVariables: this.args.pathArgs,
129
129
  headers: {
130
130
  'Content-Type': 'application/json',
131
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
131
+ ...methodArgs?.headers
132
132
  },
133
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
133
+ body: methodArgs?.body
134
134
  }, this.args.executeRequest);
135
135
  }
136
136
  }
@@ -202,9 +202,9 @@ class ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder {
202
202
  pathVariables: this.args.pathArgs,
203
203
  headers: {
204
204
  'Content-Type': 'application/json',
205
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
205
+ ...methodArgs?.headers
206
206
  },
207
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
207
+ body: methodArgs?.body
208
208
  }, this.args.executeRequest);
209
209
  }
210
210
  }
@@ -276,9 +276,9 @@ class ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBui
276
276
  uriTemplate: '/{projectKey}/import-containers/{importContainerKey}/import-operations',
277
277
  pathVariables: this.args.pathArgs,
278
278
  headers: {
279
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
279
+ ...methodArgs?.headers
280
280
  },
281
- queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
281
+ queryParams: methodArgs?.queryArgs
282
282
  }, this.args.executeRequest);
283
283
  }
284
284
  }
@@ -305,7 +305,7 @@ class ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuil
305
305
  uriTemplate: '/{projectKey}/import-containers/{importContainerKey}/import-summaries',
306
306
  pathVariables: this.args.pathArgs,
307
307
  headers: {
308
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
308
+ ...methodArgs?.headers
309
309
  }
310
310
  }, this.args.executeRequest);
311
311
  }
@@ -352,9 +352,9 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
352
352
  pathVariables: this.args.pathArgs,
353
353
  headers: {
354
354
  'Content-Type': 'application/json',
355
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
355
+ ...methodArgs?.headers
356
356
  },
357
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
357
+ body: methodArgs?.body
358
358
  }, this.args.executeRequest);
359
359
  }
360
360
  /**
@@ -367,7 +367,7 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
367
367
  uriTemplate: '/{projectKey}/import-containers/{importContainerKey}',
368
368
  pathVariables: this.args.pathArgs,
369
369
  headers: {
370
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
370
+ ...methodArgs?.headers
371
371
  }
372
372
  }, this.args.executeRequest);
373
373
  }
@@ -381,7 +381,7 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
381
381
  uriTemplate: '/{projectKey}/import-containers/{importContainerKey}',
382
382
  pathVariables: this.args.pathArgs,
383
383
  headers: {
384
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
384
+ ...methodArgs?.headers
385
385
  }
386
386
  }, this.args.executeRequest);
387
387
  }
@@ -420,9 +420,9 @@ class ByProjectKeyImportContainersRequestBuilder {
420
420
  pathVariables: this.args.pathArgs,
421
421
  headers: {
422
422
  'Content-Type': 'application/json',
423
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
423
+ ...methodArgs?.headers
424
424
  },
425
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
425
+ body: methodArgs?.body
426
426
  }, this.args.executeRequest);
427
427
  }
428
428
  /**
@@ -435,9 +435,9 @@ class ByProjectKeyImportContainersRequestBuilder {
435
435
  uriTemplate: '/{projectKey}/import-containers',
436
436
  pathVariables: this.args.pathArgs,
437
437
  headers: {
438
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
438
+ ...methodArgs?.headers
439
439
  },
440
- queryParams: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.queryArgs
440
+ queryParams: methodArgs?.queryArgs
441
441
  }, this.args.executeRequest);
442
442
  }
443
443
  }
@@ -464,7 +464,7 @@ class ByProjectKeyImportOperationsByIdRequestBuilder {
464
464
  uriTemplate: '/{projectKey}/import-operations/{id}',
465
465
  pathVariables: this.args.pathArgs,
466
466
  headers: {
467
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
467
+ ...methodArgs?.headers
468
468
  }
469
469
  }, this.args.executeRequest);
470
470
  }
@@ -515,9 +515,9 @@ class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder
515
515
  pathVariables: this.args.pathArgs,
516
516
  headers: {
517
517
  'Content-Type': 'application/json',
518
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
518
+ ...methodArgs?.headers
519
519
  },
520
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
520
+ body: methodArgs?.body
521
521
  }, this.args.executeRequest);
522
522
  }
523
523
  }
@@ -589,9 +589,9 @@ class ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder
589
589
  pathVariables: this.args.pathArgs,
590
590
  headers: {
591
591
  'Content-Type': 'application/json',
592
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
592
+ ...methodArgs?.headers
593
593
  },
594
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
594
+ body: methodArgs?.body
595
595
  }, this.args.executeRequest);
596
596
  }
597
597
  }
@@ -663,9 +663,9 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
663
663
  pathVariables: this.args.pathArgs,
664
664
  headers: {
665
665
  'Content-Type': 'application/json',
666
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
666
+ ...methodArgs?.headers
667
667
  },
668
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
668
+ body: methodArgs?.body
669
669
  }, this.args.executeRequest);
670
670
  }
671
671
  }
@@ -737,9 +737,9 @@ class ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder {
737
737
  pathVariables: this.args.pathArgs,
738
738
  headers: {
739
739
  'Content-Type': 'application/json',
740
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
740
+ ...methodArgs?.headers
741
741
  },
742
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
742
+ body: methodArgs?.body
743
743
  }, this.args.executeRequest);
744
744
  }
745
745
  }
@@ -812,9 +812,9 @@ class ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilde
812
812
  pathVariables: this.args.pathArgs,
813
813
  headers: {
814
814
  'Content-Type': 'application/json',
815
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
815
+ ...methodArgs?.headers
816
816
  },
817
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
817
+ body: methodArgs?.body
818
818
  }, this.args.executeRequest);
819
819
  }
820
820
  }
@@ -886,9 +886,9 @@ class ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder
886
886
  pathVariables: this.args.pathArgs,
887
887
  headers: {
888
888
  'Content-Type': 'application/json',
889
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
889
+ ...methodArgs?.headers
890
890
  },
891
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
891
+ body: methodArgs?.body
892
892
  }, this.args.executeRequest);
893
893
  }
894
894
  }
@@ -960,9 +960,9 @@ class ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyReque
960
960
  pathVariables: this.args.pathArgs,
961
961
  headers: {
962
962
  'Content-Type': 'application/json',
963
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
963
+ ...methodArgs?.headers
964
964
  },
965
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
965
+ body: methodArgs?.body
966
966
  }, this.args.executeRequest);
967
967
  }
968
968
  }
@@ -1034,9 +1034,9 @@ class ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuil
1034
1034
  pathVariables: this.args.pathArgs,
1035
1035
  headers: {
1036
1036
  'Content-Type': 'application/json',
1037
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1037
+ ...methodArgs?.headers
1038
1038
  },
1039
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1039
+ body: methodArgs?.body
1040
1040
  }, this.args.executeRequest);
1041
1041
  }
1042
1042
  }
@@ -1108,9 +1108,9 @@ class ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder {
1108
1108
  pathVariables: this.args.pathArgs,
1109
1109
  headers: {
1110
1110
  'Content-Type': 'application/json',
1111
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1111
+ ...methodArgs?.headers
1112
1112
  },
1113
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1113
+ body: methodArgs?.body
1114
1114
  }, this.args.executeRequest);
1115
1115
  }
1116
1116
  }
@@ -1182,9 +1182,9 @@ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBui
1182
1182
  pathVariables: this.args.pathArgs,
1183
1183
  headers: {
1184
1184
  'Content-Type': 'application/json',
1185
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1185
+ ...methodArgs?.headers
1186
1186
  },
1187
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1187
+ body: methodArgs?.body
1188
1188
  }, this.args.executeRequest);
1189
1189
  }
1190
1190
  }
@@ -1256,9 +1256,9 @@ class ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder {
1256
1256
  pathVariables: this.args.pathArgs,
1257
1257
  headers: {
1258
1258
  'Content-Type': 'application/json',
1259
- ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1259
+ ...methodArgs?.headers
1260
1260
  },
1261
- body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1261
+ body: methodArgs?.body
1262
1262
  }, this.args.executeRequest);
1263
1263
  }
1264
1264
  }
@@ -1501,4 +1501,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
1501
1501
  });
1502
1502
  }
1503
1503
 
1504
- export { ApiRoot, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
1504
+ export { ApiRoot, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
@@ -4,6 +4,52 @@
4
4
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
5
  */
6
6
  export * from "./client/api-root.js";
7
+ export * from "./client/by-project-key-request-builder.js";
8
+ export * from "./client/categories/by-project-key-categories-request-builder.js";
9
+ export * from "./client/customers/by-project-key-customers-request-builder.js";
10
+ export * from "./client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.js";
11
+ export * from "./client/import-containers/by-project-key-categories-import-containers-request-builder.js";
12
+ export * from "./client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.js";
13
+ export * from "./client/import-containers/by-project-key-customers-import-containers-request-builder.js";
14
+ export * from "./client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.js";
15
+ export * from "./client/import-containers/by-project-key-import-containers-request-builder.js";
16
+ export * from "./client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.js";
17
+ export * from "./client/import-containers/by-project-key-inventories-import-containers-request-builder.js";
18
+ export * from "./client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.js";
19
+ export * from "./client/import-containers/by-project-key-order-patches-import-containers-request-builder.js";
20
+ export * from "./client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.js";
21
+ export * from "./client/import-containers/by-project-key-orders-import-containers-request-builder.js";
22
+ export * from "./client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.js";
23
+ export * from "./client/import-containers/by-project-key-prices-import-containers-request-builder.js";
24
+ export * from "./client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.js";
25
+ export * from "./client/import-containers/by-project-key-product-drafts-import-containers-request-builder.js";
26
+ export * from "./client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.js";
27
+ export * from "./client/import-containers/by-project-key-product-types-import-containers-request-builder.js";
28
+ export * from "./client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.js";
29
+ export * from "./client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.js";
30
+ export * from "./client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.js";
31
+ export * from "./client/import-containers/by-project-key-product-variants-import-containers-request-builder.js";
32
+ export * from "./client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.js";
33
+ export * from "./client/import-containers/by-project-key-products-import-containers-request-builder.js";
34
+ export * from "./client/import-containers/by-project-key-standalone-prices-import-containers-by-import-container-key-request-builder.js";
35
+ export * from "./client/import-containers/by-project-key-standalone-prices-import-containers-request-builder.js";
36
+ export * from "./client/import-containers/by-project-key-types-import-containers-by-import-container-key-request-builder.js";
37
+ export * from "./client/import-containers/by-project-key-types-import-containers-request-builder.js";
38
+ export * from "./client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.js";
39
+ export * from "./client/import-operations/by-project-key-import-operations-by-id-request-builder.js";
40
+ export * from "./client/import-operations/by-project-key-import-operations-request-builder.js";
41
+ export * from "./client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.js";
42
+ export * from "./client/inventories/by-project-key-inventories-request-builder.js";
43
+ export * from "./client/order-patches/by-project-key-order-patches-request-builder.js";
44
+ export * from "./client/orders/by-project-key-orders-request-builder.js";
45
+ export * from "./client/prices/by-project-key-prices-request-builder.js";
46
+ export * from "./client/product-drafts/by-project-key-product-drafts-request-builder.js";
47
+ export * from "./client/product-types/by-project-key-product-types-request-builder.js";
48
+ export * from "./client/product-variant-patches/by-project-key-product-variant-patches-request-builder.js";
49
+ export * from "./client/product-variants/by-project-key-product-variants-request-builder.js";
50
+ export * from "./client/products/by-project-key-products-request-builder.js";
51
+ export * from "./client/standalone-prices/by-project-key-standalone-prices-request-builder.js";
52
+ export * from "./client/types/by-project-key-types-request-builder.js";
7
53
  export * from "./models/categories.js";
8
54
  export * from "./models/common.js";
9
55
  export * from "./models/customers.js";
@@ -10,6 +10,11 @@ import { Custom } from "./customfields.js";
10
10
  *
11
11
  */
12
12
  export interface CategoryImport extends ImportResource {
13
+ /**
14
+ * User-defined unique identifier. If a [Category](/../api/projects/categories#category) with this `key` exists, it will be updated with the imported data.
15
+ *
16
+ */
17
+ readonly key: string;
13
18
  /**
14
19
  * Maps to `Category.name`.
15
20
  *
@@ -123,6 +123,11 @@ export interface CustomerAddress {
123
123
  *
124
124
  */
125
125
  export interface CustomerImport extends ImportResource {
126
+ /**
127
+ * User-defined unique identifier. If a [Customer](/../api/projects/customers#customer) with this `key` exists, it will be updated with the imported data.
128
+ *
129
+ */
130
+ readonly key: string;
126
131
  /**
127
132
  * Maps to `Customer.customerNumber`.
128
133
  *
@@ -21,6 +21,9 @@ export interface ImportSummary {
21
21
  */
22
22
  readonly total: number;
23
23
  }
24
+ /**
25
+ * The number of resources in each [Processing State](/processing-state#processingstate).
26
+ */
24
27
  export interface OperationStates {
25
28
  /**
26
29
  * The number of resources in the `processing` state.
@@ -10,6 +10,11 @@ import { Custom } from "./customfields.js";
10
10
  *
11
11
  */
12
12
  export interface InventoryImport extends ImportResource {
13
+ /**
14
+ * User-defined unique identifier. If an [InventoryEntry](/../api/projects/inventory#inventoryentry) with this `key` exists, it will be updated with the imported data.
15
+ *
16
+ */
17
+ readonly key: string;
13
18
  /**
14
19
  * Maps to `Inventory.sku`
15
20
  *
@@ -636,7 +636,7 @@ export interface ScoreShippingRateInput {
636
636
  * The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project.
637
637
  *
638
638
  * In commercetools, you can import an Order using the
639
- * [Create Order by Import](/../api/projects/orders-import#create-order-by-import)
639
+ * [Create Order by Import](ctp:importapi:endpoint:/{projectKey}/orders/import:POST)
640
640
  * endpoint method instead of creating it from a Cart.
641
641
  *
642
642
  * An OrderImport is a snapshot of an order at the time it was imported.
@@ -53,7 +53,7 @@ export interface TaxRate {
53
53
  */
54
54
  export interface PriceImport extends ImportResource {
55
55
  /**
56
- * User-defined unique identifier for the Embedded Price.
56
+ * User-defined unique identifier for the Embedded Price. If a [Price](/../api/types#price) with this `key` exists on the specified `productVariant`, it will be updated with the imported data.
57
57
  *
58
58
  *
59
59
  */
@@ -12,6 +12,11 @@ import { Attribute } from "./productvariants.js";
12
12
  *
13
13
  */
14
14
  export interface ProductDraftImport extends ImportResource {
15
+ /**
16
+ * User-defined unique identifier. If a [Product](/../api/projects/products#product) with this `key` exists, it will be updated with the imported data.
17
+ *
18
+ */
19
+ readonly key: string;
15
20
  /**
16
21
  * The `productType` of a [Product](/../api/projects/products#product).
17
22
  * Maps to `Product.productType`.
@@ -61,6 +61,11 @@ export interface WhitespaceTokenizer {
61
61
  *
62
62
  */
63
63
  export interface ProductImport extends ImportResource {
64
+ /**
65
+ * User-defined unique identifier. If a [Product](/../api/projects/products#product) with this `key` exists, it will be updated with the imported data.
66
+ *
67
+ */
68
+ readonly key: string;
64
69
  /**
65
70
  * Maps to `Product.name`.
66
71
  *
@@ -152,6 +152,11 @@ export type TextInputHint = 'MultiLine' | 'SingleLine' | string;
152
152
  *
153
153
  */
154
154
  export interface ProductTypeImport extends ImportResource {
155
+ /**
156
+ * User-defined unique identifier. If a [ProductType](/../api/projects/productTypes#producttype) with this `key` exists, it will be updated with the imported data.
157
+ *
158
+ */
159
+ readonly key: string;
155
160
  /**
156
161
  * Maps to `ProductType.name`.
157
162
  *
@@ -446,6 +446,11 @@ export interface TimeSetAttribute {
446
446
  *
447
447
  */
448
448
  export interface ProductVariantImport extends ImportResource {
449
+ /**
450
+ * User-defined unique identifier. If a [ProductVariant](/../api/projects/products#productvariant) with this `key` exists on the specified `product`, it will be updated with the imported data.
451
+ *
452
+ */
453
+ readonly key: string;
449
454
  /**
450
455
  * Maps to `ProductVariant.sku`.
451
456
  *
@@ -11,7 +11,7 @@ import { Custom } from "./customfields.js";
11
11
  */
12
12
  export interface StandalonePriceImport extends ImportResource {
13
13
  /**
14
- * User-defined unique identifier for the Standalone Price.
14
+ * User-defined unique identifier for the Standalone Price. If a [StandalonePrice](/../api/projects/standalone-prices#standaloneprice) with this `key` exists, it will be updated with the imported data.
15
15
  *
16
16
  *
17
17
  */
@@ -180,7 +180,7 @@ export interface FieldDefinition {
180
180
  */
181
181
  export interface TypeImport extends ImportResource {
182
182
  /**
183
- * User-defined unique identifier for the Type.
183
+ * User-defined unique identifier for the Type. If a [Type](/../api/projects/types#type) with this `key` exists, it will be updated with the imported data.
184
184
  *
185
185
  *
186
186
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@commercetools/importapi-sdk",
7
- "version": "5.0.0",
7
+ "version": "5.2.0",
8
8
  "engines": {
9
9
  "node": ">=14"
10
10
  },