@commercetools/importapi-sdk 6.4.0 → 6.6.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/commercetools-importapi-sdk.browser.cjs.js +248 -61
  3. package/dist/commercetools-importapi-sdk.browser.esm.js +243 -62
  4. package/dist/commercetools-importapi-sdk.cjs.dev.js +248 -61
  5. package/dist/commercetools-importapi-sdk.cjs.prod.js +248 -61
  6. package/dist/commercetools-importapi-sdk.esm.js +243 -62
  7. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
  8. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts.map +1 -1
  9. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  10. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  11. 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
  12. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +3 -3
  13. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +2 -2
  14. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  15. 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
  16. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  17. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  18. 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
  19. 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
  20. 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
  21. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-request-builder.d.ts +29 -0
  22. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-selections-import-containers-request-builder.d.ts.map +1 -0
  23. 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
  24. 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
  25. 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
  26. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  27. 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
  28. package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-by-import-container-key-request-builder.d.ts +1 -1
  29. 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
  30. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +1 -1
  31. 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
  32. package/dist/declarations/src/generated/client/product-selections/by-project-key-product-selections-request-builder.d.ts +27 -0
  33. package/dist/declarations/src/generated/client/product-selections/by-project-key-product-selections-request-builder.d.ts.map +1 -0
  34. package/dist/declarations/src/generated/index.d.ts +4 -0
  35. package/dist/declarations/src/generated/index.d.ts.map +1 -1
  36. package/dist/declarations/src/generated/models/categories.d.ts +5 -8
  37. package/dist/declarations/src/generated/models/categories.d.ts.map +1 -1
  38. package/dist/declarations/src/generated/models/common.d.ts +160 -59
  39. package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
  40. package/dist/declarations/src/generated/models/customers.d.ts +12 -13
  41. package/dist/declarations/src/generated/models/customers.d.ts.map +1 -1
  42. package/dist/declarations/src/generated/models/customfields.d.ts +149 -91
  43. package/dist/declarations/src/generated/models/customfields.d.ts.map +1 -1
  44. package/dist/declarations/src/generated/models/discount-codes.d.ts +12 -14
  45. package/dist/declarations/src/generated/models/discount-codes.d.ts.map +1 -1
  46. package/dist/declarations/src/generated/models/errors.d.ts +6 -0
  47. package/dist/declarations/src/generated/models/errors.d.ts.map +1 -1
  48. package/dist/declarations/src/generated/models/importcontainers.d.ts +68 -23
  49. package/dist/declarations/src/generated/models/importcontainers.d.ts.map +1 -1
  50. package/dist/declarations/src/generated/models/importoperations.d.ts +19 -17
  51. package/dist/declarations/src/generated/models/importoperations.d.ts.map +1 -1
  52. package/dist/declarations/src/generated/models/importrequests.d.ts +31 -17
  53. package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
  54. package/dist/declarations/src/generated/models/importsummaries.d.ts +11 -12
  55. package/dist/declarations/src/generated/models/importsummaries.d.ts.map +1 -1
  56. package/dist/declarations/src/generated/models/inventories.d.ts +8 -8
  57. package/dist/declarations/src/generated/models/order-patches.d.ts +57 -7
  58. package/dist/declarations/src/generated/models/order-patches.d.ts.map +1 -1
  59. package/dist/declarations/src/generated/models/orders.d.ts +136 -45
  60. package/dist/declarations/src/generated/models/orders.d.ts.map +1 -1
  61. package/dist/declarations/src/generated/models/prices.d.ts +10 -14
  62. package/dist/declarations/src/generated/models/prices.d.ts.map +1 -1
  63. package/dist/declarations/src/generated/models/product-selections.d.ts +109 -0
  64. package/dist/declarations/src/generated/models/product-selections.d.ts.map +1 -0
  65. package/dist/declarations/src/generated/models/productdrafts.d.ts +37 -64
  66. package/dist/declarations/src/generated/models/productdrafts.d.ts.map +1 -1
  67. package/dist/declarations/src/generated/models/products.d.ts +15 -58
  68. package/dist/declarations/src/generated/models/products.d.ts.map +1 -1
  69. package/dist/declarations/src/generated/models/producttypes.d.ts +14 -19
  70. package/dist/declarations/src/generated/models/producttypes.d.ts.map +1 -1
  71. package/dist/declarations/src/generated/models/productvariants.d.ts +162 -89
  72. package/dist/declarations/src/generated/models/productvariants.d.ts.map +1 -1
  73. package/dist/declarations/src/generated/models/standalone-prices.d.ts +14 -15
  74. package/dist/declarations/src/generated/models/standalone-prices.d.ts.map +1 -1
  75. package/dist/declarations/src/generated/models/types.d.ts +11 -4
  76. package/dist/declarations/src/generated/models/types.d.ts.map +1 -1
  77. package/dist/declarations/src/generated/shared/utils/common-types.d.ts +29 -1
  78. package/dist/declarations/src/generated/shared/utils/common-types.d.ts.map +1 -1
  79. package/package.json +2 -2
