@commercetools/importapi-sdk 1.19.0 → 2.0.1

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +100 -18
  3. package/dist/commercetools-importapi-sdk.browser.cjs.js +2160 -2189
  4. package/dist/commercetools-importapi-sdk.browser.esm.js +2160 -2189
  5. package/dist/commercetools-importapi-sdk.cjs.dev.js +2160 -2189
  6. package/dist/commercetools-importapi-sdk.cjs.prod.js +2160 -2189
  7. package/dist/commercetools-importapi-sdk.esm.js +2160 -2189
  8. package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
  9. package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
  10. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +52 -52
  11. package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  12. package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -28
  13. package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  14. package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -28
  15. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  16. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -26
  17. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  18. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -26
  19. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -55
  20. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -51
  21. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  22. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +26 -26
  23. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  24. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -26
  25. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  26. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -26
  27. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  28. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -26
  29. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -36
  30. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -26
  31. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  32. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -26
  33. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  34. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -26
  35. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  36. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -26
  37. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  38. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -26
  39. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  40. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +49 -49
  41. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  42. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  43. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -45
  44. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -35
  45. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -26
  46. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  47. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  48. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  49. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  50. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  51. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  52. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  53. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  54. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  55. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  56. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  57. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  58. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  59. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  60. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  61. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  62. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  63. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  64. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -51
  65. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -51
  66. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -35
  67. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  68. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -26
  69. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  70. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +28 -28
  71. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  72. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -28
  73. package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  74. package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -28
  75. package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  76. package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -28
  77. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-import-sink-key-by-import-sink-key-request-builder.d.ts +38 -38
  78. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -28
  79. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  80. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -28
  81. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  82. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -28
  83. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  84. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -28
  85. package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  86. package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -28
  87. package/dist/declarations/src/generated/index.d.ts +26 -26
  88. package/dist/declarations/src/generated/models/categories.d.ts +79 -79
  89. package/dist/declarations/src/generated/models/common.d.ts +570 -544
  90. package/dist/declarations/src/generated/models/customers.d.ts +252 -252
  91. package/dist/declarations/src/generated/models/customfields.d.ts +260 -260
  92. package/dist/declarations/src/generated/models/errors.d.ts +356 -352
  93. package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -114
  94. package/dist/declarations/src/generated/models/importoperations.d.ts +128 -128
  95. package/dist/declarations/src/generated/models/importrequests.d.ts +175 -175
  96. package/dist/declarations/src/generated/models/importsinks.d.ts +113 -113
  97. package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -55
  98. package/dist/declarations/src/generated/models/inventories.d.ts +44 -44
  99. package/dist/declarations/src/generated/models/order-patches.d.ts +227 -227
  100. package/dist/declarations/src/generated/models/orders.d.ts +778 -778
  101. package/dist/declarations/src/generated/models/prices.d.ts +130 -130
  102. package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -224
  103. package/dist/declarations/src/generated/models/products.d.ts +181 -179
  104. package/dist/declarations/src/generated/models/producttypes.d.ts +173 -173
  105. package/dist/declarations/src/generated/models/productvariants.d.ts +529 -527
  106. package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
  107. package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
  108. package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
  109. package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
  110. package/dist/declarations/src/index.d.ts +2 -2
  111. package/package.json +5 -6
