Skip to content

Commit f7658fe

Browse files
authored
build(codegen): updating SDK (#1163)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent 2437b97 commit f7658fe

File tree

4 files changed

+48
-25
lines changed

4 files changed

+48
-25
lines changed

.changeset/changes_api.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@commercetools/platform-sdk': minor
3+
---
4+
5+
**Api changes**
6+
7+
<details>
8+
<summary>Required Property(s)</summary>
9+
10+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
11+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
12+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
13+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
14+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
15+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
16+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
17+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
18+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
19+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
20+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
21+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
22+
</details>

changes.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Property(s)</summary>
4+
<summary>Required Property(s)</summary>
55

6-
- added property `isActive` to type `DiscountGroup`
7-
- added property `isActive` to type `DiscountGroupDraft`
8-
</details>
9-
10-
<details>
11-
<summary>Added Type(s)</summary>
12-
13-
- added type `DiscountGroupSetIsActiveAction`
14-
- added type `MaxDiscountGroupsReachedError`
15-
- added type `GraphQLMaxDiscountGroupsReachedError`
16-
- added type `DiscountGroupIsActiveSetMessage`
17-
- added type `DiscountGroupIsActiveSetMessagePayload`
6+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
7+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
8+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
9+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
10+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
11+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
12+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
13+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
14+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
15+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
16+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
17+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
1818
</details>

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17291,7 +17291,7 @@ export interface ProductSelectionProductAddedMessage extends IMessage {
1729117291
*
1729217292
*
1729317293
*/
17294-
readonly variantSelection: ProductVariantSelection
17294+
readonly variantSelection?: ProductVariantSelection
1729517295
}
1729617296
/**
1729717297
* Generated after a successful [Exclude Product](ctp:api:type:ProductSelectionExcludeProductAction) update action.
@@ -17367,7 +17367,7 @@ export interface ProductSelectionProductExcludedMessage extends IMessage {
1736717367
*
1736817368
*
1736917369
*/
17370-
readonly variantExclusion: ProductVariantExclusion
17370+
readonly variantExclusion?: ProductVariantExclusion
1737117371
}
1737217372
/**
1737317373
* Generated after a successful [Remove Product](ctp:api:type:ProductSelectionRemoveProductAction) update action.
@@ -17513,12 +17513,12 @@ export interface ProductSelectionVariantExclusionChangedMessage
1751317513
* Product Variant Exclusion before the [Set Variant Exclusion](ctp:api:type:ProductSelectionSetVariantExclusionAction) update action.
1751417514
*
1751517515
*/
17516-
readonly oldVariantExclusion: ProductVariantExclusion
17516+
readonly oldVariantExclusion?: ProductVariantExclusion
1751717517
/**
1751817518
* Product Variant Exclusion after the [Set Variant Exclusion](ctp:api:type:ProductSelectionSetVariantExclusionAction) update action.
1751917519
*
1752017520
*/
17521-
readonly newVariantExclusion: ProductVariantExclusion
17521+
readonly newVariantExclusion?: ProductVariantExclusion
1752217522
}
1752317523
/**
1752417524
* Generated after a successful [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
@@ -17594,12 +17594,12 @@ export interface ProductSelectionVariantSelectionChangedMessage
1759417594
* Product Variant Selection before the [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
1759517595
*
1759617596
*/
17597-
readonly oldVariantSelection: ProductVariantSelection
17597+
readonly oldVariantSelection?: ProductVariantSelection
1759817598
/**
1759917599
* Product Variant Selection after the [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
1760017600
*
1760117601
*/
17602-
readonly newVariantSelection: ProductVariantSelection
17602+
readonly newVariantSelection?: ProductVariantSelection
1760317603
}
1760417604
/**
1760517605
* Generated after a successful [Change Slug](ctp:api:type:ProductChangeSlugAction) update action.
@@ -28266,7 +28266,7 @@ export interface ProductSelectionProductAddedMessagePayload
2826628266
*
2826728267
*
2826828268
*/
28269-
readonly variantSelection: ProductVariantSelection
28269+
readonly variantSelection?: ProductVariantSelection
2827028270
}
2827128271
/**
2827228272
* Generated after a successful [Exclude Product](ctp:api:type:ProductSelectionExcludeProductAction) update action.
@@ -28286,7 +28286,7 @@ export interface ProductSelectionProductExcludedMessagePayload
2828628286
*
2828728287
*
2828828288
*/
28289-
readonly variantExclusion: ProductVariantExclusion
28289+
readonly variantExclusion?: ProductVariantExclusion
2829028290
}
2829128291
/**
2829228292
* Generated after a successful [Remove Product](ctp:api:type:ProductSelectionRemoveProductAction) update action.
@@ -28319,12 +28319,12 @@ export interface ProductSelectionVariantExclusionChangedMessagePayload
2831928319
* Product Variant Exclusion before the [Set Variant Exclusion](ctp:api:type:ProductSelectionSetVariantExclusionAction) update action.
2832028320
*
2832128321
*/
28322-
readonly oldVariantExclusion: ProductVariantExclusion
28322+
readonly oldVariantExclusion?: ProductVariantExclusion
2832328323
/**
2832428324
* Product Variant Exclusion after the [Set Variant Exclusion](ctp:api:type:ProductSelectionSetVariantExclusionAction) update action.
2832528325
*
2832628326
*/
28327-
readonly newVariantExclusion: ProductVariantExclusion
28327+
readonly newVariantExclusion?: ProductVariantExclusion
2832828328
}
2832928329
/**
2833028330
* Generated after a successful [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
@@ -28343,12 +28343,12 @@ export interface ProductSelectionVariantSelectionChangedMessagePayload
2834328343
* Product Variant Selection before the [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
2834428344
*
2834528345
*/
28346-
readonly oldVariantSelection: ProductVariantSelection
28346+
readonly oldVariantSelection?: ProductVariantSelection
2834728347
/**
2834828348
* Product Variant Selection after the [Set Variant Selection](ctp:api:type:ProductSelectionSetVariantSelectionAction) update action.
2834928349
*
2835028350
*/
28351-
readonly newVariantSelection: ProductVariantSelection
28351+
readonly newVariantSelection?: ProductVariantSelection
2835228352
}
2835328353
/**
2835428354
* Generated after a successful [Change Slug](ctp:api:type:ProductChangeSlugAction) update action.

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,4 @@ f8b027c8e1b5ba61ace3d3d358b9efc7ad4b93eb
456456
91ef231b5881c329f1c3f405e250106f8473b57e
457457
e111bc9d132c5da4dc43085c1983efa8cbdf91d3
458458
e60554cf51abaeb40bb26716fb27ada4c135b40f
459+
0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641

0 commit comments

Comments
 (0)