@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.
- package/CHANGELOG.md +32 -0
- package/README.md +100 -18
- package/dist/commercetools-importapi-sdk.browser.cjs.js +2160 -2189
- package/dist/commercetools-importapi-sdk.browser.esm.js +2160 -2189
- package/dist/commercetools-importapi-sdk.cjs.dev.js +2160 -2189
- package/dist/commercetools-importapi-sdk.cjs.prod.js +2160 -2189
- package/dist/commercetools-importapi-sdk.esm.js +2160 -2189
- package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
- package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +52 -52
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -55
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +26 -26
- 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
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -26
- 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
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -26
- 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
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -26
- 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
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -26
- 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
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -26
- 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
- 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
- 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
- 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
- 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
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -35
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -26
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -51
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -51
- 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
- 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
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -26
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +28 -28
- 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
- package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -28
- 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
- package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -28
- 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
- package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -28
- 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
- package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -28
- 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
- package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
- package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -28
- package/dist/declarations/src/generated/index.d.ts +26 -26
- package/dist/declarations/src/generated/models/categories.d.ts +79 -79
- package/dist/declarations/src/generated/models/common.d.ts +570 -544
- package/dist/declarations/src/generated/models/customers.d.ts +252 -252
- package/dist/declarations/src/generated/models/customfields.d.ts +260 -260
- package/dist/declarations/src/generated/models/errors.d.ts +356 -352
- package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -114
- package/dist/declarations/src/generated/models/importoperations.d.ts +128 -128
- package/dist/declarations/src/generated/models/importrequests.d.ts +175 -175
- package/dist/declarations/src/generated/models/importsinks.d.ts +113 -113
- package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -55
- package/dist/declarations/src/generated/models/inventories.d.ts +44 -44
- package/dist/declarations/src/generated/models/order-patches.d.ts +227 -227
- package/dist/declarations/src/generated/models/orders.d.ts +778 -778
- package/dist/declarations/src/generated/models/prices.d.ts +130 -130
- package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -224
- package/dist/declarations/src/generated/models/products.d.ts +181 -179
- package/dist/declarations/src/generated/models/producttypes.d.ts +173 -173
- package/dist/declarations/src/generated/models/productvariants.d.ts +529 -527
- package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
- package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
- package/dist/declarations/src/index.d.ts +2 -2
- 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
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
*
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
*
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
+
}
|