@commercetools/platform-sdk
Advanced tools
Comparing version 2.0.1 to 2.1.0
# @commercetools/platform-sdk | ||
## 2.1.0 | ||
### Minor Changes | ||
- [#148](https://github.com/commercetools/commercetools-sdk-typescript/pull/148) [`0281529`](https://github.com/commercetools/commercetools-sdk-typescript/commit/028152987cd191db2458e5b327ff275a1e6cb36e) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated SDKs | ||
### Patch Changes | ||
- Updated dependencies [[`fcd35a0`](https://github.com/commercetools/commercetools-sdk-typescript/commit/fcd35a0f26b2780d0004c4e9d7b48233a86c2453)]: | ||
- @commercetools/sdk-client-v2@1.0.1 | ||
## 2.0.1 | ||
@@ -4,0 +15,0 @@ |
@@ -11,2 +11,3 @@ /** | ||
import { ByProjectKeyOrdersImportRequestBuilder } from '../import/by-project-key-orders-import-request-builder'; | ||
import { ByProjectKeyOrdersSearchRequestBuilder } from '../search/by-project-key-orders-search-request-builder'; | ||
import { ByProjectKeyOrdersByIDRequestBuilder } from './by-project-key-orders-by-id-request-builder'; | ||
@@ -40,2 +41,7 @@ import { ByProjectKeyOrdersOrderNumberByOrderNumberRequestBuilder } from './by-project-key-orders-order-number-by-order-number-request-builder'; | ||
}): ByProjectKeyOrdersByIDRequestBuilder; | ||
/** | ||
* This endpoint provides high performance search queries over Orders. The order search allows searching through all orders (currently supporting a limit of the 10.000.000 newest orders) in your project. | ||
* | ||
*/ | ||
search(): ByProjectKeyOrdersSearchRequestBuilder; | ||
get(methodArgs?: { | ||
@@ -42,0 +48,0 @@ queryArgs?: { |
@@ -9,3 +9,3 @@ /** | ||
import { ProductReference, ProductResourceIdentifier } from './product'; | ||
import { CustomFields, TypeResourceIdentifier } from './type'; | ||
import { CustomFields, CustomFieldsDraft, TypeResourceIdentifier } from './type'; | ||
export interface CartDiscount extends BaseResource { | ||
@@ -179,3 +179,3 @@ /** | ||
*/ | ||
readonly custom?: CustomFields; | ||
readonly custom?: CustomFieldsDraft; | ||
} | ||
@@ -182,0 +182,0 @@ export interface CartDiscountPagedQueryResponse { |
@@ -381,3 +381,3 @@ /** | ||
} | ||
export declare type CartUpdateAction = CartAddCustomLineItemAction | CartAddDiscountCodeAction | CartAddItemShippingAddressAction | CartAddLineItemAction | CartAddPaymentAction | CartAddShoppingListAction | CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction | CartApplyDeltaToLineItemShippingDetailsTargetsAction | CartChangeCustomLineItemMoneyAction | CartChangeCustomLineItemQuantityAction | CartChangeLineItemQuantityAction | CartChangeTaxCalculationModeAction | CartChangeTaxModeAction | CartChangeTaxRoundingModeAction | CartRecalculateAction | CartRemoveCustomLineItemAction | CartRemoveDiscountCodeAction | CartRemoveItemShippingAddressAction | CartRemoveLineItemAction | CartRemovePaymentAction | CartSetAnonymousIdAction | CartSetBillingAddressAction | CartSetBillingAddressCustomFieldAction | CartSetBillingAddressCustomTypeAction | CartSetCartTotalTaxAction | CartSetCountryAction | CartSetCustomFieldAction | CartSetCustomLineItemCustomFieldAction | CartSetCustomLineItemCustomTypeAction | CartSetCustomLineItemShippingDetailsAction | CartSetCustomLineItemTaxAmountAction | CartSetCustomLineItemTaxRateAction | CartSetCustomShippingMethodAction | CartSetCustomTypeAction | CartSetCustomerEmailAction | CartSetCustomerGroupAction | CartSetCustomerIdAction | CartSetDeleteDaysAfterLastModificationAction | CartSetDeliveryAddressCustomFieldAction | CartSetDeliveryAddressCustomTypeAction | CartSetItemShippingAddressCustomFieldAction | CartSetItemShippingAddressCustomTypeAction | CartSetKeyAction | CartSetLineItemCustomFieldAction | CartSetLineItemCustomTypeAction | CartSetLineItemDistributionChannelAction | CartSetLineItemPriceAction | CartSetLineItemShippingDetailsAction | CartSetLineItemTaxAmountAction | CartSetLineItemTaxRateAction | CartSetLineItemTotalPriceAction | CartSetLocaleAction | CartSetShippingAddressAction | CartSetShippingAddressCustomFieldAction | CartSetShippingAddressCustomTypeAction | CartSetShippingMethodAction | CartSetShippingMethodTaxAmountAction | CartSetShippingMethodTaxRateAction | CartSetShippingRateInputAction | CartUpdateItemShippingAddressAction; | ||
export declare type CartUpdateAction = CartAddCustomLineItemAction | CartAddDiscountCodeAction | CartAddItemShippingAddressAction | CartAddLineItemAction | CartAddPaymentAction | CartAddShoppingListAction | CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction | CartApplyDeltaToLineItemShippingDetailsTargetsAction | CartChangeCustomLineItemMoneyAction | CartChangeCustomLineItemQuantityAction | CartChangeLineItemQuantityAction | CartChangeTaxCalculationModeAction | CartChangeTaxModeAction | CartChangeTaxRoundingModeAction | CartRecalculateAction | CartRemoveCustomLineItemAction | CartRemoveDiscountCodeAction | CartRemoveItemShippingAddressAction | CartRemoveLineItemAction | CartRemovePaymentAction | CartSetAnonymousIdAction | CartSetBillingAddressAction | CartSetBillingAddressCustomFieldAction | CartSetBillingAddressCustomTypeAction | CartSetCartTotalTaxAction | CartSetCountryAction | CartSetCustomFieldAction | CartSetCustomLineItemCustomFieldAction | CartSetCustomLineItemCustomTypeAction | CartSetCustomLineItemShippingDetailsAction | CartSetCustomLineItemTaxAmountAction | CartSetCustomLineItemTaxRateAction | CartSetCustomShippingMethodAction | CartSetCustomTypeAction | CartSetCustomerEmailAction | CartSetCustomerGroupAction | CartSetCustomerIdAction | CartSetDeleteDaysAfterLastModificationAction | CartSetDeliveryAddressCustomFieldAction | CartSetDeliveryAddressCustomTypeAction | CartSetItemShippingAddressCustomFieldAction | CartSetItemShippingAddressCustomTypeAction | CartSetKeyAction | CartSetLineItemCustomFieldAction | CartSetLineItemCustomTypeAction | CartSetLineItemDistributionChannelAction | CartSetLineItemPriceAction | CartSetLineItemShippingDetailsAction | CartSetLineItemSupplyChannelAction | CartSetLineItemTaxAmountAction | CartSetLineItemTaxRateAction | CartSetLineItemTotalPriceAction | CartSetLocaleAction | CartSetShippingAddressAction | CartSetShippingAddressCustomFieldAction | CartSetShippingAddressCustomTypeAction | CartSetShippingMethodAction | CartSetShippingMethodTaxAmountAction | CartSetShippingMethodTaxRateAction | CartSetShippingRateInputAction | CartUpdateItemShippingAddressAction; | ||
export interface CustomLineItem { | ||
@@ -643,2 +643,8 @@ /** | ||
/** | ||
* User-defined unique identifier for the [Product](ctp:api:type:Product). | ||
* Only present on Line Items in a [Cart](ctp:api:type:Cart) when the `key` is available on that specific Product at the time the Line Item is created or updated on the Cart. On [Order](/ctp:api:type:Order) resources this field is only present when the `key` is available on the specific Product at the time the Order is created from the Cart. This field is in general not present on Carts that had no updates until 3 December 2021 and on Orders created before this date. | ||
* | ||
*/ | ||
readonly productKey?: string; | ||
/** | ||
* The product name. | ||
@@ -1571,2 +1577,13 @@ * | ||
} | ||
export interface CartSetLineItemSupplyChannelAction { | ||
readonly action: 'setLineItemSupplyChannel'; | ||
/** | ||
* | ||
*/ | ||
readonly lineItemId: string; | ||
/** | ||
* | ||
*/ | ||
readonly supplyChannel?: ChannelResourceIdentifier; | ||
} | ||
export interface CartSetLineItemTaxAmountAction { | ||
@@ -1573,0 +1590,0 @@ readonly action: 'setLineItemTaxAmount'; |
@@ -97,3 +97,3 @@ /** | ||
} | ||
export declare type MyCartUpdateAction = MyCartAddDiscountCodeAction | MyCartAddItemShippingAddressAction | MyCartAddLineItemAction | MyCartAddPaymentAction | MyCartApplyDeltaToLineItemShippingDetailsTargetsAction | MyCartChangeLineItemQuantityAction | MyCartChangeTaxModeAction | MyCartRecalculateAction | MyCartRemoveDiscountCodeAction | MyCartRemoveItemShippingAddressAction | MyCartRemoveLineItemAction | MyCartRemovePaymentAction | MyCartSetBillingAddressAction | MyCartSetCountryAction | MyCartSetCustomFieldAction | MyCartSetCustomTypeAction | MyCartSetCustomerEmailAction | MyCartSetDeleteDaysAfterLastModificationAction | MyCartSetLineItemCustomFieldAction | MyCartSetLineItemCustomTypeAction | MyCartSetLineItemDistributionChannelAction | MyCartSetLineItemShippingDetailsAction | MyCartSetLocaleAction | MyCartSetShippingAddressAction | MyCartSetShippingMethodAction | MyCartUpdateItemShippingAddressAction; | ||
export declare type MyCartUpdateAction = MyCartAddDiscountCodeAction | MyCartAddItemShippingAddressAction | MyCartAddLineItemAction | MyCartAddPaymentAction | MyCartApplyDeltaToLineItemShippingDetailsTargetsAction | MyCartChangeLineItemQuantityAction | MyCartChangeTaxModeAction | MyCartRecalculateAction | MyCartRemoveDiscountCodeAction | MyCartRemoveItemShippingAddressAction | MyCartRemoveLineItemAction | MyCartRemovePaymentAction | MyCartSetBillingAddressAction | MyCartSetCountryAction | MyCartSetCustomFieldAction | MyCartSetCustomTypeAction | MyCartSetCustomerEmailAction | MyCartSetDeleteDaysAfterLastModificationAction | MyCartSetLineItemCustomFieldAction | MyCartSetLineItemCustomTypeAction | MyCartSetLineItemDistributionChannelAction | MyCartSetLineItemShippingDetailsAction | MyCartSetLineItemSupplyChannelAction | MyCartSetLocaleAction | MyCartSetShippingAddressAction | MyCartSetShippingMethodAction | MyCartUpdateItemShippingAddressAction; | ||
export interface MyCustomerDraft { | ||
@@ -330,3 +330,3 @@ /** | ||
} | ||
export declare type MyPaymentUpdateAction = MyPaymentAddTransactionAction | MyPaymentChangeAmountPlannedAction | MyPaymentSetCustomFieldAction | MyPaymentSetMethodInfoInterfaceAction | MyPaymentSetMethodInfoMethodAction | MyPaymentSetMethodInfoNameAction; | ||
export declare type MyPaymentUpdateAction = MyPaymentAddTransactionAction | MyPaymentChangeAmountPlannedAction | MyPaymentSetCustomFieldAction | MyPaymentSetMethodInfoInterfaceAction | MyPaymentSetMethodInfoMethodAction | MyPaymentSetMethodInfoNameAction | MyPaymentSetTransactionCustomFieldAction; | ||
export interface MyShoppingListDraft { | ||
@@ -400,2 +400,7 @@ /** | ||
readonly interactionId?: string; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -666,2 +671,13 @@ export interface MyCartAddDiscountCodeAction { | ||
} | ||
export interface MyCartSetLineItemSupplyChannelAction { | ||
readonly action: 'setLineItemSupplyChannel'; | ||
/** | ||
* | ||
*/ | ||
readonly lineItemId: string; | ||
/** | ||
* | ||
*/ | ||
readonly distributionChannel?: ChannelResourceIdentifier; | ||
} | ||
export interface MyCartSetLocaleAction { | ||
@@ -936,2 +952,13 @@ readonly action: 'setLocale'; | ||
} | ||
export interface MyPaymentSetTransactionCustomFieldAction { | ||
readonly action: 'setTransactionCustomField'; | ||
/** | ||
* | ||
*/ | ||
readonly name: string; | ||
/** | ||
* | ||
*/ | ||
readonly value?: any; | ||
} | ||
export interface MyShoppingListAddLineItemAction { | ||
@@ -938,0 +965,0 @@ readonly action: 'addLineItem'; |
@@ -342,2 +342,7 @@ /** | ||
readonly parcels?: ParcelDraft[]; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -841,2 +846,27 @@ export interface StagedOrderAddDiscountCodeAction { | ||
} | ||
export interface StagedOrderSetDeliveryCustomFieldAction { | ||
readonly action: 'setDeliveryCustomField'; | ||
/** | ||
* | ||
*/ | ||
readonly name: string; | ||
/** | ||
* | ||
*/ | ||
readonly value?: any; | ||
} | ||
export interface StagedOrderSetDeliveryCustomTypeAction { | ||
readonly action: 'setDeliveryCustomType'; | ||
/** | ||
* If set, the custom type is set to this new value. | ||
* If absent, the custom type and any existing custom fields are removed. | ||
* | ||
*/ | ||
readonly type?: TypeResourceIdentifier; | ||
/** | ||
* If set, the custom fields are set to this new value. | ||
* | ||
*/ | ||
readonly fields?: any; | ||
} | ||
export interface StagedOrderSetDeliveryItemsAction { | ||
@@ -843,0 +873,0 @@ readonly action: 'setDeliveryItems'; |
@@ -11,3 +11,3 @@ /** | ||
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group'; | ||
import { StagedOrderAddCustomLineItemAction, StagedOrderAddDeliveryAction, StagedOrderAddDiscountCodeAction, StagedOrderAddItemShippingAddressAction, StagedOrderAddLineItemAction, StagedOrderAddParcelToDeliveryAction, StagedOrderAddPaymentAction, StagedOrderAddReturnInfoAction, StagedOrderAddShoppingListAction, StagedOrderChangeCustomLineItemMoneyAction, StagedOrderChangeCustomLineItemQuantityAction, StagedOrderChangeLineItemQuantityAction, StagedOrderChangeOrderStateAction, StagedOrderChangePaymentStateAction, StagedOrderChangeShipmentStateAction, StagedOrderChangeTaxCalculationModeAction, StagedOrderChangeTaxModeAction, StagedOrderChangeTaxRoundingModeAction, StagedOrderImportCustomLineItemStateAction, StagedOrderImportLineItemStateAction, StagedOrderRemoveCustomLineItemAction, StagedOrderRemoveDeliveryAction, StagedOrderRemoveDiscountCodeAction, StagedOrderRemoveItemShippingAddressAction, StagedOrderRemoveLineItemAction, StagedOrderRemoveParcelFromDeliveryAction, StagedOrderRemovePaymentAction, StagedOrderSetBillingAddressAction, StagedOrderSetBillingAddressCustomFieldAction, StagedOrderSetBillingAddressCustomTypeAction, StagedOrderSetCountryAction, StagedOrderSetCustomerEmailAction, StagedOrderSetCustomerGroupAction, StagedOrderSetCustomerIdAction, StagedOrderSetCustomFieldAction, StagedOrderSetCustomLineItemCustomFieldAction, StagedOrderSetCustomLineItemCustomTypeAction, StagedOrderSetCustomLineItemShippingDetailsAction, StagedOrderSetCustomLineItemTaxAmountAction, StagedOrderSetCustomLineItemTaxRateAction, StagedOrderSetCustomShippingMethodAction, StagedOrderSetCustomTypeAction, StagedOrderSetDeliveryAddressAction, StagedOrderSetDeliveryAddressCustomFieldAction, StagedOrderSetDeliveryAddressCustomTypeAction, StagedOrderSetDeliveryItemsAction, StagedOrderSetItemShippingAddressCustomFieldAction, StagedOrderSetItemShippingAddressCustomTypeAction, StagedOrderSetLineItemCustomFieldAction, StagedOrderSetLineItemCustomTypeAction, StagedOrderSetLineItemDistributionChannelAction, StagedOrderSetLineItemPriceAction, StagedOrderSetLineItemShippingDetailsAction, StagedOrderSetLineItemTaxAmountAction, StagedOrderSetLineItemTaxRateAction, StagedOrderSetLineItemTotalPriceAction, StagedOrderSetLocaleAction, StagedOrderSetOrderNumberAction, StagedOrderSetOrderTotalTaxAction, StagedOrderSetParcelItemsAction, StagedOrderSetParcelMeasurementsAction, StagedOrderSetParcelTrackingDataAction, StagedOrderSetReturnInfoAction, StagedOrderSetReturnPaymentStateAction, StagedOrderSetReturnShipmentStateAction, StagedOrderSetShippingAddressAction, StagedOrderSetShippingAddressAndCustomShippingMethodAction, StagedOrderSetShippingAddressAndShippingMethodAction, StagedOrderSetShippingAddressCustomFieldAction, StagedOrderSetShippingAddressCustomTypeAction, StagedOrderSetShippingMethodAction, StagedOrderSetShippingMethodTaxAmountAction, StagedOrderSetShippingMethodTaxRateAction, StagedOrderSetShippingRateInputAction, StagedOrderTransitionCustomLineItemStateAction, StagedOrderTransitionLineItemStateAction, StagedOrderTransitionStateAction, StagedOrderUpdateItemShippingAddressAction, StagedOrderUpdateSyncInfoAction } from './order-edit'; | ||
import { StagedOrderAddCustomLineItemAction, StagedOrderAddDeliveryAction, StagedOrderAddDiscountCodeAction, StagedOrderAddItemShippingAddressAction, StagedOrderAddLineItemAction, StagedOrderAddParcelToDeliveryAction, StagedOrderAddPaymentAction, StagedOrderAddReturnInfoAction, StagedOrderAddShoppingListAction, StagedOrderChangeCustomLineItemMoneyAction, StagedOrderChangeCustomLineItemQuantityAction, StagedOrderChangeLineItemQuantityAction, StagedOrderChangeOrderStateAction, StagedOrderChangePaymentStateAction, StagedOrderChangeShipmentStateAction, StagedOrderChangeTaxCalculationModeAction, StagedOrderChangeTaxModeAction, StagedOrderChangeTaxRoundingModeAction, StagedOrderImportCustomLineItemStateAction, StagedOrderImportLineItemStateAction, StagedOrderRemoveCustomLineItemAction, StagedOrderRemoveDeliveryAction, StagedOrderRemoveDiscountCodeAction, StagedOrderRemoveItemShippingAddressAction, StagedOrderRemoveLineItemAction, StagedOrderRemoveParcelFromDeliveryAction, StagedOrderRemovePaymentAction, StagedOrderSetBillingAddressAction, StagedOrderSetBillingAddressCustomFieldAction, StagedOrderSetBillingAddressCustomTypeAction, StagedOrderSetCountryAction, StagedOrderSetCustomerEmailAction, StagedOrderSetCustomerGroupAction, StagedOrderSetCustomerIdAction, StagedOrderSetCustomFieldAction, StagedOrderSetCustomLineItemCustomFieldAction, StagedOrderSetCustomLineItemCustomTypeAction, StagedOrderSetCustomLineItemShippingDetailsAction, StagedOrderSetCustomLineItemTaxAmountAction, StagedOrderSetCustomLineItemTaxRateAction, StagedOrderSetCustomShippingMethodAction, StagedOrderSetCustomTypeAction, StagedOrderSetDeliveryAddressAction, StagedOrderSetDeliveryAddressCustomFieldAction, StagedOrderSetDeliveryAddressCustomTypeAction, StagedOrderSetDeliveryCustomFieldAction, StagedOrderSetDeliveryCustomTypeAction, StagedOrderSetDeliveryItemsAction, StagedOrderSetItemShippingAddressCustomFieldAction, StagedOrderSetItemShippingAddressCustomTypeAction, StagedOrderSetLineItemCustomFieldAction, StagedOrderSetLineItemCustomTypeAction, StagedOrderSetLineItemDistributionChannelAction, StagedOrderSetLineItemPriceAction, StagedOrderSetLineItemShippingDetailsAction, StagedOrderSetLineItemTaxAmountAction, StagedOrderSetLineItemTaxRateAction, StagedOrderSetLineItemTotalPriceAction, StagedOrderSetLocaleAction, StagedOrderSetOrderNumberAction, StagedOrderSetOrderTotalTaxAction, StagedOrderSetParcelItemsAction, StagedOrderSetParcelMeasurementsAction, StagedOrderSetParcelTrackingDataAction, StagedOrderSetReturnInfoAction, StagedOrderSetReturnPaymentStateAction, StagedOrderSetReturnShipmentStateAction, StagedOrderSetShippingAddressAction, StagedOrderSetShippingAddressAndCustomShippingMethodAction, StagedOrderSetShippingAddressAndShippingMethodAction, StagedOrderSetShippingAddressCustomFieldAction, StagedOrderSetShippingAddressCustomTypeAction, StagedOrderSetShippingMethodAction, StagedOrderSetShippingMethodTaxAmountAction, StagedOrderSetShippingMethodTaxRateAction, StagedOrderSetShippingRateInputAction, StagedOrderTransitionCustomLineItemStateAction, StagedOrderTransitionLineItemStateAction, StagedOrderTransitionStateAction, StagedOrderUpdateItemShippingAddressAction, StagedOrderUpdateSyncInfoAction } from './order-edit'; | ||
import { PaymentReference, PaymentResourceIdentifier } from './payment'; | ||
@@ -20,3 +20,42 @@ import { Attribute } from './product'; | ||
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type'; | ||
export declare type StagedOrderUpdateAction = StagedOrderAddCustomLineItemAction | StagedOrderAddDeliveryAction | StagedOrderAddDiscountCodeAction | StagedOrderAddItemShippingAddressAction | StagedOrderAddLineItemAction | StagedOrderAddParcelToDeliveryAction | StagedOrderAddPaymentAction | StagedOrderAddReturnInfoAction | StagedOrderAddShoppingListAction | StagedOrderChangeCustomLineItemMoneyAction | StagedOrderChangeCustomLineItemQuantityAction | StagedOrderChangeLineItemQuantityAction | StagedOrderChangeOrderStateAction | StagedOrderChangePaymentStateAction | StagedOrderChangeShipmentStateAction | StagedOrderChangeTaxCalculationModeAction | StagedOrderChangeTaxModeAction | StagedOrderChangeTaxRoundingModeAction | StagedOrderImportCustomLineItemStateAction | StagedOrderImportLineItemStateAction | StagedOrderRemoveCustomLineItemAction | StagedOrderRemoveDeliveryAction | StagedOrderRemoveDiscountCodeAction | StagedOrderRemoveItemShippingAddressAction | StagedOrderRemoveLineItemAction | StagedOrderRemoveParcelFromDeliveryAction | StagedOrderRemovePaymentAction | StagedOrderSetBillingAddressAction | StagedOrderSetBillingAddressCustomFieldAction | StagedOrderSetBillingAddressCustomTypeAction | StagedOrderSetCountryAction | StagedOrderSetCustomFieldAction | StagedOrderSetCustomLineItemCustomFieldAction | StagedOrderSetCustomLineItemCustomTypeAction | StagedOrderSetCustomLineItemShippingDetailsAction | StagedOrderSetCustomLineItemTaxAmountAction | StagedOrderSetCustomLineItemTaxRateAction | StagedOrderSetCustomShippingMethodAction | StagedOrderSetCustomTypeAction | StagedOrderSetCustomerEmailAction | StagedOrderSetCustomerGroupAction | StagedOrderSetCustomerIdAction | StagedOrderSetDeliveryAddressAction | StagedOrderSetDeliveryAddressCustomFieldAction | StagedOrderSetDeliveryAddressCustomTypeAction | StagedOrderSetDeliveryItemsAction | StagedOrderSetItemShippingAddressCustomFieldAction | StagedOrderSetItemShippingAddressCustomTypeAction | StagedOrderSetLineItemCustomFieldAction | StagedOrderSetLineItemCustomTypeAction | StagedOrderSetLineItemDistributionChannelAction | StagedOrderSetLineItemPriceAction | StagedOrderSetLineItemShippingDetailsAction | StagedOrderSetLineItemTaxAmountAction | StagedOrderSetLineItemTaxRateAction | StagedOrderSetLineItemTotalPriceAction | StagedOrderSetLocaleAction | StagedOrderSetOrderNumberAction | StagedOrderSetOrderTotalTaxAction | StagedOrderSetParcelItemsAction | StagedOrderSetParcelMeasurementsAction | StagedOrderSetParcelTrackingDataAction | StagedOrderSetReturnInfoAction | StagedOrderSetReturnPaymentStateAction | StagedOrderSetReturnShipmentStateAction | StagedOrderSetShippingAddressAction | StagedOrderSetShippingAddressAndCustomShippingMethodAction | StagedOrderSetShippingAddressAndShippingMethodAction | StagedOrderSetShippingAddressCustomFieldAction | StagedOrderSetShippingAddressCustomTypeAction | StagedOrderSetShippingMethodAction | StagedOrderSetShippingMethodTaxAmountAction | StagedOrderSetShippingMethodTaxRateAction | StagedOrderSetShippingRateInputAction | StagedOrderTransitionCustomLineItemStateAction | StagedOrderTransitionLineItemStateAction | StagedOrderTransitionStateAction | StagedOrderUpdateItemShippingAddressAction | StagedOrderUpdateSyncInfoAction; | ||
export declare type StagedOrderUpdateAction = StagedOrderAddCustomLineItemAction | StagedOrderAddDeliveryAction | StagedOrderAddDiscountCodeAction | StagedOrderAddItemShippingAddressAction | StagedOrderAddLineItemAction | StagedOrderAddParcelToDeliveryAction | StagedOrderAddPaymentAction | StagedOrderAddReturnInfoAction | StagedOrderAddShoppingListAction | StagedOrderChangeCustomLineItemMoneyAction | StagedOrderChangeCustomLineItemQuantityAction | StagedOrderChangeLineItemQuantityAction | StagedOrderChangeOrderStateAction | StagedOrderChangePaymentStateAction | StagedOrderChangeShipmentStateAction | StagedOrderChangeTaxCalculationModeAction | StagedOrderChangeTaxModeAction | StagedOrderChangeTaxRoundingModeAction | StagedOrderImportCustomLineItemStateAction | StagedOrderImportLineItemStateAction | StagedOrderRemoveCustomLineItemAction | StagedOrderRemoveDeliveryAction | StagedOrderRemoveDiscountCodeAction | StagedOrderRemoveItemShippingAddressAction | StagedOrderRemoveLineItemAction | StagedOrderRemoveParcelFromDeliveryAction | StagedOrderRemovePaymentAction | StagedOrderSetBillingAddressAction | StagedOrderSetBillingAddressCustomFieldAction | StagedOrderSetBillingAddressCustomTypeAction | StagedOrderSetCountryAction | StagedOrderSetCustomFieldAction | StagedOrderSetCustomLineItemCustomFieldAction | StagedOrderSetCustomLineItemCustomTypeAction | StagedOrderSetCustomLineItemShippingDetailsAction | StagedOrderSetCustomLineItemTaxAmountAction | StagedOrderSetCustomLineItemTaxRateAction | StagedOrderSetCustomShippingMethodAction | StagedOrderSetCustomTypeAction | StagedOrderSetCustomerEmailAction | StagedOrderSetCustomerGroupAction | StagedOrderSetCustomerIdAction | StagedOrderSetDeliveryAddressAction | StagedOrderSetDeliveryAddressCustomFieldAction | StagedOrderSetDeliveryAddressCustomTypeAction | StagedOrderSetDeliveryCustomFieldAction | StagedOrderSetDeliveryCustomTypeAction | StagedOrderSetDeliveryItemsAction | StagedOrderSetItemShippingAddressCustomFieldAction | StagedOrderSetItemShippingAddressCustomTypeAction | StagedOrderSetLineItemCustomFieldAction | StagedOrderSetLineItemCustomTypeAction | StagedOrderSetLineItemDistributionChannelAction | StagedOrderSetLineItemPriceAction | StagedOrderSetLineItemShippingDetailsAction | StagedOrderSetLineItemTaxAmountAction | StagedOrderSetLineItemTaxRateAction | StagedOrderSetLineItemTotalPriceAction | StagedOrderSetLocaleAction | StagedOrderSetOrderNumberAction | StagedOrderSetOrderTotalTaxAction | StagedOrderSetParcelItemsAction | StagedOrderSetParcelMeasurementsAction | StagedOrderSetParcelTrackingDataAction | StagedOrderSetReturnInfoAction | StagedOrderSetReturnPaymentStateAction | StagedOrderSetReturnShipmentStateAction | StagedOrderSetShippingAddressAction | StagedOrderSetShippingAddressAndCustomShippingMethodAction | StagedOrderSetShippingAddressAndShippingMethodAction | StagedOrderSetShippingAddressCustomFieldAction | StagedOrderSetShippingAddressCustomTypeAction | StagedOrderSetShippingMethodAction | StagedOrderSetShippingMethodTaxAmountAction | StagedOrderSetShippingMethodTaxRateAction | StagedOrderSetShippingRateInputAction | StagedOrderTransitionCustomLineItemStateAction | StagedOrderTransitionLineItemStateAction | StagedOrderTransitionStateAction | StagedOrderUpdateItemShippingAddressAction | StagedOrderUpdateSyncInfoAction; | ||
export interface Hit { | ||
/** | ||
* Unique ID of the Order. | ||
* | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Current version of the Order. | ||
* | ||
*/ | ||
readonly version: number; | ||
/** | ||
* The higher the value is, the more relevant the hit is for the search request. | ||
* | ||
*/ | ||
readonly relevance: number; | ||
} | ||
export interface OrderPagedSearchResponse { | ||
/** | ||
* Total number of results matching the query. | ||
* | ||
*/ | ||
readonly total: number; | ||
/** | ||
* Number of results skipped, used for pagination. | ||
* | ||
*/ | ||
readonly offset?: number; | ||
/** | ||
* Number of results the response should contain at maximum, used for pagination. | ||
* | ||
*/ | ||
readonly limit?: number; | ||
/** | ||
* Actual results. | ||
* | ||
*/ | ||
readonly hits: Hit[]; | ||
} | ||
export interface Delivery { | ||
@@ -45,2 +84,7 @@ /** | ||
readonly address?: Address; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -528,2 +572,24 @@ export interface DeliveryItem { | ||
} | ||
export interface OrderSearchRequest { | ||
/** | ||
* The Order search query. | ||
* | ||
*/ | ||
readonly query: string; | ||
/** | ||
* Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order. | ||
* | ||
*/ | ||
readonly sort?: string; | ||
/** | ||
* The maximum number of search results to be returned. | ||
* | ||
*/ | ||
readonly limit?: number; | ||
/** | ||
* The number of search results to be skipped in the response for pagination. | ||
* | ||
*/ | ||
readonly offset?: number; | ||
} | ||
export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open'; | ||
@@ -540,3 +606,3 @@ export interface OrderUpdate { | ||
} | ||
export declare type OrderUpdateAction = OrderAddDeliveryAction | OrderAddItemShippingAddressAction | OrderAddParcelToDeliveryAction | OrderAddPaymentAction | OrderAddReturnInfoAction | OrderChangeOrderStateAction | OrderChangePaymentStateAction | OrderChangeShipmentStateAction | OrderImportCustomLineItemStateAction | OrderImportLineItemStateAction | OrderRemoveDeliveryAction | OrderRemoveItemShippingAddressAction | OrderRemoveParcelFromDeliveryAction | OrderRemovePaymentAction | OrderSetBillingAddressAction | OrderSetBillingAddressCustomFieldAction | OrderSetBillingAddressCustomTypeAction | OrderSetCustomFieldAction | OrderSetCustomLineItemCustomFieldAction | OrderSetCustomLineItemCustomTypeAction | OrderSetCustomLineItemShippingDetailsAction | OrderSetCustomTypeAction | OrderSetCustomerEmailAction | OrderSetCustomerIdAction | OrderSetDeliveryAddressAction | OrderSetDeliveryAddressCustomFieldAction | OrderSetDeliveryAddressCustomTypeAction | OrderSetDeliveryItemsAction | OrderSetItemShippingAddressCustomFieldAction | OrderSetItemShippingAddressCustomTypeAction | OrderSetLineItemCustomFieldAction | OrderSetLineItemCustomTypeAction | OrderSetLineItemShippingDetailsAction | OrderSetLocaleAction | OrderSetOrderNumberAction | OrderSetParcelItemsAction | OrderSetParcelMeasurementsAction | OrderSetParcelTrackingDataAction | OrderSetReturnInfoAction | OrderSetReturnPaymentStateAction | OrderSetReturnShipmentStateAction | OrderSetShippingAddressAction | OrderSetShippingAddressCustomFieldAction | OrderSetShippingAddressCustomTypeAction | OrderSetStoreAction | OrderTransitionCustomLineItemStateAction | OrderTransitionLineItemStateAction | OrderTransitionStateAction | OrderUpdateItemShippingAddressAction | OrderUpdateSyncInfoAction; | ||
export declare type OrderUpdateAction = OrderAddDeliveryAction | OrderAddItemShippingAddressAction | OrderAddParcelToDeliveryAction | OrderAddPaymentAction | OrderAddReturnInfoAction | OrderChangeOrderStateAction | OrderChangePaymentStateAction | OrderChangeShipmentStateAction | OrderImportCustomLineItemStateAction | OrderImportLineItemStateAction | OrderRemoveDeliveryAction | OrderRemoveItemShippingAddressAction | OrderRemoveParcelFromDeliveryAction | OrderRemovePaymentAction | OrderSetBillingAddressAction | OrderSetBillingAddressCustomFieldAction | OrderSetBillingAddressCustomTypeAction | OrderSetCustomFieldAction | OrderSetCustomLineItemCustomFieldAction | OrderSetCustomLineItemCustomTypeAction | OrderSetCustomLineItemShippingDetailsAction | OrderSetCustomTypeAction | OrderSetCustomerEmailAction | OrderSetCustomerIdAction | OrderSetDeliveryAddressAction | OrderSetDeliveryAddressCustomFieldAction | OrderSetDeliveryAddressCustomTypeAction | OrderSetDeliveryCustomFieldAction | OrderSetDeliveryCustomTypeAction | OrderSetDeliveryItemsAction | OrderSetItemShippingAddressCustomFieldAction | OrderSetItemShippingAddressCustomTypeAction | OrderSetLineItemCustomFieldAction | OrderSetLineItemCustomTypeAction | OrderSetLineItemShippingDetailsAction | OrderSetLocaleAction | OrderSetOrderNumberAction | OrderSetParcelItemsAction | OrderSetParcelMeasurementsAction | OrderSetParcelTrackingDataAction | OrderSetReturnInfoAction | OrderSetReturnPaymentStateAction | OrderSetReturnShipmentStateAction | OrderSetShippingAddressAction | OrderSetShippingAddressCustomFieldAction | OrderSetShippingAddressCustomTypeAction | OrderSetStoreAction | OrderTransitionCustomLineItemStateAction | OrderTransitionLineItemStateAction | OrderTransitionStateAction | OrderUpdateItemShippingAddressAction | OrderUpdateSyncInfoAction; | ||
export interface Parcel { | ||
@@ -871,2 +937,7 @@ /** | ||
readonly parcels?: ParcelDraft[]; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -1139,2 +1210,24 @@ export interface OrderAddItemShippingAddressAction { | ||
} | ||
export interface OrderSetDeliveryCustomFieldAction { | ||
readonly action: 'setDeliveryCustomField'; | ||
/** | ||
* | ||
*/ | ||
readonly name: string; | ||
/** | ||
* | ||
*/ | ||
readonly value?: any; | ||
} | ||
export interface OrderSetDeliveryCustomTypeAction { | ||
readonly action: 'setDeliveryCustomType'; | ||
/** | ||
* | ||
*/ | ||
readonly type?: TypeResourceIdentifier; | ||
/** | ||
* | ||
*/ | ||
readonly fields?: FieldContainer; | ||
} | ||
export interface OrderSetDeliveryItemsAction { | ||
@@ -1141,0 +1234,0 @@ readonly action: 'setDeliveryItems'; |
@@ -299,3 +299,3 @@ /** | ||
} | ||
export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction | PaymentSetAmountPaidAction | PaymentSetAmountRefundedAction | PaymentSetAnonymousIdAction | PaymentSetAuthorizationAction | PaymentSetCustomFieldAction | PaymentSetCustomTypeAction | PaymentSetCustomerAction | PaymentSetExternalIdAction | PaymentSetInterfaceIdAction | PaymentSetKeyAction | PaymentSetMethodInfoInterfaceAction | PaymentSetMethodInfoMethodAction | PaymentSetMethodInfoNameAction | PaymentSetStatusInterfaceCodeAction | PaymentSetStatusInterfaceTextAction | PaymentTransitionStateAction; | ||
export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction | PaymentSetAmountPaidAction | PaymentSetAmountRefundedAction | PaymentSetAnonymousIdAction | PaymentSetAuthorizationAction | PaymentSetCustomFieldAction | PaymentSetCustomTypeAction | PaymentSetCustomerAction | PaymentSetExternalIdAction | PaymentSetInterfaceIdAction | PaymentSetKeyAction | PaymentSetMethodInfoInterfaceAction | PaymentSetMethodInfoMethodAction | PaymentSetMethodInfoNameAction | PaymentSetStatusInterfaceCodeAction | PaymentSetStatusInterfaceTextAction | PaymentSetTransactionCustomFieldAction | PaymentSetTransactionCustomTypeAction | PaymentTransitionStateAction; | ||
export interface Transaction { | ||
@@ -332,2 +332,7 @@ /** | ||
readonly state?: TransactionState; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -361,2 +366,7 @@ export interface TransactionDraft { | ||
readonly state?: TransactionState; | ||
/** | ||
* Custom Fields for the Transaction. | ||
* | ||
*/ | ||
readonly custom?: CustomFields; | ||
} | ||
@@ -551,2 +561,27 @@ export declare type TransactionState = 'Failure' | 'Initial' | 'Pending' | 'Success'; | ||
} | ||
export interface PaymentSetTransactionCustomFieldAction { | ||
readonly action: 'setTransactionCustomField'; | ||
/** | ||
* | ||
*/ | ||
readonly name: string; | ||
/** | ||
* | ||
*/ | ||
readonly value?: any; | ||
} | ||
export interface PaymentSetTransactionCustomTypeAction { | ||
readonly action: 'setTransactionCustomType'; | ||
/** | ||
* If set, the custom type is set to this new value. | ||
* If absent, the custom type and any existing custom fields are removed. | ||
* | ||
*/ | ||
readonly type?: TypeResourceIdentifier; | ||
/** | ||
* Sets the custom fields to this value. | ||
* | ||
*/ | ||
readonly fields?: FieldContainer; | ||
} | ||
export interface PaymentTransitionStateAction { | ||
@@ -553,0 +588,0 @@ readonly action: 'transitionState'; |
@@ -31,2 +31,6 @@ /** | ||
} | ||
/** | ||
* Activated indicates that the Order Search feature is active. Deactivated means that the namely feature is currently configured to be inactive. | ||
*/ | ||
export declare type OrderSearchStatus = 'Activated' | 'Deactivated'; | ||
export interface Project { | ||
@@ -106,8 +110,14 @@ /** | ||
} | ||
export declare type ProjectUpdateAction = ProjectChangeCartsConfiguration | ProjectChangeCountriesAction | ProjectChangeCountryTaxRateFallbackEnabledAction | ProjectChangeCurrenciesAction | ProjectChangeLanguagesAction | ProjectChangeMessagesConfigurationAction | ProjectChangeMessagesEnabledAction | ProjectChangeNameAction | ProjectChangeProductSearchIndexingEnabledAction | ProjectChangeShoppingListsConfiguration | ProjectSetExternalOAuthAction | ProjectSetShippingRateInputTypeAction; | ||
export declare type ProjectUpdateAction = ProjectChangeCartsConfigurationAction | ProjectChangeCountriesAction | ProjectChangeCountryTaxRateFallbackEnabledAction | ProjectChangeCurrenciesAction | ProjectChangeLanguagesAction | ProjectChangeMessagesConfigurationAction | ProjectChangeMessagesEnabledAction | ProjectChangeNameAction | ProjectChangeOrderSearchStatusAction | ProjectChangeProductSearchIndexingEnabledAction | ProjectChangeShoppingListsConfigurationAction | ProjectSetExternalOAuthAction | ProjectSetShippingRateInputTypeAction; | ||
export interface SearchIndexingConfiguration { | ||
/** | ||
* Configuration for endpoints serving indexed [Product](ctp:api:type:Product) information. | ||
* | ||
*/ | ||
readonly products?: SearchIndexingConfigurationValues; | ||
/** | ||
* Configuration for the [Order Search](/../api/projects/order-search) feature. | ||
* | ||
*/ | ||
readonly orders?: SearchIndexingConfigurationValues; | ||
} | ||
@@ -156,3 +166,3 @@ /** | ||
} | ||
export interface ProjectChangeCartsConfiguration { | ||
export interface ProjectChangeCartsConfigurationAction { | ||
readonly action: 'changeCartsConfiguration'; | ||
@@ -217,2 +227,10 @@ /** | ||
} | ||
export interface ProjectChangeOrderSearchStatusAction { | ||
readonly action: 'changeOrderSearchStatus'; | ||
/** | ||
* Activated indicates that the Order Search feature is active. Deactivated means that the namely feature is currently configured to be inactive. | ||
* | ||
*/ | ||
readonly status: OrderSearchStatus; | ||
} | ||
export interface ProjectChangeProductSearchIndexingEnabledAction { | ||
@@ -225,3 +243,3 @@ readonly action: 'changeProductSearchIndexingEnabled'; | ||
} | ||
export interface ProjectChangeShoppingListsConfiguration { | ||
export interface ProjectChangeShoppingListsConfigurationAction { | ||
readonly action: 'changeShoppingListsConfiguration'; | ||
@@ -228,0 +246,0 @@ /** |
@@ -9,1 +9,3 @@ /** | ||
export declare type Sort = string; | ||
export declare type OrderSearchQuery = string; | ||
export declare type OrderSearchSorting = string; |
@@ -25,3 +25,3 @@ /** | ||
} | ||
export declare type Destination = AzureEventGridDestination | AzureServiceBusDestination | GoogleCloudPubSubDestination | IronMqDestination | SnsDestination | SqsDestination; | ||
export declare type Destination = AzureEventGridDestination | AzureServiceBusDestination | EventBridgeDestination | GoogleCloudPubSubDestination | IronMqDestination | SnsDestination | SqsDestination; | ||
export interface AzureEventGridDestination { | ||
@@ -45,2 +45,19 @@ readonly type: 'EventGrid'; | ||
} | ||
/** | ||
* [AWS EventBridge](https://aws.amazon.com/eventbridge/) can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules. | ||
* | ||
*/ | ||
export interface EventBridgeDestination { | ||
readonly type: 'EventBridge'; | ||
/** | ||
* AWS region to which commercetools sends the events. | ||
* | ||
*/ | ||
readonly region: string; | ||
/** | ||
* ID of the AWS account that receives events from the commercetools platform. | ||
* | ||
*/ | ||
readonly accountId: string; | ||
} | ||
export interface GoogleCloudPubSubDestination { | ||
@@ -47,0 +64,0 @@ readonly type: 'GoogleCloudPubSub'; |
@@ -7,3 +7,3 @@ { | ||
"name": "@commercetools/platform-sdk", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Typescript definitions and sdk for commercetools platform", | ||
@@ -27,3 +27,3 @@ "keywords": ["commercetools", "typescript", "sdk"], | ||
"dependencies": { | ||
"@commercetools/sdk-client-v2": "^1.0.0", | ||
"@commercetools/sdk-client-v2": "^1.0.1", | ||
"@commercetools/sdk-middleware-auth": "^6.0.4", | ||
@@ -30,0 +30,0 @@ "@commercetools/sdk-middleware-http": "^6.0.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2462447
205
67809