@commercetools/importapi-sdk 5.3.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 CHANGED
@@ -1,5 +1,30 @@
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
+
3
28
  ## 5.3.0
4
29
 
5
30
  ### 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 : String(i);
18
+ return "symbol" == typeof i ? i : i + "";
19
19
  }
20
20
 
21
21
  function _defineProperty(obj, key, value) {
@@ -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 : String(i);
14
+ return "symbol" == typeof i ? i : i + "";
15
15
  }
16
16
 
17
17
  function _defineProperty(obj, key, value) {
@@ -1,2 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
- //# sourceMappingURL=commercetools-importapi-sdk.cjs.d.ts.map
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 : String(i);
18
+ return "symbol" == typeof i ? i : i + "";
19
19
  }
20
20
 
21
21
  function _defineProperty(obj, key, value) {
@@ -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 : String(i);
18
+ return "symbol" == typeof i ? i : i + "";
19
19
  }
20
20
 
21
21
  function _defineProperty(obj, key, value) {
@@ -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 : String(i);
14
+ return "symbol" == typeof i ? i : i + "";
15
15
  }
16
16
 
17
17
  function _defineProperty(obj, key, value) {
@@ -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.3.0",
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.4.1",
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.2",
41
+ "@types/uuid": "9.0.8",
42
42
  "organize-imports-cli": "0.10.0",
43
- "tsconfig-replace-paths": "0.0.13",
44
- "uuid": "9.0.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"}