Skip to content

Commit b889bbc

Browse files
authored
Update generated SDKs (#1109)
* build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent dc5d043 commit b889bbc

24 files changed

+273
-35
lines changed

.changeset/changes_api.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
- added type `DiscountGroupDeletedMessagePayload`
2828
- added type `DiscountGroupKeySetMessagePayload`
2929
- added type `DiscountGroupSortOrderSetMessagePayload`
30+
- added type `ProductTailoringSetProductAttributeAction`
31+
- added type `AttributeLevelEnum`
32+
- added type `ProductSetProductAttributeAction`
3033
</details>
3134

3235
<details>
@@ -61,7 +64,17 @@
6164

6265
- added property `discountGroup` to type `CartDiscount`
6366
- added property `discountGroup` to type `CartDiscountDraft`
67+
- added property `attributes` to type `ProductTailoringCreatedMessage`
68+
- added property `attributes` to type `ProductTailoringCreatedMessagePayload`
69+
- added property `attributes` to type `ProductTailoringData`
70+
- added property `attributes` to type `ProductTailoringDraft`
71+
- added property `attributes` to type `ProductTailoringInStoreDraft`
72+
- added property `level` to type `AttributeDefinition`
73+
- added property `level` to type `AttributeDefinitionDraft`
6474
- 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`
75+
- added property `attributes` to type `ProductData`
76+
- added property `attributes` to type `ProductDraft`
77+
- added property `attributes` to type `ProductProjection`
6578
- 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`
6679
</details>
6780

.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>Added Type(s)</summary>
9+
10+
- added type `AttributeLevel`
11+
</details>
12+
13+
<details>
14+
<summary>Added Property(s)</summary>
15+
16+
- added property `attributes` to type `ProductImport`
17+
- added property `attributes` to type `ProductDraftImport`
18+
- added property `level` to type `AttributeDefinition`
19+
</details>

changes.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
- added type `DiscountGroupDeletedMessagePayload`
2424
- added type `DiscountGroupKeySetMessagePayload`
2525
- added type `DiscountGroupSortOrderSetMessagePayload`
26+
- added type `ProductTailoringSetProductAttributeAction`
27+
- added type `AttributeLevelEnum`
28+
- added type `ProductSetProductAttributeAction`
2629
</details>
2730

2831
<details>
@@ -57,7 +60,17 @@
5760

5861
- added property `discountGroup` to type `CartDiscount`
5962
- added property `discountGroup` to type `CartDiscountDraft`
63+
- added property `attributes` to type `ProductTailoringCreatedMessage`
64+
- added property `attributes` to type `ProductTailoringCreatedMessagePayload`
65+
- added property `attributes` to type `ProductTailoringData`
66+
- added property `attributes` to type `ProductTailoringDraft`
67+
- added property `attributes` to type `ProductTailoringInStoreDraft`
68+
- added property `level` to type `AttributeDefinition`
69+
- added property `level` to type `AttributeDefinitionDraft`
6070
- 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`
71+
- added property `attributes` to type `ProductData`
72+
- added property `attributes` to type `ProductDraft`
73+
- added property `attributes` to type `ProductProjection`
6174
- 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`
6275
</details>
6376

@@ -84,6 +97,22 @@
8497
- added enum `discount-group` to type `ReferenceTypeId`
8598
</details>
8699

100+
**Import changes**
101+
102+
<details>
103+
<summary>Added Type(s)</summary>
104+
105+
- added type `AttributeLevel`
106+
</details>
107+
108+
<details>
109+
<summary>Added Property(s)</summary>
110+
111+
- added property `attributes` to type `ProductImport`
112+
- added property `attributes` to type `ProductDraftImport`
113+
- added property `level` to type `AttributeDefinition`
114+
</details>
115+
87116
**History changes**
88117

89118
<details>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export interface LineItemProductVariantImportDraft {
161161
*
162162
* You cannot create an Order that includes line item operations that do not exist in the Project or have been deleted.
163163
* Products and Product Variants referenced by a line item must already exist in the Project.
164+
* Product Attributes are merged with Variant Attributes to ensure the full Attribute context of the Product Variant.
164165
*
165166
*/
166167
export interface LineItemImportDraft {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ export interface ProductDraftImport extends ImportResource {
6767
*
6868
*/
6969
readonly categories?: CategoryKeyReference[]
70+
/**
71+
*
72+
*/
73+
readonly attributes?: Attribute[]
7074
/**
7175
* A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
7276
* ```json

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
StateKeyReference,
1414
TaxCategoryKeyReference,
1515
} from './common'
16+
import { Attribute } from './productvariants'
1617

1718
/**
1819
* Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
@@ -118,6 +119,10 @@ export interface ProductImport extends ImportResource {
118119
*
119120
*/
120121
readonly categories?: CategoryKeyReference[]
122+
/**
123+
*
124+
*/
125+
readonly attributes?: Attribute[]
121126
/**
122127
* A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
123128
* ```json

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,17 @@ export interface AttributeDefinition {
6060
*
6161
*/
6262
readonly isSearchable?: boolean
63+
/**
64+
*
65+
*/
66+
readonly level?: AttributeLevel
6367
}
68+
export enum AttributeLevelValues {
69+
Product = 'Product',
70+
Variant = 'Variant',
71+
}
72+
73+
export type AttributeLevel = 'Product' | 'Variant' | (string & {})
6474
export type AttributeType =
6575
| AttributeBooleanType
6676
| AttributeDateTimeType

packages/platform-sdk/src/generated/client/login/by-project-key-in-store-key-by-store-key-login-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ByProjectKeyInStoreKeyByStoreKeyLoginRequestBuilder {
2222
/**
2323
* Authenticates a Customer associated with a [Store](ctp:api:type:Store). For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
2424
*
25-
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
25+
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
2626
*
2727
* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
2828
*

packages/platform-sdk/src/generated/client/login/by-project-key-in-store-key-by-store-key-me-login-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeLoginRequestBuilder {
2828
* - If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
2929
* - If the Customer already has a Cart, the most recently modified anonymous cart is handled according to [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
3030
*
31-
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
31+
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
3232
*
3333
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
3434
*

packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ByProjectKeyLoginRequestBuilder {
2525
*
2626
* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
2727
*
28-
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
28+
* A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
2929
*
3030
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
3131
*

0 commit comments

Comments
 (0)