From b8489ba4fd76592d2f866d1f1edceb2db919c63a Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:27:41 +0000 Subject: [PATCH] build(codegen): updating SDK (#805) Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com> --- .changeset/changes_api.md | 272 ++++++++++++++++++ .changeset/changes_import.md | 24 ++ .../src/generated/models/standalone-price.ts | 7 +- references.txt | 1 + 4 files changed, 303 insertions(+), 1 deletion(-) create mode 100644 .changeset/changes_api.md create mode 100644 .changeset/changes_import.md diff --git a/.changeset/changes_api.md b/.changeset/changes_api.md new file mode 100644 index 000000000..e5e309599 --- /dev/null +++ b/.changeset/changes_api.md @@ -0,0 +1,272 @@ +--- +'@commercetools/platform-sdk': minor +--- + +**Api changes** + +
+Removed Method(s) + +- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().get()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().head()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().post()` +- :warning: removed method `apiRoot.withProjectKey().me().carts().withKey().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withId().delete()` +- :warning: removed method `apiRoot.withProjectKey().me().quoteRequests().withKey().delete()` +
+ +
+Added Method(s) + +- added method `apiRoot.withProjectKey().customers().search().post()` +- added method `apiRoot.withProjectKey().customers().search().head()` +- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().orderQuote().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().images().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().images().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().delete()` +
+ +
+Added Property(s) + +- added property `approvalRuleMode` to type `BusinessUnit` +- added property `approvalRuleMode` to type `BusinessUnitDraft` +- added property `approvalRuleMode` to type `Company` +- added property `approvalRuleMode` to type `CompanyDraft` +- added property `approvalRuleMode` to type `Division` +- added property `approvalRuleMode` to type `DivisionDraft` +- added property `applicationMode` to type `CartDiscountValueAbsolute` +- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft` +- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessage` +- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessage` +- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessage` +- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessage` +- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessage` +- added property `addressId` to type `CustomerAddressCustomFieldAddedMessage` +- added property `addressId` to type `CustomerAddressCustomFieldChangedMessage` +- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessage` +- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessage` +- added property `addressId` to type `CustomerAddressCustomTypeSetMessage` +- added property `metaTitle` to type `ProductTailoringCreatedMessage` +- added property `metaDescription` to type `ProductTailoringCreatedMessage` +- added property `metaKeywords` to type `ProductTailoringCreatedMessage` +- added property `variants` to type `ProductTailoringCreatedMessage` +- added property `staged` to type `ProductVariantDeletedMessage` +- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessagePayload` +- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessagePayload` +- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessagePayload` +- added property `addressId` to type `BusinessUnitAddressCustomTypeRemovedMessagePayload` +- added property `addressId` to type `BusinessUnitAddressCustomTypeSetMessagePayload` +- added property `addressId` to type `CustomerAddressCustomFieldAddedMessagePayload` +- added property `addressId` to type `CustomerAddressCustomFieldChangedMessagePayload` +- added property `addressId` to type `CustomerAddressCustomFieldRemovedMessagePayload` +- added property `addressId` to type `CustomerAddressCustomTypeRemovedMessagePayload` +- added property `addressId` to type `CustomerAddressCustomTypeSetMessagePayload` +- added property `metaTitle` to type `ProductTailoringCreatedMessagePayload` +- added property `metaDescription` to type `ProductTailoringCreatedMessagePayload` +- added property `metaKeywords` to type `ProductTailoringCreatedMessagePayload` +- added property `variants` to type `ProductTailoringCreatedMessagePayload` +- added property `staged` to type `ProductVariantDeletedMessagePayload` +- added property `variants` to type `ProductTailoringData` +- added property `variants` to type `ProductTailoringDraft` +- added property `variants` to type `ProductTailoringInStoreDraft` +- added property `active` to type `ShippingMethod` +- added property `active` to type `ShippingMethodDraft` +- added property `store` to type `StagedQuote` +
+ +
+Required Property(s) + +- changed property `stores` of type `BusinessUnit` to be optional +- changed property `stores` of type `Company` to be optional +- changed property `stores` of type `Division` to be optional +- changed property `isOnStock` of type `ProductVariantAvailability` to be optional +
+ +
+Changed Property(s) + +- :warning: changed property `value` of type `DirectDiscountDraft` from type `CartDiscountValue` to `CartDiscountValueDraft` +- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessage` from type `Money` to `CentPrecisionMoney` +- :warning: changed property `value` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney` +- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney` +- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney` +- :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` +- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` +- :warning: changed property `customType` of type `OrderSearchAnyValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchDateRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchFullTextValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchLongRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchNumberRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchQueryExpressionValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchStringValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` +- :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` +
+ +
+Added Type(s) + +- added type `BusinessUnitApprovalRuleMode` +- added type `BusinessUnitChangeApprovalRuleModeAction` +- added type `DiscountApplicationMode` +- added type `CartChangeLineItemsOrderAction` +- added type `CustomerIndexingProgress` +- added type `CustomerIndexingStatus` +- added type `CustomerPagedSearchResponse` +- added type `CustomerSearchIndexingStatusResponse` +- added type `CustomerSearchRequest` +- added type `CustomerSearchResult` +- added type `MyCartChangeLineItemsOrderAction` +- added type `BusinessUnitApprovalRuleModeChangedMessage` +- added type `DeliveryCustomFieldAddedMessage` +- added type `DeliveryCustomFieldChangedMessage` +- added type `DeliveryCustomFieldRemovedMessage` +- added type `DeliveryCustomTypeRemovedMessage` +- added type `DeliveryCustomTypeSetMessage` +- added type `ProductPriceCustomFieldAddedMessage` +- added type `ProductPriceCustomFieldChangedMessage` +- added type `ProductPriceCustomFieldRemovedMessage` +- added type `ProductPriceCustomFieldsRemovedMessage` +- added type `ProductPriceCustomFieldsSetMessage` +- added type `ProductTailoringImageAddedMessage` +- added type `ProductTailoringImagesSetMessage` +- added type `ProductVariantTailoringAddedMessage` +- added type `ProductVariantTailoringRemovedMessage` +- added type `BusinessUnitApprovalRuleModeChangedMessagePayload` +- added type `DeliveryCustomFieldAddedMessagePayload` +- added type `DeliveryCustomFieldChangedMessagePayload` +- added type `DeliveryCustomFieldRemovedMessagePayload` +- added type `DeliveryCustomTypeRemovedMessagePayload` +- added type `DeliveryCustomTypeSetMessagePayload` +- added type `ProductPriceCustomFieldAddedMessagePayload` +- added type `ProductPriceCustomFieldChangedMessagePayload` +- added type `ProductPriceCustomFieldRemovedMessagePayload` +- added type `ProductPriceCustomFieldsRemovedMessagePayload` +- added type `ProductPriceCustomFieldsSetMessagePayload` +- added type `ProductTailoringImageAddedMessagePayload` +- added type `ProductTailoringImagesSetMessagePayload` +- added type `ProductVariantTailoringAddedMessagePayload` +- added type `ProductVariantTailoringRemovedMessagePayload` +- added type `StagedOrderSetShippingCustomFieldAction` +- added type `StagedOrderSetShippingCustomTypeAction` +- added type `OrderSearchCustomType` +- added type `OrderSetShippingCustomFieldAction` +- added type `OrderSetShippingCustomTypeAction` +- added type `ProductVariantTailoring` +- added type `ProductVariantTailoringDraft` +- added type `ProductTailoringAddAssetAction` +- added type `ProductTailoringAddExternalImageAction` +- added type `ProductTailoringAddVariantAction` +- added type `ProductTailoringChangeAssetNameAction` +- added type `ProductTailoringChangeAssetOrderAction` +- added type `ProductTailoringMoveImageToPositionAction` +- added type `ProductTailoringRemoveAssetAction` +- added type `ProductTailoringRemoveImageAction` +- added type `ProductTailoringRemoveVariantAction` +- added type `ProductTailoringSetAssetCustomFieldAction` +- added type `ProductTailoringSetAssetCustomTypeAction` +- added type `ProductTailoringSetAssetDescriptionAction` +- added type `ProductTailoringSetAssetKeyAction` +- added type `ProductTailoringSetAssetSourcesAction` +- added type `ProductTailoringSetAssetTagsAction` +- added type `ProductTailoringSetExternalImagesAction` +- added type `ProductTailoringSetImageLabelAction` +- added type `CustomerSearchStatus` +- added type `ProjectChangeCustomerSearchStatusAction` +- added type `ShippingMethodChangeActiveAction` +
+ +
+Removed Resource(s) + +- :warning: removed resource `/{projectKey}/me/carts/key={key}` +
+ +
+Added Resource(s) + +- added resource `/{projectKey}/customers/search` +- added resource `/{projectKey}/customers/search/indexing-status` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images` +- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}` +
+ +
+Removed Enum(s) + +- :warning: removed enum `product-price` from type `ChangeSubscriptionResourceTypeId` +
+ +
+Added Enum(s) + +- added enum `shopping-list` to type `ExtensionResourceTypeId` +- added enum `customer-group` to type `AttributeReferenceTypeId` +- added enum `attribute-group` to type `ChangeSubscriptionResourceTypeId` +- added enum `product-tailoring` to type `ChangeSubscriptionResourceTypeId` +- added enum `cart-discount` to type `CustomFieldReferenceValue` +- added enum `customer-group` to type `CustomFieldReferenceValue` +
+ +
+Removed QueryParameter(s) + +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products` +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}` +- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}` +- :warning: removed query parameter `sort` from method `get /{projectKey}/product-projections/suggest` +- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest` +- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest` +
diff --git a/.changeset/changes_import.md b/.changeset/changes_import.md new file mode 100644 index 000000000..8e17c49c5 --- /dev/null +++ b/.changeset/changes_import.md @@ -0,0 +1,24 @@ +--- +'@commercetools/importapi-sdk': minor +--- + +**Import changes** + +
+Added Type(s) + +- added type `ReferencedResourceNotFound` +
+ +
+Added Enum(s) + +- added enum `customer-group` to type `CustomFieldReferenceValue` +
+ +
+Deprecated Property(s) + +- property `PriceImport::publish` is removed +- property `ProductVariantImport::publish` is removed +
diff --git a/packages/platform-sdk/src/generated/models/standalone-price.ts b/packages/platform-sdk/src/generated/models/standalone-price.ts index dc105aa10..3eb6767f1 100644 --- a/packages/platform-sdk/src/generated/models/standalone-price.ts +++ b/packages/platform-sdk/src/generated/models/standalone-price.ts @@ -475,7 +475,10 @@ export interface StandalonePriceSetCustomTypeAction { readonly fields?: FieldContainer } /** - * Discounts a Standalone Price. The referenced [ProductDiscount](ctp:api:type:ProductDiscount) in the discounted field must be of type external, active, and its predicate must match the referenced Price. Produces the [StandalonePriceExternalDiscountSet](ctp:api:type:StandalonePriceExternalDiscountSetMessage) Message. + * Discounts a Standalone Price of a Product Variant on a published [Product](ctp:api:type:Product). + * If the Product Variant does not exist or if it exists only in the staged representation of a Product, an [InvalidOperationError](ctp:api:type:InvalidOperationError) error is returned. + * + * Produces the [StandalonePriceExternalDiscountSet](ctp:api:type:StandalonePriceExternalDiscountSetMessage) Message. * */ export interface StandalonePriceSetDiscountedPriceAction { @@ -483,6 +486,8 @@ export interface StandalonePriceSetDiscountedPriceAction { /** * Value to set. If empty, any existing value will be removed. * + * The referenced [ProductDiscount](ctp:api:type:ProductDiscount) must be of type external, active, and its predicate must match the referenced Price. + * * */ readonly discounted?: DiscountedPriceDraft diff --git a/references.txt b/references.txt index 8decf0d85..824547554 100644 --- a/references.txt +++ b/references.txt @@ -315,3 +315,4 @@ ce56ab7c65a688f75d5cd4095378d6647c6bd9ae 4b2ade81b4e216628dd4a26448cd1c838f5a85b1 3ef50b76d477cff41dcd11f48e8205cd4abd1439 0065cdd802adcbf53195095773ccc5a2becca69e +ce2753aafee0b1d96970abb600b606748ce40568