@commercetools/importapi-sdk 3.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/commercetools-importapi-sdk.browser.cjs.js +91 -0
  3. package/dist/commercetools-importapi-sdk.browser.esm.js +91 -0
  4. package/dist/commercetools-importapi-sdk.cjs.dev.js +91 -0
  5. package/dist/commercetools-importapi-sdk.cjs.prod.js +91 -0
  6. package/dist/commercetools-importapi-sdk.esm.js +91 -0
  7. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
  8. package/dist/declarations/src/generated/client/import-containers/by-project-key-standalone-prices-import-containers-by-import-container-key-request-builder.d.ts +37 -0
  9. package/dist/declarations/src/generated/client/import-containers/by-project-key-standalone-prices-import-containers-request-builder.d.ts +28 -0
  10. package/dist/declarations/src/generated/client/standalone-prices/by-project-key-standalone-prices-request-builder.d.ts +26 -0
  11. package/dist/declarations/src/generated/index.d.ts +1 -0
  12. package/dist/declarations/src/generated/models/common.d.ts +7 -5
  13. package/dist/declarations/src/generated/models/importoperations.d.ts +1 -1
  14. package/dist/declarations/src/generated/models/importrequests.d.ts +16 -2
  15. package/dist/declarations/src/generated/models/order-patches.d.ts +1 -1
  16. package/dist/declarations/src/generated/models/orders.d.ts +19 -18
  17. package/dist/declarations/src/generated/models/prices.d.ts +6 -0
  18. package/dist/declarations/src/generated/models/producttypes.d.ts +2 -2
  19. package/dist/declarations/src/generated/models/standalone-prices.d.ts +76 -0
  20. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # @commercetools/importapi-sdk
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#351](https://github.com/commercetools/commercetools-sdk-typescript/pull/351) [`9c93a8e`](https://github.com/commercetools/commercetools-sdk-typescript/commit/9c93a8e92b4d523d6661567f7571f115a527b039) Thanks [@ajimae](https://github.com/ajimae)! - Update packages
8
+
9
+ Update the `history-sdk` `DateStringFilter`, `ChangeHistoryResourceType`, `Source` and `PlatformInitiatedChange` etc. models to include a `string` type
10
+
11
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cc2fe178ca6b6be224a1703faedb4addb5aeaba6e8fed5c5fb8aa83e6b89c15c)
12
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-d209024497a25bf47b1328575261874e3b3838708b200c576e9136881d7c2fc5)
13
+
14
+ Add builder class and method for [`standalone-prices`](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-6c227c775a135e83a3177890fb075a57a36aca5e54585ddd12800e2fc8c868d0) for `importapi-sdk`
15
+
16
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-4194831274c991aa860b804aa0e4ef37607f3648ce4b5bd1fa485fb368563414)
17
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cf4d4d593249abe6c99086f76491a0bd251573cde0f78291d38c12db533955e9)
18
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-9b983bcf9b8f15645d6c0c5395b43046a37915b6269f8f1f0d113c625661b61e)
19
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cab14530d8df4ee940fea751e4e5afa1b36a94b92ee1360e641f46696fc3f21b)
20
+
21
+ Update the `importapi-sdk` `MoneyType`, `ReferenceType`, `ProcessingState`, `ImportOperationState` `ProductPriceModeEnum` etc models to include a `string` type
22
+
23
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-4a12dd49a3bd4416087368cf7d2adad860849ada79c1744ae27ddae67c299c43)
24
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-098b1027a5d008b85d503e4fbfd1a7ae1c47a138e1d8fb82c7ac9ee1ea94de3f)
25
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-66168b247234ab499100b349ea788dfc0bad6c5275d5cf7541088083cd4ad47f)
26
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-ac6b2ee896a8ab4c39857df35774f59713a50c547a6e7cecfe6924547381cd96)
27
+
28
+ Add class and builder methods for
29
+ `ByProjectKeyBusinessUnitsByIDRequestBuilder`,
30
+ `ByProjectKeyBusinessUnitsRequestBuilder`,
31
+ `ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder`,
32
+ `ByProjectKeyMeBusinessUnitsRequestBuilder`,
33
+ `ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder`
34
+ `ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersRequestBuilder`,
35
+ `ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeRequestBuilder`,
36
+ `ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyRequestBuilder`
37
+ in the `platform-sdk`
38
+
39
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cb753c87b292658be2da42c7548c3ffcad89550d99d5a433bae77b06b1e8dde8)
40
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-61da76483d06d79e65e755f43ce8f1c8b06b62af3dd310cdeac4cac8583c9457)
41
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-427e08314427fc8efa3e4466403eb7ad961482b0ebbfd71a65ad513b1e62d93c)
42
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-f7e56705a0ede866385bed01616ec49604dc9921092e9c8ad8c3dc435c7f7706)
43
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-8104137d8ff7613e73e02d11a26f3086884e2b135467f8c2d56b25e9719781c3)
44
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-d2d796eb7f7a440dba06bc3f71f12fb9ffbfbd0ba86161a7b77eab7a62d89fb4)
45
+ [Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-c008d9ee3cd715df487ab0ebb7ce332cf31804ac533a2598e6808bf73f057b9e)
46
+
47
+ Complete changes can be found [here](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files)
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [[`f0e84dd`](https://github.com/commercetools/commercetools-sdk-typescript/commit/f0e84ddb2e34b908385a380175c6da596db6817a)]:
52
+ - @commercetools/sdk-client-v2@2.0.1
53
+
54
+ ## 4.0.0
55
+
56
+ ### Major Changes
57
+
58
+ - [#341](https://github.com/commercetools/commercetools-sdk-typescript/pull/341) [`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220) Thanks [@ajimae](https://github.com/ajimae)! - Upgrade node versions to 14 and set engine to >= 14
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [[`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220)]:
63
+ - @commercetools/sdk-client-v2@2.0.0
64
+
3
65
  ## 3.0.1
4
66
 
5
67
  ### Patch Changes
@@ -1261,6 +1261,88 @@ class ByProjectKeyProductsRequestBuilder {
1261
1261
 
1262
1262
  }
1263
1263
 
1264
+ /**
1265
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1267
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1268
+ */
1269
+ /**
1270
+ **/
1271
+
1272
+ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
1273
+ constructor(args) {
1274
+ this.args = args;
1275
+ }
1276
+ /**
1277
+ * Creates a request for creating new Standalone Prices or updating existing ones.
1278
+ */
1279
+
1280
+
1281
+ post(methodArgs) {
1282
+ return new ApiRequest({
1283
+ baseUri: this.args.baseUri,
1284
+ method: 'POST',
1285
+ uriTemplate: '/{projectKey}/standalone-prices/import-containers/{importContainerKey}',
1286
+ pathVariables: this.args.pathArgs,
1287
+ headers: {
1288
+ 'Content-Type': 'application/json',
1289
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1290
+ },
1291
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1292
+ }, this.args.executeRequest);
1293
+ }
1294
+
1295
+ }
1296
+
1297
+ /**
1298
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1299
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1300
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1301
+ */
1302
+ /**
1303
+ **/
1304
+
1305
+ class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
1306
+ constructor(args) {
1307
+ this.args = args;
1308
+ }
1309
+
1310
+ withImportContainerKeyValue(childPathArgs) {
1311
+ return new ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder({
1312
+ pathArgs: { ...this.args.pathArgs,
1313
+ ...childPathArgs
1314
+ },
1315
+ executeRequest: this.args.executeRequest,
1316
+ baseUri: this.args.baseUri
1317
+ });
1318
+ }
1319
+
1320
+ }
1321
+
1322
+ /**
1323
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1324
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1325
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1326
+ */
1327
+ /**
1328
+ **/
1329
+
1330
+ class ByProjectKeyStandalonePricesRequestBuilder {
1331
+ constructor(args) {
1332
+ this.args = args;
1333
+ }
1334
+
1335
+ importContainers() {
1336
+ return new ByProjectKeyStandalonePricesImportContainersRequestBuilder({
1337
+ pathArgs: { ...this.args.pathArgs
1338
+ },
1339
+ executeRequest: this.args.executeRequest,
1340
+ baseUri: this.args.baseUri
1341
+ });
1342
+ }
1343
+
1344
+ }
1345
+
1264
1346
  /**
1265
1347
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
1348
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1310,6 +1392,15 @@ class ByProjectKeyRequestBuilder {
1310
1392
  });
1311
1393
  }
1312
1394
 
1395
+ standalonePrices() {
1396
+ return new ByProjectKeyStandalonePricesRequestBuilder({
1397
+ pathArgs: { ...this.args.pathArgs
1398
+ },
1399
+ executeRequest: this.args.executeRequest,
1400
+ baseUri: this.args.baseUri
1401
+ });
1402
+ }
1403
+
1313
1404
  products() {
1314
1405
  return new ByProjectKeyProductsRequestBuilder({
1315
1406
  pathArgs: { ...this.args.pathArgs
@@ -1257,6 +1257,88 @@ class ByProjectKeyProductsRequestBuilder {
1257
1257
 
1258
1258
  }
1259
1259
 
1260
+ /**
1261
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1262
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1263
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1264
+ */
1265
+ /**
1266
+ **/
1267
+
1268
+ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
1269
+ constructor(args) {
1270
+ this.args = args;
1271
+ }
1272
+ /**
1273
+ * Creates a request for creating new Standalone Prices or updating existing ones.
1274
+ */
1275
+
1276
+
1277
+ post(methodArgs) {
1278
+ return new ApiRequest({
1279
+ baseUri: this.args.baseUri,
1280
+ method: 'POST',
1281
+ uriTemplate: '/{projectKey}/standalone-prices/import-containers/{importContainerKey}',
1282
+ pathVariables: this.args.pathArgs,
1283
+ headers: {
1284
+ 'Content-Type': 'application/json',
1285
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1286
+ },
1287
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1288
+ }, this.args.executeRequest);
1289
+ }
1290
+
1291
+ }
1292
+
1293
+ /**
1294
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1295
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1296
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1297
+ */
1298
+ /**
1299
+ **/
1300
+
1301
+ class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
1302
+ constructor(args) {
1303
+ this.args = args;
1304
+ }
1305
+
1306
+ withImportContainerKeyValue(childPathArgs) {
1307
+ return new ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder({
1308
+ pathArgs: { ...this.args.pathArgs,
1309
+ ...childPathArgs
1310
+ },
1311
+ executeRequest: this.args.executeRequest,
1312
+ baseUri: this.args.baseUri
1313
+ });
1314
+ }
1315
+
1316
+ }
1317
+
1318
+ /**
1319
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1320
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1321
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1322
+ */
1323
+ /**
1324
+ **/
1325
+
1326
+ class ByProjectKeyStandalonePricesRequestBuilder {
1327
+ constructor(args) {
1328
+ this.args = args;
1329
+ }
1330
+
1331
+ importContainers() {
1332
+ return new ByProjectKeyStandalonePricesImportContainersRequestBuilder({
1333
+ pathArgs: { ...this.args.pathArgs
1334
+ },
1335
+ executeRequest: this.args.executeRequest,
1336
+ baseUri: this.args.baseUri
1337
+ });
1338
+ }
1339
+
1340
+ }
1341
+
1260
1342
  /**
1261
1343
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1262
1344
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1306,6 +1388,15 @@ class ByProjectKeyRequestBuilder {
1306
1388
  });
1307
1389
  }
1308
1390
 
1391
+ standalonePrices() {
1392
+ return new ByProjectKeyStandalonePricesRequestBuilder({
1393
+ pathArgs: { ...this.args.pathArgs
1394
+ },
1395
+ executeRequest: this.args.executeRequest,
1396
+ baseUri: this.args.baseUri
1397
+ });
1398
+ }
1399
+
1309
1400
  products() {
1310
1401
  return new ByProjectKeyProductsRequestBuilder({
1311
1402
  pathArgs: { ...this.args.pathArgs
@@ -1261,6 +1261,88 @@ class ByProjectKeyProductsRequestBuilder {
1261
1261
 
1262
1262
  }
1263
1263
 
1264
+ /**
1265
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1267
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1268
+ */
1269
+ /**
1270
+ **/
1271
+
1272
+ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
1273
+ constructor(args) {
1274
+ this.args = args;
1275
+ }
1276
+ /**
1277
+ * Creates a request for creating new Standalone Prices or updating existing ones.
1278
+ */
1279
+
1280
+
1281
+ post(methodArgs) {
1282
+ return new ApiRequest({
1283
+ baseUri: this.args.baseUri,
1284
+ method: 'POST',
1285
+ uriTemplate: '/{projectKey}/standalone-prices/import-containers/{importContainerKey}',
1286
+ pathVariables: this.args.pathArgs,
1287
+ headers: {
1288
+ 'Content-Type': 'application/json',
1289
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1290
+ },
1291
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1292
+ }, this.args.executeRequest);
1293
+ }
1294
+
1295
+ }
1296
+
1297
+ /**
1298
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1299
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1300
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1301
+ */
1302
+ /**
1303
+ **/
1304
+
1305
+ class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
1306
+ constructor(args) {
1307
+ this.args = args;
1308
+ }
1309
+
1310
+ withImportContainerKeyValue(childPathArgs) {
1311
+ return new ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder({
1312
+ pathArgs: { ...this.args.pathArgs,
1313
+ ...childPathArgs
1314
+ },
1315
+ executeRequest: this.args.executeRequest,
1316
+ baseUri: this.args.baseUri
1317
+ });
1318
+ }
1319
+
1320
+ }
1321
+
1322
+ /**
1323
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1324
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1325
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1326
+ */
1327
+ /**
1328
+ **/
1329
+
1330
+ class ByProjectKeyStandalonePricesRequestBuilder {
1331
+ constructor(args) {
1332
+ this.args = args;
1333
+ }
1334
+
1335
+ importContainers() {
1336
+ return new ByProjectKeyStandalonePricesImportContainersRequestBuilder({
1337
+ pathArgs: { ...this.args.pathArgs
1338
+ },
1339
+ executeRequest: this.args.executeRequest,
1340
+ baseUri: this.args.baseUri
1341
+ });
1342
+ }
1343
+
1344
+ }
1345
+
1264
1346
  /**
1265
1347
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
1348
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1310,6 +1392,15 @@ class ByProjectKeyRequestBuilder {
1310
1392
  });
1311
1393
  }
1312
1394
 
1395
+ standalonePrices() {
1396
+ return new ByProjectKeyStandalonePricesRequestBuilder({
1397
+ pathArgs: { ...this.args.pathArgs
1398
+ },
1399
+ executeRequest: this.args.executeRequest,
1400
+ baseUri: this.args.baseUri
1401
+ });
1402
+ }
1403
+
1313
1404
  products() {
1314
1405
  return new ByProjectKeyProductsRequestBuilder({
1315
1406
  pathArgs: { ...this.args.pathArgs
@@ -1261,6 +1261,88 @@ class ByProjectKeyProductsRequestBuilder {
1261
1261
 
1262
1262
  }
1263
1263
 
1264
+ /**
1265
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1267
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1268
+ */
1269
+ /**
1270
+ **/
1271
+
1272
+ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
1273
+ constructor(args) {
1274
+ this.args = args;
1275
+ }
1276
+ /**
1277
+ * Creates a request for creating new Standalone Prices or updating existing ones.
1278
+ */
1279
+
1280
+
1281
+ post(methodArgs) {
1282
+ return new ApiRequest({
1283
+ baseUri: this.args.baseUri,
1284
+ method: 'POST',
1285
+ uriTemplate: '/{projectKey}/standalone-prices/import-containers/{importContainerKey}',
1286
+ pathVariables: this.args.pathArgs,
1287
+ headers: {
1288
+ 'Content-Type': 'application/json',
1289
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1290
+ },
1291
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1292
+ }, this.args.executeRequest);
1293
+ }
1294
+
1295
+ }
1296
+
1297
+ /**
1298
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1299
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1300
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1301
+ */
1302
+ /**
1303
+ **/
1304
+
1305
+ class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
1306
+ constructor(args) {
1307
+ this.args = args;
1308
+ }
1309
+
1310
+ withImportContainerKeyValue(childPathArgs) {
1311
+ return new ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder({
1312
+ pathArgs: { ...this.args.pathArgs,
1313
+ ...childPathArgs
1314
+ },
1315
+ executeRequest: this.args.executeRequest,
1316
+ baseUri: this.args.baseUri
1317
+ });
1318
+ }
1319
+
1320
+ }
1321
+
1322
+ /**
1323
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1324
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1325
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1326
+ */
1327
+ /**
1328
+ **/
1329
+
1330
+ class ByProjectKeyStandalonePricesRequestBuilder {
1331
+ constructor(args) {
1332
+ this.args = args;
1333
+ }
1334
+
1335
+ importContainers() {
1336
+ return new ByProjectKeyStandalonePricesImportContainersRequestBuilder({
1337
+ pathArgs: { ...this.args.pathArgs
1338
+ },
1339
+ executeRequest: this.args.executeRequest,
1340
+ baseUri: this.args.baseUri
1341
+ });
1342
+ }
1343
+
1344
+ }
1345
+
1264
1346
  /**
1265
1347
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1266
1348
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1310,6 +1392,15 @@ class ByProjectKeyRequestBuilder {
1310
1392
  });
1311
1393
  }
1312
1394
 
1395
+ standalonePrices() {
1396
+ return new ByProjectKeyStandalonePricesRequestBuilder({
1397
+ pathArgs: { ...this.args.pathArgs
1398
+ },
1399
+ executeRequest: this.args.executeRequest,
1400
+ baseUri: this.args.baseUri
1401
+ });
1402
+ }
1403
+
1313
1404
  products() {
1314
1405
  return new ByProjectKeyProductsRequestBuilder({
1315
1406
  pathArgs: { ...this.args.pathArgs
@@ -1257,6 +1257,88 @@ class ByProjectKeyProductsRequestBuilder {
1257
1257
 
1258
1258
  }
1259
1259
 
1260
+ /**
1261
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1262
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1263
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1264
+ */
1265
+ /**
1266
+ **/
1267
+
1268
+ class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
1269
+ constructor(args) {
1270
+ this.args = args;
1271
+ }
1272
+ /**
1273
+ * Creates a request for creating new Standalone Prices or updating existing ones.
1274
+ */
1275
+
1276
+
1277
+ post(methodArgs) {
1278
+ return new ApiRequest({
1279
+ baseUri: this.args.baseUri,
1280
+ method: 'POST',
1281
+ uriTemplate: '/{projectKey}/standalone-prices/import-containers/{importContainerKey}',
1282
+ pathVariables: this.args.pathArgs,
1283
+ headers: {
1284
+ 'Content-Type': 'application/json',
1285
+ ...(methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.headers)
1286
+ },
1287
+ body: methodArgs === null || methodArgs === void 0 ? void 0 : methodArgs.body
1288
+ }, this.args.executeRequest);
1289
+ }
1290
+
1291
+ }
1292
+
1293
+ /**
1294
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1295
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1296
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1297
+ */
1298
+ /**
1299
+ **/
1300
+
1301
+ class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
1302
+ constructor(args) {
1303
+ this.args = args;
1304
+ }
1305
+
1306
+ withImportContainerKeyValue(childPathArgs) {
1307
+ return new ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder({
1308
+ pathArgs: { ...this.args.pathArgs,
1309
+ ...childPathArgs
1310
+ },
1311
+ executeRequest: this.args.executeRequest,
1312
+ baseUri: this.args.baseUri
1313
+ });
1314
+ }
1315
+
1316
+ }
1317
+
1318
+ /**
1319
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1320
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
1321
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
1322
+ */
1323
+ /**
1324
+ **/
1325
+
1326
+ class ByProjectKeyStandalonePricesRequestBuilder {
1327
+ constructor(args) {
1328
+ this.args = args;
1329
+ }
1330
+
1331
+ importContainers() {
1332
+ return new ByProjectKeyStandalonePricesImportContainersRequestBuilder({
1333
+ pathArgs: { ...this.args.pathArgs
1334
+ },
1335
+ executeRequest: this.args.executeRequest,
1336
+ baseUri: this.args.baseUri
1337
+ });
1338
+ }
1339
+
1340
+ }
1341
+
1260
1342
  /**
1261
1343
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
1262
1344
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -1306,6 +1388,15 @@ class ByProjectKeyRequestBuilder {
1306
1388
  });
1307
1389
  }
1308
1390
 
1391
+ standalonePrices() {
1392
+ return new ByProjectKeyStandalonePricesRequestBuilder({
1393
+ pathArgs: { ...this.args.pathArgs
1394
+ },
1395
+ executeRequest: this.args.executeRequest,
1396
+ baseUri: this.args.baseUri
1397
+ });
1398
+ }
1399
+
1309
1400
  products() {
1310
1401
  return new ByProjectKeyProductsRequestBuilder({
1311
1402
  pathArgs: { ...this.args.pathArgs
@@ -17,6 +17,7 @@ import { ByProjectKeyProductTypesRequestBuilder } from './product-types/by-proje
17
17
  import { ByProjectKeyProductVariantPatchesRequestBuilder } from './product-variant-patches/by-project-key-product-variant-patches-request-builder';
18
18
  import { ByProjectKeyProductVariantsRequestBuilder } from './product-variants/by-project-key-product-variants-request-builder';
19
19
  import { ByProjectKeyProductsRequestBuilder } from './products/by-project-key-products-request-builder';
20
+ import { ByProjectKeyStandalonePricesRequestBuilder } from './standalone-prices/by-project-key-standalone-prices-request-builder';
20
21
  /**
21
22
  **/
22
23
  export declare class ByProjectKeyRequestBuilder {
@@ -38,6 +39,7 @@ export declare class ByProjectKeyRequestBuilder {
38
39
  importOperations(): ByProjectKeyImportOperationsRequestBuilder;
39
40
  categories(): ByProjectKeyCategoriesRequestBuilder;
40
41
  prices(): ByProjectKeyPricesRequestBuilder;
42
+ standalonePrices(): ByProjectKeyStandalonePricesRequestBuilder;
41
43
  products(): ByProjectKeyProductsRequestBuilder;
42
44
  productDrafts(): ByProjectKeyProductDraftsRequestBuilder;
43
45
  productTypes(): ByProjectKeyProductTypesRequestBuilder;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { ImportResponse, StandalonePriceImportRequest } from '../../models/importrequests';
7
+ import { executeRequest } from '../../shared/utils/common-types';
8
+ import { ApiRequest } from '../../shared/utils/requests-utils';
9
+ /**
10
+ **/
11
+ export declare class ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder {
12
+ protected readonly args: {
13
+ pathArgs: {
14
+ projectKey: string;
15
+ importContainerKey: string;
16
+ };
17
+ executeRequest: executeRequest;
18
+ baseUri?: string;
19
+ };
20
+ constructor(args: {
21
+ pathArgs: {
22
+ projectKey: string;
23
+ importContainerKey: string;
24
+ };
25
+ executeRequest: executeRequest;
26
+ baseUri?: string;
27
+ });
28
+ /**
29
+ * Creates a request for creating new Standalone Prices or updating existing ones.
30
+ */
31
+ post(methodArgs: {
32
+ body: StandalonePriceImportRequest;
33
+ headers?: {
34
+ [key: string]: string | string[];
35
+ };
36
+ }): ApiRequest<ImportResponse>;
37
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { executeRequest } from '../../shared/utils/common-types';
7
+ import { ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder } from './by-project-key-standalone-prices-import-containers-by-import-container-key-request-builder';
8
+ /**
9
+ **/
10
+ export declare class ByProjectKeyStandalonePricesImportContainersRequestBuilder {
11
+ protected readonly args: {
12
+ pathArgs: {
13
+ projectKey: string;
14
+ };
15
+ executeRequest: executeRequest;
16
+ baseUri?: string;
17
+ };
18
+ constructor(args: {
19
+ pathArgs: {
20
+ projectKey: string;
21
+ };
22
+ executeRequest: executeRequest;
23
+ baseUri?: string;
24
+ });
25
+ withImportContainerKeyValue(childPathArgs: {
26
+ importContainerKey: string;
27
+ }): ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder;
28
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { executeRequest } from '../../shared/utils/common-types';
7
+ import { ByProjectKeyStandalonePricesImportContainersRequestBuilder } from '../import-containers/by-project-key-standalone-prices-import-containers-request-builder';
8
+ /**
9
+ **/
10
+ export declare class ByProjectKeyStandalonePricesRequestBuilder {
11
+ protected readonly args: {
12
+ pathArgs: {
13
+ projectKey: string;
14
+ };
15
+ executeRequest: executeRequest;
16
+ baseUri?: string;
17
+ };
18
+ constructor(args: {
19
+ pathArgs: {
20
+ projectKey: string;
21
+ };
22
+ executeRequest: executeRequest;
23
+ baseUri?: string;
24
+ });
25
+ importContainers(): ByProjectKeyStandalonePricesImportContainersRequestBuilder;
26
+ }
@@ -21,5 +21,6 @@ export * from './models/productdrafts';
21
21
  export * from './models/products';
22
22
  export * from './models/producttypes';
23
23
  export * from './models/productvariants';
24
+ export * from './models/standalone-prices';
24
25
  export * from './shared/utils/common-types';
25
26
  export * from './shared/utils/middleware';
@@ -157,6 +157,8 @@ export interface LocalizedString {
157
157
  */
158
158
  export interface ImportResource {
159
159
  /**
160
+ * User-defined unique identifier.
161
+ *
160
162
  *
161
163
  */
162
164
  readonly key: string;
@@ -381,7 +383,7 @@ export interface UnresolvedReferences {
381
383
  */
382
384
  readonly typeId: ReferenceType;
383
385
  }
384
- export declare type MoneyType = 'centPrecision' | 'highPrecision';
386
+ export declare type MoneyType = 'centPrecision' | 'highPrecision' | string;
385
387
  export declare type TypedMoney = HighPrecisionMoney | Money;
386
388
  export interface HighPrecisionMoney {
387
389
  readonly type: 'highPrecision';
@@ -453,17 +455,17 @@ export interface PriceTier {
453
455
  * The type of the import resource.
454
456
  *
455
457
  */
456
- export declare type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch';
458
+ export declare type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | string;
457
459
  /**
458
460
  * The type of the referenced resource.
459
461
  *
460
462
  */
461
- export declare type ReferenceType = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type';
463
+ export declare type ReferenceType = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type' | string;
462
464
  /**
463
465
  * Every [Import Operation](/import-operation) is assigned with one of the following states.
464
466
  *
465
467
  */
466
- export declare type ProcessingState = 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant';
468
+ export declare type ProcessingState = 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant' | string;
467
469
  export interface Address {
468
470
  /**
469
471
  *
@@ -568,4 +570,4 @@ export interface Address {
568
570
  */
569
571
  readonly externalId?: string;
570
572
  }
571
- export declare type ProductPriceModeEnum = 'Embedded' | 'Standalone';
573
+ export declare type ProductPriceModeEnum = 'Embedded' | 'Standalone' | string;
@@ -105,7 +105,7 @@ export interface ImportOperationPagedResponse {
105
105
  * Describes the validation state of a newly created [ImportOperation](#importoperation).
106
106
  *
107
107
  */
108
- export declare type ImportOperationState = 'processing' | 'validationFailed';
108
+ export declare type ImportOperationState = 'processing' | 'validationFailed' | string;
109
109
  export interface ImportOperationStatus {
110
110
  /**
111
111
  * The ID of the [ImportOperation](#importoperation).
@@ -14,11 +14,12 @@ import { ProductDraftImport } from './productdrafts';
14
14
  import { ProductImport } from './products';
15
15
  import { ProductTypeImport } from './producttypes';
16
16
  import { ProductVariantImport, ProductVariantPatch } from './productvariants';
17
+ import { StandalonePriceImport } from './standalone-prices';
17
18
  /**
18
19
  * An import request batches multiple import resources of the same import resource type for processing by an import container.
19
20
  *
20
21
  */
21
- export declare type ImportRequest = CategoryImportRequest | CustomerImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest;
22
+ export declare type ImportRequest = CategoryImportRequest | CustomerImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest;
22
23
  /**
23
24
  * A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation).
24
25
  * Used as a response at each resource-specific import endpoint, for example, at [Import Categories](/category#import-categories) and [Import ProductTypes](/product-type#import-producttypes).
@@ -96,7 +97,7 @@ export interface ProductVariantImportRequest {
96
97
  readonly resources: ProductVariantImport[];
97
98
  }
98
99
  /**
99
- * The request body to [import Prices](#import-prices). Contains data for [Embedded Prices](/../api/types#embedded-price) to be created or updated in a Project.
100
+ * The request body to [import Embedded Prices](#import-embedded-prices). Contains data for [Embedded Prices](/../api/types#embedded-price) to be created or updated in a Project.
100
101
  *
101
102
  */
102
103
  export interface PriceImportRequest {
@@ -108,6 +109,19 @@ export interface PriceImportRequest {
108
109
  */
109
110
  readonly resources: PriceImport[];
110
111
  }
112
+ /**
113
+ * The request body to [import Standalone Prices](#import-standalone-prices). Contains data for [Standalone Prices](/../api/projects/standalone-prices#standaloneprice) to be created or updated in a Project.
114
+ *
115
+ */
116
+ export interface StandalonePriceImportRequest {
117
+ readonly type: 'standalone-price';
118
+ /**
119
+ * The Standalone Price import resources of this request.
120
+ *
121
+ *
122
+ */
123
+ readonly resources: StandalonePriceImport[];
124
+ }
111
125
  /**
112
126
  * The request body to [import Orders](#import-orders). Contains data for [Orders](/../api/projects/orders#order) to be created or updated in a Project.
113
127
  *
@@ -8,7 +8,7 @@ import { DeliveryItem, ParcelMeasurements, TrackingData } from './orders';
8
8
  /**
9
9
  * Maps to `ReturnItem.shipmentState`
10
10
  */
11
- export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable';
11
+ export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
12
12
  export interface ReturnItemDraft {
13
13
  /**
14
14
  *
@@ -3,7 +3,7 @@
3
3
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
4
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
5
  */
6
- import { Address, CartDiscountKeyReference, ChannelKeyReference, CustomerGroupKeyReference, CustomerKeyReference, DiscountCodeKeyReference, DiscountedPrice, Image, LocalizedString, Money, PriceTier, ProductKeyReference, ProductVariantKeyReference, ShippingMethodKeyReference, StateKeyReference, TaxCategoryKeyReference, TypedMoney } from './common';
6
+ import { Address, CartDiscountKeyReference, ChannelKeyReference, CustomerGroupKeyReference, CustomerKeyReference, DiscountCodeKeyReference, DiscountedPrice, Image, LocalizedString, Money, PriceTier, ProductKeyReference, ProductVariantKeyReference, ShippingMethodKeyReference, StateKeyReference, StoreKeyReference, TaxCategoryKeyReference, TypedMoney } from './common';
7
7
  import { Custom } from './customfields';
8
8
  import { SubRate, TaxRate } from './prices';
9
9
  import { Attribute } from './productvariants';
@@ -211,7 +211,7 @@ export interface LineItemImportDraft {
211
211
  */
212
212
  readonly custom?: Custom;
213
213
  }
214
- export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue';
214
+ export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
215
215
  export declare type ShippingRatePriceTier = CartClassificationTier;
216
216
  export interface CartClassificationTier {
217
217
  readonly type: 'CartClassification';
@@ -361,7 +361,7 @@ export interface DiscountedLineItemPriceDraft {
361
361
  */
362
362
  readonly includedDiscounts: DiscountedLineItemPortion[];
363
363
  }
364
- export declare type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart';
364
+ export declare type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart' | string;
365
365
  /**
366
366
  * Maps to an order's `shippingInfo` property. This field is usually populated by the cart assosciated with
367
367
  * the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
@@ -533,44 +533,39 @@ export interface TaxedPrice {
533
533
  *
534
534
  */
535
535
  readonly taxPortions: TaxPortion[];
536
- /**
537
- * Maps to `TaxedPrice.totalTax`.
538
- *
539
- */
540
- readonly totalTax?: Money;
541
536
  }
542
537
  /**
543
538
  * Maps to `Order.taxMode`
544
539
  */
545
- export declare type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform';
540
+ export declare type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
546
541
  /**
547
542
  * Maps to `Order.orderState`.
548
543
  */
549
- export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open';
544
+ export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
550
545
  /**
551
546
  * Maps to `Order.shipmentState`.
552
547
  */
553
- export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped';
548
+ export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
554
549
  /**
555
550
  * Maps to `Order.paymentState`.
556
551
  */
557
- export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending';
552
+ export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
558
553
  /**
559
554
  * Maps to `Order.inventoryMode`.
560
555
  */
561
- export declare type InventoryMode = 'ReserveOnOrder' | 'TrackOnly';
556
+ export declare type InventoryMode = 'ReserveOnOrder' | 'TrackOnly' | string;
562
557
  /**
563
558
  * Maps to `Order.taxRoundingMode`.
564
559
  */
565
- export declare type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp';
560
+ export declare type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
566
561
  /**
567
562
  * Maps to `Order.taxCalculationMode`.
568
563
  */
569
- export declare type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel';
564
+ export declare type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
570
565
  /**
571
566
  * Maps to `Order.origin`.
572
567
  */
573
- export declare type CartOrigin = 'Customer' | 'Merchant';
568
+ export declare type CartOrigin = 'Customer' | 'Merchant' | string;
574
569
  export interface SyncInfo {
575
570
  /**
576
571
  * Maps to `SyncInfo.channel`
@@ -591,7 +586,7 @@ export interface SyncInfo {
591
586
  /**
592
587
  * Maps to `DiscountCodeInfo.state`
593
588
  */
594
- export declare type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid';
589
+ export declare type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
595
590
  export interface DiscountCodeInfo {
596
591
  /**
597
592
  * References a discount code by key.
@@ -604,7 +599,7 @@ export interface DiscountCodeInfo {
604
599
  */
605
600
  readonly state?: DiscountCodeState;
606
601
  }
607
- export declare type ShippingRateInputType = 'Classification' | 'Score';
602
+ export declare type ShippingRateInputType = 'Classification' | 'Score' | string;
608
603
  export declare type ShippingRateInput = ClassificationShippingRateInput | ScoreShippingRateInput;
609
604
  export interface ClassificationShippingRateInput {
610
605
  readonly type: 'Classification';
@@ -773,4 +768,10 @@ export interface OrderImport {
773
768
  *
774
769
  */
775
770
  readonly itemShippingAddresses?: Address[];
771
+ /**
772
+ * Reference to the Store in which the Order is associated. If referenced Store does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Store exists.
773
+ *
774
+ *
775
+ */
776
+ readonly store?: StoreKeyReference;
776
777
  }
@@ -52,6 +52,12 @@ export interface TaxRate {
52
52
  *
53
53
  */
54
54
  export interface PriceImport extends ImportResource {
55
+ /**
56
+ * User-defined unique identifier for the Embedded Price.
57
+ *
58
+ *
59
+ */
60
+ readonly key: string;
55
61
  /**
56
62
  * Maps to `Price.value`.
57
63
  *
@@ -145,8 +145,8 @@ export interface AttributeTextType {
145
145
  export interface AttributeTimeType {
146
146
  readonly name: 'time';
147
147
  }
148
- export declare type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique';
149
- export declare type TextInputHint = 'MultiLine' | 'SingleLine';
148
+ export declare type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
149
+ export declare type TextInputHint = 'MultiLine' | 'SingleLine' | string;
150
150
  /**
151
151
  * The data representation for a ProductType to be imported that is persisted as a [ProductType](/../api/projects/productTypes#producttype) in the Project.
152
152
  *
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, ImportResource, PriceTier, TypedMoney } from './common';
7
+ import { Custom } from './customfields';
8
+ /**
9
+ * The data representation for a Standalone Price to be imported that is persisted as a [Standalone Price](/../api/projects/standalone-prices#standaloneprice) in the Project.
10
+ *
11
+ */
12
+ export interface StandalonePriceImport extends ImportResource {
13
+ /**
14
+ * User-defined unique identifier for the Standalone Price.
15
+ *
16
+ *
17
+ */
18
+ readonly key: string;
19
+ /**
20
+ * Specifies to which ProductVariant the API associates this Price. It is not validated to exist in product variants.
21
+ *
22
+ *
23
+ */
24
+ readonly sku: string;
25
+ /**
26
+ * Sets the money value of this Price.
27
+ *
28
+ *
29
+ */
30
+ readonly value: TypedMoney;
31
+ /**
32
+ * Sets the country for which this Price is valid.
33
+ *
34
+ *
35
+ */
36
+ readonly country?: string;
37
+ /**
38
+ * Sets the CustomerGroup for which this Price is valid.
39
+ *
40
+ *
41
+ */
42
+ readonly customerGroup?: CustomerGroupKeyReference;
43
+ /**
44
+ * Sets the product distribution Channel for which this Price is valid
45
+ *
46
+ *
47
+ */
48
+ readonly channel?: ChannelKeyReference;
49
+ /**
50
+ * Sets the date from which the Price is valid.
51
+ *
52
+ *
53
+ */
54
+ readonly validFrom?: string;
55
+ /**
56
+ * Sets the date until the Price is valid.
57
+ *
58
+ *
59
+ */
60
+ readonly validUntil?: string;
61
+ /**
62
+ * Sets price tiers.
63
+ *
64
+ */
65
+ readonly tiers?: PriceTier[];
66
+ /**
67
+ * Sets a discounted price for this Price that is different from the base price with value.
68
+ *
69
+ */
70
+ readonly discounted?: DiscountedPrice;
71
+ /**
72
+ * Custom Fields for the StandalonePrice.
73
+ *
74
+ */
75
+ readonly custom?: Custom;
76
+ }
package/package.json CHANGED
@@ -4,7 +4,10 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@commercetools/importapi-sdk",
7
- "version": "3.0.1",
7
+ "version": "4.1.0",
8
+ "engines": {
9
+ "node": ">=14"
10
+ },
8
11
  "description": "TypeScript SDK for Composable Commerce Import API features",
9
12
  "keywords": [
10
13
  "commercetools",
@@ -29,17 +32,17 @@
29
32
  "./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
30
33
  },
31
34
  "dependencies": {
32
- "@commercetools/sdk-client-v2": "^1.4.1",
33
- "@commercetools/sdk-middleware-auth": "^6.0.4",
34
- "@commercetools/sdk-middleware-http": "^6.0.4",
35
- "@commercetools/sdk-middleware-logger": "^2.1.1",
35
+ "@commercetools/sdk-client-v2": "^2.0.1",
36
+ "@commercetools/sdk-middleware-auth": "^7.0.0",
37
+ "@commercetools/sdk-middleware-http": "^7.0.0",
38
+ "@commercetools/sdk-middleware-logger": "^3.0.0",
36
39
  "querystring": "^0.2.1"
37
40
  },
38
41
  "devDependencies": {
39
42
  "@types/uuid": "8.3.4",
40
43
  "organize-imports-cli": "0.10.0",
41
44
  "tsconfig-replace-paths": "0.0.11",
42
- "uuid": "8.3.2"
45
+ "uuid": "9.0.0"
43
46
  },
44
47
  "scripts": {
45
48
  "remove_path_alias": "tsconfig-replace-paths --project tsconfig-declarations.json -s ./src/generated -o ./src/generated",