Skip to content

Commit 0bf8af3

Browse files
authored
build(codegen): updating SDK (#1123)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent 84d863f commit 0bf8af3

File tree

5 files changed

+85
-231
lines changed

5 files changed

+85
-231
lines changed

.changeset/changes_import.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@commercetools/importapi-sdk': minor
3+
---
4+
5+
**Import changes**
6+
7+
<details>
8+
<summary>Added Property(s)</summary>
9+
10+
- added property `retentionPolicy` to type `ImportContainer`
11+
- added property `expiresAt` to type `ImportContainer`
12+
- added property `retentionPolicy` to type `ImportContainerDraft`
13+
</details>
14+
15+
<details>
16+
<summary>Added Type(s)</summary>
17+
18+
- added type `StrategyEnum`
19+
- added type `RetentionPolicy`
20+
- added type `TimeToLiveConfig`
21+
- added type `TimeToLiveRetentionPolicy`
22+
</details>

changes.md

Lines changed: 7 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -1,236 +1,18 @@
1-
**Api changes**
2-
3-
<details>
4-
<summary>Added Enum(s)</summary>
5-
6-
- added enum `ApplicationStoppedByGroupBestDeal` to type `DiscountCodeState`
7-
- added enum `discount-group` to type `ReferenceTypeId`
8-
- added enum `payment-method` to type `ReferenceTypeId`
9-
- added enum `payment-method` to type `ExtensionResourceTypeId`
10-
</details>
11-
12-
<details>
13-
<summary>Added Property(s)</summary>
14-
15-
- added property `makeInheritedAssociatesExplicit` to type `BusinessUnitChangeAssociateModeAction`
16-
- added property `discountGroup` to type `CartDiscount`
17-
- added property `discountGroup` to type `CartDiscountDraft`
18-
- added property `priceRoundingMode` to type `Cart`
19-
- added property `priceRoundingMode` to type `CartDraft`
20-
- added property `attributes` to type `ProductTailoringCreatedMessage`
21-
- added property `attributes` to type `ProductTailoringCreatedMessagePayload`
22-
- added property `priceRoundingMode` to type `StagedOrder`
23-
- added property `priceRoundingMode` to type `Order`
24-
- added property `priceRoundingMode` to type `OrderImportDraft`
25-
- added property `token` to type `PaymentMethodInfo`
26-
- added property `interfaceAccount` to type `PaymentMethodInfo`
27-
- added property `custom` to type `PaymentMethodInfo`
28-
- added property `attributes` to type `ProductTailoringData`
29-
- added property `attributes` to type `ProductTailoringDraft`
30-
- added property `attributes` to type `ProductTailoringInStoreDraft`
31-
- added property `level` to type `AttributeDefinition`
32-
- added property `level` to type `AttributeDefinitionDraft`
33-
- 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`
34-
- added property `attributes` to type `ProductData`
35-
- added property `attributes` to type `ProductDraft`
36-
- added property `attributes` to type `ProductProjection`
37-
- 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`
38-
- added property `priceRoundingMode` to type `CartsConfiguration`
39-
- added property `taxRoundingMode` to type `CartsConfiguration`
40-
- added property `priceRoundingMode` to type `QuoteRequest`
41-
- added property `priceRoundingMode` to type `Quote`
42-
- added property `events` to type `SubscriptionSetEventsAction`
43-
</details>
44-
45-
<details>
46-
<summary>Changed Property(s)</summary>
47-
48-
- :warning: changed property `paymentMethodInfo` of type `MyPaymentDraft` from type `PaymentMethodInfo` to `PaymentMethodInfoDraft`
49-
- :warning: changed property `paymentMethodInfo` of type `PaymentDraft` from type `PaymentMethodInfo` to `PaymentMethodInfoDraft`
50-
- :warning: changed property `filter` of type `SearchSorting` from type `SearchQueryExpression` to `SearchQuery`
51-
</details>
52-
53-
<details>
54-
<summary>Required Property(s)</summary>
55-
56-
- changed property `sortOrder` of type `CartDiscountDraft` to be optional
57-
</details>
58-
59-
<details>
60-
<summary>Removed Property(s)</summary>
61-
62-
- :warning: removed property `/[0-9].[0-9]*[1-9]/` from type `CategoryOrderHints`
63-
- :warning: removed property `//` from type `ProductVariantChannelAvailabilityMap`
64-
- :warning: removed property `messages` from type `SubscriptionSetEventsAction`
65-
</details>
66-
67-
<details>
68-
<summary>Added Method(s)</summary>
69-
70-
- added method `apiRoot.withProjectKey().discountGroups().get()`
71-
- added method `apiRoot.withProjectKey().discountGroups().head()`
72-
- added method `apiRoot.withProjectKey().discountGroups().post()`
73-
- added method `apiRoot.withProjectKey().paymentMethods().get()`
74-
- added method `apiRoot.withProjectKey().paymentMethods().head()`
75-
- added method `apiRoot.withProjectKey().paymentMethods().post()`
76-
- added method `apiRoot.withProjectKey().discountGroups().withKey().get()`
77-
- added method `apiRoot.withProjectKey().discountGroups().withKey().head()`
78-
- added method `apiRoot.withProjectKey().discountGroups().withKey().post()`
79-
- added method `apiRoot.withProjectKey().discountGroups().withKey().delete()`
80-
- added method `apiRoot.withProjectKey().discountGroups().withId().get()`
81-
- added method `apiRoot.withProjectKey().discountGroups().withId().head()`
82-
- added method `apiRoot.withProjectKey().discountGroups().withId().post()`
83-
- added method `apiRoot.withProjectKey().discountGroups().withId().delete()`
84-
- added method `apiRoot.withProjectKey().paymentMethods().withKey().get()`
85-
- added method `apiRoot.withProjectKey().paymentMethods().withKey().head()`
86-
- added method `apiRoot.withProjectKey().paymentMethods().withKey().post()`
87-
- added method `apiRoot.withProjectKey().paymentMethods().withKey().delete()`
88-
- added method `apiRoot.withProjectKey().paymentMethods().withId().get()`
89-
- added method `apiRoot.withProjectKey().paymentMethods().withId().head()`
90-
- added method `apiRoot.withProjectKey().paymentMethods().withId().post()`
91-
- added method `apiRoot.withProjectKey().paymentMethods().withId().delete()`
92-
</details>
93-
94-
<details>
95-
<summary>Added Type(s)</summary>
96-
97-
- added type `CartDiscountSetDiscountGroupAction`
98-
- added type `CartChangePriceRoundingModeAction`
99-
- added type `DiscountGroup`
100-
- added type `DiscountGroupDraft`
101-
- added type `DiscountGroupPagedQueryResponse`
102-
- added type `DiscountGroupReference`
103-
- added type `DiscountGroupResourceIdentifier`
104-
- added type `DiscountGroupUpdate`
105-
- added type `DiscountGroupUpdateAction`
106-
- added type `DiscountGroupSetDescriptionAction`
107-
- added type `DiscountGroupSetKeyAction`
108-
- added type `DiscountGroupSetNameAction`
109-
- added type `DiscountGroupSetSortOrderAction`
110-
- added type `MyPaymentSetMethodInfoCustomFieldAction`
111-
- added type `MyPaymentSetMethodInfoCustomTypeAction`
112-
- added type `MyPaymentSetMethodInfoInterfaceAccountAction`
113-
- added type `DiscountGroupCreatedMessage`
114-
- added type `DiscountGroupDeletedMessage`
115-
- added type `DiscountGroupKeySetMessage`
116-
- added type `DiscountGroupSortOrderSetMessage`
117-
- added type `PaymentInterfaceIdSetMessage`
118-
- added type `PaymentMethodCreatedMessage`
119-
- added type `PaymentMethodCustomFieldAddedMessage`
120-
- added type `PaymentMethodCustomFieldChangedMessage`
121-
- added type `PaymentMethodCustomFieldRemovedMessage`
122-
- added type `PaymentMethodCustomTypeRemovedMessage`
123-
- added type `PaymentMethodCustomTypeSetMessage`
124-
- added type `PaymentMethodDefaultSetMessage`
125-
- added type `PaymentMethodDeletedMessage`
126-
- added type `PaymentMethodInfoCustomFieldAddedMessage`
127-
- added type `PaymentMethodInfoCustomFieldChangedMessage`
128-
- added type `PaymentMethodInfoCustomFieldRemovedMessage`
129-
- added type `PaymentMethodInfoCustomTypeRemovedMessage`
130-
- added type `PaymentMethodInfoCustomTypeSetMessage`
131-
- added type `PaymentMethodInfoInterfaceAccountSetMessage`
132-
- added type `PaymentMethodInfoInterfaceSetMessage`
133-
- added type `PaymentMethodInfoMethodSetMessage`
134-
- added type `PaymentMethodInfoNameSetMessage`
135-
- added type `PaymentMethodInfoTokenSetMessage`
136-
- added type `PaymentMethodInterfaceAccountSetMessage`
137-
- added type `PaymentMethodKeySetMessage`
138-
- added type `PaymentMethodMethodSetMessage`
139-
- added type `PaymentMethodNameSetMessage`
140-
- added type `PaymentMethodPaymentInterfaceSetMessage`
141-
- added type `PaymentMethodPaymentMethodStatusSetMessage`
142-
- added type `DiscountGroupCreatedMessagePayload`
143-
- added type `DiscountGroupDeletedMessagePayload`
144-
- added type `DiscountGroupKeySetMessagePayload`
145-
- added type `DiscountGroupSortOrderSetMessagePayload`
146-
- added type `PaymentInterfaceIdSetMessagePayload`
147-
- added type `PaymentMethodCreatedMessagePayload`
148-
- added type `PaymentMethodCustomFieldAddedMessagePayload`
149-
- added type `PaymentMethodCustomFieldChangedMessagePayload`
150-
- added type `PaymentMethodCustomFieldRemovedMessagePayload`
151-
- added type `PaymentMethodCustomTypeRemovedMessagePayload`
152-
- added type `PaymentMethodCustomTypeSetMessagePayload`
153-
- added type `PaymentMethodDefaultSetMessagePayload`
154-
- added type `PaymentMethodDeletedMessagePayload`
155-
- added type `PaymentMethodInfoCustomFieldAddedMessagePayload`
156-
- added type `PaymentMethodInfoCustomFieldChangedMessagePayload`
157-
- added type `PaymentMethodInfoCustomFieldRemovedMessagePayload`
158-
- added type `PaymentMethodInfoCustomTypeRemovedMessagePayload`
159-
- added type `PaymentMethodInfoCustomTypeSetMessagePayload`
160-
- added type `PaymentMethodInfoInterfaceAccountSetMessagePayload`
161-
- added type `PaymentMethodInfoInterfaceSetMessagePayload`
162-
- added type `PaymentMethodInfoMethodSetMessagePayload`
163-
- added type `PaymentMethodInfoNameSetMessagePayload`
164-
- added type `PaymentMethodInfoTokenSetMessagePayload`
165-
- added type `PaymentMethodInterfaceAccountSetMessagePayload`
166-
- added type `PaymentMethodKeySetMessagePayload`
167-
- added type `PaymentMethodMethodSetMessagePayload`
168-
- added type `PaymentMethodNameSetMessagePayload`
169-
- added type `PaymentMethodPaymentInterfaceSetMessagePayload`
170-
- added type `PaymentMethodPaymentMethodStatusSetMessagePayload`
171-
- added type `StagedOrderChangePriceRoundingModeAction`
172-
- added type `PaymentMethod`
173-
- added type `PaymentMethodDraft`
174-
- added type `PaymentMethodPagedQueryResponse`
175-
- added type `PaymentMethodReference`
176-
- added type `PaymentMethodStatus`
177-
- added type `PaymentMethodToken`
178-
- added type `PaymentMethodUpdate`
179-
- added type `PaymentMethodUpdateAction`
180-
- added type `PaymentMethodSetCustomFieldAction`
181-
- added type `PaymentMethodSetCustomTypeAction`
182-
- added type `PaymentMethodSetDefaultAction`
183-
- added type `PaymentMethodSetInterfaceAccountAction`
184-
- added type `PaymentMethodSetKeyAction`
185-
- added type `PaymentMethodSetMethodAction`
186-
- added type `PaymentMethodSetNameAction`
187-
- added type `PaymentMethodSetPaymentInterfaceAction`
188-
- added type `PaymentMethodSetPaymentMethodStatusAction`
189-
- added type `PaymentMethodInfoDraft`
190-
- added type `PaymentSetMethodInfoAction`
191-
- added type `PaymentSetMethodInfoCustomFieldAction`
192-
- added type `PaymentSetMethodInfoCustomTypeAction`
193-
- added type `PaymentSetMethodInfoInterfaceAccountAction`
194-
- added type `PaymentSetMethodInfoTokenAction`
195-
- added type `ProductTailoringSetProductAttributeAction`
196-
- added type `AttributeLevelEnum`
197-
- added type `ProductSetProductAttributeAction`
198-
- added type `ProjectChangePriceRoundingModeAction`
199-
- added type `ProjectChangeTaxRoundingModeAction`
200-
</details>
201-
202-
<details>
203-
<summary>Added Resource(s)</summary>
204-
205-
- added resource `/{projectKey}/discount-groups`
206-
- added resource `/{projectKey}/payment-methods`
207-
- added resource `/{projectKey}/discount-groups/key={key}`
208-
- added resource `/{projectKey}/discount-groups/{ID}`
209-
- added resource `/{projectKey}/payment-methods/key={key}`
210-
- added resource `/{projectKey}/payment-methods/{ID}`
211-
</details>
212-
2131
**Import changes**
2142

2153
<details>
2164
<summary>Added Property(s)</summary>
2175

218-
- added property `attributes` to type `ProductImport`
219-
- added property `attributes` to type `ProductDraftImport`
220-
- added property `level` to type `AttributeDefinition`
6+
- added property `retentionPolicy` to type `ImportContainer`
7+
- added property `expiresAt` to type `ImportContainer`
8+
- added property `retentionPolicy` to type `ImportContainerDraft`
2219
</details>
22210

22311
<details>
22412
<summary>Added Type(s)</summary>
22513

226-
- added type `AttributeLevel`
227-
</details>
228-
229-
**History changes**
230-
231-
<details>
232-
<summary>Added Enum(s)</summary>
233-
234-
- added enum `ApplicationStoppedByGroupBestDeal` to type `DiscountCodeState`
235-
- added enum `payment-method` to type `ReferenceTypeId`
14+
- added type `StrategyEnum`
15+
- added type `RetentionPolicy`
16+
- added type `TimeToLiveConfig`
17+
- added type `TimeToLiveRetentionPolicy`
23618
</details>

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

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,43 @@
66

77
import { ImportResourceType } from './common'
88

9+
/**
10+
* The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
11+
*/
12+
export enum StrategyEnumValues {
13+
Ttl = 'ttl',
14+
}
15+
16+
export type StrategyEnum = 'ttl' | (string & {})
17+
/**
18+
* The retention policy of the ImportContainer. If not set, the ImportContainer does not expire.
19+
*/
20+
export type RetentionPolicy = TimeToLiveRetentionPolicy
21+
export interface IRetentionPolicy {
22+
/**
23+
* The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
24+
*
25+
*/
26+
readonly strategy: StrategyEnum
27+
}
28+
export interface TimeToLiveConfig {
29+
/**
30+
* The time to live of the ImportContainer. Used to generate the `expiresAt` value of the ImportContainer. The lowest accepted value is `1h` and the highest accepted value is `30d`.
31+
*
32+
*/
33+
readonly timeToLive: string
34+
}
35+
/**
36+
* Set a time to live retention policy for the ImportContainer.
37+
*/
38+
export interface TimeToLiveRetentionPolicy extends IRetentionPolicy {
39+
readonly strategy: 'ttl'
40+
/**
41+
* The configuration of the time to live retention policy.
42+
*
43+
*/
44+
readonly config: TimeToLiveConfig
45+
}
946
/**
1047
* Serves as the entry point of resources.
1148
* An Import Container is not resource type-specific.
@@ -14,8 +51,6 @@ import { ImportResourceType } from './common'
1451
export interface ImportContainer {
1552
/**
1653
* User-defined unique identifier for the ImportContainer.
17-
* Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
18-
*
1954
*
2055
*/
2156
readonly key: string
@@ -32,15 +67,25 @@ export interface ImportContainer {
3267
*/
3368
readonly version: number
3469
/**
35-
* The time when the ImportContainer was created.
70+
* The retention policy of the ImportContainer.
71+
*
72+
*/
73+
readonly retentionPolicy?: RetentionPolicy
74+
/**
75+
* Date and time (UTC) the ImportContainer was initially created.
3676
*
3777
*/
3878
readonly createdAt: string
3979
/**
40-
* The last time when the ImportContainer was modified.
80+
* Date and time (UTC) the ImportContainer was last updated.
4181
*
4282
*/
4383
readonly lastModifiedAt: string
84+
/**
85+
* Date and time (UTC) the ImportContainer is automatically deleted. Only present if a `retentionPolicy` is set. ImportContainers without `expiresAt` are permanent until [manually deleted](#delete-importcontainer).
86+
*
87+
*/
88+
readonly expiresAt?: string
4489
}
4590
/**
4691
* The representation sent to the server when creating an [ImportContainer](#importcontainer).
@@ -49,8 +94,6 @@ export interface ImportContainer {
4994
export interface ImportContainerDraft {
5095
/**
5196
* User-defined unique identifier of the ImportContainer.
52-
* Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
53-
*
5497
*
5598
*/
5699
readonly key: string
@@ -61,6 +104,11 @@ export interface ImportContainerDraft {
61104
*
62105
*/
63106
readonly resourceType?: ImportResourceType
107+
/**
108+
* Set a retention policy to automatically delete the ImportContainer after a defined period.
109+
*
110+
*/
111+
readonly retentionPolicy?: RetentionPolicy
64112
}
65113
/**
66114
* The representation sent to the server when updating an Import Container.

reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ddd8ebbf2e9b4bcaa263fd15093da46e14b55e0f

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,3 +433,4 @@ c388d876a51d22b2b8a73249fe4694b297db6cd5
433433
bb49fa04d50e4e0267846c7d805ae8ebc254bdea
434434
619fb89cb6ac5d2a1d5f1b7d2f51a51e13e7ace9
435435
1a7da72f28929e745fe954c69569acda29a50ed5
436+
6d4cd1e87a3eacff648e213aa9aff88292e9b75d

0 commit comments

Comments
 (0)