Skip to content

Commit fac2478

Browse files
committed
build(codegen): updating SDK
1 parent 108ea27 commit fac2478

File tree

6 files changed

+42
-21
lines changed

6 files changed

+42
-21
lines changed

.changeset/changes_api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
- added type `RecurringOrderFailedMessagePayload`
2222
</details>
2323

24+
<details>
25+
<summary>Deprecated Type(s)</summary>
26+
27+
- type `ProductLegacySetSkuAction` is removed
28+
</details>
29+
2430
<details>
2531
<summary>Added Method(s)</summary>
2632

changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
- added type `RecurringOrderFailedMessagePayload`
1818
</details>
1919

20+
<details>
21+
<summary>Deprecated Type(s)</summary>
22+
23+
- type `ProductLegacySetSkuAction` is removed
24+
</details>
25+
2026
<details>
2127
<summary>Added Method(s)</summary>
2228

packages/history-sdk/src/generated/models/change.ts

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ export interface AddAssetChange extends IChange {
530530
readonly variant: string
531531
}
532532
/**
533-
* Change triggered by the [Add Associate](ctp:api:type:BusinessUnitAddAssociateAction) update action.
533+
* This Change is no longer triggered by the [Add Associate](ctp:api:type:BusinessUnitAddAssociateAction) update action.
534+
* It has been deprecated and replaced by the [SetAssociatesChange](ctp:history:type:SetAssociatesChange).
535+
*
534536
*/
535537
export interface AddAssociateChange extends IChange {
536538
readonly type: 'AddAssociateChange'
@@ -924,7 +926,9 @@ export interface AddPlainEnumValueChange extends IChange {
924926
readonly attributeName: string
925927
}
926928
/**
927-
* Change triggered by the [Add Price](ctp:api:type:ProductAddPriceAction) update action.
929+
* This Change is no longer triggered by the [Add Price](ctp:api:type:ProductAddPriceAction) update action.
930+
* It has been deprecated and replaced by the [SetPricesChange](ctp:history:type:SetPricesChange).
931+
*
928932
*/
929933
export interface AddPriceChange extends IChange {
930934
readonly type: 'AddPriceChange'
@@ -982,7 +986,9 @@ export interface AddProductChange extends IChange {
982986
readonly variantSelection: ProductVariantSelection
983987
}
984988
/**
985-
* Change triggered by the [Add Product Selection](ctp:api:type:StoreAddProductSelectionAction) update action.
989+
* This Change is no longer triggered by the [Add Product Selection](ctp:api:type:StoreAddProductSelectionAction) update action.
990+
* It has been deprecated and replaced by the [SetProductSelectionsChange](ctp:history:type:SetProductSelectionsChange).
991+
*
986992
*/
987993
export interface AddProductSelectionChange extends IChange {
988994
readonly type: 'AddProductSelectionChange'
@@ -1084,7 +1090,9 @@ export interface AddShoppingListLineItemChange extends IChange {
10841090
readonly nextValue: ShoppingListLineItem
10851091
}
10861092
/**
1087-
* Change triggered by the [Add State roles](ctp:api:type:StateAddRolesAction) update action.
1093+
* This Change is no longer triggered by the [Add State roles](ctp:api:type:StateAddRolesAction) update action.
1094+
* It has been deprecated and replaced by the [SetStateRolesChange](ctp:history:type:SetStateRolesChange).
1095+
*
10881096
*/
10891097
export interface AddStateRolesChange extends IChange {
10901098
readonly type: 'AddStateRolesChange'
@@ -1232,7 +1240,9 @@ export interface ChangeAddressChange extends IChange {
12321240
readonly nextValue: Address
12331241
}
12341242
/**
1235-
* This change is initiated by background processes after the [Change AmountPlanned](ctp:api:type:PaymentChangeAmountPlannedAction) update action is performed.
1243+
* This change is no longer initiated by background processes after the [Change AmountPlanned](ctp:api:type:PaymentChangeAmountPlannedAction) update action is performed.
1244+
* It has been deprecated since the corresponding field on the Payment does not exist anymore.
1245+
*
12361246
*/
12371247
export interface ChangeAmountAuthorizedChange extends IChange {
12381248
readonly type: 'ChangeAmountAuthorizedChange'
@@ -2999,7 +3009,9 @@ export interface RemoveAssetChange extends IChange {
29993009
readonly variant: string
30003010
}
30013011
/**
3002-
* Change triggered by the [Remove Associate](ctp:api:type:BusinessUnitRemoveAssociateAction) update action.
3012+
* This Change is no longer triggered by the [Remove Associate](ctp:api:type:BusinessUnitRemoveAssociateAction) update action.
3013+
* It has been deprecated and replaced by the [SetAssociatesChange](ctp:history:type:SetAssociatesChange).
3014+
*
30033015
*/
30043016
export interface RemoveAssociateChange extends IChange {
30053017
readonly type: 'RemoveAssociateChange'
@@ -3369,7 +3381,9 @@ export interface RemovePaymentChange extends IChange {
33693381
readonly nextValue: PaymentInfo
33703382
}
33713383
/**
3372-
* Change triggered by the [Remove Embedded Price](ctp:api:type:ProductRemovePriceAction) update action.
3384+
* This Change is no longer triggered by the [Remove Embedded Price](ctp:api:type:ProductRemovePriceAction) update action.
3385+
* It has been deprecated and replaced by the [SetPricesChange](ctp:history:type:SetPricesChange).
3386+
*
33733387
*/
33743388
export interface RemovePriceChange extends IChange {
33753389
readonly type: 'RemovePriceChange'
@@ -3427,7 +3441,9 @@ export interface RemoveProductChange extends IChange {
34273441
readonly previousValue: Reference
34283442
}
34293443
/**
3430-
* Change triggered by the [Remove Product Selection](ctp:api:type:StoreRemoveProductSelectionAction) update action.
3444+
* This Change is no longer triggered by the [Remove Product Selection](ctp:api:type:StoreRemoveProductSelectionAction) update action.
3445+
* It has been deprecated and replaced by the [SetProductSelectionsChange](ctp:history:type:SetProductSelectionsChange).
3446+
*
34313447
*/
34323448
export interface RemoveProductSelectionChange extends IChange {
34333449
readonly type: 'RemoveProductSelectionChange'
@@ -3507,7 +3523,9 @@ export interface RemoveShoppingListLineItemChange extends IChange {
35073523
readonly nextValue: ShoppingListLineItem
35083524
}
35093525
/**
3510-
* Change triggered by the [Remove State roles](ctp:api:type:StateRemoveRolesAction) update action.
3526+
* This Change is no longer triggered by the [Remove State roles](ctp:api:type:StateRemoveRolesAction) update action.
3527+
* It has been deprecated and replaced by the [SetStateRolesChange](ctp:history:type:SetStateRolesChange).
3528+
*
35113529
*/
35123530
export interface RemoveStateRolesChange extends IChange {
35133531
readonly type: 'RemoveStateRolesChange'

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export class ByProjectKeyCustomObjectsRequestBuilder {
5353
/**
5454
* For performance reasons, it is highly advisable to query for Custom Objects in a container by using the `container` field in the `where` predicate.
5555
*
56+
* This endpoint is deprecated and replaced by the [Query CustomObjects in Container](/../apis/ctp:api:endpoint:/{projectKey}/custom-objects/{container}:GET) endpoint.
57+
*
5658
*/
5759
/**
5860
* @deprecated

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,6 @@ export type ProductUpdateAction =
864864
| ProductChangeNameAction
865865
| ProductChangePriceAction
866866
| ProductChangeSlugAction
867-
| ProductLegacySetSkuAction
868867
| ProductMoveImageToPositionAction
869868
| ProductPublishAction
870869
| ProductRemoveAssetAction
@@ -1578,17 +1577,6 @@ export interface ProductChangeSlugAction extends IProductUpdateAction {
15781577
*/
15791578
readonly staged?: boolean
15801579
}
1581-
export interface ProductLegacySetSkuAction extends IProductUpdateAction {
1582-
readonly action: 'legacySetSku'
1583-
/**
1584-
*
1585-
*/
1586-
readonly sku?: string
1587-
/**
1588-
*
1589-
*/
1590-
readonly variantId: number
1591-
}
15921580
/**
15931581
* Either `variantId` or `sku` is required.
15941582
*

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,3 +483,4 @@ bfb534af33764ac81a3784290b35530d926fccf1
483483
603e489748f9c32c1891d60d6f767892a8ea5207
484484
dd952279caa05a020c427ea1899d4bf0897cb802
485485
985c8f2c9814fe367cb77e11c237968db008a306
486+
a3e408093873cfed8ced6708aa90deec2e7daa44

0 commit comments

Comments
 (0)