@commercetools/importapi-sdk 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +87 -1
- package/dist/commercetools-importapi-sdk.browser.esm.js +85 -2
- package/dist/commercetools-importapi-sdk.cjs.d.ts +1 -1
- package/dist/commercetools-importapi-sdk.cjs.dev.js +87 -1
- package/dist/commercetools-importapi-sdk.cjs.prod.js +87 -1
- package/dist/commercetools-importapi-sdk.esm.js +85 -2
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/discount-codes/by-project-key-discount-codes-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-discount-codes-import-containers-by-import-container-key-request-builder.d.ts +37 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-discount-codes-import-containers-request-builder.d.ts +28 -0
- package/dist/declarations/src/generated/index.d.ts +4 -0
- package/dist/declarations/src/generated/models/common.d.ts +3 -2
- package/dist/declarations/src/generated/models/discount-codes.d.ts +91 -0
- package/dist/declarations/src/generated/models/errors.d.ts +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +15 -1
- package/dist/declarations/src/generated/models/orders.d.ts +1 -1
- package/dist/declarations/src/generated/models/prices.d.ts +8 -1
- package/dist/declarations/src/generated/models/productvariants.d.ts +8 -1
- package/package.json +5 -5
- package/dist/commercetools-importapi-sdk.cjs.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @commercetools/importapi-sdk
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#685](https://github.com/commercetools/commercetools-sdk-typescript/pull/685) [`88c5c05`](https://github.com/commercetools/commercetools-sdk-typescript/commit/88c5c05a2bc249192fb115b97ba79379c0fbd758) Thanks [@ct-sdks](https://github.com/apps/ct-sdks)! - **Import changes**
|
|
8
|
+
|
|
9
|
+
<details>
|
|
10
|
+
<summary>MarkDeprecated Property(s)</summary>
|
|
11
|
+
|
|
12
|
+
- marked property `PriceImport::publish` as deprecated
|
|
13
|
+
- marked property `ProductVariantImport::publish` as deprecated
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
<details>
|
|
17
|
+
<summary>Added Property(s)</summary>
|
|
18
|
+
|
|
19
|
+
- added property `staged` to type `PriceImport`
|
|
20
|
+
- added property `staged` to type `ProductVariantImport`
|
|
21
|
+
</details>
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`8b1aecc`](https://github.com/commercetools/commercetools-sdk-typescript/commit/8b1aecce5859248f3a90c8cc856db64d2932b5d5), [`b8bc24d`](https://github.com/commercetools/commercetools-sdk-typescript/commit/b8bc24df5db74feef7fb5743b6f24b425d43b738)]:
|
|
26
|
+
- @commercetools/sdk-client-v2@2.5.0
|
|
27
|
+
|
|
28
|
+
## 5.3.0
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- [#670](https://github.com/commercetools/commercetools-sdk-typescript/pull/670) [`96c319a`](https://github.com/commercetools/commercetools-sdk-typescript/commit/96c319ace84ba80a04581a67e608d61008ddbebf) Thanks [@ct-sdks](https://github.com/apps/ct-sdks)! - **Import changes**
|
|
33
|
+
|
|
34
|
+
<details>
|
|
35
|
+
<summary>Added Resource(s)</summary>
|
|
36
|
+
|
|
37
|
+
- added resource `/{projectKey}/discount-codes`
|
|
38
|
+
- added resource `/{projectKey}/discount-codes/import-containers`
|
|
39
|
+
- added resource `/{projectKey}/discount-codes/import-containers/{importContainerKey}`
|
|
40
|
+
</details>
|
|
41
|
+
|
|
42
|
+
<details>
|
|
43
|
+
<summary>Added Method(s)</summary>
|
|
44
|
+
|
|
45
|
+
- added method `apiRoot.withProjectKeyValue().discountCodes().importContainers().withImportContainerKeyValue().post()`
|
|
46
|
+
</details>
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary>Added Type(s)</summary>
|
|
50
|
+
|
|
51
|
+
- added type `DiscountCodeImportRequest`
|
|
52
|
+
- added type `DiscountCodeImport`
|
|
53
|
+
</details>
|
|
54
|
+
|
|
55
|
+
<details>
|
|
56
|
+
<summary>Added Enum(s)</summary>
|
|
57
|
+
|
|
58
|
+
- added enum `discount-code` to type `ImportResourceType`
|
|
59
|
+
</details>
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [[`344fd2d`](https://github.com/commercetools/commercetools-sdk-typescript/commit/344fd2d105f51a65a8a93f247ea9ea8f1a09b095)]:
|
|
64
|
+
- @commercetools/sdk-client-v2@2.4.1
|
|
65
|
+
|
|
3
66
|
## 5.2.0
|
|
4
67
|
|
|
5
68
|
### Minor Changes
|
|
@@ -15,7 +15,7 @@ function toPrimitive(t, r) {
|
|
|
15
15
|
|
|
16
16
|
function toPropertyKey(t) {
|
|
17
17
|
var i = toPrimitive(t, "string");
|
|
18
|
-
return "symbol" == typeof i ? i :
|
|
18
|
+
return "symbol" == typeof i ? i : i + "";
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function _defineProperty(obj, key, value) {
|
|
@@ -258,6 +258,80 @@ class ByProjectKeyCustomersRequestBuilder {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
264
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
**/
|
|
268
|
+
class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
269
|
+
constructor(args) {
|
|
270
|
+
this.args = args;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Creates a request for creating new Discount Codes or updating existing ones.
|
|
274
|
+
*/
|
|
275
|
+
post(methodArgs) {
|
|
276
|
+
return new ApiRequest({
|
|
277
|
+
baseUri: this.args.baseUri,
|
|
278
|
+
method: 'POST',
|
|
279
|
+
uriTemplate: '/{projectKey}/discount-codes/import-containers/{importContainerKey}',
|
|
280
|
+
pathVariables: this.args.pathArgs,
|
|
281
|
+
headers: {
|
|
282
|
+
'Content-Type': 'application/json',
|
|
283
|
+
...methodArgs?.headers
|
|
284
|
+
},
|
|
285
|
+
body: methodArgs?.body
|
|
286
|
+
}, this.args.executeRequest);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
292
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
293
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
**/
|
|
297
|
+
class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
298
|
+
constructor(args) {
|
|
299
|
+
this.args = args;
|
|
300
|
+
}
|
|
301
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
302
|
+
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder({
|
|
303
|
+
pathArgs: {
|
|
304
|
+
...this.args.pathArgs,
|
|
305
|
+
...childPathArgs
|
|
306
|
+
},
|
|
307
|
+
executeRequest: this.args.executeRequest,
|
|
308
|
+
baseUri: this.args.baseUri
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
315
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
316
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
317
|
+
*/
|
|
318
|
+
/**
|
|
319
|
+
**/
|
|
320
|
+
class ByProjectKeyDiscountCodesRequestBuilder {
|
|
321
|
+
constructor(args) {
|
|
322
|
+
this.args = args;
|
|
323
|
+
}
|
|
324
|
+
importContainers() {
|
|
325
|
+
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
|
|
326
|
+
pathArgs: {
|
|
327
|
+
...this.args.pathArgs
|
|
328
|
+
},
|
|
329
|
+
executeRequest: this.args.executeRequest,
|
|
330
|
+
baseUri: this.args.baseUri
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
261
335
|
/**
|
|
262
336
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
337
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1458,6 +1532,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1458
1532
|
baseUri: this.args.baseUri
|
|
1459
1533
|
});
|
|
1460
1534
|
}
|
|
1535
|
+
discountCodes() {
|
|
1536
|
+
return new ByProjectKeyDiscountCodesRequestBuilder({
|
|
1537
|
+
pathArgs: {
|
|
1538
|
+
...this.args.pathArgs
|
|
1539
|
+
},
|
|
1540
|
+
executeRequest: this.args.executeRequest,
|
|
1541
|
+
baseUri: this.args.baseUri
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1461
1544
|
}
|
|
1462
1545
|
|
|
1463
1546
|
class ApiRoot {
|
|
@@ -1512,6 +1595,9 @@ exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuil
|
|
|
1512
1595
|
exports.ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder;
|
|
1513
1596
|
exports.ByProjectKeyCustomersImportContainersRequestBuilder = ByProjectKeyCustomersImportContainersRequestBuilder;
|
|
1514
1597
|
exports.ByProjectKeyCustomersRequestBuilder = ByProjectKeyCustomersRequestBuilder;
|
|
1598
|
+
exports.ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder;
|
|
1599
|
+
exports.ByProjectKeyDiscountCodesImportContainersRequestBuilder = ByProjectKeyDiscountCodesImportContainersRequestBuilder;
|
|
1600
|
+
exports.ByProjectKeyDiscountCodesRequestBuilder = ByProjectKeyDiscountCodesRequestBuilder;
|
|
1515
1601
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder;
|
|
1516
1602
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder;
|
|
1517
1603
|
exports.ByProjectKeyImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyRequestBuilder;
|
|
@@ -11,7 +11,7 @@ function toPrimitive(t, r) {
|
|
|
11
11
|
|
|
12
12
|
function toPropertyKey(t) {
|
|
13
13
|
var i = toPrimitive(t, "string");
|
|
14
|
-
return "symbol" == typeof i ? i :
|
|
14
|
+
return "symbol" == typeof i ? i : i + "";
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function _defineProperty(obj, key, value) {
|
|
@@ -254,6 +254,80 @@ class ByProjectKeyCustomersRequestBuilder {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
259
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
260
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
261
|
+
*/
|
|
262
|
+
/**
|
|
263
|
+
**/
|
|
264
|
+
class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
265
|
+
constructor(args) {
|
|
266
|
+
this.args = args;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Creates a request for creating new Discount Codes or updating existing ones.
|
|
270
|
+
*/
|
|
271
|
+
post(methodArgs) {
|
|
272
|
+
return new ApiRequest({
|
|
273
|
+
baseUri: this.args.baseUri,
|
|
274
|
+
method: 'POST',
|
|
275
|
+
uriTemplate: '/{projectKey}/discount-codes/import-containers/{importContainerKey}',
|
|
276
|
+
pathVariables: this.args.pathArgs,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
...methodArgs?.headers
|
|
280
|
+
},
|
|
281
|
+
body: methodArgs?.body
|
|
282
|
+
}, this.args.executeRequest);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
288
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
289
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
290
|
+
*/
|
|
291
|
+
/**
|
|
292
|
+
**/
|
|
293
|
+
class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
294
|
+
constructor(args) {
|
|
295
|
+
this.args = args;
|
|
296
|
+
}
|
|
297
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
298
|
+
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder({
|
|
299
|
+
pathArgs: {
|
|
300
|
+
...this.args.pathArgs,
|
|
301
|
+
...childPathArgs
|
|
302
|
+
},
|
|
303
|
+
executeRequest: this.args.executeRequest,
|
|
304
|
+
baseUri: this.args.baseUri
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
311
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
312
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
313
|
+
*/
|
|
314
|
+
/**
|
|
315
|
+
**/
|
|
316
|
+
class ByProjectKeyDiscountCodesRequestBuilder {
|
|
317
|
+
constructor(args) {
|
|
318
|
+
this.args = args;
|
|
319
|
+
}
|
|
320
|
+
importContainers() {
|
|
321
|
+
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
|
|
322
|
+
pathArgs: {
|
|
323
|
+
...this.args.pathArgs
|
|
324
|
+
},
|
|
325
|
+
executeRequest: this.args.executeRequest,
|
|
326
|
+
baseUri: this.args.baseUri
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
257
331
|
/**
|
|
258
332
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
259
333
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1454,6 +1528,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1454
1528
|
baseUri: this.args.baseUri
|
|
1455
1529
|
});
|
|
1456
1530
|
}
|
|
1531
|
+
discountCodes() {
|
|
1532
|
+
return new ByProjectKeyDiscountCodesRequestBuilder({
|
|
1533
|
+
pathArgs: {
|
|
1534
|
+
...this.args.pathArgs
|
|
1535
|
+
},
|
|
1536
|
+
executeRequest: this.args.executeRequest,
|
|
1537
|
+
baseUri: this.args.baseUri
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1457
1540
|
}
|
|
1458
1541
|
|
|
1459
1542
|
class ApiRoot {
|
|
@@ -1501,4 +1584,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
|
|
|
1501
1584
|
});
|
|
1502
1585
|
}
|
|
1503
1586
|
|
|
1504
|
-
export { ApiRoot, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
|
|
1587
|
+
export { ApiRoot, 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, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1pbXBvcnRhcGktc2RrLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
|
@@ -15,7 +15,7 @@ function toPrimitive(t, r) {
|
|
|
15
15
|
|
|
16
16
|
function toPropertyKey(t) {
|
|
17
17
|
var i = toPrimitive(t, "string");
|
|
18
|
-
return "symbol" == typeof i ? i :
|
|
18
|
+
return "symbol" == typeof i ? i : i + "";
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function _defineProperty(obj, key, value) {
|
|
@@ -258,6 +258,80 @@ class ByProjectKeyCustomersRequestBuilder {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
264
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
**/
|
|
268
|
+
class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
269
|
+
constructor(args) {
|
|
270
|
+
this.args = args;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Creates a request for creating new Discount Codes or updating existing ones.
|
|
274
|
+
*/
|
|
275
|
+
post(methodArgs) {
|
|
276
|
+
return new ApiRequest({
|
|
277
|
+
baseUri: this.args.baseUri,
|
|
278
|
+
method: 'POST',
|
|
279
|
+
uriTemplate: '/{projectKey}/discount-codes/import-containers/{importContainerKey}',
|
|
280
|
+
pathVariables: this.args.pathArgs,
|
|
281
|
+
headers: {
|
|
282
|
+
'Content-Type': 'application/json',
|
|
283
|
+
...methodArgs?.headers
|
|
284
|
+
},
|
|
285
|
+
body: methodArgs?.body
|
|
286
|
+
}, this.args.executeRequest);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
292
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
293
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
**/
|
|
297
|
+
class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
298
|
+
constructor(args) {
|
|
299
|
+
this.args = args;
|
|
300
|
+
}
|
|
301
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
302
|
+
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder({
|
|
303
|
+
pathArgs: {
|
|
304
|
+
...this.args.pathArgs,
|
|
305
|
+
...childPathArgs
|
|
306
|
+
},
|
|
307
|
+
executeRequest: this.args.executeRequest,
|
|
308
|
+
baseUri: this.args.baseUri
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
315
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
316
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
317
|
+
*/
|
|
318
|
+
/**
|
|
319
|
+
**/
|
|
320
|
+
class ByProjectKeyDiscountCodesRequestBuilder {
|
|
321
|
+
constructor(args) {
|
|
322
|
+
this.args = args;
|
|
323
|
+
}
|
|
324
|
+
importContainers() {
|
|
325
|
+
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
|
|
326
|
+
pathArgs: {
|
|
327
|
+
...this.args.pathArgs
|
|
328
|
+
},
|
|
329
|
+
executeRequest: this.args.executeRequest,
|
|
330
|
+
baseUri: this.args.baseUri
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
261
335
|
/**
|
|
262
336
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
337
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1458,6 +1532,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1458
1532
|
baseUri: this.args.baseUri
|
|
1459
1533
|
});
|
|
1460
1534
|
}
|
|
1535
|
+
discountCodes() {
|
|
1536
|
+
return new ByProjectKeyDiscountCodesRequestBuilder({
|
|
1537
|
+
pathArgs: {
|
|
1538
|
+
...this.args.pathArgs
|
|
1539
|
+
},
|
|
1540
|
+
executeRequest: this.args.executeRequest,
|
|
1541
|
+
baseUri: this.args.baseUri
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1461
1544
|
}
|
|
1462
1545
|
|
|
1463
1546
|
class ApiRoot {
|
|
@@ -1512,6 +1595,9 @@ exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuil
|
|
|
1512
1595
|
exports.ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder;
|
|
1513
1596
|
exports.ByProjectKeyCustomersImportContainersRequestBuilder = ByProjectKeyCustomersImportContainersRequestBuilder;
|
|
1514
1597
|
exports.ByProjectKeyCustomersRequestBuilder = ByProjectKeyCustomersRequestBuilder;
|
|
1598
|
+
exports.ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder;
|
|
1599
|
+
exports.ByProjectKeyDiscountCodesImportContainersRequestBuilder = ByProjectKeyDiscountCodesImportContainersRequestBuilder;
|
|
1600
|
+
exports.ByProjectKeyDiscountCodesRequestBuilder = ByProjectKeyDiscountCodesRequestBuilder;
|
|
1515
1601
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder;
|
|
1516
1602
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder;
|
|
1517
1603
|
exports.ByProjectKeyImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyRequestBuilder;
|
|
@@ -15,7 +15,7 @@ function toPrimitive(t, r) {
|
|
|
15
15
|
|
|
16
16
|
function toPropertyKey(t) {
|
|
17
17
|
var i = toPrimitive(t, "string");
|
|
18
|
-
return "symbol" == typeof i ? i :
|
|
18
|
+
return "symbol" == typeof i ? i : i + "";
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function _defineProperty(obj, key, value) {
|
|
@@ -258,6 +258,80 @@ class ByProjectKeyCustomersRequestBuilder {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
264
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
**/
|
|
268
|
+
class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
269
|
+
constructor(args) {
|
|
270
|
+
this.args = args;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Creates a request for creating new Discount Codes or updating existing ones.
|
|
274
|
+
*/
|
|
275
|
+
post(methodArgs) {
|
|
276
|
+
return new ApiRequest({
|
|
277
|
+
baseUri: this.args.baseUri,
|
|
278
|
+
method: 'POST',
|
|
279
|
+
uriTemplate: '/{projectKey}/discount-codes/import-containers/{importContainerKey}',
|
|
280
|
+
pathVariables: this.args.pathArgs,
|
|
281
|
+
headers: {
|
|
282
|
+
'Content-Type': 'application/json',
|
|
283
|
+
...methodArgs?.headers
|
|
284
|
+
},
|
|
285
|
+
body: methodArgs?.body
|
|
286
|
+
}, this.args.executeRequest);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
292
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
293
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
294
|
+
*/
|
|
295
|
+
/**
|
|
296
|
+
**/
|
|
297
|
+
class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
298
|
+
constructor(args) {
|
|
299
|
+
this.args = args;
|
|
300
|
+
}
|
|
301
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
302
|
+
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder({
|
|
303
|
+
pathArgs: {
|
|
304
|
+
...this.args.pathArgs,
|
|
305
|
+
...childPathArgs
|
|
306
|
+
},
|
|
307
|
+
executeRequest: this.args.executeRequest,
|
|
308
|
+
baseUri: this.args.baseUri
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
315
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
316
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
317
|
+
*/
|
|
318
|
+
/**
|
|
319
|
+
**/
|
|
320
|
+
class ByProjectKeyDiscountCodesRequestBuilder {
|
|
321
|
+
constructor(args) {
|
|
322
|
+
this.args = args;
|
|
323
|
+
}
|
|
324
|
+
importContainers() {
|
|
325
|
+
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
|
|
326
|
+
pathArgs: {
|
|
327
|
+
...this.args.pathArgs
|
|
328
|
+
},
|
|
329
|
+
executeRequest: this.args.executeRequest,
|
|
330
|
+
baseUri: this.args.baseUri
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
261
335
|
/**
|
|
262
336
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
263
337
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1458,6 +1532,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1458
1532
|
baseUri: this.args.baseUri
|
|
1459
1533
|
});
|
|
1460
1534
|
}
|
|
1535
|
+
discountCodes() {
|
|
1536
|
+
return new ByProjectKeyDiscountCodesRequestBuilder({
|
|
1537
|
+
pathArgs: {
|
|
1538
|
+
...this.args.pathArgs
|
|
1539
|
+
},
|
|
1540
|
+
executeRequest: this.args.executeRequest,
|
|
1541
|
+
baseUri: this.args.baseUri
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1461
1544
|
}
|
|
1462
1545
|
|
|
1463
1546
|
class ApiRoot {
|
|
@@ -1512,6 +1595,9 @@ exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuil
|
|
|
1512
1595
|
exports.ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder;
|
|
1513
1596
|
exports.ByProjectKeyCustomersImportContainersRequestBuilder = ByProjectKeyCustomersImportContainersRequestBuilder;
|
|
1514
1597
|
exports.ByProjectKeyCustomersRequestBuilder = ByProjectKeyCustomersRequestBuilder;
|
|
1598
|
+
exports.ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder;
|
|
1599
|
+
exports.ByProjectKeyDiscountCodesImportContainersRequestBuilder = ByProjectKeyDiscountCodesImportContainersRequestBuilder;
|
|
1600
|
+
exports.ByProjectKeyDiscountCodesRequestBuilder = ByProjectKeyDiscountCodesRequestBuilder;
|
|
1515
1601
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder;
|
|
1516
1602
|
exports.ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder;
|
|
1517
1603
|
exports.ByProjectKeyImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyImportContainersByImportContainerKeyRequestBuilder;
|
|
@@ -11,7 +11,7 @@ function toPrimitive(t, r) {
|
|
|
11
11
|
|
|
12
12
|
function toPropertyKey(t) {
|
|
13
13
|
var i = toPrimitive(t, "string");
|
|
14
|
-
return "symbol" == typeof i ? i :
|
|
14
|
+
return "symbol" == typeof i ? i : i + "";
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function _defineProperty(obj, key, value) {
|
|
@@ -254,6 +254,80 @@ class ByProjectKeyCustomersRequestBuilder {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
259
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
260
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
261
|
+
*/
|
|
262
|
+
/**
|
|
263
|
+
**/
|
|
264
|
+
class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
265
|
+
constructor(args) {
|
|
266
|
+
this.args = args;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Creates a request for creating new Discount Codes or updating existing ones.
|
|
270
|
+
*/
|
|
271
|
+
post(methodArgs) {
|
|
272
|
+
return new ApiRequest({
|
|
273
|
+
baseUri: this.args.baseUri,
|
|
274
|
+
method: 'POST',
|
|
275
|
+
uriTemplate: '/{projectKey}/discount-codes/import-containers/{importContainerKey}',
|
|
276
|
+
pathVariables: this.args.pathArgs,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
...methodArgs?.headers
|
|
280
|
+
},
|
|
281
|
+
body: methodArgs?.body
|
|
282
|
+
}, this.args.executeRequest);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
288
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
289
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
290
|
+
*/
|
|
291
|
+
/**
|
|
292
|
+
**/
|
|
293
|
+
class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
294
|
+
constructor(args) {
|
|
295
|
+
this.args = args;
|
|
296
|
+
}
|
|
297
|
+
withImportContainerKeyValue(childPathArgs) {
|
|
298
|
+
return new ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder({
|
|
299
|
+
pathArgs: {
|
|
300
|
+
...this.args.pathArgs,
|
|
301
|
+
...childPathArgs
|
|
302
|
+
},
|
|
303
|
+
executeRequest: this.args.executeRequest,
|
|
304
|
+
baseUri: this.args.baseUri
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
311
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
312
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
313
|
+
*/
|
|
314
|
+
/**
|
|
315
|
+
**/
|
|
316
|
+
class ByProjectKeyDiscountCodesRequestBuilder {
|
|
317
|
+
constructor(args) {
|
|
318
|
+
this.args = args;
|
|
319
|
+
}
|
|
320
|
+
importContainers() {
|
|
321
|
+
return new ByProjectKeyDiscountCodesImportContainersRequestBuilder({
|
|
322
|
+
pathArgs: {
|
|
323
|
+
...this.args.pathArgs
|
|
324
|
+
},
|
|
325
|
+
executeRequest: this.args.executeRequest,
|
|
326
|
+
baseUri: this.args.baseUri
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
257
331
|
/**
|
|
258
332
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
259
333
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
@@ -1454,6 +1528,15 @@ class ByProjectKeyRequestBuilder {
|
|
|
1454
1528
|
baseUri: this.args.baseUri
|
|
1455
1529
|
});
|
|
1456
1530
|
}
|
|
1531
|
+
discountCodes() {
|
|
1532
|
+
return new ByProjectKeyDiscountCodesRequestBuilder({
|
|
1533
|
+
pathArgs: {
|
|
1534
|
+
...this.args.pathArgs
|
|
1535
|
+
},
|
|
1536
|
+
executeRequest: this.args.executeRequest,
|
|
1537
|
+
baseUri: this.args.baseUri
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1457
1540
|
}
|
|
1458
1541
|
|
|
1459
1542
|
class ApiRoot {
|
|
@@ -1501,4 +1584,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
|
|
|
1501
1584
|
});
|
|
1502
1585
|
}
|
|
1503
1586
|
|
|
1504
|
-
export { ApiRoot, ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCategoriesImportContainersRequestBuilder, ByProjectKeyCategoriesRequestBuilder, ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyCustomersImportContainersRequestBuilder, ByProjectKeyCustomersRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder, ByProjectKeyImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyImportContainersRequestBuilder, ByProjectKeyImportOperationsByIdRequestBuilder, ByProjectKeyImportOperationsRequestBuilder, ByProjectKeyInventoriesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyInventoriesImportContainersRequestBuilder, ByProjectKeyInventoriesRequestBuilder, ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrderPatchesImportContainersRequestBuilder, ByProjectKeyOrderPatchesRequestBuilder, ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyOrdersImportContainersRequestBuilder, ByProjectKeyOrdersRequestBuilder, ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyPricesImportContainersRequestBuilder, ByProjectKeyPricesRequestBuilder, ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductDraftsImportContainersRequestBuilder, ByProjectKeyProductDraftsRequestBuilder, ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductTypesImportContainersRequestBuilder, ByProjectKeyProductTypesRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantPatchesImportContainersRequestBuilder, ByProjectKeyProductVariantPatchesRequestBuilder, ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductVariantsImportContainersRequestBuilder, ByProjectKeyProductVariantsRequestBuilder, ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyProductsImportContainersRequestBuilder, ByProjectKeyProductsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyStandalonePricesImportContainersRequestBuilder, ByProjectKeyStandalonePricesRequestBuilder, ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder, ByProjectKeyTypesImportContainersRequestBuilder, ByProjectKeyTypesRequestBuilder, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
|
|
1587
|
+
export { ApiRoot, 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, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { executeRequest } from "../shared/utils/common-types.js";
|
|
7
7
|
import { ByProjectKeyCategoriesRequestBuilder } from "./categories/by-project-key-categories-request-builder.js";
|
|
8
8
|
import { ByProjectKeyCustomersRequestBuilder } from "./customers/by-project-key-customers-request-builder.js";
|
|
9
|
+
import { ByProjectKeyDiscountCodesRequestBuilder } from "./discount-codes/by-project-key-discount-codes-request-builder.js";
|
|
9
10
|
import { ByProjectKeyImportContainersRequestBuilder } from "./import-containers/by-project-key-import-containers-request-builder.js";
|
|
10
11
|
import { ByProjectKeyImportOperationsRequestBuilder } from "./import-operations/by-project-key-import-operations-request-builder.js";
|
|
11
12
|
import { ByProjectKeyInventoriesRequestBuilder } from "./inventories/by-project-key-inventories-request-builder.js";
|
|
@@ -51,4 +52,5 @@ export declare class ByProjectKeyRequestBuilder {
|
|
|
51
52
|
customers(): ByProjectKeyCustomersRequestBuilder;
|
|
52
53
|
inventories(): ByProjectKeyInventoriesRequestBuilder;
|
|
53
54
|
types(): ByProjectKeyTypesRequestBuilder;
|
|
55
|
+
discountCodes(): ByProjectKeyDiscountCodesRequestBuilder;
|
|
54
56
|
}
|
|
@@ -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.js";
|
|
7
|
+
import { ByProjectKeyDiscountCodesImportContainersRequestBuilder } from "../import-containers/by-project-key-discount-codes-import-containers-request-builder.js";
|
|
8
|
+
/**
|
|
9
|
+
**/
|
|
10
|
+
export declare class ByProjectKeyDiscountCodesRequestBuilder {
|
|
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(): ByProjectKeyDiscountCodesImportContainersRequestBuilder;
|
|
26
|
+
}
|
|
@@ -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 { DiscountCodeImportRequest, ImportResponse } from "../../models/importrequests.js";
|
|
7
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
8
|
+
import { ApiRequest } from "../../shared/utils/requests-utils.js";
|
|
9
|
+
/**
|
|
10
|
+
**/
|
|
11
|
+
export declare class ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder {
|
|
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 Discount Codes or updating existing ones.
|
|
30
|
+
*/
|
|
31
|
+
post(methodArgs: {
|
|
32
|
+
body: DiscountCodeImportRequest;
|
|
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.js";
|
|
7
|
+
import { ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder } from "./by-project-key-discount-codes-import-containers-by-import-container-key-request-builder.js";
|
|
8
|
+
/**
|
|
9
|
+
**/
|
|
10
|
+
export declare class ByProjectKeyDiscountCodesImportContainersRequestBuilder {
|
|
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
|
+
}): ByProjectKeyDiscountCodesImportContainersByImportContainerKeyRequestBuilder;
|
|
28
|
+
}
|
|
@@ -7,10 +7,13 @@ export * from "./client/api-root.js";
|
|
|
7
7
|
export * from "./client/by-project-key-request-builder.js";
|
|
8
8
|
export * from "./client/categories/by-project-key-categories-request-builder.js";
|
|
9
9
|
export * from "./client/customers/by-project-key-customers-request-builder.js";
|
|
10
|
+
export * from "./client/discount-codes/by-project-key-discount-codes-request-builder.js";
|
|
10
11
|
export * from "./client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.js";
|
|
11
12
|
export * from "./client/import-containers/by-project-key-categories-import-containers-request-builder.js";
|
|
12
13
|
export * from "./client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.js";
|
|
13
14
|
export * from "./client/import-containers/by-project-key-customers-import-containers-request-builder.js";
|
|
15
|
+
export * from "./client/import-containers/by-project-key-discount-codes-import-containers-by-import-container-key-request-builder.js";
|
|
16
|
+
export * from "./client/import-containers/by-project-key-discount-codes-import-containers-request-builder.js";
|
|
14
17
|
export * from "./client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.js";
|
|
15
18
|
export * from "./client/import-containers/by-project-key-import-containers-request-builder.js";
|
|
16
19
|
export * from "./client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.js";
|
|
@@ -54,6 +57,7 @@ export * from "./models/categories.js";
|
|
|
54
57
|
export * from "./models/common.js";
|
|
55
58
|
export * from "./models/customers.js";
|
|
56
59
|
export * from "./models/customfields.js";
|
|
60
|
+
export * from "./models/discount-codes.js";
|
|
57
61
|
export * from "./models/errors.js";
|
|
58
62
|
export * from "./models/importcontainers.js";
|
|
59
63
|
export * from "./models/importoperations.js";
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { CategoryImport } from "./categories.js";
|
|
7
7
|
import { CustomerImport } from "./customers.js";
|
|
8
8
|
import { Custom } from "./customfields.js";
|
|
9
|
+
import { DiscountCodeImport } from "./discount-codes.js";
|
|
9
10
|
import { InventoryImport } from "./inventories.js";
|
|
10
11
|
import { PriceImport } from "./prices.js";
|
|
11
12
|
import { ProductDraftImport } from "./productdrafts.js";
|
|
@@ -173,7 +174,7 @@ export interface ImportResource {
|
|
|
173
174
|
*/
|
|
174
175
|
readonly key: string;
|
|
175
176
|
}
|
|
176
|
-
export type _ImportResource = ImportResource | CategoryImport | CustomerImport | InventoryImport | PriceImport | ProductDraftImport | ProductImport | ProductTypeImport | ProductVariantImport | StandalonePriceImport | TypeImport;
|
|
177
|
+
export type _ImportResource = ImportResource | CategoryImport | CustomerImport | DiscountCodeImport | InventoryImport | PriceImport | ProductDraftImport | ProductImport | ProductTypeImport | ProductVariantImport | StandalonePriceImport | TypeImport;
|
|
177
178
|
/**
|
|
178
179
|
* References a resource by key.
|
|
179
180
|
*/
|
|
@@ -466,7 +467,7 @@ export interface PriceTier {
|
|
|
466
467
|
* The resource types that can be imported.
|
|
467
468
|
*
|
|
468
469
|
*/
|
|
469
|
-
export type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | 'type' | string;
|
|
470
|
+
export type ImportResourceType = 'category' | 'customer' | 'discount-code' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | 'type' | string;
|
|
470
471
|
/**
|
|
471
472
|
* The type of the referenced resource.
|
|
472
473
|
*
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { CartDiscountKeyReference, ImportResource, LocalizedString } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
|
+
/**
|
|
9
|
+
* The data representation for a Discount Code to be imported that is persisted as a [Discount Code](/../api/projects/discountCodes#discountcode) in the Project.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export interface DiscountCodeImport extends ImportResource {
|
|
13
|
+
/**
|
|
14
|
+
* User-defined unique identifier. If a [Discount Code](/../api/projects/discountCodes#discountcode) with this `key` exists, it will be updated with the imported data.
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
readonly key: string;
|
|
19
|
+
/**
|
|
20
|
+
* Maps to `DiscountCode.name`.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
readonly name?: LocalizedString;
|
|
25
|
+
/**
|
|
26
|
+
* Maps to `DiscountCode.description`.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
readonly description?: LocalizedString;
|
|
31
|
+
/**
|
|
32
|
+
* User-defined unique identifier of the DiscountCode that is used by the customer to apply the discount.
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
readonly code: string;
|
|
37
|
+
/**
|
|
38
|
+
* Reference to CartDiscounts that can be applied to the Cart once the DiscountCode is applied.
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
readonly cartDiscounts: CartDiscountKeyReference[];
|
|
43
|
+
/**
|
|
44
|
+
* DiscountCode can only be applied to Carts that match this predicate.
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
readonly cartPredicate?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates if the DiscountCode is active and can be applied to the Cart.
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
readonly isActive: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Number of times the DiscountCode can be applied. DiscountCode application is counted at the time of Order creation or update. However, Order cancellation or deletion does not decrement the count.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
readonly maxApplications?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Number of times the DiscountCode can be applied per Customer (anonymous Carts are not supported). DiscountCode application is counted at the time of Order creation or update. However, Order cancellation or deletion does not decrement the count.
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
readonly maxApplicationsPerCustomer?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Groups to which the DiscountCode belongs.
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
readonly groups?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* Date and time (UTC) from which the DiscountCode is effective.
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
readonly validFrom?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Date and time (UTC) until which the DiscountCode is effective.
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
readonly validUntil?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Custom Fields of the DiscountCode.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
readonly custom?: Custom;
|
|
91
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { CategoryImport } from "./categories.js";
|
|
7
7
|
import { CustomerImport } from "./customers.js";
|
|
8
|
+
import { DiscountCodeImport } from "./discount-codes.js";
|
|
8
9
|
import { ImportOperationStatus } from "./importoperations.js";
|
|
9
10
|
import { InventoryImport } from "./inventories.js";
|
|
10
11
|
import { OrderPatchImport } from "./order-patches.js";
|
|
@@ -20,7 +21,7 @@ import { TypeImport } from "./types.js";
|
|
|
20
21
|
* An import request batches multiple import resources of the same import resource type for processing by an import container.
|
|
21
22
|
*
|
|
22
23
|
*/
|
|
23
|
-
export type ImportRequest = CategoryImportRequest | CustomerImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest | TypeImportRequest;
|
|
24
|
+
export type ImportRequest = CategoryImportRequest | CustomerImportRequest | DiscountCodeImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest | TypeImportRequest;
|
|
24
25
|
/**
|
|
25
26
|
* A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation).
|
|
26
27
|
* 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).
|
|
@@ -201,3 +202,16 @@ export interface TypeImportRequest {
|
|
|
201
202
|
*/
|
|
202
203
|
readonly resources: TypeImport[];
|
|
203
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* The request body to [import Discount Codes](#import-discount-codes). Contains data for [Discount Codes](/../api/projects/discountCodes#discountcode) to be created or updated in a Project.
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
209
|
+
export interface DiscountCodeImportRequest {
|
|
210
|
+
readonly type: 'discount-code';
|
|
211
|
+
/**
|
|
212
|
+
* The Discount Code import resources of this request.
|
|
213
|
+
*
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
readonly resources: DiscountCodeImport[];
|
|
217
|
+
}
|
|
@@ -636,7 +636,7 @@ export interface ScoreShippingRateInput {
|
|
|
636
636
|
* The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project.
|
|
637
637
|
*
|
|
638
638
|
* In commercetools, you can import an Order using the
|
|
639
|
-
* [Create Order by Import](ctp:
|
|
639
|
+
* [Create Order by Import](ctp:import:endpoint:/{projectKey}/orders/import:POST)
|
|
640
640
|
* endpoint method instead of creating it from a Cart.
|
|
641
641
|
*
|
|
642
642
|
* An OrderImport is a snapshot of an order at the time it was imported.
|
|
@@ -104,9 +104,16 @@ export interface PriceImport extends ImportResource {
|
|
|
104
104
|
/**
|
|
105
105
|
* Only the [Embedded Price](/../api/projects/products#embedded-price) updates will be published to `staged` and `current` projection.
|
|
106
106
|
*
|
|
107
|
-
*
|
|
107
|
+
* @deprecated
|
|
108
108
|
*/
|
|
109
109
|
readonly publish?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* - Set to `false` to update both the [current and staged projections](/../api/projects/productProjections#current--staged) of the [Product](/../api/projects/products#product) with the new Price data.
|
|
112
|
+
* - Leave empty or set to `true` to only update the staged projection.
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
readonly staged?: boolean;
|
|
110
117
|
/**
|
|
111
118
|
* The tiered prices for this price.
|
|
112
119
|
*
|
|
@@ -487,9 +487,16 @@ export interface ProductVariantImport extends ImportResource {
|
|
|
487
487
|
* If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
|
|
488
488
|
* However, if the import data contains no update, that is, if it matches the staged projection of the existing Product, the import induces no change in the existing Product whether `publish` is set or not.
|
|
489
489
|
*
|
|
490
|
-
*
|
|
490
|
+
* @deprecated
|
|
491
491
|
*/
|
|
492
492
|
readonly publish?: boolean;
|
|
493
|
+
/**
|
|
494
|
+
* - Set to `false` to update both the [current and staged projections](/../api/projects/productProjections#current--staged) of the [Product](/../api/projects/products#product) with the new Product Variant data.
|
|
495
|
+
* - Leave empty or set to `true` to only update the staged projection.
|
|
496
|
+
*
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
readonly staged?: boolean;
|
|
493
500
|
/**
|
|
494
501
|
* The [Product](/../api/projects/products#productvariant) to which this Product Variant belongs. Maps to `ProductVariant.product`.
|
|
495
502
|
* The Reference to the [Product](/../api/projects/products#product) with which the ProductVariant is associated.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/importapi-sdk",
|
|
7
|
-
"version": "5.
|
|
7
|
+
"version": "5.4.0",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=14"
|
|
10
10
|
},
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@commercetools/sdk-client-v2": "^2.
|
|
35
|
+
"@commercetools/sdk-client-v2": "^2.5.0",
|
|
36
36
|
"@commercetools/sdk-middleware-auth": "^7.0.0",
|
|
37
37
|
"@commercetools/sdk-middleware-http": "^7.0.0",
|
|
38
38
|
"@commercetools/sdk-middleware-logger": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/uuid": "9.0.
|
|
41
|
+
"@types/uuid": "9.0.8",
|
|
42
42
|
"organize-imports-cli": "0.10.0",
|
|
43
|
-
"tsconfig-replace-paths": "0.0.
|
|
44
|
-
"uuid": "9.0.
|
|
43
|
+
"tsconfig-replace-paths": "0.0.14",
|
|
44
|
+
"uuid": "9.0.1"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"remove_path_alias": "tsconfig-replace-paths --project tsconfig-declarations.json -s ./src/generated -o ./src/generated",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-importapi-sdk.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|