@commercetools/importapi-sdk 1.20.0 → 2.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.
- package/CHANGELOG.md +33 -0
- package/README.md +100 -18
- package/dist/commercetools-importapi-sdk.browser.cjs.js +1964 -2190
- package/dist/commercetools-importapi-sdk.browser.esm.js +1964 -2190
- package/dist/commercetools-importapi-sdk.cjs.dev.js +1964 -2190
- package/dist/commercetools-importapi-sdk.cjs.prod.js +1964 -2190
- package/dist/commercetools-importapi-sdk.esm.js +1964 -2190
- package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
- package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +50 -52
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -55
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -36
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +49 -49
- package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -45
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-import-sink-key-by-import-sink-key-request-builder.d.ts +38 -38
- package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/index.d.ts +25 -26
- package/dist/declarations/src/generated/models/categories.d.ts +79 -79
- package/dist/declarations/src/generated/models/common.d.ts +570 -570
- package/dist/declarations/src/generated/models/customers.d.ts +252 -252
- package/dist/declarations/src/generated/models/customfields.d.ts +260 -260
- package/dist/declarations/src/generated/models/errors.d.ts +356 -352
- package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -114
- package/dist/declarations/src/generated/models/importoperations.d.ts +128 -128
- package/dist/declarations/src/generated/models/importrequests.d.ts +161 -175
- package/dist/declarations/src/generated/models/importsinks.d.ts +113 -113
- package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -55
- package/dist/declarations/src/generated/models/order-patches.d.ts +227 -227
- package/dist/declarations/src/generated/models/orders.d.ts +778 -778
- package/dist/declarations/src/generated/models/prices.d.ts +130 -130
- package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -224
- package/dist/declarations/src/generated/models/products.d.ts +181 -179
- package/dist/declarations/src/generated/models/producttypes.d.ts +173 -173
- package/dist/declarations/src/generated/models/productvariants.d.ts +529 -527
- package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
- package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
- package/dist/declarations/src/index.d.ts +2 -2
- package/package.json +5 -6
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +0 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +0 -26
- package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +0 -37
- package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +0 -48
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +0 -37
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +0 -28
- package/dist/declarations/src/generated/models/inventories.d.ts +0 -44
|
@@ -1,55 +1,55 @@
|
|
|
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
|
-
/**
|
|
7
|
-
* Describes the status of an [ImportContainer](/import-container#importcontainer) by the number of resources in each [Processing State](/processing-state#processingState).
|
|
8
|
-
* Can be used to monitor the import progress per [Import Container](/import-container).
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export interface ImportSummary {
|
|
12
|
-
/**
|
|
13
|
-
* The import status of an [ImportContainer](/import-container#importcontainer) given by the number of resources in each [Processing State](/processing-state#processingState).
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
readonly states: OperationStates;
|
|
18
|
-
/**
|
|
19
|
-
* The total number of [ImportOperations](/import-operation#importoperation) received for this Import Summary.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
readonly total: number;
|
|
23
|
-
}
|
|
24
|
-
export interface OperationStates {
|
|
25
|
-
/**
|
|
26
|
-
* The number of resources in the `processing` state.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
readonly processing: number;
|
|
30
|
-
/**
|
|
31
|
-
* The number of resources in the `validationFailed` state.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
readonly validationFailed: number;
|
|
35
|
-
/**
|
|
36
|
-
* The number of resources in the `unresolved` state.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
readonly unresolved: number;
|
|
40
|
-
/**
|
|
41
|
-
* The number of resources in the `waitForMasterVariant` state.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
readonly waitForMasterVariant: number;
|
|
45
|
-
/**
|
|
46
|
-
* The number of resources in the `imported` state.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
readonly imported: number;
|
|
50
|
-
/**
|
|
51
|
-
* The number of resources in the `rejected` state.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
readonly rejected: number;
|
|
55
|
-
}
|
|
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
|
+
/**
|
|
7
|
+
* Describes the status of an [ImportContainer](/import-container#importcontainer) by the number of resources in each [Processing State](/processing-state#processingState).
|
|
8
|
+
* Can be used to monitor the import progress per [Import Container](/import-container).
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export interface ImportSummary {
|
|
12
|
+
/**
|
|
13
|
+
* The import status of an [ImportContainer](/import-container#importcontainer) given by the number of resources in each [Processing State](/processing-state#processingState).
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
readonly states: OperationStates;
|
|
18
|
+
/**
|
|
19
|
+
* The total number of [ImportOperations](/import-operation#importoperation) received for this Import Summary.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
readonly total: number;
|
|
23
|
+
}
|
|
24
|
+
export interface OperationStates {
|
|
25
|
+
/**
|
|
26
|
+
* The number of resources in the `processing` state.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
readonly processing: number;
|
|
30
|
+
/**
|
|
31
|
+
* The number of resources in the `validationFailed` state.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
readonly validationFailed: number;
|
|
35
|
+
/**
|
|
36
|
+
* The number of resources in the `unresolved` state.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
readonly unresolved: number;
|
|
40
|
+
/**
|
|
41
|
+
* The number of resources in the `waitForMasterVariant` state.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
readonly waitForMasterVariant: number;
|
|
45
|
+
/**
|
|
46
|
+
* The number of resources in the `imported` state.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
readonly imported: number;
|
|
50
|
+
/**
|
|
51
|
+
* The number of resources in the `rejected` state.
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
readonly rejected: number;
|
|
55
|
+
}
|
|
@@ -1,227 +1,227 @@
|
|
|
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 { Address } from './common';
|
|
7
|
-
import { DeliveryItem, ParcelMeasurements, TrackingData } from './orders';
|
|
8
|
-
/**
|
|
9
|
-
* Maps to `ReturnItem.shipmentState`
|
|
10
|
-
*/
|
|
11
|
-
export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable';
|
|
12
|
-
export interface ReturnItemDraft {
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
readonly quantity: number;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
readonly lineItemId?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
readonly customLineItemId?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
readonly comment?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Maps to `ReturnItem.shipmentState`
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
readonly shipmentState: ReturnShipmentState;
|
|
34
|
-
}
|
|
35
|
-
export interface ReturnInfo {
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
readonly items: ReturnItemDraft[];
|
|
40
|
-
/**
|
|
41
|
-
* Maps to `ReturnInfo.returnTrackingId`
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
readonly returnTrackingId?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Maps to `ReturnInfo.returnDate`
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
readonly returnDate?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface DeliveryParcel {
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
readonly deliveryId: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
readonly measurements?: ParcelMeasurements;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
readonly trackingData?: TrackingData;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
readonly items?: DeliveryItem[];
|
|
68
|
-
}
|
|
69
|
-
export interface DeliveryParcelDraft {
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
readonly measurements?: ParcelMeasurements;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
readonly trackingData?: TrackingData;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
readonly items?: DeliveryItem[];
|
|
82
|
-
}
|
|
83
|
-
export interface DeliveryDraft {
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
readonly items: DeliveryItem[];
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
readonly address?: Address;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
readonly parcels: DeliveryParcelDraft[];
|
|
96
|
-
}
|
|
97
|
-
export interface DeliveryAddressDraft {
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
readonly deliveryId: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
readonly address?: Address;
|
|
106
|
-
}
|
|
107
|
-
export interface ParcelMeasurementDraft {
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
readonly parcelId: string;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
readonly measurements?: ParcelMeasurements;
|
|
116
|
-
}
|
|
117
|
-
export interface ParcelTrackingData {
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
readonly parcelId: string;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
readonly trackingData?: TrackingData;
|
|
126
|
-
}
|
|
127
|
-
export interface ParcelItems {
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
readonly parcelId: string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
135
|
-
readonly items?: DeliveryItem[];
|
|
136
|
-
}
|
|
137
|
-
export interface RemoveDeliveryDraft {
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
141
|
-
readonly id: string;
|
|
142
|
-
}
|
|
143
|
-
export interface RemoveParcelFromDeliveryDraft {
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
readonly parcelId: string;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Order fields that needs to be added or updated.
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
export interface OrderField {
|
|
154
|
-
/**
|
|
155
|
-
* Maps to `Order.returnInfo`
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
readonly addReturnInfo?: ReturnInfo;
|
|
160
|
-
/**
|
|
161
|
-
* Maps to `Order.delivery`
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
readonly addParcelToDelivery?: DeliveryParcel;
|
|
166
|
-
/**
|
|
167
|
-
* Maps to `Order.delivery`
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
|
-
readonly addDeliveries?: DeliveryDraft[];
|
|
172
|
-
/**
|
|
173
|
-
* Maps to `Order.removeDelivery`
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
readonly removeDelivery?: RemoveDeliveryDraft;
|
|
178
|
-
/**
|
|
179
|
-
* Maps to `Order.removeParcelFromDelivery`
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
183
|
-
readonly removeParcelFromDelivery?: RemoveParcelFromDeliveryDraft;
|
|
184
|
-
/**
|
|
185
|
-
* Maps to `Order.addressDraft`
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*/
|
|
189
|
-
readonly setDeliveryAddress?: DeliveryAddressDraft;
|
|
190
|
-
/**
|
|
191
|
-
* Maps to `Order.parcelMeasurements`
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
readonly setParcelMeasurements?: ParcelMeasurementDraft;
|
|
196
|
-
/**
|
|
197
|
-
* Maps to `Order.parcelTrackingData`
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*/
|
|
201
|
-
readonly setParcelTrackingData?: ParcelTrackingData;
|
|
202
|
-
/**
|
|
203
|
-
* Maps to `Order.parcelItems`
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*/
|
|
207
|
-
readonly setParcelItems?: ParcelItems[];
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Representation for an update of an [Order](/../api/projects/orders#order). Use this type to import updates for existing
|
|
211
|
-
* [Orders](/../api/projects/orders#order) in a commercetools Project.
|
|
212
|
-
*
|
|
213
|
-
*/
|
|
214
|
-
export interface OrderPatchImport {
|
|
215
|
-
/**
|
|
216
|
-
* Maps to `Order.orderNumber`, String that uniquely identifies an order, unique across a project.
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*/
|
|
220
|
-
readonly orderNumber: string;
|
|
221
|
-
/**
|
|
222
|
-
* Each field referenced must be defined in an already existing order in the commercetools project or the import operation state is set to `validationFailed`.
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
readonly fields: OrderField;
|
|
227
|
-
}
|
|
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 { Address } from './common';
|
|
7
|
+
import { DeliveryItem, ParcelMeasurements, TrackingData } from './orders';
|
|
8
|
+
/**
|
|
9
|
+
* Maps to `ReturnItem.shipmentState`
|
|
10
|
+
*/
|
|
11
|
+
export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable';
|
|
12
|
+
export interface ReturnItemDraft {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
readonly quantity: number;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
readonly lineItemId?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
readonly customLineItemId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
readonly comment?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Maps to `ReturnItem.shipmentState`
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
readonly shipmentState: ReturnShipmentState;
|
|
34
|
+
}
|
|
35
|
+
export interface ReturnInfo {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
readonly items: ReturnItemDraft[];
|
|
40
|
+
/**
|
|
41
|
+
* Maps to `ReturnInfo.returnTrackingId`
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
readonly returnTrackingId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Maps to `ReturnInfo.returnDate`
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
readonly returnDate?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface DeliveryParcel {
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
readonly deliveryId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
readonly measurements?: ParcelMeasurements;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
readonly trackingData?: TrackingData;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
readonly items?: DeliveryItem[];
|
|
68
|
+
}
|
|
69
|
+
export interface DeliveryParcelDraft {
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
readonly measurements?: ParcelMeasurements;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
readonly trackingData?: TrackingData;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
readonly items?: DeliveryItem[];
|
|
82
|
+
}
|
|
83
|
+
export interface DeliveryDraft {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
readonly items: DeliveryItem[];
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
readonly address?: Address;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
readonly parcels: DeliveryParcelDraft[];
|
|
96
|
+
}
|
|
97
|
+
export interface DeliveryAddressDraft {
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
readonly deliveryId: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
readonly address?: Address;
|
|
106
|
+
}
|
|
107
|
+
export interface ParcelMeasurementDraft {
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
readonly parcelId: string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
readonly measurements?: ParcelMeasurements;
|
|
116
|
+
}
|
|
117
|
+
export interface ParcelTrackingData {
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
readonly parcelId: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
readonly trackingData?: TrackingData;
|
|
126
|
+
}
|
|
127
|
+
export interface ParcelItems {
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
readonly parcelId: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
readonly items?: DeliveryItem[];
|
|
136
|
+
}
|
|
137
|
+
export interface RemoveDeliveryDraft {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
readonly id: string;
|
|
142
|
+
}
|
|
143
|
+
export interface RemoveParcelFromDeliveryDraft {
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
readonly parcelId: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Order fields that needs to be added or updated.
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
export interface OrderField {
|
|
154
|
+
/**
|
|
155
|
+
* Maps to `Order.returnInfo`
|
|
156
|
+
*
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
readonly addReturnInfo?: ReturnInfo;
|
|
160
|
+
/**
|
|
161
|
+
* Maps to `Order.delivery`
|
|
162
|
+
*
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
readonly addParcelToDelivery?: DeliveryParcel;
|
|
166
|
+
/**
|
|
167
|
+
* Maps to `Order.delivery`
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
readonly addDeliveries?: DeliveryDraft[];
|
|
172
|
+
/**
|
|
173
|
+
* Maps to `Order.removeDelivery`
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
readonly removeDelivery?: RemoveDeliveryDraft;
|
|
178
|
+
/**
|
|
179
|
+
* Maps to `Order.removeParcelFromDelivery`
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
readonly removeParcelFromDelivery?: RemoveParcelFromDeliveryDraft;
|
|
184
|
+
/**
|
|
185
|
+
* Maps to `Order.addressDraft`
|
|
186
|
+
*
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
readonly setDeliveryAddress?: DeliveryAddressDraft;
|
|
190
|
+
/**
|
|
191
|
+
* Maps to `Order.parcelMeasurements`
|
|
192
|
+
*
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
readonly setParcelMeasurements?: ParcelMeasurementDraft;
|
|
196
|
+
/**
|
|
197
|
+
* Maps to `Order.parcelTrackingData`
|
|
198
|
+
*
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
readonly setParcelTrackingData?: ParcelTrackingData;
|
|
202
|
+
/**
|
|
203
|
+
* Maps to `Order.parcelItems`
|
|
204
|
+
*
|
|
205
|
+
*
|
|
206
|
+
*/
|
|
207
|
+
readonly setParcelItems?: ParcelItems[];
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Representation for an update of an [Order](/../api/projects/orders#order). Use this type to import updates for existing
|
|
211
|
+
* [Orders](/../api/projects/orders#order) in a commercetools Project.
|
|
212
|
+
*
|
|
213
|
+
*/
|
|
214
|
+
export interface OrderPatchImport {
|
|
215
|
+
/**
|
|
216
|
+
* Maps to `Order.orderNumber`, String that uniquely identifies an order, unique across a project.
|
|
217
|
+
*
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
220
|
+
readonly orderNumber: string;
|
|
221
|
+
/**
|
|
222
|
+
* Each field referenced must be defined in an already existing order in the commercetools project or the import operation state is set to `validationFailed`.
|
|
223
|
+
*
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
readonly fields: OrderField;
|
|
227
|
+
}
|