@commercetools/history-sdk 2.0.0 → 2.2.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 +36 -0
- package/README.md +1 -1
- package/dist/commercetools-history-sdk.browser.cjs.js +1 -3
- package/dist/commercetools-history-sdk.browser.esm.js +1 -3
- package/dist/commercetools-history-sdk.cjs.dev.js +1 -3
- package/dist/commercetools-history-sdk.cjs.prod.js +1 -3
- package/dist/commercetools-history-sdk.esm.js +1 -3
- package/dist/declarations/src/generated/models/change.d.ts +80 -1
- package/dist/declarations/src/generated/models/common.d.ts +7 -2
- package/dist/declarations/src/generated/models/label.d.ts +12 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @commercetools/history-sdk
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#188](https://github.com/commercetools/commercetools-sdk-typescript/pull/188) [`4c2d9b6`](https://github.com/commercetools/commercetools-sdk-typescript/commit/4c2d9b64b204200dffbeb18130239138dd2ad7d3) Thanks [@ajimae](https://github.com/ajimae)! - February package release
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#149](https://github.com/commercetools/commercetools-sdk-typescript/pull/149) [`08caea9`](https://github.com/commercetools/commercetools-sdk-typescript/commit/08caea93560c01e2158f018538b7a2b9f4be39c1) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update all dependencies
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`08caea9`](https://github.com/commercetools/commercetools-sdk-typescript/commit/08caea93560c01e2158f018538b7a2b9f4be39c1), [`4c2d9b6`](https://github.com/commercetools/commercetools-sdk-typescript/commit/4c2d9b64b204200dffbeb18130239138dd2ad7d3)]:
|
|
14
|
+
- @commercetools/sdk-client-v2@1.1.0
|
|
15
|
+
|
|
16
|
+
## 2.1.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#165](https://github.com/commercetools/commercetools-sdk-typescript/pull/165) [`1b305a1`](https://github.com/commercetools/commercetools-sdk-typescript/commit/1b305a18602f6daceab31d7691f5b0239db2ad23) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated SDKs
|
|
21
|
+
|
|
22
|
+
## 2.1.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- [#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
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`fcd35a0`](https://github.com/commercetools/commercetools-sdk-typescript/commit/fcd35a0f26b2780d0004c4e9d7b48233a86c2453)]:
|
|
31
|
+
- @commercetools/sdk-client-v2@1.0.1
|
|
32
|
+
|
|
33
|
+
## 2.0.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#161](https://github.com/commercetools/commercetools-sdk-typescript/pull/161) [`f28520f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/f28520f8caa16f8203a3790e354ffc3cffc43068) Thanks [@ajimae](https://github.com/ajimae)! - Restructure dependencies, remove sdk-client-v2 from devDependencies into dependencies.
|
|
38
|
+
|
|
3
39
|
## 2.0.0
|
|
4
40
|
|
|
5
41
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ const authMiddlewareOptions = {
|
|
|
48
48
|
clientId: 'mc-client-id',
|
|
49
49
|
clientSecret: 'mc-client-secrets',
|
|
50
50
|
},
|
|
51
|
-
oauthUri: '
|
|
51
|
+
oauthUri: '/oauth/token', // - optional: custom oauthUri
|
|
52
52
|
scopes: [`manage_project:${projectKey}`],
|
|
53
53
|
fetch,
|
|
54
54
|
}
|
|
@@ -193,14 +193,12 @@ class ByProjectKeyRequestBuilder {
|
|
|
193
193
|
|
|
194
194
|
class ApiRoot {
|
|
195
195
|
constructor(args) {
|
|
196
|
-
var _args$baseUri;
|
|
197
|
-
|
|
198
196
|
_defineProperty(this, "executeRequest", void 0);
|
|
199
197
|
|
|
200
198
|
_defineProperty(this, "baseUri", void 0);
|
|
201
199
|
|
|
202
200
|
this.executeRequest = args.executeRequest;
|
|
203
|
-
this.baseUri =
|
|
201
|
+
this.baseUri = args.baseUri || 'https://history.europe-west1.gcp.commercetools.com';
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
withProjectKeyValue(childPathArgs) {
|
|
@@ -189,14 +189,12 @@ class ByProjectKeyRequestBuilder {
|
|
|
189
189
|
|
|
190
190
|
class ApiRoot {
|
|
191
191
|
constructor(args) {
|
|
192
|
-
var _args$baseUri;
|
|
193
|
-
|
|
194
192
|
_defineProperty(this, "executeRequest", void 0);
|
|
195
193
|
|
|
196
194
|
_defineProperty(this, "baseUri", void 0);
|
|
197
195
|
|
|
198
196
|
this.executeRequest = args.executeRequest;
|
|
199
|
-
this.baseUri =
|
|
197
|
+
this.baseUri = args.baseUri || 'https://history.europe-west1.gcp.commercetools.com';
|
|
200
198
|
}
|
|
201
199
|
|
|
202
200
|
withProjectKeyValue(childPathArgs) {
|
|
@@ -193,14 +193,12 @@ class ByProjectKeyRequestBuilder {
|
|
|
193
193
|
|
|
194
194
|
class ApiRoot {
|
|
195
195
|
constructor(args) {
|
|
196
|
-
var _args$baseUri;
|
|
197
|
-
|
|
198
196
|
_defineProperty(this, "executeRequest", void 0);
|
|
199
197
|
|
|
200
198
|
_defineProperty(this, "baseUri", void 0);
|
|
201
199
|
|
|
202
200
|
this.executeRequest = args.executeRequest;
|
|
203
|
-
this.baseUri =
|
|
201
|
+
this.baseUri = args.baseUri || 'https://history.europe-west1.gcp.commercetools.com';
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
withProjectKeyValue(childPathArgs) {
|
|
@@ -193,14 +193,12 @@ class ByProjectKeyRequestBuilder {
|
|
|
193
193
|
|
|
194
194
|
class ApiRoot {
|
|
195
195
|
constructor(args) {
|
|
196
|
-
var _args$baseUri;
|
|
197
|
-
|
|
198
196
|
_defineProperty(this, "executeRequest", void 0);
|
|
199
197
|
|
|
200
198
|
_defineProperty(this, "baseUri", void 0);
|
|
201
199
|
|
|
202
200
|
this.executeRequest = args.executeRequest;
|
|
203
|
-
this.baseUri =
|
|
201
|
+
this.baseUri = args.baseUri || 'https://history.europe-west1.gcp.commercetools.com';
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
withProjectKeyValue(childPathArgs) {
|
|
@@ -189,14 +189,12 @@ class ByProjectKeyRequestBuilder {
|
|
|
189
189
|
|
|
190
190
|
class ApiRoot {
|
|
191
191
|
constructor(args) {
|
|
192
|
-
var _args$baseUri;
|
|
193
|
-
|
|
194
192
|
_defineProperty(this, "executeRequest", void 0);
|
|
195
193
|
|
|
196
194
|
_defineProperty(this, "baseUri", void 0);
|
|
197
195
|
|
|
198
196
|
this.executeRequest = args.executeRequest;
|
|
199
|
-
this.baseUri =
|
|
197
|
+
this.baseUri = args.baseUri || 'https://history.europe-west1.gcp.commercetools.com';
|
|
200
198
|
}
|
|
201
199
|
|
|
202
200
|
withProjectKeyValue(childPathArgs) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { AssetChangeValue, ChangeTargetChangeValue, ChangeValueChangeValue, CustomFieldExpandedValue, CustomShippingMethodChangeValue, DeliveryChangeValue, EnumValue, FieldDefinitionOrderValue, InventoryQuantityValue, LocalizedEnumValue, ParcelChangeValue, SetCartClassificationShippingRateInputValue, SetCartScoreShippingRateInputValue, ShippingMethodChangeValue, ShoppingListLineItemValue, TextLineItemValue, TransactionChangeValue, ValidFromAndUntilValue } from './change-value';
|
|
7
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 | 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 | 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 | 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 | SetVariantAvailabilityChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
|
|
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;
|
|
9
9
|
export interface AddAddressChange {
|
|
10
10
|
readonly type: 'AddAddressChange';
|
|
11
11
|
/**
|
|
@@ -331,6 +331,23 @@ export interface AddPriceChange {
|
|
|
331
331
|
*/
|
|
332
332
|
readonly nextValue: Price;
|
|
333
333
|
}
|
|
334
|
+
export interface AddPropertyChange {
|
|
335
|
+
readonly type: 'AddPropertyChange';
|
|
336
|
+
/**
|
|
337
|
+
* Update action for `addProperty` on custom objects
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
readonly change: string;
|
|
341
|
+
/**
|
|
342
|
+
* Value path to the property that was added
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
readonly path: string;
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
*/
|
|
349
|
+
readonly nextValue: any;
|
|
350
|
+
}
|
|
334
351
|
export interface AddReturnInfoChange {
|
|
335
352
|
readonly type: 'AddReturnInfoChange';
|
|
336
353
|
/**
|
|
@@ -1864,6 +1881,23 @@ export interface RemovePriceChange {
|
|
|
1864
1881
|
*/
|
|
1865
1882
|
readonly nextValue: Price;
|
|
1866
1883
|
}
|
|
1884
|
+
export interface RemovePropertyChange {
|
|
1885
|
+
readonly type: 'RemovePropertyChange';
|
|
1886
|
+
/**
|
|
1887
|
+
* Update action for `removeProperty` on custom objects
|
|
1888
|
+
*
|
|
1889
|
+
*/
|
|
1890
|
+
readonly change: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* Value path to the property that was removed
|
|
1893
|
+
*
|
|
1894
|
+
*/
|
|
1895
|
+
readonly path: string;
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
*/
|
|
1899
|
+
readonly previousValue: any;
|
|
1900
|
+
}
|
|
1867
1901
|
export interface RemoveShippingAddressIdChange {
|
|
1868
1902
|
readonly type: 'RemoveShippingAddressIdChange';
|
|
1869
1903
|
/**
|
|
@@ -2324,6 +2358,10 @@ export interface SetCustomLineItemCustomFieldChange {
|
|
|
2324
2358
|
*
|
|
2325
2359
|
*/
|
|
2326
2360
|
readonly customLineItem: LocalizedString;
|
|
2361
|
+
/**
|
|
2362
|
+
*
|
|
2363
|
+
*/
|
|
2364
|
+
readonly customLineItemId: string;
|
|
2327
2365
|
/**
|
|
2328
2366
|
*
|
|
2329
2367
|
*/
|
|
@@ -2344,6 +2382,10 @@ export interface SetCustomLineItemCustomTypeChange {
|
|
|
2344
2382
|
*
|
|
2345
2383
|
*/
|
|
2346
2384
|
readonly customLineItem: LocalizedString;
|
|
2385
|
+
/**
|
|
2386
|
+
*
|
|
2387
|
+
*/
|
|
2388
|
+
readonly customLineItemId: string;
|
|
2347
2389
|
/**
|
|
2348
2390
|
*
|
|
2349
2391
|
*/
|
|
@@ -3696,6 +3738,27 @@ export interface SetProductVariantKeyChange {
|
|
|
3696
3738
|
*/
|
|
3697
3739
|
readonly nextValue: string;
|
|
3698
3740
|
}
|
|
3741
|
+
export interface SetPropertyChange {
|
|
3742
|
+
readonly type: 'SetPropertyChange';
|
|
3743
|
+
/**
|
|
3744
|
+
* Update action for `setProperty` on custom objects
|
|
3745
|
+
*
|
|
3746
|
+
*/
|
|
3747
|
+
readonly change: string;
|
|
3748
|
+
/**
|
|
3749
|
+
* Value path to the property that was changed
|
|
3750
|
+
*
|
|
3751
|
+
*/
|
|
3752
|
+
readonly path: string;
|
|
3753
|
+
/**
|
|
3754
|
+
*
|
|
3755
|
+
*/
|
|
3756
|
+
readonly nextValue: any;
|
|
3757
|
+
/**
|
|
3758
|
+
*
|
|
3759
|
+
*/
|
|
3760
|
+
readonly previousValue: any;
|
|
3761
|
+
}
|
|
3699
3762
|
export interface SetRatingChange {
|
|
3700
3763
|
readonly type: 'SetRatingChange';
|
|
3701
3764
|
/**
|
|
@@ -4341,6 +4404,22 @@ export interface SetValidUntilChange {
|
|
|
4341
4404
|
*/
|
|
4342
4405
|
readonly nextValue: string;
|
|
4343
4406
|
}
|
|
4407
|
+
export interface SetValueChange {
|
|
4408
|
+
readonly type: 'SetValueChange';
|
|
4409
|
+
/**
|
|
4410
|
+
* Update action for `setValue` on custom objects
|
|
4411
|
+
*
|
|
4412
|
+
*/
|
|
4413
|
+
readonly change: string;
|
|
4414
|
+
/**
|
|
4415
|
+
*
|
|
4416
|
+
*/
|
|
4417
|
+
readonly nextValue: any;
|
|
4418
|
+
/**
|
|
4419
|
+
*
|
|
4420
|
+
*/
|
|
4421
|
+
readonly previousValue: any;
|
|
4422
|
+
}
|
|
4344
4423
|
export interface SetVariantAvailabilityChange {
|
|
4345
4424
|
readonly type: 'SetVariantAvailabilityChange';
|
|
4346
4425
|
/**
|
|
@@ -107,7 +107,7 @@ export interface RecordPagedQueryResponse {
|
|
|
107
107
|
* The value must be one of the following:
|
|
108
108
|
*
|
|
109
109
|
*/
|
|
110
|
-
export declare type ChangeHistoryResourceType = 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'inventory-entry' | 'order' | 'payment' | 'product' | 'product-discount' | 'product-type' | 'review' | 'shopping-list' | 'state' | 'store' | 'tax-category' | 'type' | 'zone';
|
|
110
|
+
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';
|
|
111
111
|
/**
|
|
112
112
|
* This type consists of one enum value:
|
|
113
113
|
*
|
|
@@ -463,7 +463,12 @@ export interface Delivery {
|
|
|
463
463
|
/**
|
|
464
464
|
*
|
|
465
465
|
*/
|
|
466
|
-
readonly address
|
|
466
|
+
readonly address?: Address;
|
|
467
|
+
/**
|
|
468
|
+
* Custom Fields for the Transaction.
|
|
469
|
+
*
|
|
470
|
+
*/
|
|
471
|
+
readonly custom?: CustomFields;
|
|
467
472
|
}
|
|
468
473
|
export interface DeliveryItem {
|
|
469
474
|
/**
|
|
@@ -7,7 +7,18 @@ import { LocalizedString, Money } from './common';
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides descriptive information specific to the resource.
|
|
9
9
|
*/
|
|
10
|
-
export declare type Label = CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | ReviewLabel | StringLabel;
|
|
10
|
+
export declare type Label = CustomObjectLabel | CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | ReviewLabel | StringLabel;
|
|
11
|
+
export interface CustomObjectLabel {
|
|
12
|
+
readonly type: 'CustomObjectLabel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
readonly key: string;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
readonly container: string;
|
|
21
|
+
}
|
|
11
22
|
export interface CustomerLabel {
|
|
12
23
|
readonly type: 'CustomerLabel';
|
|
13
24
|
/**
|
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.2.0",
|
|
8
8
|
"description": "Type script sdk for commercetools audit log features",
|
|
9
9
|
"keywords": ["commercetools", "typescript", "sdk", "history"],
|
|
10
10
|
"homepage": "https://github.com/commercetools/commercetools-typescript-sdks/packages/history-sdk",
|
|
@@ -23,17 +23,16 @@
|
|
|
23
23
|
"./dist/commercetools-history-sdk.esm.js": "./dist/commercetools-history-sdk.browser.esm.js"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@commercetools/sdk-client": "^
|
|
26
|
+
"@commercetools/sdk-client-v2": "^1.1.0",
|
|
27
27
|
"@commercetools/sdk-middleware-auth": "^6.0.4",
|
|
28
28
|
"@commercetools/sdk-middleware-http": "^6.0.4",
|
|
29
29
|
"@commercetools/sdk-middleware-logger": "^2.1.1",
|
|
30
30
|
"querystring": "^0.2.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@commercetools/platform-sdk": "2.
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
36
|
-
"organize-imports-cli": "0.8.0",
|
|
33
|
+
"@commercetools/platform-sdk": "2.4.0",
|
|
34
|
+
"@types/uuid": "8.3.4",
|
|
35
|
+
"organize-imports-cli": "0.9.0",
|
|
37
36
|
"tsconfig-replace-paths": "0.0.11",
|
|
38
37
|
"uuid": "8.3.2"
|
|
39
38
|
},
|