@commercetools/importapi-sdk 4.1.0 → 4.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.
@@ -3,7 +3,16 @@
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 { CategoryImport } from './categories';
7
+ import { CustomerImport } from './customers';
6
8
  import { Custom } from './customfields';
9
+ import { InventoryImport } from './inventories';
10
+ import { PriceImport } from './prices';
11
+ import { ProductDraftImport } from './productdrafts';
12
+ import { ProductImport } from './products';
13
+ import { ProductTypeImport } from './producttypes';
14
+ import { ProductVariantImport } from './productvariants';
15
+ import { StandalonePriceImport } from './standalone-prices';
7
16
  export interface Asset {
8
17
  /**
9
18
  * User-defined identifier for the asset.
@@ -163,10 +172,11 @@ export interface ImportResource {
163
172
  */
164
173
  readonly key: string;
165
174
  }
175
+ export type _ImportResource = ImportResource | ProductVariantImport | PriceImport | CategoryImport | StandalonePriceImport | ProductImport | ProductDraftImport | ProductTypeImport | CustomerImport | InventoryImport;
166
176
  /**
167
177
  * References a resource by key.
168
178
  */
169
- export declare type KeyReference = CartDiscountKeyReference | CartKeyReference | CategoryKeyReference | ChannelKeyReference | CustomObjectKeyReference | CustomerGroupKeyReference | CustomerKeyReference | DiscountCodeKeyReference | OrderKeyReference | PaymentKeyReference | PriceKeyReference | ProductDiscountKeyReference | ProductKeyReference | ProductTypeKeyReference | ProductVariantKeyReference | ShippingMethodKeyReference | StateKeyReference | StoreKeyReference | TaxCategoryKeyReference | TypeKeyReference;
179
+ export type KeyReference = CartDiscountKeyReference | CartKeyReference | CategoryKeyReference | ChannelKeyReference | CustomObjectKeyReference | CustomerGroupKeyReference | CustomerKeyReference | DiscountCodeKeyReference | OrderKeyReference | PaymentKeyReference | PriceKeyReference | ProductDiscountKeyReference | ProductKeyReference | ProductTypeKeyReference | ProductVariantKeyReference | ShippingMethodKeyReference | StateKeyReference | StoreKeyReference | TaxCategoryKeyReference | TypeKeyReference;
170
180
  /**
171
181
  * References a cart by key.
172
182
  */
@@ -383,8 +393,8 @@ export interface UnresolvedReferences {
383
393
  */
384
394
  readonly typeId: ReferenceType;
385
395
  }
