@commercetools/importapi-sdk 4.2.0 → 4.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 +40 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +1 -1
- package/dist/commercetools-importapi-sdk.browser.esm.js +1 -1
- package/dist/commercetools-importapi-sdk.cjs.dev.js +1 -1
- package/dist/commercetools-importapi-sdk.cjs.prod.js +1 -1
- package/dist/commercetools-importapi-sdk.esm.js +1 -1
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +1 -1
- package/dist/declarations/src/generated/models/common.d.ts +5 -0
- package/dist/declarations/src/generated/models/customers.d.ts +11 -2
- package/dist/declarations/src/generated/models/importrequests.d.ts +1 -1
- package/dist/declarations/src/generated/models/orders.d.ts +12 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @commercetools/importapi-sdk
|
|
2
2
|
|
|
3
|
+
## 4.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`dad68dc`](https://github.com/commercetools/commercetools-sdk-typescript/commit/dad68dcabc0d8995b1c628b6cf431c14e9504888) Thanks [@jenschude](https://github.com/jenschude)! - **Import changes**
|
|
8
|
+
|
|
9
|
+
<details>
|
|
10
|
+
<summary>Added Property(s)</summary>
|
|
11
|
+
|
|
12
|
+
- added property `custom` to type `Parcel`
|
|
13
|
+
</details>
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`057e260`](https://github.com/commercetools/commercetools-sdk-typescript/commit/057e260b3330b7ab8df33171bb2d4aa2de0444d9)]:
|
|
18
|
+
- @commercetools/sdk-client-v2@2.1.5
|
|
19
|
+
|
|
20
|
+
## 4.3.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [#432](https://github.com/commercetools/commercetools-sdk-typescript/pull/432) [`d06e0c5`](https://github.com/commercetools/commercetools-sdk-typescript/commit/d06e0c58f4b9a8f69bbde63f906cc905c878aa2d) Thanks [@ajimae](https://github.com/ajimae)! - ### Required Properties
|
|
25
|
+
|
|
26
|
+
- changed property `password` of type `CustomerImport` to be optional
|
|
27
|
+
|
|
28
|
+
### Added Properties
|
|
29
|
+
|
|
30
|
+
- added property `authenticationMode` to type `CustomerImport`
|
|
31
|
+
- added property `state` to type `OrderImport`
|
|
32
|
+
- added property `custom` to type `Address`
|
|
33
|
+
|
|
34
|
+
### Added Type
|
|
35
|
+
|
|
36
|
+
- added type `AuthenticationMode`
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [[`8b4ad04`](https://github.com/commercetools/commercetools-sdk-typescript/commit/8b4ad04e9a43a8b399fa946ab6693500a4af3fb5)]:
|
|
41
|
+
- @commercetools/sdk-client-v2@2.1.4
|
|
42
|
+
|
|
3
43
|
## 4.2.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -647,7 +647,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
|
|
|
647
647
|
this.args = args;
|
|
648
648
|
}
|
|
649
649
|
/**
|
|
650
|
-
* Creates a request for creating new Orders
|
|
650
|
+
* Creates a request for creating new Orders.
|
|
651
651
|
*/
|
|
652
652
|
post(methodArgs) {
|
|
653
653
|
return new ApiRequest({
|
|
@@ -643,7 +643,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
|
|
|
643
643
|
this.args = args;
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
|
-
* Creates a request for creating new Orders
|
|
646
|
+
* Creates a request for creating new Orders.
|
|
647
647
|
*/
|
|
648
648
|
post(methodArgs) {
|
|
649
649
|
return new ApiRequest({
|
|
@@ -647,7 +647,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
|
|
|
647
647
|
this.args = args;
|
|
648
648
|
}
|
|
649
649
|
/**
|
|
650
|
-
* Creates a request for creating new Orders
|
|
650
|
+
* Creates a request for creating new Orders.
|
|
651
651
|
*/
|
|
652
652
|
post(methodArgs) {
|
|
653
653
|
return new ApiRequest({
|
|
@@ -647,7 +647,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
|
|
|
647
647
|
this.args = args;
|
|
648
648
|
}
|
|
649
649
|
/**
|
|
650
|
-
* Creates a request for creating new Orders
|
|
650
|
+
* Creates a request for creating new Orders.
|
|
651
651
|
*/
|
|
652
652
|
post(methodArgs) {
|
|
653
653
|
return new ApiRequest({
|
|
@@ -643,7 +643,7 @@ class ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder {
|
|
|
643
643
|
this.args = args;
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
|
-
* Creates a request for creating new Orders
|
|
646
|
+
* Creates a request for creating new Orders.
|
|
647
647
|
*/
|
|
648
648
|
post(methodArgs) {
|
|
649
649
|
return new ApiRequest({
|
|
@@ -26,7 +26,7 @@ export declare class ByProjectKeyOrdersImportContainersByImportContainerKeyReque
|
|
|
26
26
|
baseUri?: string;
|
|
27
27
|
});
|
|
28
28
|
/**
|
|
29
|
-
* Creates a request for creating new Orders
|
|
29
|
+
* Creates a request for creating new Orders.
|
|
30
30
|
*/
|
|
31
31
|
post(methodArgs: {
|
|
32
32
|
body: OrderImportRequest;
|
|
@@ -579,5 +579,10 @@ export interface Address {
|
|
|
579
579
|
*
|
|
580
580
|
*/
|
|
581
581
|
readonly externalId?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Custom Fields defined for the Address. Custom Fields can only be applied to `shippingAddress`.
|
|
584
|
+
*
|
|
585
|
+
*/
|
|
586
|
+
readonly custom?: Custom;
|
|
582
587
|
}
|
|
583
588
|
export type ProductPriceModeEnum = 'Embedded' | 'Standalone' | string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { CustomerGroupKeyReference, ImportResource, StoreKeyReference } from './common';
|
|
7
7
|
import { Custom } from './customfields';
|
|
8
|
+
export type AuthenticationMode = 'ExternalAuth' | 'Password' | string;
|
|
8
9
|
/**
|
|
9
10
|
* Different from Address in that `key` is required and `id` is not supported.
|
|
10
11
|
*
|
|
@@ -139,7 +140,7 @@ export interface CustomerImport extends ImportResource {
|
|
|
139
140
|
*
|
|
140
141
|
*
|
|
141
142
|
*/
|
|
142
|
-
readonly password
|
|
143
|
+
readonly password?: string;
|
|
143
144
|
/**
|
|
144
145
|
* The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Stores are created.
|
|
145
146
|
*
|
|
@@ -250,8 +251,16 @@ export interface CustomerImport extends ImportResource {
|
|
|
250
251
|
*/
|
|
251
252
|
readonly locale?: string;
|
|
252
253
|
/**
|
|
253
|
-
* The
|
|
254
|
+
* The Custom Fields for this Customer.
|
|
255
|
+
*
|
|
254
256
|
*
|
|
255
257
|
*/
|
|
256
258
|
readonly custom?: Custom;
|
|
259
|
+
/**
|
|
260
|
+
* - Set to `Password` to make the `password` field required for the Customer.
|
|
261
|
+
* - Set to `ExternalAuth` when the password is not required for the Customer.
|
|
262
|
+
*
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
readonly authenticationMode?: AuthenticationMode;
|
|
257
266
|
}
|
|
@@ -123,7 +123,7 @@ export interface StandalonePriceImportRequest {
|
|
|
123
123
|
readonly resources: StandalonePriceImport[];
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* The request body to [import Orders](#import-orders). Contains data for [Orders](/../api/projects/orders#order) to be created
|
|
126
|
+
* The request body to [import Orders](#import-orders). Contains data for [Orders](/../api/projects/orders#order) to be created in a Project.
|
|
127
127
|
*
|
|
128
128
|
*/
|
|
129
129
|
export interface OrderImportRequest {
|
|
@@ -317,6 +317,11 @@ export interface Parcel {
|
|
|
317
317
|
*
|
|
318
318
|
*/
|
|
319
319
|
readonly items?: DeliveryItem[];
|
|
320
|
+
/**
|
|
321
|
+
* The representation to be sent to the server when creating a resource with custom fields.
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
readonly custom?: Custom;
|
|
320
325
|
}
|
|
321
326
|
export interface Delivery {
|
|
322
327
|
/**
|
|
@@ -631,7 +636,7 @@ export interface ScoreShippingRateInput {
|
|
|
631
636
|
* The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project.
|
|
632
637
|
*
|
|
633
638
|
* In commercetools, you can import an Order using the
|
|
634
|
-
* [Create Order by Import](
|
|
639
|
+
* [Create Order by Import](/../api/projects/orders-import#create-an-order-by-import)
|
|
635
640
|
* endpoint method instead of creating it from a Cart.
|
|
636
641
|
*
|
|
637
642
|
* An OrderImport is a snapshot of an order at the time it was imported.
|
|
@@ -774,4 +779,10 @@ export interface OrderImport {
|
|
|
774
779
|
*
|
|
775
780
|
*/
|
|
776
781
|
readonly store?: StoreKeyReference;
|
|
782
|
+
/**
|
|
783
|
+
* Reference to a State in a custom workflow.
|
|
784
|
+
*
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
readonly state?: StateKeyReference;
|
|
777
788
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/importapi-sdk",
|
|
7
|
-
"version": "4.
|
|
7
|
+
"version": "4.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.1.
|
|
35
|
+
"@commercetools/sdk-client-v2": "^2.1.5",
|
|
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
|
"querystring": "^0.2.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/uuid": "9.0.
|
|
42
|
+
"@types/uuid": "9.0.1",
|
|
43
43
|
"organize-imports-cli": "0.10.0",
|
|
44
|
-
"tsconfig-replace-paths": "0.0.
|
|
44
|
+
"tsconfig-replace-paths": "0.0.14",
|
|
45
45
|
"uuid": "9.0.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|