@commercetools/importapi-sdk 3.0.0 → 3.0.1
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 +10 -0
- package/dist/declarations/src/generated/models/customers.d.ts +5 -0
- package/dist/declarations/src/generated/models/importoperations.d.ts +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +1 -1
- package/dist/declarations/src/generated/models/orders.d.ts +5 -0
- package/dist/declarations/src/generated/models/prices.d.ts +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @commercetools/importapi-sdk
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#303](https://github.com/commercetools/commercetools-sdk-typescript/pull/303) [`2bc0f73`](https://github.com/commercetools/commercetools-sdk-typescript/commit/2bc0f73d946eebb954bec8849c8697cd716ef848) Thanks [@github-actions](https://github.com/apps/github-actions)! - - Update generated SDKs
|
|
8
|
+
- Updated changes for generated SDKs
|
|
9
|
+
- add expand property to active-cart get endpoint.
|
|
10
|
+
- Updated dependencies [[`d921acd`](https://github.com/commercetools/commercetools-sdk-typescript/commit/d921acda35dadf135dffb53419b8825c915477b1), [`588a0f9`](https://github.com/commercetools/commercetools-sdk-typescript/commit/588a0f9b981a538a16a23a449e810c56956f352c), [`7510e0b`](https://github.com/commercetools/commercetools-sdk-typescript/commit/7510e0bf69cc4b63c43d0431d338502d048524aa)]:
|
|
11
|
+
- @commercetools/sdk-client-v2@1.4.1
|
|
12
|
+
|
|
3
13
|
## 3.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
|
@@ -111,6 +111,11 @@ export interface CustomerAddress {
|
|
|
111
111
|
*
|
|
112
112
|
*/
|
|
113
113
|
readonly externalId?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Custom Fields for the address.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
readonly custom?: Custom;
|
|
114
119
|
}
|
|
115
120
|
/**
|
|
116
121
|
* The data representation for a Customer to be imported that is persisted as a [Customer](/../api/projects/customers#top) in the Project.
|
|
@@ -37,7 +37,7 @@ export interface ImportOperation {
|
|
|
37
37
|
*/
|
|
38
38
|
readonly state: ProcessingState;
|
|
39
39
|
/**
|
|
40
|
-
* The version of the
|
|
40
|
+
* The version of the imported resource when the import was successful.
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
readonly resourceVersion?: number;
|
|
@@ -96,7 +96,7 @@ export interface ProductVariantImportRequest {
|
|
|
96
96
|
readonly resources: ProductVariantImport[];
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
-
* The request body to [import Prices](#import-prices). Contains data for [
|
|
99
|
+
* The request body to [import Prices](#import-prices). Contains data for [Embedded Prices](/../api/types#embedded-price) to be created or updated in a Project.
|
|
100
100
|
*
|
|
101
101
|
*/
|
|
102
102
|
export interface PriceImportRequest {
|
|
@@ -205,6 +205,11 @@ export interface LineItemImportDraft {
|
|
|
205
205
|
*
|
|
206
206
|
*/
|
|
207
207
|
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
208
|
+
/**
|
|
209
|
+
* Custom Fields for this Line Item.
|
|
210
|
+
*
|
|
211
|
+
*/
|
|
212
|
+
readonly custom?: Custom;
|
|
208
213
|
}
|
|
209
214
|
export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue';
|
|
210
215
|
export declare type ShippingRatePriceTier = CartClassificationTier;
|
|
@@ -48,7 +48,7 @@ export interface TaxRate {
|
|
|
48
48
|
readonly subRates?: SubRate[];
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* The data representation for a price to be imported that is persisted as an [
|
|
51
|
+
* The data representation for a price to be imported that is persisted as an [Embedded Price](/../api/types#embedded-price) in the Project.
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
54
|
export interface PriceImport extends ImportResource {
|
|
@@ -77,14 +77,14 @@ export interface PriceImport extends ImportResource {
|
|
|
77
77
|
*/
|
|
78
78
|
readonly validUntil?: string;
|
|
79
79
|
/**
|
|
80
|
-
* The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the [
|
|
80
|
+
* The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the [Embedded Price](/../api/types#embedded-price) is associated.
|
|
81
81
|
* If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
|
|
82
82
|
*
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
85
|
readonly customerGroup?: CustomerGroupKeyReference;
|
|
86
86
|
/**
|
|
87
|
-
* The Reference to the [Channel](/../api/projects/channels#channel) with which the [
|
|
87
|
+
* The Reference to the [Channel](/../api/projects/channels#channel) with which the [Embedded Price](/../api/types#embedded-price) is associated.
|
|
88
88
|
* If referenced Channel does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Channel is created.
|
|
89
89
|
*
|
|
90
90
|
*
|
|
@@ -96,7 +96,7 @@ export interface PriceImport extends ImportResource {
|
|
|
96
96
|
*/
|
|
97
97
|
readonly discounted?: DiscountedPrice;
|
|
98
98
|
/**
|
|
99
|
-
* Only the [
|
|
99
|
+
* Only the [Embedded Price](/../api/types#embedded-price) updates will be published to `staged` and `current` projection.
|
|
100
100
|
*
|
|
101
101
|
*
|
|
102
102
|
*/
|
|
@@ -112,16 +112,16 @@ export interface PriceImport extends ImportResource {
|
|
|
112
112
|
*/
|
|
113
113
|
readonly custom?: Custom;
|
|
114
114
|
/**
|
|
115
|
-
* The ProductVariant in which this [
|
|
116
|
-
* The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [
|
|
115
|
+
* The ProductVariant in which this [Embedded Price](/../api/types#embedded-price) is contained.
|
|
116
|
+
* The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [Embedded Price](/../api/types#embedded-price) is associated.
|
|
117
117
|
* If referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
|
|
118
118
|
*
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
121
121
|
readonly productVariant: ProductVariantKeyReference;
|
|
122
122
|
/**
|
|
123
|
-
* The Product in which the Product Variant containing this [
|
|
124
|
-
* The Reference to the [Product](/../api/projects/products#product) with which the [
|
|
123
|
+
* The Product in which the Product Variant containing this [Embedded Price](/../api/types#embedded-price) is contained. Maps to `ProductVariant.product`.
|
|
124
|
+
* The Reference to the [Product](/../api/projects/products#product) with which the [Embedded Price](/../api/types#embedded-price) is associated.
|
|
125
125
|
* If referenced Product does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Product is created.
|
|
126
126
|
*
|
|
127
127
|
*
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/importapi-sdk",
|
|
7
|
-
"version": "3.0.
|
|
7
|
+
"version": "3.0.1",
|
|
8
8
|
"description": "TypeScript SDK for Composable Commerce Import API features",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"commercetools",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@commercetools/sdk-client-v2": "^1.4.
|
|
32
|
+
"@commercetools/sdk-client-v2": "^1.4.1",
|
|
33
33
|
"@commercetools/sdk-middleware-auth": "^6.0.4",
|
|
34
34
|
"@commercetools/sdk-middleware-http": "^6.0.4",
|
|
35
35
|
"@commercetools/sdk-middleware-logger": "^2.1.1",
|