386
- export declare type MoneyType = 'centPrecision' | 'highPrecision' | string;
387
- export declare type TypedMoney = HighPrecisionMoney | Money;
396
+ export type MoneyType = 'centPrecision' | 'highPrecision' | string;
397
+ export type TypedMoney = HighPrecisionMoney | Money;
388
398
  export interface HighPrecisionMoney {
389
399
  readonly type: 'highPrecision';
390
400
  /**
@@ -455,17 +465,17 @@ export interface PriceTier {
455
465
  * The type of the import resource.
456
466
  *
457
467
  */
458
- export declare type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | string;
468
+ export type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | string;
459
469
  /**
460
470
  * The type of the referenced resource.
461
471
  *
462
472
  */
463
- export declare type ReferenceType = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type' | string;
473
+ export type ReferenceType = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type' | string;
464
474
  /**
465
475
  * Every [Import Operation](/import-operation) is assigned with one of the following states.
466
476
  *
467
477
  */
468
- export declare type ProcessingState = 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant' | string;
478
+ export type ProcessingState = 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant' | string;
469
479
  export interface Address {
470
480
  /**
471
481
  *
@@ -570,4 +580,4 @@ export interface Address {
570
580
  */
571
581
  readonly externalId?: string;
572
582
  }
573
- export declare type ProductPriceModeEnum = 'Embedded' | 'Standalone' | string;
583
+ export type ProductPriceModeEnum = 'Embedded' | 'Standalone' | string;
@@ -28,7 +28,7 @@ export interface FieldContainer {
28
28
  /**
29
29
  * Provides the value for a custom field of a specific type.
30
30
  */
31
- export declare type CustomField = BooleanField | BooleanSetField | DateField | DateSetField | DateTimeField | DateTimeSetField | EnumField | EnumSetField | LocalizedEnumField | LocalizedEnumSetField | LocalizedStringField | LocalizedStringSetField | MoneyField | MoneySetField | NumberField | NumberSetField | ReferenceField | ReferenceSetField | StringField | StringSetField | TimeField | TimeSetField;
31
+ export type CustomField = BooleanField | BooleanSetField | DateField | DateSetField | DateTimeField | DateTimeSetField | EnumField | EnumSetField | LocalizedEnumField | LocalizedEnumSetField | LocalizedStringField | LocalizedStringSetField | MoneyField | MoneySetField | NumberField | NumberSetField | ReferenceField | ReferenceSetField | StringField | StringSetField | TimeField | TimeSetField;
32
32
  /**
33
33
  * A field with a boolean value.
34
34
  */
@@ -43,7 +43,7 @@ export interface ErrorResponse {
43
43
  */
44
44
  readonly errors?: ErrorObject[];
45
45
  }
46
- export declare type ErrorObject = AccessDeniedError | ConcurrentModificationError | ContentionError | DuplicateAttributeValueError | DuplicateAttributeValuesError | DuplicateFieldError | DuplicateVariantValuesError | GenericError | InsufficientScopeError | InvalidCredentialsError | InvalidFieldError | InvalidInput | InvalidJsonInput | InvalidOperation | InvalidScopeError | InvalidStateTransitionError | InvalidTokenError | RequiredFieldError | ResourceCreationError | ResourceDeletionError | ResourceNotFoundError | ResourceUpdateError;
46
+ export type ErrorObject = AccessDeniedError | ConcurrentModificationError | ContentionError | DuplicateAttributeValueError | DuplicateAttributeValuesError | DuplicateFieldError | DuplicateVariantValuesError | GenericError | InsufficientScopeError | InvalidCredentialsError | InvalidFieldError | InvalidInput | InvalidJsonInput | InvalidOperation | InvalidScopeError | InvalidStateTransitionError | InvalidTokenError | RequiredFieldError | ResourceCreationError | ResourceDeletionError | ResourceNotFoundError | ResourceUpdateError;
47
47
  /**
48
48
  * This is the generic error code for access denied. In case of a wrong scope, an [InvalidScopeError](#invalidscopeerror) will be returned.
49
49
  */
@@ -105,7 +105,7 @@ export interface ImportOperationPagedResponse {
105
105
  * Describes the validation state of a newly created [ImportOperation](#importoperation).
106
106
  *
107
107
  */
108
- export declare type ImportOperationState = 'processing' | 'validationFailed' | string;
108
+ export type ImportOperationState = 'processing' | 'validationFailed' | string;
109
109
  export interface ImportOperationStatus {
110
110
  /**
111
111
  * The ID of the [ImportOperation](#importoperation).
@@ -19,7 +19,7 @@ import { StandalonePriceImport } from './standalone-prices';
19
19
  * An import request batches multiple import resources of the same import resource type for processing by an import container.
20
20
  *
21
21
  */
22
- export declare type ImportRequest = CategoryImportRequest | CustomerImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest;
22
+ export type ImportRequest = CategoryImportRequest | CustomerImportRequest | InventoryImportRequest | OrderImportRequest | OrderPatchImportRequest | PriceImportRequest | ProductDraftImportRequest | ProductImportRequest | ProductTypeImportRequest | ProductVariantImportRequest | ProductVariantPatchRequest | StandalonePriceImportRequest;
23
23
  /**
24
24
  * A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation).
25
25
  * Used as a response at each resource-specific import endpoint, for example, at [Import Categories](/category#import-categories) and [Import ProductTypes](/product-type#import-producttypes).
@@ -97,7 +97,7 @@ export interface ProductVariantImportRequest {
97
97
  readonly resources: ProductVariantImport[];
98
98
  }
99
99
  /**
100
- * The request body to [import Embedded Prices](#import-embedded-prices). Contains data for [Embedded Prices](/../api/types#embedded-price) to be created or updated in a Project.
100
+ * The request body to [import Embedded Prices](#import-embedded-prices). Contains data for [Embedded Prices](/../api/projects/products#embedded-price) to be created or updated in a Project.
101
101
  *
102
102
  */
103
103
  export interface PriceImportRequest {
@@ -8,7 +8,7 @@ import { DeliveryItem, ParcelMeasurements, TrackingData } from './orders';
8
8
  /**
9
9
  * Maps to `ReturnItem.shipmentState`
10
10
  */
11
- export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
11
+ export type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
12
12
  export interface ReturnItemDraft {
13
13
  /**
14
14
  *
@@ -211,8 +211,8 @@ export interface LineItemImportDraft {
211
211
  */
212
212
  readonly custom?: Custom;
213
213
  }
214
- export declare type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
215
- export declare type ShippingRatePriceTier = CartClassificationTier;
214
+ export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
215
+ export type ShippingRatePriceTier = CartClassificationTier;
216
216
  export interface CartClassificationTier {
217
217
  readonly type: 'CartClassification';
218
218
  /**
@@ -361,7 +361,7 @@ export interface DiscountedLineItemPriceDraft {
361
361
  */
362
362
  readonly includedDiscounts: DiscountedLineItemPortion[];
363
363
  }
364
- export declare type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart' | string;
364
+ export type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart' | string;
365
365
  /**
366
366
  * Maps to an order's `shippingInfo` property. This field is usually populated by the cart assosciated with
367
367
  * the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
@@ -537,35 +537,35 @@ export interface TaxedPrice {
537
537
  /**
538
538
  * Maps to `Order.taxMode`
539
539
  */
540
- export declare type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
540
+ export type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
541
541
  /**
542
542
  * Maps to `Order.orderState`.
543
543
  */
544
- export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
544
+ export type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
545
545
  /**
546
546
  * Maps to `Order.shipmentState`.
547
547
  */
548
- export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
548
+ export type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
549
549
  /**
550
550
  * Maps to `Order.paymentState`.
551
551
  */
552
- export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
552
+ export type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
553
553
  /**
554
554
  * Maps to `Order.inventoryMode`.
555
555
  */
556
- export declare type InventoryMode = 'ReserveOnOrder' | 'TrackOnly' | string;
556
+ export type InventoryMode = 'ReserveOnOrder' | 'TrackOnly' | string;
557
557
  /**
558
558
  * Maps to `Order.taxRoundingMode`.
559
559
  */
560
- export declare type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
560
+ export type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
561
561
  /**
562
562
  * Maps to `Order.taxCalculationMode`.
563
563
  */
564
- export declare type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
564
+ export type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
565
565
  /**
566
566
  * Maps to `Order.origin`.
567
567
  */
568
- export declare type CartOrigin = 'Customer' | 'Merchant' | string;
568
+ export type CartOrigin = 'Customer' | 'Merchant' | string;
569
569
  export interface SyncInfo {
570
570
  /**
571
571
  * Maps to `SyncInfo.channel`
@@ -586,7 +586,7 @@ export interface SyncInfo {
586
586
  /**
587
587
  * Maps to `DiscountCodeInfo.state`
588
588
  */
589
- export declare type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
589
+ export type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
590
590
  export interface DiscountCodeInfo {
591
591
  /**
592
592
  * References a discount code by key.
@@ -599,8 +599,8 @@ export interface DiscountCodeInfo {
599
599
  */
600
600
  readonly state?: DiscountCodeState;
601
601
  }
602
- export declare type ShippingRateInputType = 'Classification' | 'Score' | string;
603
- export declare type ShippingRateInput = ClassificationShippingRateInput | ScoreShippingRateInput;
602
+ export type ShippingRateInputType = 'Classification' | 'Score' | string;
603
+ export type ShippingRateInput = ClassificationShippingRateInput | ScoreShippingRateInput;
604
604
  export interface ClassificationShippingRateInput {
605
605
  readonly type: 'Classification';
606
606
  /**
@@ -48,7 +48,7 @@ export interface TaxRate {
48
48
  readonly subRates?: SubRate[];
49
49
  }
50
50
  /**
51
- * The data representation for a price to be imported that is persisted as an [Embedded Price](/../api/types#embedded-price) in the Project.
51
+ * The data representation for a price to be imported that is persisted as a [Price](/../api/types#price) in the Project.
52
52
  *
53
53
  */
54
54
  export interface PriceImport extends ImportResource {
@@ -83,14 +83,14 @@ export interface PriceImport extends ImportResource {
83
83
  */
84
84
  readonly validUntil?: string;
85
85
  /**
86
- * The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the [Embedded Price](/../api/types#embedded-price) is associated.
86
+ * The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the [Price](/../api/types#price) is associated.
87
87
  * If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
88
88
  *
89
89
  *
90
90
  */
91
91
  readonly customerGroup?: CustomerGroupKeyReference;
92
92
  /**
93
- * The Reference to the [Channel](/../api/projects/channels#channel) with which the [Embedded Price](/../api/types#embedded-price) is associated.
93
+ * The Reference to the [Channel](/../api/projects/channels#channel) with which the [Price](/../api/types#price) is associated.
94
94
  * If referenced Channel does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Channel is created.
95
95
  *
96
96
  *
@@ -102,7 +102,7 @@ export interface PriceImport extends ImportResource {
102
102
  */
103
103
  readonly discounted?: DiscountedPrice;
104
104
  /**
105
- * Only the [Embedded Price](/../api/types#embedded-price) updates will be published to `staged` and `current` projection.
105
+ * Only the [Embedded Price](/../api/projects/products#embedded-price) updates will be published to `staged` and `current` projection.
106
106
  *
107
107
  *
108
108
  */
@@ -118,16 +118,16 @@ export interface PriceImport extends ImportResource {
118
118
  */
119
119
  readonly custom?: Custom;
120
120
  /**
121
- * The ProductVariant in which this [Embedded Price](/../api/types#embedded-price) is contained.
122
- * The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [Embedded Price](/../api/types#embedded-price) is associated.
121
+ * The ProductVariant in which this [Embedded Price](/../api/projects/products#embedded-price) is contained.
122
+ * The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [Price](/../api/types#price) is associated.
123
123
  * If referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
124
124
  *
125
125
  *
126
126
  */
127
127
  readonly productVariant: ProductVariantKeyReference;
128
128
  /**
129
- * The Product in which the Product Variant containing this [Embedded Price](/../api/types#embedded-price) is contained. Maps to `ProductVariant.product`.
130
- * The Reference to the [Product](/../api/projects/products#product) with which the [Embedded Price](/../api/types#embedded-price) is associated.
129
+ * The Product in which the Product Variant containing this [Embedded Price](/../api/projects/products#embedded-price) is contained. Maps to `ProductVariant.product`.
130
+ * The Reference to the [Product](/../api/projects/products#product) with which the [Price](/../api/types#price) is associated.
131
131
  * If referenced Product does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Product is created.
132
132
  *
133
133
  *
@@ -224,6 +224,8 @@ export interface PriceDraftImport {
224
224
  */
225
225
  readonly tiers?: PriceTier[];
226
226
  /**
227
+ * User-defined unique identifier for the Embedded Price.
228
+ *
227
229
  *
228
230
  */
229
231
  readonly key?: string;
@@ -43,7 +43,7 @@ export interface SearchKeyword {
43
43
  * The tokenizer defines the tokens that are used to match against the [Suggest Query](/../products-suggestions#suggest-query) input.
44
44
  *
45
45
  */
46
- export declare type SuggestTokenizer = CustomTokenizer | WhitespaceTokenizer;
46
+ export type SuggestTokenizer = CustomTokenizer | WhitespaceTokenizer;
47
47
  export interface CustomTokenizer {
48
48
  readonly type: 'custom';
49
49
  /**
@@ -54,7 +54,7 @@ export interface AttributeDefinition {
54
54
  */
55
55
  readonly isSearchable?: boolean;
56
56
  }
57
- export declare type AttributeType = AttributeBooleanType | AttributeDateTimeType | AttributeDateType | AttributeEnumType | AttributeLocalizableTextType | AttributeLocalizedEnumType | AttributeMoneyType | AttributeNestedType | AttributeNumberType | AttributeReferenceType | AttributeSetType | AttributeTextType | AttributeTimeType;
57
+ export type AttributeType = AttributeBooleanType | AttributeDateTimeType | AttributeDateType | AttributeEnumType | AttributeLocalizableTextType | AttributeLocalizedEnumType | AttributeMoneyType | AttributeNestedType | AttributeNumberType | AttributeReferenceType | AttributeSetType | AttributeTextType | AttributeTimeType;
58
58
  export interface AttributeBooleanType {
59
59
  readonly name: 'boolean';
60
60
  }
@@ -145,8 +145,8 @@ export interface AttributeTextType {
145
145
  export interface AttributeTimeType {
146
146
  readonly name: 'time';
147
147
  }
148
- export declare type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
149
- export declare type TextInputHint = 'MultiLine' | 'SingleLine' | string;
148
+ export type AttributeConstraintEnum = 'CombinationUnique' | 'None' | 'SameForAll' | 'Unique' | string;
149
+ export type TextInputHint = 'MultiLine' | 'SingleLine' | string;
150
150
  /**
151
151
  * The data representation for a ProductType to be imported that is persisted as a [ProductType](/../api/projects/productTypes#producttype) in the Project.
152
152
  *
@@ -9,7 +9,7 @@ import { Asset, Image, ImportResource, KeyReference, LocalizedString, ProductKey
9
9
  * The name and type property must match the name and type property of an attribute definition of the product type.
10
10
  *
11
11
  */
12
- export declare type Attribute = BooleanAttribute | BooleanSetAttribute | DateAttribute | DateSetAttribute | DateTimeAttribute | DateTimeSetAttribute | EnumAttribute | EnumSetAttribute | LocalizableEnumAttribute | LocalizableEnumSetAttribute | LocalizableTextAttribute | LocalizableTextSetAttribute | MoneyAttribute | MoneySetAttribute | NumberAttribute | NumberSetAttribute | ReferenceAttribute | ReferenceSetAttribute | TextAttribute | TextSetAttribute | TimeAttribute | TimeSetAttribute;
12
+ export type Attribute = BooleanAttribute | BooleanSetAttribute | DateAttribute | DateSetAttribute | DateTimeAttribute | DateTimeSetAttribute | EnumAttribute | EnumSetAttribute | LocalizableEnumAttribute | LocalizableEnumSetAttribute | LocalizableTextAttribute | LocalizableTextSetAttribute | MoneyAttribute | MoneySetAttribute | NumberAttribute | NumberSetAttribute | ReferenceAttribute | ReferenceSetAttribute | TextAttribute | TextSetAttribute | TimeAttribute | TimeSetAttribute;
13
13
  /**
14
14
  * This type represents an attribute whose value is either "true" or "false".
15
15
  *
@@ -510,7 +510,10 @@ export interface ProductVariantPatch {
510
510
  readonly productVariant: ProductVariantKeyReference;
511
511
  /**
512
512
  * Maps to `ProductVariant.attributes`.
513
- * The referenced attribute must be defined in an already existing [ProductType](/../api/projects/productTypes#producttype) in the Project, or the `state` of the [ImportOperation](/import-operation#importoperation) will be `unresolved`.
513
+ * - The referenced Attribute must be defined in an existing [ProductType](/../api/projects/productTypes#producttype), or the `state` of the [ImportOperation](/import-operation#importoperation) will be `validationFailed`.
514
+ * - Setting the value of a non-required Attribute to `null` will remove the Attribute.
515
+ * - Attempting to set a `null` value to a required Attribute will make the import operation fail with an [InvalidOperation](/error#invalidoperation) error.
516
+ * - Importing [LocalizableTextAttributes](/product-variant#localizabletextattribute) or [LocalizableTextSetAttributes](/product-variant#localizabletextsetattribute) follows an override pattern, meaning that omitted localized fields will be deleted, new fields will be created, and existing fields will be updated. You can also delete localized fields by setting their value to `null`.
514
517
  *
515
518
  *
516
519
  */
@@ -17,7 +17,7 @@ export interface StandalonePriceImport extends ImportResource {
17
17
  */
18
18
  readonly key: string;
19
19
  /**
20
- * Specifies to which ProductVariant the API associates this Price. It is not validated to exist in product variants.
20
+ * Identifies the ProductVariant to which this Standalone Price is associated. This value is not validated to exist in Product Variants.
21
21
  *
22
22
  *
23
23
  */
@@ -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
- export declare type MethodType = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE';
7
- export declare type QueryParam = string | string[] | number | number[] | boolean | boolean[] | undefined;
8
- export declare type VariableMap = {
6
+ export type MethodType = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE';
7
+ export type QueryParam = string | string[] | number | number[] | boolean | boolean[] | undefined;
8
+ export type VariableMap = {
9
9
  [key: string]: QueryParam;
10
10
  };
11
11
  export interface ClientRequest {
@@ -18,9 +18,9 @@ export interface ClientRequest {
18
18
  queryParams?: VariableMap;
19
19
  body?: any;
20
20
  }
21
- export declare type ClientResponse<T = any> = {
21
+ export type ClientResponse<T = any> = {
22
22
  body: T;
23
23
  statusCode?: number;
24
24
  headers?: Object;
25
25
  };
26
- export declare type executeRequest = (request: ClientRequest) => Promise<ClientResponse>;
26
+ export type executeRequest = (request: ClientRequest) => Promise<ClientResponse>;
@@ -4,5 +4,5 @@
4
4
  * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
5
  */
6
6
  import { ClientRequest, ClientResponse, executeRequest } from './common-types';
7
- export declare type Middleware = (request: ClientRequest, executor: executeRequest) => Promise<ClientResponse>;
7
+ export type Middleware = (request: ClientRequest, executor: executeRequest) => Promise<ClientResponse>;
8
8
  export declare const createExecutorFromMiddlewares: (executor: executeRequest, midds?: Middleware[]) => executeRequest;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@commercetools/importapi-sdk",
7
- "version": "4.1.0",
7
+ "version": "4.2.0",
8
8
  "engines": {
9
9
  "node": ">=14"
10
10
  },
@@ -32,14 +32,14 @@
32
32
  "./dist/commercetools-importapi-sdk.esm.js": "./dist/commercetools-importapi-sdk.browser.esm.js"
33
33
  },
34
34
  "dependencies": {
35
- "@commercetools/sdk-client-v2": "^2.0.1",
35
+ "@commercetools/sdk-client-v2": "^2.1.2",
36
36
  "@commercetools/sdk-middleware-auth": "^7.0.0",
37
37
  "@commercetools/sdk-middleware-http": "^7.0.0",
38
38
  "@commercetools/sdk-middleware-logger": "^3.0.0",
39
39
  "querystring": "^0.2.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/uuid": "8.3.4",
42
+ "@types/uuid": "9.0.0",
43
43
  "organize-imports-cli": "0.10.0",
44
44
  "tsconfig-replace-paths": "0.0.11",
45
45
  "uuid": "9.0.0"