Skip to content

Commit 5befd14

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

File tree

4 files changed

+28
-48
lines changed

4 files changed

+28
-48
lines changed

.changeset/changes_api.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@commercetools/platform-sdk': minor
3+
---
4+
5+
**Api changes**
6+
7+
<details>
8+
<summary>Removed Property(s)</summary>
9+
10+
- :warning: removed property `/[0-9].[0-9]*[1-9]/` from type `CategoryOrderHints`
11+
- :warning: removed property `//` from type `ProductVariantChannelAvailabilityMap`
12+
</details>
13+
14+
<details>
15+
<summary>Added Property(s)</summary>
16+
17+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `CategoryOrderHints`
18+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `ProductVariantChannelAvailabilityMap`
19+
</details>

changes.md

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,15 @@
11
**Api changes**
22

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

6-
- added type `ExpiredCustomerEmailTokenError`
7-
- added type `ExpiredCustomerPasswordTokenError`
8-
- added type `GraphQLExpiredCustomerEmailTokenError`
9-
- added type `GraphQLExpiredCustomerPasswordTokenError`
10-
- added type `CheckoutOrderCreationFailedEvent`
11-
- added type `CheckoutPaymentAuthorizationCancelledEvent`
12-
- added type `CheckoutPaymentAuthorizationFailedEvent`
13-
- added type `CheckoutPaymentAuthorizedEvent`
14-
- added type `CheckoutPaymentCancelAuthorizationFailedEvent`
15-
- added type `CheckoutPaymentChargeFailedEvent`
16-
- added type `CheckoutPaymentChargedEvent`
17-
- added type `CheckoutPaymentRefundFailedEvent`
18-
- added type `CheckoutPaymentRefundedEvent`
19-
- added type `CheckoutMessageOrderPayloadBaseData`
20-
- added type `CheckoutMessagePaymentsPayloadBaseData`
6+
- :warning: removed property `/[0-9].[0-9]*[1-9]/` from type `CategoryOrderHints`
7+
- :warning: removed property `//` from type `ProductVariantChannelAvailabilityMap`
218
</details>
229

2310
<details>
2411
<summary>Added Property(s)</summary>
2512

26-
- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken`
27-
- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken`
28-
- added property `invalidateOlderTokens` to type `CustomerToken`
29-
- added property `value` to type `CustomerEmailTokenCreatedMessage`
30-
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
31-
- added property `value` to type `CustomerPasswordTokenCreatedMessage`
32-
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage`
33-
- added property `value` to type `CustomerEmailTokenCreatedMessagePayload`
34-
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload`
35-
- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload`
36-
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload`
37-
</details>
38-
39-
<details>
40-
<summary>Added Enum(s)</summary>
41-
42-
- added enum `checkout` to type `EventSubscriptionResourceTypeId`
43-
- added enum `CheckoutOrderCreationFailed` to type `EventType`
44-
- added enum `CheckoutPaymentAuthorizationCancelled` to type `EventType`
45-
- added enum `CheckoutPaymentAuthorizationFailed` to type `EventType`
46-
- added enum `CheckoutPaymentAuthorized` to type `EventType`
47-
- added enum `CheckoutPaymentCancelAuthorizationFailed` to type `EventType`
48-
- added enum `CheckoutPaymentCharged` to type `EventType`
49-
- added enum `CheckoutPaymentChargeFailed` to type `EventType`
50-
- added enum `CheckoutPaymentRefunded` to type `EventType`
51-
- added enum `CheckoutPaymentRefundFailed` to type `EventType`
13+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `CategoryOrderHints`
14+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `ProductVariantChannelAvailabilityMap`
5215
</details>

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export interface Attribute {
5959
readonly value: any
6060
}
6161
/**
62-
* JSON object where the key is a [Category](ctp:api:type:Category) `id` and the value is an order hint.
63-
* Allows controlling the order of Products and how they appear in Categories. Products with no order hint have an order score below `0`. Order hints are non-unique.
64-
* If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.
62+
* JSON object where the keys are [Category](ctp:api:type:Category) `id`, and the values are order hint values: strings representing a number between `0` and `1`, but not ending in `0`. Order hints allow controlling the order of Products and how they appear in Categories. Products without order hints have an order score below `0`. Order hints are not unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.
6563
*/
6664
export interface CategoryOrderHints {
6765
[key: string]: string
@@ -1052,7 +1050,7 @@ export interface ProductVariantChannelAvailability {
10521050
readonly version: number
10531051
}
10541052
/**
1055-
* JSON object where the key is a supply [Channel](ctp:api:type:Channel) `id` and the value is the [ProductVariantChannelAvailability](ctp:api:type:ProductVariantChannelAvailability) of the [InventoryEntry](ctp:api:type:InventoryEntry).
1053+
* JSON object where the keys are supply [Channel](/projects/channels) `id`, and the values are [ProductVariantChannelAvailability](/projects/products#productvariantchannelavailability).
10561054
*
10571055
*/
10581056
export interface ProductVariantChannelAvailabilityMap {
@@ -1125,8 +1123,7 @@ export interface SearchKeyword {
11251123
readonly suggestTokenizer?: SuggestTokenizer
11261124
}
11271125
/**
1128-
* Search keywords are JSON objects primarily used by [Product Suggestions](/projects/products-suggestions), but are also considered for a [full text search](/projects/product-projection-search#full-text-search).
1129-
* The keys are of type [Locale](ctp:api:type:Locale), and the values are an array of [SearchKeyword](ctp:api:type:SearchKeyword).
1126+
* Although search keywords are primarily used by [Product Suggestions](/projects/products-suggestions), they are also considered for a [full text search](/projects/products-search#full-text-search). The keys are of type [Locale](ctp:api:type:Locale), and the values are an array of [SearchKeyword](ctp:api:type:SearchKeyword).
11301127
*
11311128
*/
11321129
export interface SearchKeywords {

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,4 @@ fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc
418418
e68ca35e345e284ffc6281baa6fcfb56a3e93582
419419
b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
420420
2222db881c7a11c0c0e7a23d0b0165c1fe593281
421+
785c84a89e8e2a8c807c80e728e2b160d7304ed1

0 commit comments

Comments
 (0)