@commercetools/history-sdk 3.4.2 → 3.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 CHANGED
@@ -1,5 +1,52 @@
1
1
  # @commercetools/history-sdk
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0e0c5bf`](https://github.com/commercetools/commercetools-sdk-typescript/commit/0e0c5bfc7e9f9c0c30dfdd520aed768122c7933d) Thanks [@jenschude](https://github.com/jenschude)! - **History changes**
8
+
9
+ <details>
10
+ <summary>Added QueryParameter(s)</summary>
11
+
12
+ - added query parameter `associateId` to method `get /{projectKey}`
13
+ - added query parameter `associateId` to method `get /{projectKey}/{resourceType}`
14
+ - added query parameter `associateId` to method `get /{projectKey}/{resourceType}/{ID}`
15
+ </details>
16
+
17
+ <details>
18
+ <summary>Added Property(s)</summary>
19
+
20
+ - added property `associate` to type `ModifiedBy`
21
+ </details>
22
+
23
+ ## 3.5.0
24
+
25
+ ### Minor Changes
26
+
27
+ - [#514](https://github.com/commercetools/commercetools-sdk-typescript/pull/514) [`800c52f`](https://github.com/commercetools/commercetools-sdk-typescript/commit/800c52f46dfef01ba74322c006045587efc570db) Thanks [@github-actions](https://github.com/apps/github-actions)! - **History changes**
28
+
29
+ <details>
30
+ <summary>Added Type(s)</summary>
31
+
32
+ - added type `AddInheritedAssociateChange`
33
+ - added type `AssociateRoleLabel`
34
+ - added type `ChangeBuyerAssignableChange`
35
+ - added type `ChangeInheritedAssociateChange`
36
+ - added type `InheritedAssociate`
37
+ - added type `InheritedAssociateRoleAssignment`
38
+ - added type `Permission`
39
+ - added type `RemoveInheritedAssociateChange`
40
+ - added type `SetLocalizedNameChange`
41
+ - added type `SetPermissionsChange`
42
+ </details>
43
+
44
+ <details>
45
+ <summary>Added Enum(s)</summary>
46
+
47
+ - added enum `associate-role` to type `ChangeHistoryResourceType`
48
+ </details>
49
+
3
50
  ## 3.4.2
4
51
 
5
52
  ### Patch Changes
@@ -1 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
+ //# sourceMappingURL=commercetools-history-sdk.cjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commercetools-history-sdk.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
@@ -1,2 +1,2 @@
1
- import { ApiRoot } from '../generated/index';
1
+ import { ApiRoot } from "../generated/index.js";
2
2
  export declare function createApiBuilderFromCtpClient(ctpClient: any, baseUri?: string): ApiRoot;
@@ -3,8 +3,8 @@
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 { executeRequest } from '../shared/utils/common-types';
7
- import { ByProjectKeyRequestBuilder } from './by-project-key-request-builder';
6
+ import { executeRequest } from "../shared/utils/common-types.js";
7
+ import { ByProjectKeyRequestBuilder } from "./by-project-key-request-builder.js";
8
8
  export declare class ApiRoot {
9
9
  private executeRequest;
10
10
  private baseUri;
@@ -3,9 +3,9 @@
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 { PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/change-history';
7
- import { executeRequest, QueryParam } from '../shared/utils/common-types';
8
- import { ApiRequest } from '../shared/utils/requests-utils';
6
+ import { PlatformInitiatedChange, RecordPagedQueryResponse } from "../models/change-history.js";
7
+ import { executeRequest, QueryParam } from "../shared/utils/common-types.js";
8
+ import { ApiRequest } from "../shared/utils/requests-utils.js";
9
9
  /**
10
10
  **/
11
11
  export declare class ByProjectKeyByResourceTypeByIDRequestBuilder {
@@ -37,12 +37,13 @@ export declare class ByProjectKeyByResourceTypeByIDRequestBuilder {
37
37
  limit?: number;
38
38
  offset?: number;
39
39
  userId?: string;
40
- type?: string;
41
40
  clientId?: string;
41
+ customerId?: string;
42
+ associateId?: string;
43
+ type?: string;
42
44
  source?: string;
43
45
  changes?: string | string[];
44
46
  stores?: string | string[];
45
- customerId?: string;
46
47
  excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
47
48
  expand?: boolean;
48
49
  [key: string]: QueryParam;
@@ -3,10 +3,10 @@
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 { PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/change-history';
7
- import { executeRequest, QueryParam } from '../shared/utils/common-types';
8
- import { ApiRequest } from '../shared/utils/requests-utils';
9
- import { ByProjectKeyByResourceTypeByIDRequestBuilder } from './by-project-key-by-resource-type-by-id-request-builder';
6
+ import { PlatformInitiatedChange, RecordPagedQueryResponse } from "../models/change-history.js";
7
+ import { executeRequest, QueryParam } from "../shared/utils/common-types.js";
8
+ import { ApiRequest } from "../shared/utils/requests-utils.js";
9
+ import { ByProjectKeyByResourceTypeByIDRequestBuilder } from "./by-project-key-by-resource-type-by-id-request-builder.js";
10
10
  /**
11
11
  **/
12
12
  export declare class ByProjectKeyByResourceTypeRequestBuilder {
@@ -39,13 +39,14 @@ export declare class ByProjectKeyByResourceTypeRequestBuilder {
39
39
  limit?: number;
40
40
  offset?: number;
41
41
  userId?: string;
42
- type?: string;
43
42
  clientId?: string;
43
+ customerId?: string;
44
+ associateId?: string;
45
+ type?: string;
44
46
  resourceKey?: string;
45
47
  source?: string;
46
48
  changes?: string | string[];
47
49
  stores?: string | string[];
48
- customerId?: string;
49
50
  excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
50
51
  expand?: boolean;
51
52
  [key: string]: QueryParam;
@@ -3,10 +3,10 @@
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 { ChangeHistoryResourceType, PlatformInitiatedChange, RecordPagedQueryResponse } from '../models/change-history';
7
- import { executeRequest, QueryParam } from '../shared/utils/common-types';
8
- import { ApiRequest } from '../shared/utils/requests-utils';
9
- import { ByProjectKeyByResourceTypeRequestBuilder } from './by-project-key-by-resource-type-request-builder';
6
+ import { ChangeHistoryResourceType, PlatformInitiatedChange, RecordPagedQueryResponse } from "../models/change-history.js";
7
+ import { executeRequest, QueryParam } from "../shared/utils/common-types.js";
8
+ import { ApiRequest } from "../shared/utils/requests-utils.js";
9
+ import { ByProjectKeyByResourceTypeRequestBuilder } from "./by-project-key-by-resource-type-request-builder.js";
10
10
  /**
11
11
  **/
12
12
  export declare class ByProjectKeyRequestBuilder {
@@ -38,14 +38,15 @@ export declare class ByProjectKeyRequestBuilder {
38
38
  limit?: number;
39
39
  offset?: number;
40
40
  userId?: string;
41
- type?: string;
42
41
  clientId?: string;
42
+ customerId?: string;
43
+ associateId?: string;
44
+ type?: string;
43
45
  resourceId?: string;
44
46
  resourceKey?: string;
45
47
  source?: string;
46
48
  changes?: string | string[];
47
49
  stores?: string | string[];
48
- customerId?: string;
49
50
  excludePlatformInitiatedChanges?: PlatformInitiatedChange | PlatformInitiatedChange[];
50
51
  expand?: boolean;
51
52
  [key: string]: QueryParam;
@@ -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
- export * from './client/api-root';
7
- export * from './models/change';
8
- export * from './models/change-history';
9
- export * from './models/change-value';
10
- export * from './models/common';
11
- export * from './models/label';
12
- export * from './shared/utils/common-types';
13
- export * from './shared/utils/middleware';
6
+ export * from "./client/api-root.js";
7
+ export * from "./models/change.js";
8
+ export * from "./models/change-history.js";
9
+ export * from "./models/change-value.js";
10
+ export * from "./models/common.js";
11
+ export * from "./models/label.js";
12
+ export * from "./shared/utils/common-types.js";
13
+ export * from "./shared/utils/middleware.js";
@@ -3,9 +3,9 @@
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 { Change } from './change';
7
- import { KeyReference, Reference, ResourceIdentifier } from './common';
8
- import { Label } from './label';
6
+ import { Change } from "./change.js";
7
+ import { KeyReference, Reference, ResourceIdentifier } from "./common.js";
8
+ import { Label } from "./label.js";
9
9
  /**
10
10
  * Captures the differences between the previous and next version of a resource.
11
11
  *
@@ -124,7 +124,7 @@ export interface RecordPagedQueryResponse {
124
124
  * The value must be one of the following:
125
125
  *
126
126
  */
127
- export type ChangeHistoryResourceType = 'business-unit' | '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;
127
+ export type ChangeHistoryResourceType = 'associate-role' | 'business-unit' | '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;
128
128
  /**
129
129
  * This type consists of one enum value:
130
130
  *
@@ -180,18 +180,19 @@ export interface ModifiedBy {
180
180
  *
181
181
  * - If the change was made by a user, the value is `"user"`.
182
182
  * - If the change was made by an API Client with or without an [external user ID](/client-logging#external-user-ids), the value is `"external-user"`.
183
+ * - If the change was made by an [Associate](ctp:api:type:Associate), the value is `"associate"`.
183
184
  *
184
185
  *
185
186
  */
186
187
  readonly type: string;
187
188
  /**
188
- * [Reference](ctp:api:type:Reference) to the [Customer](ctp:api:type:Customer) who made the change.
189
+ * [ID](/general-concepts#identifier) of the [API Client](ctp:api:type:ApiClient) that made the change.
189
190
  *
190
- * Present only if the change was made using a token from the [password flow](/authorization#password-flow).
191
+ * Present only if the change was made using an API Client.
191
192
  *
192
193
  *
193
194
  */
194
- readonly customer?: Reference;
195
+ readonly clientId?: string;
195
196
  /**
196
197
  * Present only if the change was made using a token from an [anonymous session](/authorization#tokens-for-anonymous-sessions).
197
198
  *
@@ -199,13 +200,19 @@ export interface ModifiedBy {
199
200
  */
200
201
  readonly anonymousId?: string;
201
202
  /**
202
- * [ID](/general-concepts#identifier) of the [API Client](ctp:api:type:ApiClient) that made the change.
203
+ * The [Customer](ctp:api:type:Customer) who made the change.
203
204
  *
204
- * Present only if the change was made using an API Client.
205
+ * Present only if the change was made using a token from the [password flow](/authorization#password-flow).
205
206
  *
206
207
  *
207
208
  */
208
- readonly clientId?: string;
209
+ readonly customer?: Reference;
210
+ /**
211
+ * The [Associate](ctp:api:type:Associate) who made the change in the context of a [Business Unit](ctp:api:type:BusinessUnit). Present only if the Associate acts on behalf of a company using the [associate endpoints](/associates-overview#on-the-associate-endpoints).
212
+ *
213
+ *
214
+ */
215
+ readonly associate?: Reference;
209
216
  /**
210
217
  * `true` if the change was made using the Merchant Center or [ImpEx](https://impex.europe-west1.gcp.commercetools.com/).
211
218
  *
@@ -3,7 +3,7 @@
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 { Address, DeliveryItem, LocalizedString, Money, Parcel, Reference, SelectionMode, TaxedPrice, TaxRate } from './common';
6
+ import { Address, DeliveryItem, LocalizedString, Money, Parcel, Reference, SelectionMode, TaxedPrice, TaxRate } from "./common.js";
7
7
  export type ChangeTargetChangeValue = ChangeTargetCustomLineItemsChangeValue | ChangeTargetLineItemsChangeValue | ChangeTargetMultiBuyCustomLineItemsChangeValue | ChangeTargetMultiBuyLineItemsChangeValue | ChangeTargetShippingChangeValue;
8
8
  export type ChangeValueChangeValue = ChangeValueAbsoluteChangeValue | ChangeValueExternalChangeValue | ChangeValueGiftLineItemChangeValue | ChangeValueRelativeChangeValue;
9
9
  export interface AssetChangeValue {
@@ -3,15 +3,15 @@
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 { 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, Associate, AttributeConstraintEnum, AttributeDefinition, AuthenticationMode, BusinessUnitAssociateMode, BusinessUnitStatus, BusinessUnitStoreMode, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, ItemShippingDetails, ItemState, KeyReference, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Price, ProductSelectionSetting, ProductVariantAvailability, ProductVariantSelection, QuoteRequestState, QuoteState, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StagedQuoteState, StateRole, StateType, StoreCountry, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from './common';
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.js";
7
+ import { Address, Asset, AssetSource, Associate, AttributeConstraintEnum, AttributeDefinition, AuthenticationMode, BusinessUnitAssociateMode, BusinessUnitStatus, BusinessUnitStoreMode, CategoryOrderHints, ChannelRole, CustomFields, CustomLineItem, Delivery, DeliveryItem, DiscountCodeInfo, DiscountedLineItemPrice, DiscountedLineItemPriceForQuantity, FieldDefinition, GeoLocation, Image, InheritedAssociate, ItemShippingDetails, ItemState, KeyReference, LineItem, LocalizedString, Location, Money, OrderState, Parcel, ParcelMeasurements, PaymentInfo, PaymentState, Permission, Price, ProductSelectionSetting, ProductVariantAvailability, ProductVariantSelection, QuoteRequestState, QuoteState, Reference, Reservation, ReturnInfo, ReturnPaymentState, ReturnShipmentState, ReviewRatingStatistics, RoundingMode, SearchKeywords, ShipmentState, StackingMode, StagedQuoteState, StateRole, StateType, StoreCountry, SyncInfo, TaxCalculationMode, TaxedItemPrice, TaxedPrice, TaxMode, TaxRate, TextInputHint, TextLineItem, TrackingData, Transaction, TransactionState, Variant } from "./common.js";
8
8
  /**
9
9
  * Difference between the previous and next version of a resource represented by `previousValue` (omitted, for example, on creations) and `nextValue` of the associated change. A Change can also contain extra fields that provide further information.
10
10
  *
11
11
  * They are not identical to the actual update actions sent.
12
12
  *
13
13
  */
14
- export type Change = AddAddressChange | AddAssetChange | AddAssociateChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddProductChange | AddProductSelectionChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAssociateChange | ChangeAssociateModeChange | 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 | ChangeParentUnitChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeProductSelectionActiveChange | ChangeQuantityChange | ChangeQuoteRequestStateChange | ChangeQuoteStateChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStagedQuoteStateChange | ChangeStateTypeChange | ChangeStatusChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAssociateChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemoveProductChange | RemoveProductSelectionChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | RequestQuoteRenegotiationChange | SetAddressChange | SetAddressCustomFieldChange | SetAddressCustomTypeChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthenticationModeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetContactEmailChange | SetCountriesChange | 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 | SetPurchaseOrderNumberChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetSellerCommentChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoreModeChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidToChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVariantSelectionChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
14
+ export type Change = AddAddressChange | AddAssetChange | AddAssociateChange | AddAttributeDefinitionChange | AddBillingAddressIdChange | AddChannelRolesChange | AddCustomLineItemChange | AddDeliveryChange | AddDiscountCodeChange | AddEnumValueChange | AddExternalImageChange | AddFieldDefinitionChange | AddInheritedAssociateChange | AddInterfaceInteractionChange | AddItemShippingAddressesChange | AddLocalizedEnumValueChange | AddLocationChange | AddOrderLineItemChange | AddParcelToDeliveryChange | AddPaymentChange | AddPlainEnumValueChange | AddPriceChange | AddProductChange | AddProductSelectionChange | AddPropertyChange | AddReturnInfoChange | AddShippingAddressIdChange | AddShoppingListLineItemChange | AddStateRolesChange | AddTaxRateChange | AddTextLineItemChange | AddToCategoryChange | AddTransactionChange | AddVariantChange | ChangeAddressChange | ChangeAmountAuthorizedChange | ChangeAmountPlannedChange | ChangeAssetNameChange | ChangeAssetOrderChange | ChangeAssociateChange | ChangeAssociateModeChange | ChangeAttributeConstraintChange | ChangeAttributeOrderByNameChange | ChangeBuyerAssignableChange | ChangeCartDiscountsChange | ChangeCartPredicateChange | ChangeCustomLineItemQuantityChange | ChangeDescriptionChange | ChangeEmailChange | ChangeEnumValueLabelChange | ChangeEnumValueOrderChange | ChangeFieldDefinitionOrderChange | ChangeGroupsChange | ChangeInheritedAssociateChange | ChangeInitialChange | ChangeInputHintChange | ChangeIsActiveChange | ChangeIsSearchableChange | ChangeKeyChange | ChangeLabelChange | ChangeLineItemQuantityChange | ChangeLocalizedDescriptionChange | ChangeLocalizedEnumValueLabelChange | ChangeLocalizedEnumValueOrderChange | ChangeLocalizedNameChange | ChangeMasterVariantChange | ChangeNameChange | ChangeOrderHintChange | ChangeOrderStateChange | ChangeParentChange | ChangeParentUnitChange | ChangePaymentStateChange | ChangePlainEnumValueLabelChange | ChangePlainEnumValueOrderChange | ChangePredicateChange | ChangePriceChange | ChangeProductSelectionActiveChange | ChangeQuantityChange | ChangeQuoteRequestStateChange | ChangeQuoteStateChange | ChangeRequiresDiscountCodeChange | ChangeReviewRatingStatisticsChange | ChangeShipmentStateChange | ChangeShoppingListLineItemQuantityChange | ChangeShoppingListLineItemsOrderChange | ChangeSlugChange | ChangeSortOrderChange | ChangeStackingModeChange | ChangeStagedQuoteStateChange | ChangeStateTypeChange | ChangeStatusChange | ChangeTargetChange | ChangeTaxCalculationModeChange | ChangeTaxModeChange | ChangeTaxRoundingModeChange | ChangeTextLineItemNameChange | ChangeTextLineItemQuantityChange | ChangeTextLineItemsOrderChange | ChangeTransactionInteractionIdChange | ChangeTransactionStateChange | ChangeTransactionTimestampChange | ChangeValueChange | MoveImageToPositionChange | PublishChange | RemoveAddressChange | RemoveAssetChange | RemoveAssociateChange | RemoveAttributeDefinitionChange | RemoveBillingAddressIdChange | RemoveChannelRolesChange | RemoveCustomLineItemChange | RemoveDeliveryItemsChange | RemoveDiscountCodeChange | RemoveEnumValuesChange | RemoveFieldDefinitionChange | RemoveFromCategoryChange | RemoveImageChange | RemoveInheritedAssociateChange | RemoveItemShippingAddressesChange | RemoveLocalizedEnumValuesChange | RemoveLocationChange | RemoveOrderLineItemChange | RemoveParcelFromDeliveryChange | RemovePaymentChange | RemovePriceChange | RemoveProductChange | RemoveProductSelectionChange | RemovePropertyChange | RemoveShippingAddressIdChange | RemoveShoppingListLineItemChange | RemoveStateRolesChange | RemoveTaxRateChange | RemoveTextLineItemChange | RemoveVariantChange | RequestQuoteRenegotiationChange | SetAddressChange | SetAddressCustomFieldChange | SetAddressCustomTypeChange | SetAnonymousIdChange | SetApplicationVersionChange | SetAssetCustomFieldChange | SetAssetCustomTypeChange | SetAssetDescriptionChange | SetAssetKeyChange | SetAssetSourcesChange | SetAssetTagsChange | SetAttributeChange | SetAuthenticationModeChange | SetAuthorNameChange | SetBillingAddressChange | SetCartPredicateChange | SetCategoryOrderHintChange | SetChannelRolesChange | SetCompanyNameChange | SetContactEmailChange | SetCountriesChange | 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 | SetLocalizedNameChange | SetMaxApplicationsChange | SetMaxApplicationsPerCustomerChange | SetMetaDescriptionChange | SetMetaKeywordsChange | SetMetaTitleChange | SetMethodInfoInterfaceChange | SetMethodInfoMethodChange | SetMethodInfoNameChange | SetMiddleNameChange | SetNameChange | SetOrderLineItemCustomFieldChange | SetOrderLineItemCustomTypeChange | SetOrderNumberChange | SetOrderTaxedPriceChange | SetOrderTotalPriceChange | SetOrderTotalTaxChange | SetParcelItemsChange | SetParcelMeasurementsChange | SetParcelTrackingDataChange | SetPermissionsChange | SetPricesChange | SetProductCountChange | SetProductPriceCustomFieldChange | SetProductPriceCustomTypeChange | SetProductSelectionsChange | SetProductVariantKeyChange | SetPropertyChange | SetPurchaseOrderNumberChange | SetRatingChange | SetReservationsChange | SetRestockableInDaysChange | SetReturnPaymentStateChange | SetReturnShipmentStateChange | SetSalutationChange | SetSearchKeywordsChange | SetSellerCommentChange | SetShippingAddressChange | SetShippingInfoPriceChange | SetShippingInfoTaxedPriceChange | SetShippingMethodChange | SetShippingMethodTaxAmountChange | SetShippingMethodTaxRateChange | SetShippingRateChange | SetShippingRateInputChange | SetShoppingListLineItemCustomFieldChange | SetShoppingListLineItemCustomTypeChange | SetSkuChange | SetSlugChange | SetStateRolesChange | SetStatusInterfaceCodeChange | SetStatusInterfaceTextChange | SetStoreChange | SetStoreModeChange | SetStoresChange | SetSupplyChannelChange | SetSupplyChannelsChange | SetTargetChange | SetTaxCategoryChange | SetTextChange | SetTextLineItemCustomFieldChange | SetTextLineItemCustomTypeChange | SetTextLineItemDescriptionChange | SetTitleChange | SetTransitionsChange | SetValidFromAndUntilChange | SetValidFromChange | SetValidToChange | SetValidUntilChange | SetValueChange | SetVariantAvailabilityChange | SetVariantSelectionChange | SetVatIdChange | TransitionCustomLineItemStateChange | TransitionLineItemStateChange | TransitionStateChange | UnknownChange | UnpublishChange | UpdateSyncInfoChange | VerifyEmailChange;
15
15
  /**
16
16
  * Change triggered by the [Add Address](ctp:api:type:CustomerAddAddressAction) update action.
17
17
  */
@@ -248,6 +248,21 @@ export interface AddFieldDefinitionChange {
248
248
  */
249
249
  readonly nextValue: FieldDefinition;
250
250
  }
251
+ /**
252
+ * Change triggered by the [Add Associate](ctp:api:type:BusinessUnitAddAssociateAction) update action on a parent of a Business Unit in cases where [inheritance applies](/../api/associates-overview#conditions-for-inheritance).
253
+ */
254
+ export interface AddInheritedAssociateChange {
255
+ readonly type: 'AddInheritedAssociateChange';
256
+ /**
257
+ *
258
+ */
259
+ readonly change: string;
260
+ /**
261
+ * Value after the change.
262
+ *
263
+ */
264
+ readonly nextValue: InheritedAssociate;
265
+ }
251
266
  /**
252
267
  * Change triggered by the [Add InterfaceInteraction](ctp:api:type:PaymentAddInterfaceInteractionAction) update action.
253
268
  */
@@ -890,6 +905,27 @@ export interface ChangeAttributeOrderByNameChange {
890
905
  */
891
906
  readonly nextValue: string[];
892
907
  }
908
+ /**
909
+ * Change triggered by the [Change BuyerAssignable](ctp:api:type:AssociateRoleChangeBuyerAssignableAction) update action.
910
+ *
911
+ */
912
+ export interface ChangeBuyerAssignableChange {
913
+ readonly type: 'ChangeBuyerAssignableChange';
914
+ /**
915
+ *
916
+ */
917
+ readonly change: string;
918
+ /**
919
+ * Value before the change.
920
+ *
921
+ */
922
+ readonly previousValue: boolean;
923
+ /**
924
+ * Value after the change.
925
+ *
926
+ */
927
+ readonly nextValue: boolean;
928
+ }
893
929
  /**
894
930
  * Change triggered by the [Change CartDiscounts](ctp:api:type:DiscountCodeChangeCartDiscountsAction) update action.
895
931
  */
@@ -1100,6 +1136,26 @@ export interface ChangeGroupsChange {
1100
1136
  */
1101
1137
  readonly nextValue: string[];
1102
1138
  }
1139
+ /**
1140
+ * Change triggered by the [Change Associate](ctp:api:type:BusinessUnitChangeAssociateAction) update action on a parent of a Business Unit in cases where [inheritance applies](/../api/associates-overview#conditions-for-inheritance).
1141
+ */
1142
+ export interface ChangeInheritedAssociateChange {
1143
+ readonly type: 'ChangeInheritedAssociateChange';
1144
+ /**
1145
+ *
1146
+ */
1147
+ readonly change: string;
1148
+ /**
1149
+ * Value before the change.
1150
+ *
1151
+ */
1152
+ readonly previousValue: InheritedAssociate;
1153
+ /**
1154
+ * Value after the change.
1155
+ *
1156
+ */
1157
+ readonly nextValue: InheritedAssociate;
1158
+ }
1103
1159
  /**
1104
1160
  * Change triggered by the [Change initial State](ctp:api:type:StateChangeInitialAction) update action.
1105
1161
  */
@@ -2553,6 +2609,21 @@ export interface RemoveImageChange {
2553
2609
  */
2554
2610
  readonly catalogData: string;
2555
2611
  }
2612
+ /**
2613
+ * Change triggered by the [Remove Associate](ctp:api:type:BusinessUnitRemoveAssociateAction) update action on a parent of a Business Unit in cases where [inheritance applies](/../api/associates-overview#conditions-for-inheritance).
2614
+ */
2615
+ export interface RemoveInheritedAssociateChange {
2616
+ readonly type: 'RemoveInheritedAssociateChange';
2617
+ /**
2618
+ *
2619
+ */
2620
+ readonly change: string;
2621
+ /**
2622
+ * The value before the change.
2623
+ *
2624
+ */
2625
+ readonly previousValue: InheritedAssociate;
2626
+ }
2556
2627
  /**
2557
2628
  * Change triggered by the [Remove Item Shipping Address](ctp:api:type:OrderRemoveItemShippingAddressAction) update action.
2558
2629
  */
@@ -3640,8 +3711,8 @@ export interface SetCustomLineItemMoneyChange {
3640
3711
  /**
3641
3712
  * Change triggered by the following update actions:
3642
3713
  *
3643
- * - [Set CustomLineItemShippingDetails](ctp:api:type:OrderSetCustomLineItemShippingDetailsAction) on Orders.
3644
- * - [Set CustomLineItemShippingDetails](ctp:api:type:StagedOrderSetCustomLineItemShippingDetailsAction) on Staged Orders.
3714
+ * - [Set CustomLineItem ShippingDetails](ctp:api:type:OrderSetCustomLineItemShippingDetailsAction) on Orders.
3715
+ * - [Set CustomLineItem ShippingDetails](ctp:api:type:StagedOrderSetCustomLineItemShippingDetailsAction) on Staged Orders.
3645
3716
  *
3646
3717
  */
3647
3718
  export interface SetCustomLineItemShippingDetailsChange {
@@ -4681,8 +4752,8 @@ export interface SetLineItemProductSlugChange {
4681
4752
  /**
4682
4753
  * Change triggered by the following update actions:
4683
4754
  *
4684
- * - [Set LineItemShippingDetails](ctp:api:type:OrderSetLineItemShippingDetailsAction) on Orders.
4685
- * - [Set LineItemShippingDetails](ctp:api:type:StagedOrderSetLineItemShippingDetailsAction) on Staged Orders.
4755
+ * - [Set LineItem ShippingDetails](ctp:api:type:OrderSetLineItemShippingDetailsAction) on Orders.
4756
+ * - [Set LineItem ShippingDetails](ctp:api:type:StagedOrderSetLineItemShippingDetailsAction) on Staged Orders.
4686
4757
  *
4687
4758
  */
4688
4759
  export interface SetLineItemShippingDetailsChange {
@@ -5089,7 +5160,7 @@ export interface SetMiddleNameChange {
5089
5160
  * Change triggered by the following update actions:
5090
5161
  *
5091
5162
  * - [Set Name](ctp:api:type:DiscountCodeSetNameAction) on Discount Codes.
5092
- * - [Set Name](ctp:api:type:StateSetNameAction) on States.
5163
+ * - [Set State Name](ctp:api:type:StateSetNameAction) on States.
5093
5164
  * - [Set Name](ctp:api:type:StoreSetNameAction) on Stores.
5094
5165
  *
5095
5166
  */
@@ -5110,6 +5181,23 @@ export interface SetNameChange {
5110
5181
  */
5111
5182
  readonly nextValue: LocalizedString;
5112
5183
  }
5184
+ export interface SetLocalizedNameChange {
5185
+ readonly type: 'SetLocalizedNameChange';
5186
+ /**
5187
+ *
5188
+ */
5189
+ readonly change: string;
5190
+ /**
5191
+ * Value before the change.
5192
+ *
5193
+ */
5194
+ readonly previousValue: LocalizedString;
5195
+ /**
5196
+ * Value after the change.
5197
+ *
5198
+ */
5199
+ readonly nextValue: LocalizedString;
5200
+ }
5113
5201
  /**
5114
5202
  * Change triggered by the following update actions:
5115
5203
  *
@@ -5369,6 +5457,27 @@ export interface SetParcelTrackingDataChange {
5369
5457
  */
5370
5458
  readonly parcel: ParcelChangeValue;
5371
5459
  }
5460
+ /**
5461
+ * Change triggered by the [Set Permissions](ctp:api:type:AssociateRoleSetPermissionsAction), [Add Permission](ctp:api:type:AssociateRoleAddPermissionAction), and [Remove Permission](ctp:api:type:AssociateRoleRemovePermissionAction) update actions.
5462
+ *
5463
+ */
5464
+ export interface SetPermissionsChange {
5465
+ readonly type: 'SetPermissionsChange';
5466
+ /**
5467
+ *
5468
+ */
5469
+ readonly change: string;
5470
+ /**
5471
+ * Value before the change.
5472
+ *
5473
+ */
5474
+ readonly previousValue: Permission[];
5475
+ /**
5476
+ * Value after the change.
5477
+ *
5478
+ */
5479
+ readonly nextValue: Permission[];
5480
+ }
5372
5481
  /**
5373
5482
  * Change triggered by the [Set Prices](ctp:api:type:ProductSetPricesAction) update action.
5374
5483
  */
@@ -428,6 +428,26 @@ export interface ImageDimensions {
428
428
  */
429
429
  readonly h: number;
430
430
  }
431
+ export interface InheritedAssociate {
432
+ /**
433
+ *
434
+ */
435
+ readonly associateRoleAssignments: InheritedAssociateRoleAssignment[];
436
+ /**
437
+ *
438
+ */
439
+ readonly customer: Reference;
440
+ }
441
+ export interface InheritedAssociateRoleAssignment {
442
+ /**
443
+ *
444
+ */
445
+ readonly associateRole: KeyReference;
446
+ /**
447
+ *
448
+ */
449
+ readonly source: KeyReference;
450
+ }
431
451
  export interface ItemShippingDetails {
432
452
  /**
433
453
  *
@@ -597,6 +617,10 @@ export interface PaymentInfo {
597
617
  readonly payments: Reference[];
598
618
  }
599
619
  export type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
620
+ /**
621
+ * Permissions grant granular access to [Business Units](ctp:api:type:BusinessUnit), [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), and [Quote Requests](ctp:api:type:QuoteRequest).
622
+ */
623
+ export type Permission = 'AcceptMyQuotes' | 'AcceptOthersQuotes' | 'AddChildUnits' | 'CreateMyCarts' | 'CreateMyOrdersFromMyCarts' | 'CreateMyOrdersFromMyQuotes' | 'CreateMyQuoteRequestsFromMyCarts' | 'CreateOrdersFromOthersCarts' | 'CreateOrdersFromOthersQuotes' | 'CreateOthersCarts' | 'CreateQuoteRequestsFromOthersCarts' | 'DeclineMyQuotes' | 'DeclineOthersQuotes' | 'DeleteMyCarts' | 'DeleteOthersCarts' | 'ReassignMyQuotes' | 'ReassignOthersQuotes' | 'RenegotiateMyQuotes' | 'RenegotiateOthersQuotes' | 'UpdateAssociates' | 'UpdateBusinessUnitDetails' | 'UpdateMyCarts' | 'UpdateMyOrders' | 'UpdateMyQuoteRequests' | 'UpdateOthersCarts' | 'UpdateOthersOrders' | 'UpdateOthersQuoteRequests' | 'UpdateParentUnit' | 'ViewMyCarts' | 'ViewMyOrders' | 'ViewMyQuoteRequests' | 'ViewMyQuotes' | 'ViewOthersCarts' | 'ViewOthersOrders' | 'ViewOthersQuoteRequests' | 'ViewOthersQuotes' | string;
600
624
  export interface Price {
601
625
  /**
602
626
  *
@@ -3,11 +3,24 @@
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, Reference } from './common';
6
+ import { LocalizedString, Money, Reference } from "./common.js";
7
7
  /**
8
8
  * Provides descriptive information specific to the resource.
9
9
  */
10
- export type Label = BusinessUnitLabel | CustomObjectLabel | CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | QuoteLabel | QuoteRequestLabel | ReviewLabel | StagedQuoteLabel | StringLabel;
10
+ export type Label = AssociateRoleLabel | BusinessUnitLabel | CustomObjectLabel | CustomerLabel | LocalizedLabel | OrderLabel | PaymentLabel | ProductLabel | QuoteLabel | QuoteRequestLabel | ReviewLabel | StagedQuoteLabel | StringLabel;
11
+ export interface AssociateRoleLabel {
12
+ readonly type: 'AssociateRoleLabel';
13
+ /**
14
+ * User-defined unique identifier of the [Associate Role](ctp:api:type:AssociateRole).
15
+ *
16
+ */
17
+ readonly key: string;
18
+ /**
19
+ * Name of the Associate Role.
20
+ *
21
+ */
22
+ readonly name: string;
23
+ }
11
24
  export interface BusinessUnitLabel {
12
25
  readonly type: 'BusinessUnitLabel';
13
26
  /**
@@ -3,6 +3,6 @@
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 { ClientRequest, ClientResponse, executeRequest } from './common-types';
6
+ import { ClientRequest, ClientResponse, executeRequest } from "./common-types.js";
7
7
  export type Middleware = (request: ClientRequest, executor: executeRequest) => Promise<ClientResponse>;
8
8
  export declare const createExecutorFromMiddlewares: (executor: executeRequest, midds?: Middleware[]) => executeRequest;
@@ -3,7 +3,7 @@
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 { ClientRequest, ClientResponse, executeRequest } from './common-types';
6
+ import { ClientRequest, ClientResponse, executeRequest } from "./common-types.js";
7
7
  export declare class ApiRequest<O> {
8
8
  private readonly requestExecutor;
9
9
  private request;
@@ -1,2 +1,2 @@
1
- export * from './ctp/ctp-client';
2
- export * from './generated/index';
1
+ export * from "./ctp/ctp-client.js";
2
+ export * from "./generated/index.js";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@commercetools/history-sdk",
7
- "version": "3.4.2",
7
+ "version": "3.6.0",
8
8
  "engines": {
9
9
  "node": ">=14"
10
10
  },
@@ -38,8 +38,8 @@
38
38
  "@commercetools/sdk-middleware-logger": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@commercetools/platform-sdk": "4.10.1",
42
- "@types/uuid": "9.0.1",
41
+ "@commercetools/platform-sdk": "6.0.0",
42
+ "@types/uuid": "9.0.2",
43
43
  "organize-imports-cli": "0.10.0",
44
44
  "tsconfig-replace-paths": "0.0.13",
45
45
  "uuid": "9.0.0"
@@ -1,7 +0,0 @@
1
- /**
2
- * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
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
- * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
- */
6
- import { ClientRequest } from './common-types';
7
- export declare function buildRelativeUri(commonRequest: ClientRequest): string;