@commercetools/history-sdk 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/commercetools-history-sdk.browser.cjs.js +9 -0
- package/dist/commercetools-history-sdk.browser.esm.js +9 -0
- package/dist/commercetools-history-sdk.cjs.dev.js +9 -0
- package/dist/commercetools-history-sdk.cjs.prod.js +9 -0
- package/dist/commercetools-history-sdk.esm.js +9 -0
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-by-id-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/by-project-key-by-resource-type-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +2 -0
- package/dist/declarations/src/generated/models/change-history.d.ts +1 -1
- package/dist/declarations/src/generated/models/change.d.ts +208 -2
- package/dist/declarations/src/generated/models/common.d.ts +16 -2
- package/dist/declarations/src/generated/models/label.d.ts +47 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @commercetools/history-sdk
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#291](https://github.com/commercetools/commercetools-sdk-typescript/pull/291) [`cde61f4`](https://github.com/commercetools/commercetools-sdk-typescript/commit/cde61f45563970ca1648496198268976e4f83d8e) Thanks [@github-actions](https://github.com/apps/github-actions)! - ### History API
|
|
8
|
+
|
|
9
|
+
- add support for quotes
|
|
10
|
+
- add support for authentication mode
|
|
11
|
+
- add product selection support
|
|
12
|
+
|
|
13
|
+
### Import API
|
|
14
|
+
|
|
15
|
+
- add support for inventory imports
|
|
16
|
+
- remove import sink endpoints
|
|
17
|
+
|
|
18
|
+
### Platform API
|
|
19
|
+
|
|
20
|
+
- add support for quotes
|
|
21
|
+
- fix localeProjection query parameter type
|
|
22
|
+
- add missing query parameters to product selection assigment
|
|
23
|
+
- add HEAD request to product types
|
|
24
|
+
- add DeliveryDraft model
|
|
25
|
+
- removed deprecated fields from Payment models
|
|
26
|
+
|
|
3
27
|
## 2.5.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -104,6 +104,9 @@ class ApiRequest {
|
|
|
104
104
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
105
105
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
106
106
|
*/
|
|
107
|
+
/**
|
|
108
|
+
**/
|
|
109
|
+
|
|
107
110
|
class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
108
111
|
constructor(args) {
|
|
109
112
|
this.args = args;
|
|
@@ -128,6 +131,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
128
131
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
129
132
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
130
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
**/
|
|
136
|
+
|
|
131
137
|
class ByProjectKeyByResourceTypeRequestBuilder {
|
|
132
138
|
constructor(args) {
|
|
133
139
|
this.args = args;
|
|
@@ -162,6 +168,9 @@ class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
162
168
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
163
169
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
164
170
|
*/
|
|
171
|
+
/**
|
|
172
|
+
**/
|
|
173
|
+
|
|
165
174
|
class ByProjectKeyRequestBuilder {
|
|
166
175
|
constructor(args) {
|
|
167
176
|
this.args = args;
|
|
@@ -100,6 +100,9 @@ class ApiRequest {
|
|
|
100
100
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
101
101
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
102
102
|
*/
|
|
103
|
+
/**
|
|
104
|
+
**/
|
|
105
|
+
|
|
103
106
|
class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
104
107
|
constructor(args) {
|
|
105
108
|
this.args = args;
|
|
@@ -124,6 +127,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
124
127
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
125
128
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
126
129
|
*/
|
|
130
|
+
/**
|
|
131
|
+
**/
|
|
132
|
+
|
|
127
133
|
class ByProjectKeyByResourceTypeRequestBuilder {
|
|
128
134
|
constructor(args) {
|
|
129
135
|
this.args = args;
|
|
@@ -158,6 +164,9 @@ class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
158
164
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
159
165
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
160
166
|
*/
|
|
167
|
+
/**
|
|
168
|
+
**/
|
|
169
|
+
|
|
161
170
|
class ByProjectKeyRequestBuilder {
|
|
162
171
|
constructor(args) {
|
|
163
172
|
this.args = args;
|
|
@@ -104,6 +104,9 @@ class ApiRequest {
|
|
|
104
104
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
105
105
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
106
106
|
*/
|
|
107
|
+
/**
|
|
108
|
+
**/
|
|
109
|
+
|
|
107
110
|
class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
108
111
|
constructor(args) {
|
|
109
112
|
this.args = args;
|
|
@@ -128,6 +131,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
128
131
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
129
132
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
130
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
**/
|
|
136
|
+
|
|
131
137
|
class ByProjectKeyByResourceTypeRequestBuilder {
|
|
132
138
|
constructor(args) {
|
|
133
139
|
this.args = args;
|
|
@@ -162,6 +168,9 @@ class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
162
168
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
163
169
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
164
170
|
*/
|
|
171
|
+
/**
|
|
172
|
+
**/
|
|
173
|
+
|
|
165
174
|
class ByProjectKeyRequestBuilder {
|
|
166
175
|
constructor(args) {
|
|
167
176
|
this.args = args;
|
|
@@ -104,6 +104,9 @@ class ApiRequest {
|
|
|
104
104
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
105
105
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
106
106
|
*/
|
|
107
|
+
/**
|
|
108
|
+
**/
|
|
109
|
+
|
|
107
110
|
class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
108
111
|
constructor(args) {
|
|
109
112
|
this.args = args;
|
|
@@ -128,6 +131,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
128
131
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
129
132
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
130
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
**/
|
|
136
|
+
|
|
131
137
|
class ByProjectKeyByResourceTypeRequestBuilder {
|
|
132
138
|
constructor(args) {
|
|
133
139
|
this.args = args;
|
|
@@ -162,6 +168,9 @@ class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
162
168
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
163
169
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
164
170
|
*/
|
|
171
|
+
/**
|
|
172
|
+
**/
|
|
173
|
+
|
|
165
174
|
class ByProjectKeyRequestBuilder {
|
|
166
175
|
constructor(args) {
|
|
167
176
|
this.args = args;
|
|
@@ -100,6 +100,9 @@ class ApiRequest {
|
|
|
100
100
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
101
101
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
102
102
|
*/
|
|
103
|
+
/**
|
|
104
|
+
**/
|
|
105
|
+
|
|
103
106
|
class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
104
107
|
constructor(args) {
|
|
105
108
|
this.args = args;
|
|
@@ -124,6 +127,9 @@ class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
|
124
127
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
125
128
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
126
129
|
*/
|
|
130
|
+
/**
|
|
131
|
+
**/
|
|
132
|
+
|
|
127
133
|
class ByProjectKeyByResourceTypeRequestBuilder {
|
|
128
134
|
constructor(args) {
|
|
129
135
|
this.args = args;
|
|
@@ -158,6 +164,9 @@ class ByProjectKeyByResourceTypeRequestBuilder {
|
|
|
158
164
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
159
165
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
160
166
|
*/
|
|
167
|
+
/**
|
|
168
|
+
**/
|
|
169
|
+
|
|
161
170
|
class ByProjectKeyRequestBuilder {
|
|
162
171
|
constructor(args) {
|
|
163
172
|
this.args = args;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
import { PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/change-history';
|
|
7
7
|
import { executeRequest, QueryParam } from '../shared/utils/common-types';
|
|
8
8
|
import { ApiRequest } from '../shared/utils/requests-utils';
|
|
9
|
+
/**
|
|
10
|
+
**/
|
|
9
11
|
export declare class ByProjectKeyByResourceTypeByIDRequestBuilder {
|
|
10
12
|
protected readonly args: {
|
|
11
13
|
pathArgs: {
|
package/dist/declarations/src/generated/client/by-project-key-by-resource-type-request-builder.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/cha
|
|
|
7
7
|
import { executeRequest, QueryParam } from '../shared/utils/common-types';
|
|
8
8
|
import { ApiRequest } from '../shared/utils/requests-utils';
|
|
9
9
|
import { ByProjectKeyByResourceTypeByIDRequestBuilder } from './by-project-key-by-resource-type-by-id-request-builder';
|
|
10
|
+
/**
|
|
11
|
+
**/
|
|
10
12
|
export declare class ByProjectKeyByResourceTypeRequestBuilder {
|
|
11
13
|
protected readonly args: {
|
|
12
14
|
pathArgs: {
|
|
@@ -7,6 +7,8 @@ import { ChangeHistoryResourceType, PlatformInitiatedChange, RecordPagedQueryRes
|
|
|
7
7
|
import { executeRequest, QueryParam } from '../shared/utils/common-types';
|
|
8
8
|
import { ApiRequest } from '../shared/utils/requests-utils';
|
|
9
9
|
import { ByProjectKeyByResourceTypeRequestBuilder } from './by-project-key-by-resource-type-request-builder';
|
|
10
|
+
/**
|
|
11
|
+
**/
|
|
10
12
|
export declare class ByProjectKeyRequestBuilder {
|
|
11
13
|
protected readonly args: {
|
|
12
14
|
pathArgs: {
|
|
@@ -114,7 +114,7 @@ export interface RecordPagedQueryResponse {
|
|
|
114
114
|
* The value must be one of the following:
|
|
115
115
|
*
|
|
116
116
|
*/
|
|
117
|
-
export declare type ChangeHistoryResourceType = 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'inventory-entry' | 'key-value-document' | 'order' | 'payment' | 'product' | 'product-discount' | 'product-type' | 'review' | 'shopping-list' | 'state' | 'store' | 'tax-category' | 'type' | 'zone';
|
|
117
|
+
export declare type ChangeHistoryResourceType = 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'inventory-entry' | 'key-value-document' | 'order' | 'payment' | 'product' | 'product-discount' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shopping-list' | 'staged-quote' | 'state' | 'store' | 'tax-category' | 'type' | 'zone';
|
|
118
118
|
/**
|
|
119
119
|
* This type consists of one enum value:
|
|
120
120
|
*
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
6
|
import { AssetChangeValue, AttributeValue, ChangeTargetChangeValue, ChangeValueChangeValue, CustomFieldExpandedValue, CustomShippingMethodChangeValue, DeliveryChangeValue, EnumValue, FieldDefinitionOrderValue, InventoryQuantityValue, LocalizedEnumValue, ParcelChangeValue, SetCartClassificationShippingRateInputValue, SetCartScoreShippingRateInputValue, ShippingMethodChangeValue, ShippingMethodTaxAmountChangeValue, ShoppingListLineItemValue, TextLineItemValue, TransactionChangeValue, ValidFromAndUntilValue } from './change-value';
|
|
7
|
-
import { Address, Asset, AssetSource, AttributeConstraintEnum, AttributeDefinition, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, ItemShippingDetails, ItemState, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Price, ProductVariantAvailability, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StateRole, StateType, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from './common';
|
|
8
|
-
export declare type Change = AddAddressChange | AddAssetChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAttributeConstraintChange | ChangeAttributeOrderByNameChange | ChangeCartDiscountsChange | ChangeCartPredicateChange | ChangeCustomLineItemQuantityChange | ChangeDescriptionChange | ChangeEmailChange | ChangeEnumValueLabelChange | ChangeEnumValueOrderChange | ChangeFieldDefinitionOrderChange | ChangeGroupsChange | ChangeInitialChange | ChangeInputHintChange | ChangeIsActiveChange | ChangeIsSearchableChange | ChangeKeyChange | ChangeLabelChange | ChangeLineItemQuantityChange | ChangeLocalizedDescriptionChange | ChangeLocalizedEnumValueLabelChange | ChangeLocalizedEnumValueOrderChange | ChangeLocalizedNameChange | ChangeMasterVariantChange | ChangeNameChange | ChangeOrderHintChange | ChangeOrderStateChange | ChangeParentChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeQuantityChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStateTypeChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | SetAddressChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetCountryChange | SetCustomFieldChange | SetCustomLineItemCustomFieldChange | SetCustomLineItemCustomTypeChange | SetCustomLineItemMoneyChange | SetCustomLineItemShippingDetailsChange | SetCustomLineItemTaxAmountChange | SetCustomLineItemTaxCategoryChange | SetCustomLineItemTaxRateChange | SetCustomLineItemTaxedPriceChange | SetCustomLineItemTotalPriceChange | SetCustomShippingMethodChange | SetCustomTypeChange | SetCustomerChange | SetCustomerEmailChange | SetCustomerGroupChange | SetCustomerIdChange | SetCustomerNumberChange | SetDateOfBirthChange | SetDefaultBillingAddressChange | SetDefaultShippingAddressChange | SetDeleteDaysAfterLastModificationChange | SetDeliveryAddressChange | SetDeliveryItemsChange | SetDescriptionChange | SetDiscountedPriceChange | SetDistributionChannelsChange | SetExpectedDeliveryChange | SetExternalIdChange | SetFirstNameChange | SetGeoLocationChange | SetImageLabelChange | SetInputTipChange | SetInterfaceIdChange | SetIsValidChange | SetKeyChange | SetLanguagesChange | SetLastNameChange | SetLineItemDiscountedPriceChange | SetLineItemDiscountedPricePerQuantityChange | SetLineItemDistributionChannelChange | SetLineItemPriceChange | SetLineItemProductSlugChange | SetLineItemShippingDetailsChange | SetLineItemTaxAmountChange | SetLineItemTaxRateChange | SetLineItemTaxedPriceChange | SetLineItemTotalPriceChange | SetLocaleChange | SetLocalizedDescriptionChange | SetMaxApplicationsChange | SetMaxApplicationsPerCustomerChange | SetMetaDescriptionChange | SetMetaKeywordsChange | SetMetaTitleChange | SetMethodInfoInterfaceChange | SetMethodInfoMethodChange | SetMethodInfoNameChange | SetMiddleNameChange | SetNameChange | SetOrderLineItemCustomFieldChange | SetOrderLineItemCustomTypeChange | SetOrderNumberChange | SetOrderTaxedPriceChange | SetOrderTotalPriceChange | SetOrderTotalTaxChange | SetParcelItemsChange | SetParcelMeasurementsChange | SetParcelTrackingDataChange | SetPricesChange | SetProductPriceCustomFieldChange | SetProductPriceCustomTypeChange | SetProductVariantKeyChange | SetPropertyChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
|
|
7
|
+
import { Address, Asset, AssetSource, AttributeConstraintEnum, AttributeDefinition, AuthenticationMode, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, ItemShippingDetails, ItemState, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Price, ProductSelectionSetting, ProductVariantAvailability, QuoteRequestState, QuoteState, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StagedQuoteState, StateRole, StateType, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from './common';
|
|
8
|
+
export declare type Change = AddAddressChange | AddAssetChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddProductChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAttributeConstraintChange | ChangeAttributeOrderByNameChange | ChangeCartDiscountsChange | ChangeCartPredicateChange | ChangeCustomLineItemQuantityChange | ChangeDescriptionChange | ChangeEmailChange | ChangeEnumValueLabelChange | ChangeEnumValueOrderChange | ChangeFieldDefinitionOrderChange | ChangeGroupsChange | ChangeInitialChange | ChangeInputHintChange | ChangeIsActiveChange | ChangeIsSearchableChange | ChangeKeyChange | ChangeLabelChange | ChangeLineItemQuantityChange | ChangeLocalizedDescriptionChange | ChangeLocalizedEnumValueLabelChange | ChangeLocalizedEnumValueOrderChange | ChangeLocalizedNameChange | ChangeMasterVariantChange | ChangeNameChange | ChangeOrderHintChange | ChangeOrderStateChange | ChangeParentChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeQuantityChange | ChangeQuoteRequestStateChange | ChangeQuoteStateChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStagedQuoteStateChange | ChangeStateTypeChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemoveProductChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | SetAddressChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthenticationModeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetCountryChange | SetCustomFieldChange | SetCustomLineItemCustomFieldChange | SetCustomLineItemCustomTypeChange | SetCustomLineItemMoneyChange | SetCustomLineItemShippingDetailsChange | SetCustomLineItemTaxAmountChange | SetCustomLineItemTaxCategoryChange | SetCustomLineItemTaxRateChange | SetCustomLineItemTaxedPriceChange | SetCustomLineItemTotalPriceChange | SetCustomShippingMethodChange | SetCustomTypeChange | SetCustomerChange | SetCustomerEmailChange | SetCustomerGroupChange | SetCustomerIdChange | SetCustomerNumberChange | SetDateOfBirthChange | SetDefaultBillingAddressChange | SetDefaultShippingAddressChange | SetDeleteDaysAfterLastModificationChange | SetDeliveryAddressChange | SetDeliveryItemsChange | SetDescriptionChange | SetDiscountedPriceChange | SetDistributionChannelsChange | SetExpectedDeliveryChange | SetExternalIdChange | SetFirstNameChange | SetGeoLocationChange | SetImageLabelChange | SetInputTipChange | SetInterfaceIdChange | SetIsValidChange | SetKeyChange | SetLanguagesChange | SetLastNameChange | SetLineItemDeactivatedAtChange | SetLineItemDiscountedPriceChange | SetLineItemDiscountedPricePerQuantityChange | SetLineItemDistributionChannelChange | SetLineItemPriceChange | SetLineItemProductKeyChange | SetLineItemProductSlugChange | SetLineItemShippingDetailsChange | SetLineItemTaxAmountChange | SetLineItemTaxRateChange | SetLineItemTaxedPriceChange | SetLineItemTotalPriceChange | SetLocaleChange | SetLocalizedDescriptionChange | SetMaxApplicationsChange | SetMaxApplicationsPerCustomerChange | SetMetaDescriptionChange | SetMetaKeywordsChange | SetMetaTitleChange | SetMethodInfoInterfaceChange | SetMethodInfoMethodChange | SetMethodInfoNameChange | SetMiddleNameChange | SetNameChange | SetOrderLineItemCustomFieldChange | SetOrderLineItemCustomTypeChange | SetOrderNumberChange | SetOrderTaxedPriceChange | SetOrderTotalPriceChange | SetOrderTotalTaxChange | SetParcelItemsChange | SetParcelMeasurementsChange | SetParcelTrackingDataChange | SetPricesChange | SetProductCountChange | SetProductPriceCustomFieldChange | SetProductPriceCustomTypeChange | SetProductSelectionsChange | SetProductVariantKeyChange | SetPropertyChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetSellerCommentChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidToChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
|
|
9
9
|
export interface AddAddressChange {
|
|
10
10
|
readonly type: 'AddAddressChange';
|
|
11
11
|
/**
|
|
@@ -331,6 +331,18 @@ export interface AddPriceChange {
|
|
|
331
331
|
*/
|
|
332
332
|
readonly nextValue: Price;
|
|
333
333
|
}
|
|
334
|
+
export interface AddProductChange {
|
|
335
|
+
readonly type: 'AddProductChange';
|
|
336
|
+
/**
|
|
337
|
+
* Update action for when a product is assigned to a product selection
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
readonly change: string;
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
readonly nextValue: Reference;
|
|
345
|
+
}
|
|
334
346
|
export interface AddPropertyChange {
|
|
335
347
|
readonly type: 'AddPropertyChange';
|
|
336
348
|
/**
|
|
@@ -1212,6 +1224,42 @@ export interface ChangeQuantityChange {
|
|
|
1212
1224
|
*/
|
|
1213
1225
|
readonly previousValue: InventoryQuantityValue;
|
|
1214
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Update action for `changeQuoteRequestState` on `quote-request`
|
|
1229
|
+
*/
|
|
1230
|
+
export interface ChangeQuoteRequestStateChange {
|
|
1231
|
+
readonly type: 'ChangeQuoteRequestStateChange';
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
*/
|
|
1235
|
+
readonly change: string;
|
|
1236
|
+
/**
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1239
|
+
readonly nextValue: QuoteRequestState;
|
|
1240
|
+
/**
|
|
1241
|
+
*
|
|
1242
|
+
*/
|
|
1243
|
+
readonly previousValue: QuoteRequestState;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Update action for `changeQuoteState` on `quote`
|
|
1247
|
+
*/
|
|
1248
|
+
export interface ChangeQuoteStateChange {
|
|
1249
|
+
readonly type: 'ChangeQuoteStateChange';
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
*/
|
|
1253
|
+
readonly change: string;
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
*/
|
|
1257
|
+
readonly nextValue: QuoteState;
|
|
1258
|
+
/**
|
|
1259
|
+
*
|
|
1260
|
+
*/
|
|
1261
|
+
readonly previousValue: QuoteState;
|
|
1262
|
+
}
|
|
1215
1263
|
export interface ChangeRequiresDiscountCodeChange {
|
|
1216
1264
|
readonly type: 'ChangeRequiresDiscountCodeChange';
|
|
1217
1265
|
/**
|
|
@@ -1342,6 +1390,24 @@ export interface ChangeStackingModeChange {
|
|
|
1342
1390
|
*/
|
|
1343
1391
|
readonly previousValue: StackingMode;
|
|
1344
1392
|
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Update action for `changeStagedQuoteState` on `staged-quote`
|
|
1395
|
+
*/
|
|
1396
|
+
export interface ChangeStagedQuoteStateChange {
|
|
1397
|
+
readonly type: 'ChangeStagedQuoteStateChange';
|
|
1398
|
+
/**
|
|
1399
|
+
*
|
|
1400
|
+
*/
|
|
1401
|
+
readonly change: string;
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
*/
|
|
1405
|
+
readonly nextValue: StagedQuoteState;
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
*/
|
|
1409
|
+
readonly previousValue: StagedQuoteState;
|
|
1410
|
+
}
|
|
1345
1411
|
export interface ChangeStateTypeChange {
|
|
1346
1412
|
readonly type: 'ChangeStateTypeChange';
|
|
1347
1413
|
/**
|
|
@@ -1881,6 +1947,18 @@ export interface RemovePriceChange {
|
|
|
1881
1947
|
*/
|
|
1882
1948
|
readonly nextValue: Price;
|
|
1883
1949
|
}
|
|
1950
|
+
export interface RemoveProductChange {
|
|
1951
|
+
readonly type: 'RemoveProductChange';
|
|
1952
|
+
/**
|
|
1953
|
+
* Update action for when a product is unassigned from a product selection
|
|
1954
|
+
*
|
|
1955
|
+
*/
|
|
1956
|
+
readonly change: string;
|
|
1957
|
+
/**
|
|
1958
|
+
*
|
|
1959
|
+
*/
|
|
1960
|
+
readonly previousValue: Reference;
|
|
1961
|
+
}
|
|
1884
1962
|
export interface RemovePropertyChange {
|
|
1885
1963
|
readonly type: 'RemovePropertyChange';
|
|
1886
1964
|
/**
|
|
@@ -2197,6 +2275,22 @@ export interface SetAttributeChange {
|
|
|
2197
2275
|
*/
|
|
2198
2276
|
readonly nextValue: AttributeValue;
|
|
2199
2277
|
}
|
|
2278
|
+
export interface SetAuthenticationModeChange {
|
|
2279
|
+
readonly type: 'SetAuthenticationModeChange';
|
|
2280
|
+
/**
|
|
2281
|
+
* Update action for `setAuthenticationMode`
|
|
2282
|
+
*
|
|
2283
|
+
*/
|
|
2284
|
+
readonly change: string;
|
|
2285
|
+
/**
|
|
2286
|
+
*
|
|
2287
|
+
*/
|
|
2288
|
+
readonly previousValue: AuthenticationMode;
|
|
2289
|
+
/**
|
|
2290
|
+
*
|
|
2291
|
+
*/
|
|
2292
|
+
readonly nextValue: AuthenticationMode;
|
|
2293
|
+
}
|
|
2200
2294
|
export interface SetAuthorNameChange {
|
|
2201
2295
|
readonly type: 'SetAuthorNameChange';
|
|
2202
2296
|
/**
|
|
@@ -3034,6 +3128,26 @@ export interface SetLastNameChange {
|
|
|
3034
3128
|
*/
|
|
3035
3129
|
readonly nextValue: string;
|
|
3036
3130
|
}
|
|
3131
|
+
export interface SetLineItemDeactivatedAtChange {
|
|
3132
|
+
readonly type: 'SetLineItemDeactivatedAtChange';
|
|
3133
|
+
/**
|
|
3134
|
+
* Update action for `setLineItemDeactivatedAt`
|
|
3135
|
+
*
|
|
3136
|
+
*/
|
|
3137
|
+
readonly change: string;
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
*/
|
|
3141
|
+
readonly lineItem: ShoppingListLineItemValue;
|
|
3142
|
+
/**
|
|
3143
|
+
*
|
|
3144
|
+
*/
|
|
3145
|
+
readonly previousValue: string;
|
|
3146
|
+
/**
|
|
3147
|
+
*
|
|
3148
|
+
*/
|
|
3149
|
+
readonly nextValue: string;
|
|
3150
|
+
}
|
|
3037
3151
|
export interface SetLineItemDiscountedPriceChange {
|
|
3038
3152
|
readonly type: 'SetLineItemDiscountedPriceChange';
|
|
3039
3153
|
/**
|
|
@@ -3126,6 +3240,34 @@ export interface SetLineItemPriceChange {
|
|
|
3126
3240
|
*/
|
|
3127
3241
|
readonly previousValue: Price;
|
|
3128
3242
|
}
|
|
3243
|
+
export interface SetLineItemProductKeyChange {
|
|
3244
|
+
readonly type: 'SetLineItemProductKeyChange';
|
|
3245
|
+
/**
|
|
3246
|
+
* Update action for `setLineItemProductKey`
|
|
3247
|
+
*
|
|
3248
|
+
*/
|
|
3249
|
+
readonly change: string;
|
|
3250
|
+
/**
|
|
3251
|
+
*
|
|
3252
|
+
*/
|
|
3253
|
+
readonly lineItem: LocalizedString;
|
|
3254
|
+
/**
|
|
3255
|
+
*
|
|
3256
|
+
*/
|
|
3257
|
+
readonly lineItemId: string;
|
|
3258
|
+
/**
|
|
3259
|
+
*
|
|
3260
|
+
*/
|
|
3261
|
+
readonly variant: string;
|
|
3262
|
+
/**
|
|
3263
|
+
*
|
|
3264
|
+
*/
|
|
3265
|
+
readonly previousValue: string;
|
|
3266
|
+
/**
|
|
3267
|
+
*
|
|
3268
|
+
*/
|
|
3269
|
+
readonly nextValue: string;
|
|
3270
|
+
}
|
|
3129
3271
|
export interface SetLineItemProductSlugChange {
|
|
3130
3272
|
readonly type: 'SetLineItemProductSlugChange';
|
|
3131
3273
|
/**
|
|
@@ -3680,6 +3822,22 @@ export interface SetPricesChange {
|
|
|
3680
3822
|
*/
|
|
3681
3823
|
readonly nextValue: Price[];
|
|
3682
3824
|
}
|
|
3825
|
+
export interface SetProductCountChange {
|
|
3826
|
+
readonly type: 'SetProductCountChange';
|
|
3827
|
+
/**
|
|
3828
|
+
* Update action for `setProductCount`
|
|
3829
|
+
*
|
|
3830
|
+
*/
|
|
3831
|
+
readonly change: string;
|
|
3832
|
+
/**
|
|
3833
|
+
*
|
|
3834
|
+
*/
|
|
3835
|
+
readonly previousValue: number;
|
|
3836
|
+
/**
|
|
3837
|
+
*
|
|
3838
|
+
*/
|
|
3839
|
+
readonly nextValue: number;
|
|
3840
|
+
}
|
|
3683
3841
|
export interface SetProductPriceCustomFieldChange {
|
|
3684
3842
|
readonly type: 'SetProductPriceCustomFieldChange';
|
|
3685
3843
|
/**
|
|
@@ -3720,6 +3878,22 @@ export interface SetProductPriceCustomTypeChange {
|
|
|
3720
3878
|
*/
|
|
3721
3879
|
readonly nextValue: CustomFields;
|
|
3722
3880
|
}
|
|
3881
|
+
export interface SetProductSelectionsChange {
|
|
3882
|
+
readonly type: 'SetProductSelectionsChange';
|
|
3883
|
+
/**
|
|
3884
|
+
* Update action for `setProductSelections`
|
|
3885
|
+
*
|
|
3886
|
+
*/
|
|
3887
|
+
readonly change: string;
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
*/
|
|
3891
|
+
readonly previousValue: ProductSelectionSetting[];
|
|
3892
|
+
/**
|
|
3893
|
+
*
|
|
3894
|
+
*/
|
|
3895
|
+
readonly nextValue: ProductSelectionSetting[];
|
|
3896
|
+
}
|
|
3723
3897
|
export interface SetProductVariantKeyChange {
|
|
3724
3898
|
readonly type: 'SetProductVariantKeyChange';
|
|
3725
3899
|
/**
|
|
@@ -3877,6 +4051,22 @@ export interface SetSearchKeywordsChange {
|
|
|
3877
4051
|
*/
|
|
3878
4052
|
readonly nextValue: SearchKeywords;
|
|
3879
4053
|
}
|
|
4054
|
+
export interface SetSellerCommentChange {
|
|
4055
|
+
readonly type: 'SetSellerCommentChange';
|
|
4056
|
+
/**
|
|
4057
|
+
* Shape of the action for `setSellerComment`
|
|
4058
|
+
*
|
|
4059
|
+
*/
|
|
4060
|
+
readonly change: string;
|
|
4061
|
+
/**
|
|
4062
|
+
*
|
|
4063
|
+
*/
|
|
4064
|
+
readonly previousValue: string;
|
|
4065
|
+
/**
|
|
4066
|
+
*
|
|
4067
|
+
*/
|
|
4068
|
+
readonly nextValue: string;
|
|
4069
|
+
}
|
|
3880
4070
|
export interface SetShippingAddressChange {
|
|
3881
4071
|
readonly type: 'SetShippingAddressChange';
|
|
3882
4072
|
/**
|
|
@@ -4390,6 +4580,22 @@ export interface SetValidFromChange {
|
|
|
4390
4580
|
*/
|
|
4391
4581
|
readonly nextValue: string;
|
|
4392
4582
|
}
|
|
4583
|
+
export interface SetValidToChange {
|
|
4584
|
+
readonly type: 'SetValidToChange';
|
|
4585
|
+
/**
|
|
4586
|
+
* Shape of the action for `setValidTo`
|
|
4587
|
+
*
|
|
4588
|
+
*/
|
|
4589
|
+
readonly change: string;
|
|
4590
|
+
/**
|
|
4591
|
+
*
|
|
4592
|
+
*/
|
|
4593
|
+
readonly previousValue: string;
|
|
4594
|
+
/**
|
|
4595
|
+
*
|
|
4596
|
+
*/
|
|
4597
|
+
readonly nextValue: string;
|
|
4598
|
+
}
|
|
4393
4599
|
export interface SetValidUntilChange {
|
|
4394
4600
|
readonly type: 'SetValidUntilChange';
|
|
4395
4601
|
/**
|
|
@@ -205,6 +205,7 @@ export interface AttributeType {
|
|
|
205
205
|
*/
|
|
206
206
|
readonly name: string;
|
|
207
207
|
}
|
|
208
|
+
export declare type AuthenticationMode = 'ExternalAuth' | 'Password';
|
|
208
209
|
export interface CategoryOrderHints {
|
|
209
210
|
[key: string]: string;
|
|
210
211
|
}
|
|
@@ -569,6 +570,16 @@ export interface Price {
|
|
|
569
570
|
*/
|
|
570
571
|
readonly value: Money;
|
|
571
572
|
}
|
|
573
|
+
export interface ProductSelectionSetting {
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
readonly productSelection: Reference;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
*/
|
|
581
|
+
readonly active: boolean;
|
|
582
|
+
}
|
|
572
583
|
export interface ProductVariantAvailability {
|
|
573
584
|
/**
|
|
574
585
|
*
|
|
@@ -604,6 +615,8 @@ export interface ProductVariantChannelAvailability {
|
|
|
604
615
|
export interface ProductVariantChannelAvailabilityMap {
|
|
605
616
|
[key: string]: ProductVariantChannelAvailability;
|
|
606
617
|
}
|
|
618
|
+
export declare type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted';
|
|
619
|
+
export declare type QuoteState = 'Accepted' | 'Declined' | 'Failed' | 'Pending' | 'Withdrawn';
|
|
607
620
|
export interface Reference {
|
|
608
621
|
/**
|
|
609
622
|
*
|
|
@@ -614,7 +627,7 @@ export interface Reference {
|
|
|
614
627
|
*/
|
|
615
628
|
readonly typeId: ReferenceTypeId;
|
|
616
629
|
}
|
|
617
|
-
export declare type ReferenceTypeId = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-type' | 'review' | 'shipping-method' | 'shopping-list' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone';
|
|
630
|
+
export declare type ReferenceTypeId = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone';
|
|
618
631
|
export interface Reservation {
|
|
619
632
|
/**
|
|
620
633
|
*
|
|
@@ -737,7 +750,7 @@ export interface ShippingRate {
|
|
|
737
750
|
*/
|
|
738
751
|
readonly freeAbove: Money;
|
|
739
752
|
/**
|
|
740
|
-
* Only appears in response to requests for
|
|
753
|
+
* Only appears in response to requests for ShippingMethods by Cart or location to mark this shipping rate as one that matches the Cart or location.
|
|
741
754
|
*
|
|
742
755
|
*/
|
|
743
756
|
readonly isMatching: boolean;
|
|
@@ -754,6 +767,7 @@ export interface ShippingRatePriceTier {
|
|
|
754
767
|
}
|
|
755
768
|
export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue';
|
|
756
769
|
export declare type StackingMode = 'Stacking' | 'StopAfterThisDiscount';
|
|
770
|
+
export declare type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent';
|
|
757
771
|
export declare type StateRole = 'Return' | 'ReviewIncludedInStatistics';
|
|
758
772
|
export declare type StateType = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'ReviewState';
|
|
759
773
|
export interface SubRate {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { LocalizedString, Money } from './common';
|
|
6
|
+
import { LocalizedString, Money, Reference } from './common';
|
|
7
7
|
/**
|
|
8
8
|
* Provides descriptive information specific to the resource.
|
|
9
9
|
*/
|
|
10
|
-
export declare type Label = CustomObjectLabel | CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | ReviewLabel | StringLabel;
|
|
10
|
+
export declare type Label = CustomObjectLabel | CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | QuoteLabel | QuoteRequestLabel | ReviewLabel | StagedQuoteLabel | StringLabel;
|
|
11
11
|
export interface CustomObjectLabel {
|
|
12
12
|
readonly type: 'CustomObjectLabel';
|
|
13
13
|
/**
|
|
@@ -74,6 +74,36 @@ export interface ProductLabel {
|
|
|
74
74
|
*/
|
|
75
75
|
readonly name: LocalizedString;
|
|
76
76
|
}
|
|
77
|
+
export interface QuoteLabel {
|
|
78
|
+
readonly type: 'QuoteLabel';
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
readonly key: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
readonly customer: Reference;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
readonly stagedQuote: Reference;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
readonly quoteRequest: Reference;
|
|
95
|
+
}
|
|
96
|
+
export interface QuoteRequestLabel {
|
|
97
|
+
readonly type: 'QuoteRequestLabel';
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
readonly key: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
readonly customer: Reference;
|
|
106
|
+
}
|
|
77
107
|
export interface ReviewLabel {
|
|
78
108
|
readonly type: 'ReviewLabel';
|
|
79
109
|
/**
|
|
@@ -85,6 +115,21 @@ export interface ReviewLabel {
|
|
|
85
115
|
*/
|
|
86
116
|
readonly title: string;
|
|
87
117
|
}
|
|
118
|
+
export interface StagedQuoteLabel {
|
|
119
|
+
readonly type: 'StagedQuoteLabel';
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
readonly key: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
readonly customer: Reference;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
readonly quoteRequest: Reference;
|
|
132
|
+
}
|
|
88
133
|
export interface StringLabel {
|
|
89
134
|
readonly type: 'StringLabel';
|
|
90
135
|
/**
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/history-sdk",
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.6.0",
|
|
8
8
|
"description": "Typescript SDK for Composable Commerce Audit Log features",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"commercetools",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"querystring": "^0.2.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@commercetools/platform-sdk": "
|
|
39
|
+
"@commercetools/platform-sdk": "3.0.0",
|
|
40
40
|
"@types/uuid": "8.3.4",
|
|
41
|
-
"organize-imports-cli": "0.
|
|
41
|
+
"organize-imports-cli": "0.10.0",
|
|
42
42
|
"tsconfig-replace-paths": "0.0.11",
|
|
43
43
|
"uuid": "8.3.2"
|
|
44
44
|
},
|