Skip to content

Commit 88c5c05

Browse files
Update generated SDKs (#685)
* build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 13d8327 commit 88c5c05

File tree

7 files changed

+71
-16
lines changed

7 files changed

+71
-16
lines changed

.changeset/changes_api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
- :warning: changed property `custom` of type `MyDivisionDraft` from type `CustomFields` to `CustomFieldsDraft`
1313
</details>
1414

15-
<details>
16-
<summary>Added Property(s)</summary>
17-
18-
- added property `postFilter` to type `ProductSearchRequest`
19-
</details>
20-
2115
<details>
2216
<summary>Required Property(s)</summary>
2317

@@ -29,3 +23,9 @@
2923
- :warning: changed property `stores` of type `Customer` to be required
3024
- :warning: changed property `stores` of type `CustomerSetStoresAction` to be required
3125
</details>
26+
27+
<details>
28+
<summary>Added Property(s)</summary>
29+
30+
- added property `postFilter` to type `ProductSearchRequest`
31+
</details>

.changeset/changes_import.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@commercetools/importapi-sdk': minor
3+
---
4+
5+
**Import changes**
6+
7+
<details>
8+
<summary>MarkDeprecated Property(s)</summary>
9+
10+
- marked property `PriceImport::publish` as deprecated
11+
- marked property `ProductVariantImport::publish` as deprecated
12+
</details>
13+
14+
<details>
15+
<summary>Added Property(s)</summary>
16+
17+
- added property `staged` to type `PriceImport`
18+
- added property `staged` to type `ProductVariantImport`
19+
</details>

changes.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
- :warning: changed property `custom` of type `MyDivisionDraft` from type `CustomFields` to `CustomFieldsDraft`
99
</details>
1010

11-
<details>
12-
<summary>Added Property(s)</summary>
13-
14-
- added property `postFilter` to type `ProductSearchRequest`
15-
</details>
16-
1711
<details>
1812
<summary>Required Property(s)</summary>
1913

@@ -25,3 +19,25 @@
2519
- :warning: changed property `stores` of type `Customer` to be required
2620
- :warning: changed property `stores` of type `CustomerSetStoresAction` to be required
2721
</details>
22+
23+
<details>
24+
<summary>Added Property(s)</summary>
25+
26+
- added property `postFilter` to type `ProductSearchRequest`
27+
</details>
28+
29+
**Import changes**
30+
31+
<details>
32+
<summary>MarkDeprecated Property(s)</summary>
33+
34+
- marked property `PriceImport::publish` as deprecated
35+
- marked property `ProductVariantImport::publish` as deprecated
36+
</details>
37+
38+
<details>
39+
<summary>Added Property(s)</summary>
40+
41+
- added property `staged` to type `PriceImport`
42+
- added property `staged` to type `ProductVariantImport`
43+
</details>

packages/importapi-sdk/src/generated/models/prices.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,16 @@ export interface PriceImport extends ImportResource {
115115
/**
116116
* Only the [Embedded Price](/../api/projects/products#embedded-price) updates will be published to `staged` and `current` projection.
117117
*
118-
*
118+
* @deprecated
119119
*/
120120
readonly publish?: boolean
121+
/**
122+
* - 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.
123+
* - Leave empty or set to `true` to only update the staged projection.
124+
*
125+
*
126+
*/
127+
readonly staged?: boolean
121128
/**
122129
* The tiered prices for this price.
123130
*

packages/importapi-sdk/src/generated/models/productvariants.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,16 @@ export interface ProductVariantImport extends ImportResource {
520520
* If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
521521
* 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.
522522
*
523-
*
523+
* @deprecated
524524
*/
525525
readonly publish?: boolean
526+
/**
527+
* - 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.
528+
* - Leave empty or set to `true` to only update the staged projection.
529+
*
530+
*
531+
*/
532+
readonly staged?: boolean
526533
/**
527534
* The [Product](/../api/projects/products#productvariant) to which this Product Variant belongs. Maps to `ProductVariant.product`.
528535
* The Reference to the [Product](/../api/projects/products#product) with which the ProductVariant is associated.

packages/platform-sdk/src/generated/models/error.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,12 +1623,14 @@ export interface PendingOperationError {
16231623
readonly message: string
16241624
}
16251625
/**
1626-
* Returned when the Price, Tax Rate, or Shipping Rate of some Line Items changed since they were last added to the Cart.
1626+
* Returned when the Price or Tax Rate of some Line Items or Shipping Rate of some Shipping Methods changed since they were last added to the Cart.
16271627
*
16281628
* The error is returned as a failed response to:
16291629
*
16301630
* - [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST) requests on Orders.
16311631
* - [Create Order from Cart](ctp:api:endpoint:/{projectKey}/me/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/me/orders:POST) requests on My Orders.
1632+
* - [Create Order from Quote](ctp:api:endpoint:/{projectKey}/orders/quotes:POST) request on Orders.
1633+
* - [Create Order from Quote](ctp:api:endpoint:/{projectKey}/me/orders/quotes:POST) request on My Orders.
16321634
*
16331635
*/
16341636
export interface PriceChangedError {
@@ -3161,12 +3163,14 @@ export interface GraphQLPendingOperationError {
31613163
[key: string]: any
31623164
}
31633165
/**
3164-
* Returned when the Price, Tax Rate, or Shipping Rate of some Line Items changed since they were last added to the Cart.
3166+
* Returned when the Price or Tax Rate of some Line Items or Shipping Rate of some Shipping Methods changed since they were last added to the Cart.
31653167
*
31663168
* The error is returned as a failed response to:
31673169
*
31683170
* - [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST) requests on Orders.
31693171
* - [Create Order from Cart](ctp:api:endpoint:/{projectKey}/me/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/me/orders:POST) requests on My Orders.
3172+
* - [Create Order from Quote](ctp:api:endpoint:/{projectKey}/orders/quotes:POST) request on Orders.
3173+
* - [Create Order from Quote](ctp:api:endpoint:/{projectKey}/me/orders/quotes:POST) request on My Orders.
31703174
*
31713175
*/
31723176
export interface GraphQLPriceChangedError {

references.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,5 @@ c8a374e9c967c7b8c5080c9a6ed2cd92261680ef
245245
cbdd859f3702f084fa22a22d7e4459f7e4b43316
246246
6c936caa97c40eff5f788b866dd1d882d9f9ba08
247247
059ebb9d803030bc81e0bcedf23d444ec1a61a3d
248+
e59c07a51516fe4c9b509b338863a62bd9406d0d
249+
c50b9ffcff1ea4a31e509f124bf0f87baced36af

0 commit comments

Comments
 (0)