@commercetools/importapi-sdk 3.0.0 → 4.0.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @commercetools/importapi-sdk
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#341](https://github.com/commercetools/commercetools-sdk-typescript/pull/341) [`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220) Thanks [@ajimae](https://github.com/ajimae)! - Upgrade node versions to 14 and set engine to >= 14
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220)]:
12
+ - @commercetools/sdk-client-v2@2.0.0
13
+
14
+ ## 3.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [#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
19
+ - Updated changes for generated SDKs
20
+ - add expand property to active-cart get endpoint.
21
+ - 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)]:
22
+ - @commercetools/sdk-client-v2@1.4.1
23
+
3
24
  ## 3.0.0
4
25
 
5
26
  ### 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 impmorted resource when the import was successful.
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 [EmbeddedPrices](/../api/projects/products#embeddedprice) to be created or updated in a Project.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) in the Project.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) updates will be published to `staged` and `current` projection.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) is contained.
116
- * The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
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 [EmbeddedPrice](/../api/projects/products#embeddedprice) is contained. Maps to `ProductVariant.product`.
124
- * The Reference to the [Product](/../api/projects/products#product) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
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,10 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@commercetools/importapi-sdk",
7
- "version": "3.0.0",
7
+ "version": "4.0.0",
8
+ "engines": {
9
+ "node": ">=14"
10
+ },
8
11
  "description": "TypeScript SDK for Composable Commerce Import API features",
9
12
  "keywords": [
10
13
  "commercetools",
@@ -29,7 +32,7 @@
29
32
  "./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
30
33
  },
31
34
  "dependencies": {
32
- "@commercetools/sdk-client-v2": "^1.4.0",
35
+ "@commercetools/sdk-client-v2": "^2.0.0",
33
36
  "@commercetools/sdk-middleware-auth": "^6.0.4",
34
37
  "@commercetools/sdk-middleware-http": "^6.0.4",
35
38
  "@commercetools/sdk-middleware-logger": "^2.1.1",
@@ -39,7 +42,7 @@
39
42
  "@types/uuid": "8.3.4",
40
43
  "organize-imports-cli": "0.10.0",
41
44
  "tsconfig-replace-paths": "0.0.11",
42
- "uuid": "8.3.2"
45
+ "uuid": "9.0.0"
43
46
  },
44
47
  "scripts": {
45
48
  "remove_path_alias": "tsconfig-replace-paths --project tsconfig-declarations.json -s ./src/generated -o ./src/generated",