@@ -1,224 +1,226 @@
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 { Asset, CategoryKeyReference, ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, Image, ImportResource, LocalizedString, PriceTier, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference, TypedMoney } from './common';
7
- import { Custom } from './customfields';
8
- import { SearchKeywords } from './products';
9
- import { Attribute } from './productvariants';
10
- /**
11
- * The representation of a Product Draft for the import purpose.
12
- *
13
- */
14
- export interface ProductDraftImport extends ImportResource {
15
- /**
16
- * The `productType` of a [Product](/../api/projects/products#product).
17
- * Maps to `Product.productType`.
18
- * The Reference to the [ProductType](/../api/projects/productTypes#producttype) with which the ProductDraft is associated.
19
- * If referenced ProductType does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductType is created.
20
- *
21
- *
22
- */
23
- readonly productType: ProductTypeKeyReference;
24
- /**
25
- *
26
- */
27
- readonly name: LocalizedString;
28
- /**
29
- * Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a project,
30
- * but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters.
31
- *
32
- *
33
- */
34
- readonly slug: LocalizedString;
35
- /**
36
- * Maps to `Product.description`.
37
- *
38
- *
39
- */
40
- readonly description?: LocalizedString;
41
- /**
42
- * The Reference to the [Categories](/../api/projects/categories#category) with which the ProductDraft is associated.
43
- * If referenced Categories do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Categories are created.
44
- *
45
- *
46
- */
47
- readonly categories?: CategoryKeyReference[];
48
- /**
49
- * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
50
- * ```json
51
- * {
52
- * "de": "Hundefutter",
53
- * "en": "dog food"
54
- * }
55
- * ```
56
- *
57
- *
58
- */
59
- readonly metaTitle?: LocalizedString;
60
- /**
61
- * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
62
- * ```json
63
- * {
64
- * "de": "Hundefutter",
65
- * "en": "dog food"
66
- * }
67
- * ```
68
- *
69
- *
70
- */
71
- readonly metaDescription?: LocalizedString;
72
- /**
73
- * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
74
- * ```json
75
- * {
76
- * "de": "Hundefutter",
77
- * "en": "dog food"
78
- * }
79
- * ```
80
- *
81
- *
82
- */
83
- readonly metaKeywords?: LocalizedString;
84
- /**
85
- * The master Product variant.
86
- * Required if the `variants` array contains a Product Variant.
87
- *
88
- *
89
- */
90
- readonly masterVariant?: ProductVariantDraftImport;
91
- /**
92
- * An array of related Product Variants.
93
- *
94
- */
95
- readonly variants?: ProductVariantDraftImport[];
96
- /**
97
- * The Reference to the [TaxCategory](/../api/projects/taxCategories#taxcategory) with which the ProductDraft is associated.
98
- * If referenced TaxCategory does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary TaxCategory is created.
99
- *
100
- *
101
- */
102
- readonly taxCategory?: TaxCategoryKeyReference;
103
- /**
104
- * Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
105
- * ```json
106
- * {
107
- * "en": [
108
- * { "text": "Multi tool" },
109
- * { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
110
- * ],
111
- * "de": [
112
- * {
113
- * "text": "Schweizer Messer",
114
- * "suggestTokenizer": {
115
- * "type": "custom",
116
- * "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
117
- * }
118
- * }
119
- * ]
120
- * }
121
- * ```
122
- *
123
- *
124
- */
125
- readonly searchKeywords?: SearchKeywords;
126
- /**
127
- * The Reference to the [State](/../api/projects/states#state) with which the ProductDraft is associated.
128
- * If referenced State does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary State is created.
129
- *
130
- *
131
- */
132
- readonly state?: StateKeyReference;
133
- /**
134
- * If there were updates, only the updates will be published to `staged` and `current` projection.
135
- *
136
- *
137
- */
138
- readonly publish?: boolean;
139
- }
140
- /**
141
- * The representation of a Product Variant Draft for the import purpose.
142
- *
143
- */
144
- export interface ProductVariantDraftImport {
145
- /**
146
- *
147
- */
148
- readonly sku?: string;
149
- /**
150
- *
151
- */
152
- readonly key?: string;
153
- /**
154
- *
155
- */
156
- readonly prices?: PriceDraftImport[];
157
- /**
158
- *
159
- */
160
- readonly attributes?: Attribute[];
161
- /**
162
- *
163
- */
164
- readonly images?: Image[];
165
- /**
166
- *
167
- */
168
- readonly assets?: Asset[];
169
- }
170
- /**
171
- * The representation of a Price Draft for the import purpose.
172
- *
173
- */
174
- export interface PriceDraftImport {
175
- /**
176
- * TypedMoney is what is called BaseMoney in the HTTP API.
177
- *
178
- *
179
- */
180
- readonly value: TypedMoney;
181
- /**
182
- * A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
183
- *
184
- *
185
- */
186
- readonly country?: string;
187
- /**
188
- * References a customer group by its key.
189
- *
190
- */
191
- readonly customerGroup?: CustomerGroupKeyReference;
192
- /**
193
- * References a channel by its key.
194
- *
195
- */
196
- readonly channel?: ChannelKeyReference;
197
- /**
198
- *
199
- */
200
- readonly validFrom?: string;
201
- /**
202
- *
203
- */
204
- readonly validUntil?: string;
205
- /**
206
- * The custom fields for this category.
207
- *
208
- */
209
- readonly custom?: Custom;
210
- /**
211
- * Sets a discounted price from an external service.
212
- *
213
- */
214
- readonly discounted?: DiscountedPrice;
215
- /**
216
- * The tiered prices for this price.
217
- *
218
- */
219
- readonly tiers?: PriceTier[];
220
- /**
221
- *
222
- */
223
- readonly key?: string;
224
- }
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 { Asset, CategoryKeyReference, ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, Image, ImportResource, LocalizedString, PriceTier, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference, TypedMoney } from './common';
7
+ import { Custom } from './customfields';
8
+ import { SearchKeywords } from './products';
9
+ import { Attribute } from './productvariants';
10
+ /**
11
+ * The representation of a Product Draft for the import purpose.
12
+ *
13
+ */
14
+ export interface ProductDraftImport extends ImportResource {
15
+ /**
16
+ * The `productType` of a [Product](/../api/projects/products#product).
17
+ * Maps to `Product.productType`.
18
+ * The Reference to the [ProductType](/../api/projects/productTypes#producttype) with which the ProductDraft is associated.
19
+ * If referenced ProductType does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductType is created.
20
+ *
21
+ *
22
+ */
23
+ readonly productType: ProductTypeKeyReference;
24
+ /**
25
+ *
26
+ */
27
+ readonly name: LocalizedString;
28
+ /**
29
+ * Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a project,
30
+ * but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters.
31
+ *
32
+ *
33
+ */
34
+ readonly slug: LocalizedString;
35
+ /**
36
+ * Maps to `Product.description`.
37
+ *
38
+ *
39
+ */
40
+ readonly description?: LocalizedString;
41
+ /**
42
+ * The Reference to the [Categories](/../api/projects/categories#category) with which the ProductDraft is associated.
43
+ * If referenced Categories do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Categories are created.
44
+ *
45
+ *
46
+ */
47
+ readonly categories?: CategoryKeyReference[];
48
+ /**
49
+ * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
50
+ * ```json
51
+ * {
52
+ * "de": "Hundefutter",
53
+ * "en": "dog food"
54
+ * }
55
+ * ```
56
+ *
57
+ *
58
+ */
59
+ readonly metaTitle?: LocalizedString;
60
+ /**
61
+ * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
62
+ * ```json
63
+ * {
64
+ * "de": "Hundefutter",
65
+ * "en": "dog food"
66
+ * }
67
+ * ```
68
+ *
69
+ *
70
+ */
71
+ readonly metaDescription?: LocalizedString;
72
+ /**
73
+ * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
74
+ * ```json
75
+ * {
76
+ * "de": "Hundefutter",
77
+ * "en": "dog food"
78
+ * }
79
+ * ```
80
+ *
81
+ *
82
+ */
83
+ readonly metaKeywords?: LocalizedString;
84
+ /**
85
+ * The master Product variant.
86
+ * Required if the `variants` array contains a Product Variant.
87
+ *
88
+ *
89
+ */
90
+ readonly masterVariant?: ProductVariantDraftImport;
91
+ /**
92
+ * An array of related Product Variants.
93
+ *
94
+ */
95
+ readonly variants?: ProductVariantDraftImport[];
96
+ /**
97
+ * The Reference to the [TaxCategory](/../api/projects/taxCategories#taxcategory) with which the ProductDraft is associated.
98
+ * If referenced TaxCategory does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary TaxCategory is created.
99
+ *
100
+ *
101
+ */
102
+ readonly taxCategory?: TaxCategoryKeyReference;
103
+ /**
104
+ * Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
105
+ * ```json
106
+ * {
107
+ * "en": [
108
+ * { "text": "Multi tool" },
109
+ * { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
110
+ * ],
111
+ * "de": [
112
+ * {
113
+ * "text": "Schweizer Messer",
114
+ * "suggestTokenizer": {
115
+ * "type": "custom",
116
+ * "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
117
+ * }
118
+ * }
119
+ * ]
120
+ * }
121
+ * ```
122
+ *
123
+ *
124
+ */
125
+ readonly searchKeywords?: SearchKeywords;
126
+ /**
127
+ * The Reference to the [State](/../api/projects/states#state) with which the ProductDraft is associated.
128
+ * If referenced State does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary State is created.
129
+ *
130
+ *
131
+ */
132
+ readonly state?: StateKeyReference;
133
+ /**
134
+ * If `publish` is set to either `true` or `false`, both staged and current projections are set to the same value provided by the import data.
135
+ * If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
136
+ * However, if the import data contains no update, that is, if it matches the staged projection of the existing Product in the platform, the import induces no change in the existing Product whether `publish` is set or not.
137
+ *
138
+ *
139
+ */
140
+ readonly publish?: boolean;
141
+ }
142
+ /**
143
+ * The representation of a Product Variant Draft for the import purpose.
144
+ *
145
+ */
146
+ export interface ProductVariantDraftImport {
147
+ /**
148
+ *
149
+ */
150
+ readonly sku?: string;
151
+ /**
152
+ *
153
+ */
154
+ readonly key: string;
155
+ /**
156
+ *
157
+ */
158
+ readonly prices?: PriceDraftImport[];
159
+ /**
160
+ *
161
+ */
162
+ readonly attributes?: Attribute[];
163
+ /**
164
+ *
165
+ */
166
+ readonly images?: Image[];
167
+ /**
168
+ *
169
+ */
170
+ readonly assets?: Asset[];
171
+ }
172
+ /**
173
+ * The representation of a Price Draft for the import purpose.
174
+ *
175
+ */
176
+ export interface PriceDraftImport {
177
+ /**
178
+ * TypedMoney is what is called BaseMoney in the HTTP API.
179
+ *
180
+ *
181
+ */
182
+ readonly value: TypedMoney;
183
+ /**
184
+ * A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
185
+ *
186
+ *
187
+ */
188
+ readonly country?: string;
189
+ /**
190
+ * References a customer group by key.
191
+ *
192
+ */
193
+ readonly customerGroup?: CustomerGroupKeyReference;
194
+ /**
195
+ * References a channel by key.
196
+ *
197
+ */
198
+ readonly channel?: ChannelKeyReference;
199
+ /**
200
+ *
201
+ */
202
+ readonly validFrom?: string;
203
+ /**
204
+ *
205
+ */
206
+ readonly validUntil?: string;
207
+ /**
208
+ * The custom fields for this category.
209
+ *
210
+ */
211
+ readonly custom?: Custom;
212
+ /**
213
+ * Sets a discounted price from an external service.
214
+ *
215
+ */
216
+ readonly discounted?: DiscountedPrice;
217
+ /**
218
+ * The tiered prices for this price.
219
+ *
220
+ */
221
+ readonly tiers?: PriceTier[];
222
+ /**
223
+ *
224
+ */
225
+ readonly key?: string;
226
+ }