@@ -112,7 +112,7 @@ class ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder {
112
112
  this.args = args;
113
113
  }
114
114
  /**
115
- * Creates a request for creating new Categories or updating existing ones.
115
+ * Creates an Import Request for Categories.
116
116
  */
117
117
  post(methodArgs) {
118
118
  return new ApiRequest({
@@ -186,7 +186,7 @@ class ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder {
186
186
  this.args = args;
187
187
  }
188
188
  /**
189
- * Creates a request for creating new Customers or updating existing ones.
189
+ * Creates an Import Request for Customers.
190
190
  */
191
191
  post(methodArgs) {
192
192
  return new ApiRequest({
@@ -260,7 +260,7 @@ class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilde
260
260
  this.args = args;
261
261
  }
262
262
  /**
263
- * Creates a request for creating new Discount Codes or updating existing ones.
263
+ * Creates an Import Request for Discount Codes.
264
264
  */
265
265
  post(methodArgs) {
266
266
  return new ApiRequest({
@@ -334,7 +334,7 @@ class ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBui
334
334
  this.args = args;
335
335
  }
336
336
  /**
337
- * Retrieves all [ImportOperations](ctp:import:type:ImportOperation) of a given ImportContainer key.
337
+ * Retrieves all ImportOperations within an [ImportContainer](ctp:import:type:ImportContainer).
338
338
  *
339
339
  */
340
340
  get(methodArgs) {
@@ -363,7 +363,7 @@ class ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuil
363
363
  this.args = args;
364
364
  }
365
365
  /**
366
- * Retrieves an [ImportSummary](ctp:import:type:ImportSummary) for the given Import Container. An [ImportSummary](ctp:import:type:ImportSummary) is calculated on demand.
366
+ * Retrieves an [ImportSummary](ctp:import:type:ImportSummary) for the [ImportContainer](ctp:import:type:ImportContainer) with the provided `importContainerKey`.
367
367
  *
368
368
  */
369
369
  get(methodArgs) {
@@ -410,7 +410,7 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
410
410
  }
411
411
 
412
412
  /**
413
- * Updates the Import Container given by the key.
413
+ * Updates an [ImportContainer](ctp:import:type:ImportContainer) in the Project.
414
414
  */
415
415
  put(methodArgs) {
416
416
  return new ApiRequest({
@@ -426,7 +426,7 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
426
426
  }, this.args.executeRequest);
427
427
  }
428
428
  /**
429
- * Retrieves the Import Container given by the key.
429
+ * Retrieves an [ImportContainer](ctp:import:type:ImportContainer) with the provided `importContainerKey`.
430
430
  */
431
431
  get(methodArgs) {
432
432
  return new ApiRequest({
@@ -440,7 +440,7 @@ class ByProjectKeyImportContainersByImportContainerKeyRequestBuilder {
440
440
  }, this.args.executeRequest);
441
441
  }
442
442
  /**
443
- * Deletes the Import Container specified by the `importContainerKey`.
443
+ * Deletes an Import Container in the Project.
444
444
  *
445
445
  * Generates the [ImportContainerDeleted](/projects/events#import-container-deleted-event) Event.
446
446
  *
@@ -481,7 +481,7 @@ class ByProjectKeyImportContainersRequestBuilder {
481
481
  }
482
482
 
483
483
  /**
484
- * Creates a new Import Container.
484
+ * Creates an Import Container in the Project.
485
485
  *
486
486
  * Generates the [ImportContainerCreated](/projects/events#import-container-created-event) Event.
487
487
  *
@@ -500,7 +500,7 @@ class ByProjectKeyImportContainersRequestBuilder {
500
500
  }, this.args.executeRequest);
501
501
  }
502
502
  /**
503
- * Retrieves all Import Containers of a given project key.
503
+ * Retrieves all ImportContainers in the Project.
504
504
  */
505
505
  get(methodArgs) {
506
506
  return new ApiRequest({
@@ -528,7 +528,7 @@ class ByProjectKeyImportOperationsByIdRequestBuilder {
528
528
  this.args = args;
529
529
  }
530
530
  /**
531
- * Retrieves the [ImportOperation](ctp:import:type:ImportOperation) of a given ID.
531
+ * Retrieves an ImportOperation with the provided `id`.
532
532
  *
533
533
  */
534
534
  get(methodArgs) {
@@ -579,7 +579,7 @@ class ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder
579
579
  this.args = args;
580
580
  }
581
581
  /**
582
- * Creates a request for creating new Inventories or updating existing ones.
582
+ * Creates an Import Request for InventoryEntries.
583
583
  */
584
584
  post(methodArgs) {
585
585
  return new ApiRequest({
@@ -653,7 +653,7 @@ class ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder
653
653
  this.args = args;
654
654
  }
655
655
  /**
656
- * Creates a new import request for order patches
656
+ * Creates an Import Request for updating Orders.
657
657
  */
658
658
  post(methodArgs) {
659
659
  return new ApiRequest({
@@ -727,7 +727,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
727
727
  this.args = args;
728
728
  }
729
729
  /**
730
- * Creates a request for creating new Orders.
730
+ * Creates an Import Request for creating Orders.
731
731
  */
732
732
  post(methodArgs) {
733
733
  return new ApiRequest({
@@ -801,7 +801,7 @@ class ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder {
801
801
  this.args = args;
802
802
  }
803
803
  /**
804
- * Creates a request for creating new Prices or updating existing ones.
804
+ * Creates an Import Request for Prices.
805
805
  */
806
806
  post(methodArgs) {
807
807
  return new ApiRequest({
@@ -875,7 +875,7 @@ class ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilde
875
875
  this.args = args;
876
876
  }
877
877
  /**
878
- * Creates a request for creating new ProductDrafts or updating existing ones.
878
+ * Creates an Import Request for Products.
879
879
  *
880
880
  */
881
881
  post(methodArgs) {
@@ -938,6 +938,80 @@ class ByProjectKeyProductDraftsRequestBuilder {
938
938
  }
939
939
  }
940
940
 
941
+ /**
942
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
943
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
944
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
945
+ */
946
+ /**
947
+ **/
948
+ class ByProjectKeyProductSelectionsImportContainersByImportContainerKeyRequestBuilder {
949
+ constructor(args) {
950
+ this.args = args;
951
+ }
952
+ /**
953
+ * Creates an Import Request for Product Selections.
954
+ */
955
+ post(methodArgs) {
956
+ return new ApiRequest({
957
+ baseUri: this.args.baseUri,
958
+ method: 'POST',
959
+ uriTemplate: '/{projectKey}/product-selections/import-containers/{importContainerKey}',
960
+ pathVariables: this.args.pathArgs,
961
+ headers: {
962
+ 'Content-Type': 'application/json',
963
+ ...methodArgs?.headers
964
+ },
965
+ body: methodArgs?.body
966
+ }, this.args.executeRequest);
967
+ }
968
+ }
969
+
970
+ /**
971
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
972
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
973
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
974
+ */
975
+ /**
976
+ **/
977
+ class ByProjectKeyProductSelectionsImportContainersRequestBuilder {
978
+ constructor(args) {
979
+ this.args = args;
980
+ }
981
+ withImportContainerKeyValue(childPathArgs) {
982
+ return new ByProjectKeyProductSelectionsImportContainersByImportContainerKeyRequestBuilder({
983
+ pathArgs: {
984
+ ...this.args.pathArgs,
985
+ ...childPathArgs
986
+ },
987
+ executeRequest: this.args.executeRequest,
988
+ baseUri: this.args.baseUri
989
+ });
990
+ }
991
+ }
992
+
993
+ /**
994
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
995
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
996
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
997
+ */
998
+ /**
999
+ **/
1000
+ class ByProjectKeyProductSelectionsRequestBuilder {
1001
+ constructor(args) {
1002
+ this.args = args;
1003
+ }
1004
+ importContainers() {
1005
+ return new ByProjectKeyProductSelectionsImportContainersRequestBuilder({
1006
+ pathArgs: {
1007
+ ...this.args.pathArgs
1008
+ },
1009
+ executeRequest: this.args.executeRequest,
1010
+ baseUri: this.args.baseUri
1011
+ });
1012
+ }
1013
+ }
1014
+
941
1015
  /**
942
1016
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
943
1017
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -950,7 +1024,7 @@ class ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder
950
1024
  this.args = args;
951
1025
  }
952
1026
  /**
953
- * Creates a request for creating new ProductTypes or updating existing ones.
1027
+ * Creates an Import Request for ProductTypes.
954
1028
  */
955
1029
  post(methodArgs) {
956
1030
  return new ApiRequest({
@@ -1024,7 +1098,7 @@ class ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyReque
1024
1098
  this.args = args;
1025
1099
  }
1026
1100
  /**
1027
- * Creates a new import request for Product Variant Patches.
1101
+ * Creates an Import Request for updating Product Variants.
1028
1102
  * Returns an [InvalidField](ctp:import:type:InvalidFieldError) error if the [ProductVariantPatchRequest](ctp:import:type:ProductVariantPatchRequest) contains patches with and without the `product` field set.
1029
1103
  *
1030
1104
  */
@@ -1100,7 +1174,7 @@ class ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuil
1100
1174
  this.args = args;
1101
1175
  }
1102
1176
  /**
1103
- * Creates a request for creating new ProductVariants or updating existing ones.
1177
+ * Creates an Import Request for ProductVariants.
1104
1178
  */
1105
1179
  post(methodArgs) {
1106
1180
  return new ApiRequest({
@@ -1174,7 +1248,7 @@ class ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder {
1174
1248
  this.args = args;
1175
1249
  }
1176
1250
  /**
1177
- * Creates a request for creating new Products or updating existing ones.
1251
+ * Creates an Import Request for Products.
1178
1252
  */
1179
1253
  post(methodArgs) {
1180
1254
  return new ApiRequest({
@@ -1248,7 +1322,7 @@ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBui
1248
1322
  this.args = args;
1249
1323
  }
1250
1324
  /**
1251
- * Creates a request for creating new Standalone Prices or updating existing ones.
1325
+ * Creates an Import Request for Standalone Prices.
1252
1326
  */
1253
1327
  post(methodArgs) {
1254
1328
  return new ApiRequest({
@@ -1322,7 +1396,7 @@ class ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder {
1322
1396
  this.args = args;
1323
1397
  }
1324
1398
  /**
1325
- * Creates a request for creating new Type or updating existing ones.
1399
+ * Creates an Import Request for Types.
1326
1400
  */
1327
1401
  post(methodArgs) {
1328
1402
  return new ApiRequest({
@@ -1539,6 +1613,15 @@ class ByProjectKeyRequestBuilder {
1539
1613
  baseUri: this.args.baseUri
1540
1614
  });
1541
1615
  }
1616
+ productSelections() {
1617
+ return new ByProjectKeyProductSelectionsRequestBuilder({
1618
+ pathArgs: {
1619
+ ...this.args.pathArgs
1620
+ },
1621
+ executeRequest: this.args.executeRequest,
1622
+ baseUri: this.args.baseUri
1623
+ });
1624
+ }
1542
1625
  }
1543
1626
 
1544
1627
  class ApiRoot {
@@ -1601,89 +1684,95 @@ class ApiRoot {
1601
1684
  */
1602
1685
 
1603
1686
  /**
1604
- * References a cart by key.
1687
+ * Used by the [Import API](/import-export/overview) to identify a Cart
1605
1688
  */
1606
1689
 
1607
1690
  /**
1608
- * References a cart discount by key.
1691
+ * Used by the [Import API](/import-export/overview) to identify a CartDiscount.
1609
1692
  */
1610
1693
 
1611
1694
  /**
1612
- * References a category by key.
1695
+ * Used by the [Import API](/import-export/overview) to identify a Category.
1613
1696
  */
1614
1697
 
1615
1698
  /**
1616
- * References a channel by key.
1699
+ * Used by the [Import API](/import-export/overview) to identify a Channel.
1617
1700
  */
1618
1701
 
1619
1702
  /**
1620
- * References a customer by key.
1703
+ * Used by the [Import API](/import-export/overview) to identify a Customer.
1621
1704
  */
1622
1705
 
1623
1706
  /**
1624
- * References a customer group by key.
1707
+ * Used by the [Import API](/import-export/overview) to identify a CustomerGroup.
1625
1708
  */
1626
1709
 
1627
1710
  /**
1628
- * References a discount code by key.
1711
+ * Used by the [Import API](/import-export/overview) to identify a CustomObject.
1629
1712
  */
1630
1713
 
1631
1714
  /**
1632
- * References an order by key.
1715
+ * Used by the [Import API](/import-export/overview) to identify a DiscountCode.
1633
1716
  */
1634
1717
 
1635
1718
  /**
1636
- * References a payment by key.
1719
+ * References an order by key.
1637
1720
  */
1638
1721
 
1639
1722
  /**
1640
- * References a price by key.
1723
+ * Used by the [Import API](/import-export/overview) to identify a Payment.
1641
1724
  */
1642
1725
 
1643
1726
  /**
1644
- * References a product by key.
1727
+ * Used by the [Import API](/import-export/overview) to identify an Embedded Price.
1645
1728
  */
1646
1729
 
1647
1730
  /**
1648
- * References a product discount by key.
1731
+ * Used by the [Import API](/import-export/overview) to identify a Product.
1649
1732
  */
1650
1733
 
1651
1734
  /**
1652
- * References a product type by key.
1735
+ * Used by the [Import API](/import-export/overview) to identify a ProductDiscount.
1653
1736
  */
1654
1737
 
1655
1738
  /**
1656
- * References a product variant by key.
1739
+ * Used by the [Import API](/import-export/overview) to identify a ProductType.
1657
1740
  */
1658
1741
 
1659
1742
  /**
1660
- * References a shipping method by key.
1743
+ * Used by the [Import API](/import-export/overview) to identify a ProductVariant.
1661
1744
  */
1662
1745
 
1663
1746
  /**
1664
- * References a state by key.
1747
+ * Used by the [Import API](/import-export/overview) to identify a ShippingMethod.
1665
1748
  */
1666
1749
 
1667
1750
  /**
1668
- * References a store by key.
1751
+ * Used by the [Import API](/import-export/overview) to identify a State.
1669
1752
  */
1670
1753
 
1671
1754
  /**
1672
- * References a tax category by key.
1755
+ * Used by the [Import API](/import-export/overview) to identify a Store.
1673
1756
  */
1674
1757
 
1675
1758
  /**
1676
- * References a type by key.
1759
+ * Used by the [Import API](/import-export/overview) to identify a TaxCategory.
1677
1760
  */
1678
1761
 
1679
1762
  /**
1680
- * References a key value document by key.
1763
+ * Used by the [Import API](/import-export/overview) to identify a Type.
1681
1764
  */
1682
1765
 
1683
1766
  /**
1684
- * References a resource which could not be resolved.
1767
+ * Contains a reference to a resource which does not exist. For example, if a Category is imported with a parent Category that does not exist, the reference to the parent Category is an unresolved reference.
1685
1768
  */
1686
1769
 
1770
+ /**
1771
+ * The type of money.
1772
+ * The `centPrecision` type is used for currencies with minor units, such as EUR and USD.
1773
+ * The `highPrecision` type is used for currencies without minor units, such as JPY.
1774
+ *
1775
+ */
1687
1776
  let MoneyTypeValues = /*#__PURE__*/function (MoneyTypeValues) {
1688
1777
  MoneyTypeValues["CentPrecision"] = "centPrecision";
1689
1778
  MoneyTypeValues["HighPrecision"] = "highPrecision";
@@ -1709,6 +1798,7 @@ let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues)
1709
1798
  ImportResourceTypeValues["Price"] = "price";
1710
1799
  ImportResourceTypeValues["Product"] = "product";
1711
1800
  ImportResourceTypeValues["ProductDraft"] = "product-draft";
1801
+ ImportResourceTypeValues["ProductSelection"] = "product-selection";
1712
1802
  ImportResourceTypeValues["ProductType"] = "product-type";
1713
1803
  ImportResourceTypeValues["ProductVariant"] = "product-variant";
1714
1804
  ImportResourceTypeValues["ProductVariantPatch"] = "product-variant-patch";
@@ -1717,7 +1807,7 @@ let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues)
1717
1807
  return ImportResourceTypeValues;
1718
1808
  }({});
1719
1809
  /**
1720
- * The type of the referenced resource.
1810
+ * Type of referenced resource.
1721
1811
  *
1722
1812
  */
1723
1813
  let ReferenceTypeValues = /*#__PURE__*/function (ReferenceTypeValues) {
@@ -1776,12 +1866,12 @@ let AuthenticationModeValues = /*#__PURE__*/function (AuthenticationModeValues)
1776
1866
  }({});
1777
1867
 
1778
1868
  /**
1779
- * Different from [Address](/types#address) in that `key` is required and `id` is not supported.
1869
+ * Different from [Address](ctp:api:type:Address) in that `key` is required and `id` is not supported.
1780
1870
  *
1781
1871
  */
1782
1872
 
1783
1873
  /**
1784
- * The data representation for a Customer to be imported that is persisted as a [Customer](ctp:api:type:Customer) in the Project.
1874
+ * Represents the data used to import a Customer. Once imported, this data is persisted as a [Customer](ctp:api:type:Customer) in the Project.
1785
1875
  *
1786
1876
  */
1787
1877
 
@@ -1792,7 +1882,49 @@ let AuthenticationModeValues = /*#__PURE__*/function (AuthenticationModeValues)
1792
1882
  */
1793
1883
 
1794
1884
  /**
1795
- * Import Operation describes the import status of a specific resource.
1885
+ * The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
1886
+ */
1887
+ let StrategyEnumValues = /*#__PURE__*/function (StrategyEnumValues) {
1888
+ StrategyEnumValues["Ttl"] = "ttl";
1889
+ return StrategyEnumValues;
1890
+ }({});
1891
+
1892
+ /**
1893
+ * The retention policy of the ImportContainer. If not set, the ImportContainer does not expire.
1894
+ */
1895
+
1896
+ /**
1897
+ * Set a time to live retention policy for the ImportContainer.
1898
+ */
1899
+
1900
+ /**
1901
+ * Contains the resources to be imported. Unless `resourceType` is specified, the ImportContainer can import all of the supported [ImportResourceTypes](ctp:import:type:ImportResourceType).
1902
+ *
1903
+ */
1904
+
1905
+ /**
1906
+ * The representation sent to the server to create an [ImportContainer](#importcontainer).
1907
+ *
1908
+ */
1909
+
1910
+ /**
1911
+ * The representation sent to the server when updating an ImportContainer.
1912
+ *
1913
+ */
1914
+
1915
+ /**
1916
+ * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ImportContainer](ctp:import:type:ImportContainer).
1917
+ *
1918
+ */
1919
+
1920
+ /**
1921
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1922
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1923
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1924
+ */
1925
+
1926
+ /**
1927
+ * Represents the import status of a resource.
1796
1928
  *
1797
1929
  */
1798
1930
 
@@ -1812,7 +1944,7 @@ let ImportOperationStateValues = /*#__PURE__*/function (ImportOperationStateValu
1812
1944
  }({});
1813
1945
 
1814
1946
  /**
1815
- * The ID and validation status of a new [ImportOperation](#importoperation).
1947
+ * The status of a new [ImportOperation](#importoperation).
1816
1948
  */
1817
1949
 
1818
1950
  /**
@@ -1838,8 +1970,7 @@ let ReturnShipmentStateValues = /*#__PURE__*/function (ReturnShipmentStateValues
1838
1970
  */
1839
1971
 
1840
1972
  /**
1841
- * Representation for an update of an [Order](ctp:api:type:Order). Use this type to import updates for existing
1842
- * [Orders](ctp:api:type:Order) in a Project.
1973
+ * Represents the data used to update an [Order](ctp:api:type:Order) in a Project.
1843
1974
  *
1844
1975
  */
1845
1976
 
@@ -1850,13 +1981,12 @@ let ReturnShipmentStateValues = /*#__PURE__*/function (ReturnShipmentStateValues
1850
1981
  */
1851
1982
 
1852
1983
  /**
1853
- * The item's state.
1984
+ * Determines the address (as a reference to an address in `itemShippingAddresses`) and the quantity shipped to the address.
1854
1985
  *
1855
1986
  */
1856
1987
 
1857
1988
  /**
1858
- * The item's shipping target.
1859
- *
1989
+ * The sum of the `targets` must match the quantity of the Line Items or Custom Line Items
1860
1990
  */
1861
1991
 
1862
1992
  /**
@@ -1881,8 +2011,7 @@ let ShippingMethodStateValues = /*#__PURE__*/function (ShippingMethodStateValues
1881
2011
  }({});
1882
2012
 
1883
2013
  /**
1884
- * Maps to an order's `shippingInfo` property. This field is usually populated by the cart associated with
1885
- * the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
2014
+ * Maps to an Order's `shippingInfo` property. This field is usually populated by the Cart associated with the Order, but when importing Orders you must provide a draft representation as a part of the OrderImport.
1886
2015
  *
1887
2016
  */
1888
2017
 
@@ -1981,9 +2110,7 @@ let ShippingRateInputTypeValues = /*#__PURE__*/function (ShippingRateInputTypeVa
1981
2110
  }({});
1982
2111
 
1983
2112
  /**
1984
- * The data representation for an Order to be imported that is persisted as an [Order](ctp:api:type:Order) in the Project.
1985
- *
1986
- * In commercetools, you can import an Order using the [Create Order by Import](/projects/orders-import#create-order-by-import) endpoint method instead of creating it from a Cart.
2113
+ * Represents the data used to import an Order. Once imported, this data is persisted as an [Order](ctp:api:type:Order) in the Project.
1987
2114
  *
1988
2115
  * An OrderImport is a snapshot of an order at the time it was imported.
1989
2116
  *
@@ -1995,6 +2122,54 @@ let ShippingRateInputTypeValues = /*#__PURE__*/function (ShippingRateInputTypeVa
1995
2122
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1996
2123
  */
1997
2124
 
2125
+ /**
2126
+ * Defines how variants are selected for the product.
2127
+ *
2128
+ */
2129
+ let VariantSelectionTypeValues = /*#__PURE__*/function (VariantSelectionTypeValues) {
2130
+ VariantSelectionTypeValues["IncludeAllExcept"] = "includeAllExcept";
2131
+ VariantSelectionTypeValues["IncludeOnly"] = "includeOnly";
2132
+ return VariantSelectionTypeValues;
2133
+ }({});
2134
+
2135
+ /**
2136
+ * Variant selection specifying how variants are included or excluded.
2137
+ *
2138
+ */
2139
+
2140
+ /**
2141
+ * Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.
2142
+ *
2143
+ */
2144
+
2145
+ /**
2146
+ * An assignment of a product and either variantSelection or variantExclusion (not both).
2147
+ *
2148
+ */
2149
+
2150
+ /**
2151
+ * Product Selections can have the following modes:
2152
+ * - `Individual`: Products must be explicitly assigned.
2153
+ * - `IndividualExclusion`: Products are included unless explicitly excluded.
2154
+ *
2155
+ */
2156
+ let ProductSelectionModeValues = /*#__PURE__*/function (ProductSelectionModeValues) {
2157
+ ProductSelectionModeValues["Individual"] = "Individual";
2158
+ ProductSelectionModeValues["IndividualExclusion"] = "IndividualExclusion";
2159
+ return ProductSelectionModeValues;
2160
+ }({});
2161
+
2162
+ /**
2163
+ * Represents the data used to import a ProductSelection. Once imported, this data is persisted as a [ProductSelection](ctp:api:type:ProductSelection) in the Project.
2164
+ *
2165
+ */
2166
+
2167
+ /**
2168
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
2169
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
2170
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
2171
+ */
2172
+
1998
2173
  let AttributeLevelValues = /*#__PURE__*/function (AttributeLevelValues) {
1999
2174
  AttributeLevelValues["Product"] = "Product";
2000
2175
  AttributeLevelValues["Variant"] = "Variant";
@@ -2014,7 +2189,7 @@ let TextInputHintValues = /*#__PURE__*/function (TextInputHintValues) {
2014
2189
  }({});
2015
2190
 
2016
2191
  /**
2017
- * The data representation for a ProductType to be imported that is persisted as a [ProductType](ctp:api:type:ProductType) in the Project.
2192
+ * Represents the data used to import a ProductType. Once imported, this data is persisted as a [ProductType](ctp:api:type:ProductType) in the Project.
2018
2193
  *
2019
2194
  */
2020
2195
 
@@ -2025,7 +2200,7 @@ let TextInputHintValues = /*#__PURE__*/function (TextInputHintValues) {
2025
2200
  */
2026
2201
 
2027
2202
  /**
2028
- * Provides a visual representation type for this field. It is only relevant for string-based field types like [CustomFieldStringType](ctp:import:type:CustomFieldStringType) and [CustomFieldLocalizedStringType](ctp:import:type:CustomFieldLocalizedStringType).
2203
+ * Provides a visual representation type for this field. It is only relevant for string-based field types like [CustomFieldStringType](ctp:api:type:CustomFieldStringType) and [CustomFieldLocalizedStringType](ctp:api:type:CustomFieldLocalizedStringType).
2029
2204
  *
2030
2205
  */
2031
2206
  let TypeTextInputHintValues = /*#__PURE__*/function (TypeTextInputHintValues) {
@@ -2071,6 +2246,12 @@ let ResourceTypeIdValues = /*#__PURE__*/function (ResourceTypeIdValues) {
2071
2246
  return ResourceTypeIdValues;
2072
2247
  }({});
2073
2248
 
2249
+ /**
2250
+ * Defines the data type of a Custom Field. Maps to `Type.FieldDefinition.type`.
2251
+ * The `discriminator` is used to determine the type of the field.
2252
+ *
2253
+ */
2254
+
2074
2255
  /**
2075
2256
  * Field type for Boolean values.
2076
2257
  */
@@ -2155,7 +2336,7 @@ let CustomFieldReferenceValueValues = /*#__PURE__*/function (CustomFieldReferenc
2155
2336
  */
2156
2337
 
2157
2338
  /**
2158
- * The data representation for a Type to be imported that is persisted as a [Type](ctp:api:type:Type) in the Project.
2339
+ * Represents the data used to import a Type. Once imported, this data is persisted as a [Type](ctp:api:type:Type) in the Project.
2159
2340
  *
2160
2341
  */
2161
2342
 
@@ -2186,4 +2367,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
2186
2367
  });
2187
2368
  }
2188
2369
 
2189
- export { ApiRequest, ApiRoot, AttributeConstraintEnumValues, AttributeLevelValues, AuthenticationModeValues, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyDiscountCodesImportContainersRequestBuilder, ByProjectKeyDiscountCodesRequestBuilder, 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, CartOriginValues, CustomFieldReferenceValueValues, DiscountCodeStateValues, ImportOperationStateValues, ImportResourceTypeValues, InventoryModeValues, MoneyTypeValues, OrderStateValues, PaymentStateValues, ProcessingStateValues, ProductPriceModeEnumValues, ReferenceTypeValues, ResourceTypeIdValues, ReturnShipmentStateValues, RoundingModeValues, ShipmentStateValues, ShippingMethodStateValues, ShippingRateInputTypeValues, ShippingRateTierTypeValues, TaxCalculationModeValues, TaxModeValues, TextInputHintValues, TypeTextInputHintValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
2370
+ export { ApiRequest, ApiRoot, AttributeConstraintEnumValues, AttributeLevelValues, AuthenticationModeValues, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyDiscountCodesImportContainersRequestBuilder, ByProjectKeyDiscountCodesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductSelectionsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductSelectionsImportContainersRequestBuilder, ByProjectKeyProductSelectionsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, CartOriginValues, CustomFieldReferenceValueValues, DiscountCodeStateValues, ImportOperationStateValues, ImportResourceTypeValues, InventoryModeValues, MoneyTypeValues, OrderStateValues, PaymentStateValues, ProcessingStateValues, ProductPriceModeEnumValues, ProductSelectionModeValues, ReferenceTypeValues, ResourceTypeIdValues, ReturnShipmentStateValues, RoundingModeValues, ShipmentStateValues, ShippingMethodStateValues, ShippingRateInputTypeValues, ShippingRateTierTypeValues, StrategyEnumValues, TaxCalculationModeValues, TaxModeValues, TextInputHintValues, TypeTextInputHintValues, VariantSelectionTypeValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };