@commercetools/history-sdk 2.6.0 → 3.1.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
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# @commercetools/history-sdk
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#351](https://github.com/commercetools/commercetools-sdk-typescript/pull/351) [`9c93a8e`](https://github.com/commercetools/commercetools-sdk-typescript/commit/9c93a8e92b4d523d6661567f7571f115a527b039) Thanks [@ajimae](https://github.com/ajimae)! - Update packages
|
|
8
|
+
|
|
9
|
+
Update the `history-sdk` `DateStringFilter`, `ChangeHistoryResourceType`, `Source` and `PlatformInitiatedChange` etc. models to include a `string` type
|
|
10
|
+
|
|
11
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cc2fe178ca6b6be224a1703faedb4addb5aeaba6e8fed5c5fb8aa83e6b89c15c)
|
|
12
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-d209024497a25bf47b1328575261874e3b3838708b200c576e9136881d7c2fc5)
|
|
13
|
+
|
|
14
|
+
Add builder class and method for [`standalone-prices`](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-6c227c775a135e83a3177890fb075a57a36aca5e54585ddd12800e2fc8c868d0) for `importapi-sdk`
|
|
15
|
+
|
|
16
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-4194831274c991aa860b804aa0e4ef37607f3648ce4b5bd1fa485fb368563414)
|
|
17
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cf4d4d593249abe6c99086f76491a0bd251573cde0f78291d38c12db533955e9)
|
|
18
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-9b983bcf9b8f15645d6c0c5395b43046a37915b6269f8f1f0d113c625661b61e)
|
|
19
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cab14530d8df4ee940fea751e4e5afa1b36a94b92ee1360e641f46696fc3f21b)
|
|
20
|
+
|
|
21
|
+
Update the `importapi-sdk` `MoneyType`, `ReferenceType`, `ProcessingState`, `ImportOperationState` `ProductPriceModeEnum` etc models to include a `string` type
|
|
22
|
+
|
|
23
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-4a12dd49a3bd4416087368cf7d2adad860849ada79c1744ae27ddae67c299c43)
|
|
24
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-098b1027a5d008b85d503e4fbfd1a7ae1c47a138e1d8fb82c7ac9ee1ea94de3f)
|
|
25
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-66168b247234ab499100b349ea788dfc0bad6c5275d5cf7541088083cd4ad47f)
|
|
26
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-ac6b2ee896a8ab4c39857df35774f59713a50c547a6e7cecfe6924547381cd96)
|
|
27
|
+
|
|
28
|
+
Add class and builder methods for
|
|
29
|
+
`ByProjectKeyBusinessUnitsByIDRequestBuilder`,
|
|
30
|
+
`ByProjectKeyBusinessUnitsRequestBuilder`,
|
|
31
|
+
`ByProjectKeyMeBusinessUnitsKeyByKeyRequestBuilder`,
|
|
32
|
+
`ByProjectKeyMeBusinessUnitsRequestBuilder`,
|
|
33
|
+
`ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder`
|
|
34
|
+
`ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeCustomersRequestBuilder`,
|
|
35
|
+
`ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyMeRequestBuilder`,
|
|
36
|
+
`ByProjectKeyInBusinessUnitKeyByBusinessUnitKeyRequestBuilder`
|
|
37
|
+
in the `platform-sdk`
|
|
38
|
+
|
|
39
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-cb753c87b292658be2da42c7548c3ffcad89550d99d5a433bae77b06b1e8dde8)
|
|
40
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-61da76483d06d79e65e755f43ce8f1c8b06b62af3dd310cdeac4cac8583c9457)
|
|
41
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-427e08314427fc8efa3e4466403eb7ad961482b0ebbfd71a65ad513b1e62d93c)
|
|
42
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-f7e56705a0ede866385bed01616ec49604dc9921092e9c8ad8c3dc435c7f7706)
|
|
43
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-8104137d8ff7613e73e02d11a26f3086884e2b135467f8c2d56b25e9719781c3)
|
|
44
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-d2d796eb7f7a440dba06bc3f71f12fb9ffbfbd0ba86161a7b77eab7a62d89fb4)
|
|
45
|
+
[Diff](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files#diff-c008d9ee3cd715df487ab0ebb7ce332cf31804ac533a2598e6808bf73f057b9e)
|
|
46
|
+
|
|
47
|
+
Complete changes can be found [here](https://github.com/commercetools/commercetools-sdk-typescript/pull/346/files)
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [[`f0e84dd`](https://github.com/commercetools/commercetools-sdk-typescript/commit/f0e84ddb2e34b908385a380175c6da596db6817a)]:
|
|
52
|
+
- @commercetools/sdk-client-v2@2.0.1
|
|
53
|
+
|
|
54
|
+
## 3.0.0
|
|
55
|
+
|
|
56
|
+
### Major Changes
|
|
57
|
+
|
|
58
|
+
- [#341](https://github.com/commercetools/commercetools-sdk-typescript/pull/341) [`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220) Thanks [@ajimae](https://github.com/ajimae)! - Upgrade node versions to 14 and set engine to >= 14
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [[`385682f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/385682fef6f0efa39a51570434d4d11789e0a220)]:
|
|
63
|
+
- @commercetools/sdk-client-v2@2.0.0
|
|
64
|
+
|
|
3
65
|
## 2.6.0
|
|
4
66
|
|
|
5
67
|
### Minor Changes
|
|
@@ -114,12 +114,12 @@ 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-selection' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shopping-list' | 'staged-quote' | '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' | string;
|
|
118
118
|
/**
|
|
119
119
|
* This type consists of one enum value:
|
|
120
120
|
*
|
|
121
121
|
*/
|
|
122
|
-
export declare type DateStringFilter = 'now';
|
|
122
|
+
export declare type DateStringFilter = 'now' | string;
|
|
123
123
|
export interface ErrorObject {
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
@@ -203,9 +203,9 @@ export interface ModifiedBy {
|
|
|
203
203
|
*/
|
|
204
204
|
readonly isPlatformClient: boolean;
|
|
205
205
|
}
|
|
206
|
-
export declare type PlatformInitiatedChange = 'changeLineItemName' | 'changeReviewRatingStatistics' | 'excludeAll' | 'setApplicationVersion' | 'setIsValid' | 'setVariantAvailability';
|
|
206
|
+
export declare type PlatformInitiatedChange = 'changeLineItemName' | 'changeReviewRatingStatistics' | 'excludeAll' | 'setApplicationVersion' | 'setIsValid' | 'setVariantAvailability' | string;
|
|
207
207
|
/**
|
|
208
208
|
* Values for the Source enumeration.
|
|
209
209
|
*/
|
|
210
|
-
export declare type Source = 'ApiClient' | 'ImpEx' | 'MerchantCenter';
|
|
211
|
-
export declare type UpdateType = 'addAddress' | 'addAsset' | 'addAttributeDefinition' | 'addBillingAddressId' | 'addDelivery' | 'addEnumValue' | 'addExternalImage' | 'addFieldDefinition' | 'addInterfaceInteraction' | 'addItemShippingAddress' | 'addLineItem' | 'addLocalizedEnumValue' | 'addLocation' | 'addParcelToDelivery' | 'addPayment' | 'addPlainEnumValue' | 'addPrice' | 'addReturnInfo' | 'addRoles' | 'addShippingAddressId' | 'addTaxRate' | 'addTextLineItem' | 'addToCategory' | 'addTransaction' | 'addVariant' | 'changeAddress' | 'changeAmountPlanned' | 'changeAssetName' | 'changeAssetOrder' | 'changeAttributeConstraint' | 'changeAttributeName' | 'changeAttributeOrderByName' | 'changeCartDiscounts' | 'changeCartPredicate' | 'changeDescription' | 'changeEmail' | 'changeEnumKey' | 'changeEnumValueLabel' | 'changeEnumValueOrder' | 'changeFieldDefinitionOrder' | 'changeGroups' | 'changeInitial' | 'changeInputHint' | 'changeIsActive' | 'changeIsSearchable' | 'changeKey' | 'changeLabel' | 'changeLineItemQuantity' | 'changeLineItemsOrder' | 'changeLocalizedEnumValueLabel' | 'changeLocalizedEnumValueOrder' | 'changeMasterVariant' | 'changeName' | 'changeOrderHint' | 'changeOrderState' | 'changeParent' | 'changePaymentState' | 'changePlainEnumValueLabel' | 'changePredicate' | 'changePrice' | 'changeQuantity' | 'changeRequiresDiscountCode' | 'changeReviewRatingStatistics' | 'changeShipmentState' | 'changeSlug' | 'changeSortOrder' | 'changeStackingMode' | 'changeTarget' | 'changeTextLineItemName' | 'changeTextLineItemQuantity' | 'changeTextLineItemsOrder' | 'changeTransactionInteractionId' | 'changeTransactionState' | 'changeTransactionTimestamp' | 'changeType' | 'changeValue' | 'publish' | 'removeAddress' | 'removeAsset' | 'removeAttributeDefinition' | 'removeBillingAddressId' | 'removeDelivery' | 'removeEnumValues' | 'removeFieldDefinition' | 'removeFromCategory' | 'removeImage' | 'removeItemShippingAddress' | 'removeLineItem' | 'removeLocation' | 'removeParcelFromDelivery' | 'removePayment' | 'removePrice' | 'removeRoles' | 'removeShippingAddressId' | 'removeTaxRate' | 'removeTextLineItem' | 'removeVariant' | 'setAddress' | 'setAnonymousId' | 'setAssetCustomField' | 'setAssetCustomType' | 'setAssetDescription' | 'setAssetSources' | 'setAssetTags' | 'setAsssetKey' | 'setAttribute' | 'setAuthorName' | 'setBillingAddress' | 'setCartPredicate' | 'setCategoryOrderHint' | 'setCompanyName' | 'setCustomField' | 'setCustomLineItemCustomField' | 'setCustomLineItemCustomType' | 'setCustomLineItemShippingDetails' | 'setCustomType' | 'setCustomer' | 'setCustomerEmail' | 'setCustomerGroup' | 'setCustomerId' | 'setCustomerNumber' | 'setDateOfBirth' | 'setDefaultBillingAddress' | 'setDefaultShippingAddress' | 'setDeleteDaysAfterLastModification' | 'setDeliveryAddress' | 'setDeliveryItems' | 'setDescription' | 'setDiscountedPrice' | 'setDistributionChannels' | 'setExpectedDelivery' | 'setExternalId' | 'setFirstName' | 'setGeoLocation' | 'setImageLabel' | 'setInputTip' | 'setInterfaceId' | 'setKey' | 'setLanguages' | 'setLastName' | 'setLineItemCustomField' | 'setLineItemCustomType' | 'setLineItemShippingDetails' | 'setLocale' | 'setMaxApplications' | 'setMaxApplicationsPerCustomer' | 'setMetaDescription' | 'setMetaKeywords' | 'setMetaTitle' | 'setMethodInfoInterface' | 'setMethodInfoMethod' | 'setMethodInfoName' | 'setMiddleName' | 'setName' | 'setOrderNumber' | 'setParcelItems' | 'setParcelMeasurements' | 'setParcelTrackingData' | 'setPassword' | 'setProductPriceCustomField' | 'setProductPriceCustomType' | 'setProductVariantKey' | 'setRating' | 'setRestockableInDays' | 'setReturnPaymentState' | 'setReturnShipmentState' | 'setRoles' | 'setSalutation' | 'setSearchKeywords' | 'setShippingAddress' | 'setSku' | 'setSlug' | 'setStatusInterfaceCode' | 'setStatusInterfaceText' | 'setStore' | 'setStores' | 'setSupplyChannel' | 'setTarget' | 'setTaxCategory' | 'setText' | 'setTextLineItemCustomField' | 'setTextLineItemCustomType' | 'setTextLineItemDescription' | 'setTitle' | 'setTransitions' | 'setValidFrom' | 'setValidFromAndUntil' | 'setValidUntil' | 'setVariantAvailability' | 'setVatId' | 'transitionCustomLineItemState' | 'transitionLineItemState' | 'transitionState' | 'unpublish' | 'updateItemShippingAddress' | 'updateSyncInfo' | 'verifyEmail';
|
|
210
|
+
export declare type Source = 'ApiClient' | 'ImpEx' | 'MerchantCenter' | string;
|
|
211
|
+
export declare type UpdateType = 'addAddress' | 'addAsset' | 'addAttributeDefinition' | 'addBillingAddressId' | 'addDelivery' | 'addEnumValue' | 'addExternalImage' | 'addFieldDefinition' | 'addInterfaceInteraction' | 'addItemShippingAddress' | 'addLineItem' | 'addLocalizedEnumValue' | 'addLocation' | 'addParcelToDelivery' | 'addPayment' | 'addPlainEnumValue' | 'addPrice' | 'addReturnInfo' | 'addRoles' | 'addShippingAddressId' | 'addTaxRate' | 'addTextLineItem' | 'addToCategory' | 'addTransaction' | 'addVariant' | 'changeAddress' | 'changeAmountPlanned' | 'changeAssetName' | 'changeAssetOrder' | 'changeAttributeConstraint' | 'changeAttributeName' | 'changeAttributeOrderByName' | 'changeCartDiscounts' | 'changeCartPredicate' | 'changeDescription' | 'changeEmail' | 'changeEnumKey' | 'changeEnumValueLabel' | 'changeEnumValueOrder' | 'changeFieldDefinitionOrder' | 'changeGroups' | 'changeInitial' | 'changeInputHint' | 'changeIsActive' | 'changeIsSearchable' | 'changeKey' | 'changeLabel' | 'changeLineItemQuantity' | 'changeLineItemsOrder' | 'changeLocalizedEnumValueLabel' | 'changeLocalizedEnumValueOrder' | 'changeMasterVariant' | 'changeName' | 'changeOrderHint' | 'changeOrderState' | 'changeParent' | 'changePaymentState' | 'changePlainEnumValueLabel' | 'changePredicate' | 'changePrice' | 'changeQuantity' | 'changeRequiresDiscountCode' | 'changeReviewRatingStatistics' | 'changeShipmentState' | 'changeSlug' | 'changeSortOrder' | 'changeStackingMode' | 'changeTarget' | 'changeTextLineItemName' | 'changeTextLineItemQuantity' | 'changeTextLineItemsOrder' | 'changeTransactionInteractionId' | 'changeTransactionState' | 'changeTransactionTimestamp' | 'changeType' | 'changeValue' | 'publish' | 'removeAddress' | 'removeAsset' | 'removeAttributeDefinition' | 'removeBillingAddressId' | 'removeDelivery' | 'removeEnumValues' | 'removeFieldDefinition' | 'removeFromCategory' | 'removeImage' | 'removeItemShippingAddress' | 'removeLineItem' | 'removeLocation' | 'removeParcelFromDelivery' | 'removePayment' | 'removePrice' | 'removeRoles' | 'removeShippingAddressId' | 'removeTaxRate' | 'removeTextLineItem' | 'removeVariant' | 'setAddress' | 'setAnonymousId' | 'setAssetCustomField' | 'setAssetCustomType' | 'setAssetDescription' | 'setAssetSources' | 'setAssetTags' | 'setAsssetKey' | 'setAttribute' | 'setAuthorName' | 'setBillingAddress' | 'setCartPredicate' | 'setCategoryOrderHint' | 'setCompanyName' | 'setCustomField' | 'setCustomLineItemCustomField' | 'setCustomLineItemCustomType' | 'setCustomLineItemShippingDetails' | 'setCustomType' | 'setCustomer' | 'setCustomerEmail' | 'setCustomerGroup' | 'setCustomerId' | 'setCustomerNumber' | 'setDateOfBirth' | 'setDefaultBillingAddress' | 'setDefaultShippingAddress' | 'setDeleteDaysAfterLastModification' | 'setDeliveryAddress' | 'setDeliveryItems' | 'setDescription' | 'setDiscountedPrice' | 'setDistributionChannels' | 'setExpectedDelivery' | 'setExternalId' | 'setFirstName' | 'setGeoLocation' | 'setImageLabel' | 'setInputTip' | 'setInterfaceId' | 'setKey' | 'setLanguages' | 'setLastName' | 'setLineItemCustomField' | 'setLineItemCustomType' | 'setLineItemShippingDetails' | 'setLocale' | 'setMaxApplications' | 'setMaxApplicationsPerCustomer' | 'setMetaDescription' | 'setMetaKeywords' | 'setMetaTitle' | 'setMethodInfoInterface' | 'setMethodInfoMethod' | 'setMethodInfoName' | 'setMiddleName' | 'setName' | 'setOrderNumber' | 'setParcelItems' | 'setParcelMeasurements' | 'setParcelTrackingData' | 'setPassword' | 'setProductPriceCustomField' | 'setProductPriceCustomType' | 'setProductVariantKey' | 'setRating' | 'setRestockableInDays' | 'setReturnPaymentState' | 'setReturnShipmentState' | 'setRoles' | 'setSalutation' | 'setSearchKeywords' | 'setShippingAddress' | 'setSku' | 'setSlug' | 'setStatusInterfaceCode' | 'setStatusInterfaceText' | 'setStore' | 'setStores' | 'setSupplyChannel' | 'setTarget' | 'setTaxCategory' | 'setText' | 'setTextLineItemCustomField' | 'setTextLineItemCustomType' | 'setTextLineItemDescription' | 'setTitle' | 'setTransitions' | 'setValidFrom' | 'setValidFromAndUntil' | 'setValidUntil' | 'setVariantAvailability' | 'setVatId' | 'transitionCustomLineItemState' | 'transitionLineItemState' | 'transitionState' | 'unpublish' | 'updateItemShippingAddress' | 'updateSyncInfo' | 'verifyEmail' | string;
|
|
@@ -161,7 +161,7 @@ export interface AssetSource {
|
|
|
161
161
|
*/
|
|
162
162
|
readonly contentType: string;
|
|
163
163
|
}
|
|
164
|
-
export declare type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique';
|
|
164
|
+
export declare type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
|
|
165
165
|
export interface AttributeDefinition {
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
@@ -205,11 +205,11 @@ export interface AttributeType {
|
|
|
205
205
|
*/
|
|
206
206
|
readonly name: string;
|
|
207
207
|
}
|
|
208
|
-
export declare type AuthenticationMode = 'ExternalAuth' | 'Password';
|
|
208
|
+
export declare type AuthenticationMode = 'ExternalAuth' | 'Password' | string;
|
|
209
209
|
export interface CategoryOrderHints {
|
|
210
210
|
[key: string]: string;
|
|
211
211
|
}
|
|
212
|
-
export declare type ChannelRole = 'InventorySupply' | 'OrderExport' | 'OrderImport' | 'Primary' | 'ProductDistribution';
|
|
212
|
+
export declare type ChannelRole = 'InventorySupply' | 'OrderExport' | 'OrderImport' | 'Primary' | 'ProductDistribution' | string;
|
|
213
213
|
export interface CustomFields {
|
|
214
214
|
/**
|
|
215
215
|
*
|
|
@@ -301,7 +301,7 @@ export interface DiscountCodeInfo {
|
|
|
301
301
|
*/
|
|
302
302
|
readonly state: DiscountCodeState;
|
|
303
303
|
}
|
|
304
|
-
export declare type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid';
|
|
304
|
+
export declare type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
|
|
305
305
|
export interface DiscountedLineItemPortion {
|
|
306
306
|
/**
|
|
307
307
|
*
|
|
@@ -511,8 +511,8 @@ export interface Money {
|
|
|
511
511
|
*/
|
|
512
512
|
readonly type: MoneyType;
|
|
513
513
|
}
|
|
514
|
-
export declare type MoneyType = 'centPrecision' | 'highPrecision';
|
|
515
|
-
export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open';
|
|
514
|
+
export declare type MoneyType = 'centPrecision' | 'highPrecision' | string;
|
|
515
|
+
export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
|
|
516
516
|
export interface Parcel {
|
|
517
517
|
/**
|
|
518
518
|
*
|
|
@@ -559,7 +559,7 @@ export interface PaymentInfo {
|
|
|
559
559
|
*/
|
|
560
560
|
readonly payments: Reference[];
|
|
561
561
|
}
|
|
562
|
-
export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending';
|
|
562
|
+
export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
|
|
563
563
|
export interface Price {
|
|
564
564
|
/**
|
|
565
565
|
*
|
|
@@ -615,8 +615,8 @@ export interface ProductVariantChannelAvailability {
|
|
|
615
615
|
export interface ProductVariantChannelAvailabilityMap {
|
|
616
616
|
[key: string]: ProductVariantChannelAvailability;
|
|
617
617
|
}
|
|
618
|
-
export declare type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted';
|
|
619
|
-
export declare type QuoteState = 'Accepted' | 'Declined' | 'Failed' | 'Pending' | 'Withdrawn';
|
|
618
|
+
export declare type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted' | string;
|
|
619
|
+
export declare type QuoteState = 'Accepted' | 'Declined' | 'Failed' | 'Pending' | 'Withdrawn' | string;
|
|
620
620
|
export interface Reference {
|
|
621
621
|
/**
|
|
622
622
|
*
|
|
@@ -627,7 +627,7 @@ export interface Reference {
|
|
|
627
627
|
*/
|
|
628
628
|
readonly typeId: ReferenceTypeId;
|
|
629
629
|
}
|
|
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';
|
|
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' | string;
|
|
631
631
|
export interface Reservation {
|
|
632
632
|
/**
|
|
633
633
|
*
|
|
@@ -695,8 +695,8 @@ export interface ReturnItem {
|
|
|
695
695
|
*/
|
|
696
696
|
readonly createdAt: string;
|
|
697
697
|
}
|
|
698
|
-
export declare type ReturnPaymentState = 'Initial' | 'NonRefundable' | 'NotRefunded' | 'Refunded';
|
|
699
|
-
export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable';
|
|
698
|
+
export declare type ReturnPaymentState = 'Initial' | 'NonRefundable' | 'NotRefunded' | 'Refunded' | string;
|
|
699
|
+
export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
|
|
700
700
|
export interface ReviewRatingStatistics {
|
|
701
701
|
/**
|
|
702
702
|
* Average rating of one target This number is rounded with 5 decimals.
|
|
@@ -724,7 +724,7 @@ export interface ReviewRatingStatistics {
|
|
|
724
724
|
*/
|
|
725
725
|
readonly ratingsDistribution: any;
|
|
726
726
|
}
|
|
727
|
-
export declare type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp';
|
|
727
|
+
export declare type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
|
|
728
728
|
export interface SearchKeyword {
|
|
729
729
|
/**
|
|
730
730
|
*
|
|
@@ -738,8 +738,8 @@ export interface SearchKeyword {
|
|
|
738
738
|
export interface SearchKeywords {
|
|
739
739
|
[key: string]: SearchKeyword[];
|
|
740
740
|
}
|
|
741
|
-
export declare type SelectionMode = 'Cheapest' | 'MostExpensive';
|
|
742
|
-
export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped';
|
|
741
|
+
export declare type SelectionMode = 'Cheapest' | 'MostExpensive' | string;
|
|
742
|
+
export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
|
|
743
743
|
export interface ShippingRate {
|
|
744
744
|
/**
|
|
745
745
|
*
|
|
@@ -765,11 +765,11 @@ export interface ShippingRatePriceTier {
|
|
|
765
765
|
*/
|
|
766
766
|
readonly type: ShippingRateTierType;
|
|
767
767
|
}
|
|
768
|
-
export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue';
|
|
769
|
-
export declare type StackingMode = 'Stacking' | 'StopAfterThisDiscount';
|
|
770
|
-
export declare type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent';
|
|
771
|
-
export declare type StateRole = 'Return' | 'ReviewIncludedInStatistics';
|
|
772
|
-
export declare type StateType = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'ReviewState';
|
|
768
|
+
export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
|
|
769
|
+
export declare type StackingMode = 'Stacking' | 'StopAfterThisDiscount' | string;
|
|
770
|
+
export declare type StagedQuoteState = 'Closed' | 'InProgress' | 'Sent' | string;
|
|
771
|
+
export declare type StateRole = 'Return' | 'ReviewIncludedInStatistics' | string;
|
|
772
|
+
export declare type StateType = 'LineItemState' | 'OrderState' | 'PaymentState' | 'ProductState' | 'ReviewState' | string;
|
|
773
773
|
export interface SubRate {
|
|
774
774
|
/**
|
|
775
775
|
*
|
|
@@ -801,8 +801,8 @@ export interface SyncInfo {
|
|
|
801
801
|
*/
|
|
802
802
|
readonly syncedAt: string;
|
|
803
803
|
}
|
|
804
|
-
export declare type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel';
|
|
805
|
-
export declare type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform';
|
|
804
|
+
export declare type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
|
|
805
|
+
export declare type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
|
|
806
806
|
/**
|
|
807
807
|
* Shape of the value for `addTaxRate` and `removeTaxRate` actions
|
|
808
808
|
*/
|
|
@@ -861,7 +861,7 @@ export interface TaxedPrice {
|
|
|
861
861
|
*/
|
|
862
862
|
readonly totalGross: Money;
|
|
863
863
|
}
|
|
864
|
-
export declare type TextInputHint = 'MultiLine' | 'SingleLine';
|
|
864
|
+
export declare type TextInputHint = 'MultiLine' | 'SingleLine' | string;
|
|
865
865
|
export interface TextLineItem {
|
|
866
866
|
/**
|
|
867
867
|
*
|
|
@@ -942,8 +942,8 @@ export interface Transaction {
|
|
|
942
942
|
*/
|
|
943
943
|
readonly state: TransactionState;
|
|
944
944
|
}
|
|
945
|
-
export declare type TransactionState = 'Failure' | 'Initial' | 'Pending' | 'Success';
|
|
946
|
-
export declare type TransactionType = 'Authorization' | 'CancelAuthorization' | 'Charge' | 'Chargeback' | 'Refund';
|
|
945
|
+
export declare type TransactionState = 'Failure' | 'Initial' | 'Pending' | 'Success' | string;
|
|
946
|
+
export declare type TransactionType = 'Authorization' | 'CancelAuthorization' | 'Charge' | 'Chargeback' | 'Refund' | string;
|
|
947
947
|
export interface Variant {
|
|
948
948
|
/**
|
|
949
949
|
*
|
package/package.json
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@commercetools/history-sdk",
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "3.1.0",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=14"
|
|
10
|
+
},
|
|
8
11
|
"description": "Typescript SDK for Composable Commerce Audit Log features",
|
|
9
12
|
"keywords": [
|
|
10
13
|
"commercetools",
|
|
@@ -29,18 +32,18 @@
|
|
|
29
32
|
"./dist/commercetools-history-sdk.esm.js": "./dist/commercetools-history-sdk.browser.esm.js"
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@commercetools/sdk-client-v2": "^
|
|
33
|
-
"@commercetools/sdk-middleware-auth": "^
|
|
34
|
-
"@commercetools/sdk-middleware-http": "^
|
|
35
|
-
"@commercetools/sdk-middleware-logger": "^
|
|
35
|
+
"@commercetools/sdk-client-v2": "^2.0.1",
|
|
36
|
+
"@commercetools/sdk-middleware-auth": "^7.0.0",
|
|
37
|
+
"@commercetools/sdk-middleware-http": "^7.0.0",
|
|
38
|
+
"@commercetools/sdk-middleware-logger": "^3.0.0",
|
|
36
39
|
"querystring": "^0.2.1"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"@commercetools/platform-sdk": "
|
|
42
|
+
"@commercetools/platform-sdk": "4.1.0",
|
|
40
43
|
"@types/uuid": "8.3.4",
|
|
41
44
|
"organize-imports-cli": "0.10.0",
|
|
42
45
|
"tsconfig-replace-paths": "0.0.11",
|
|
43
|
-
"uuid": "
|
|
46
|
+
"uuid": "9.0.0"
|
|
44
47
|
},
|
|
45
48
|
"scripts": {
|
|
46
49
|
"remove_path_alias": "tsconfig-replace-paths --project tsconfig-declarations.json -s ./src/generated -o ./src/generated",
|