@commercetools/importapi-sdk 1.18.0 → 2.0.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 +34 -0
- package/README.md +100 -18
- package/dist/commercetools-importapi-sdk.browser.cjs.js +2390 -1516
- package/dist/commercetools-importapi-sdk.browser.esm.js +2390 -1516
- package/dist/commercetools-importapi-sdk.cjs.dev.js +2390 -1516
- package/dist/commercetools-importapi-sdk.cjs.prod.js +2390 -1516
- package/dist/commercetools-importapi-sdk.esm.js +2390 -1516
- package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
- package/dist/declarations/src/generated/client/api-root.d.ts +18 -25
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +52 -55
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -0
- 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 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -0
- 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 -44
- 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 -56
- 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 -44
- 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 -56
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -0
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -0
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -0
- 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 -44
- 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 -56
- 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 -44
- 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 -56
- 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 -44
- 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 -56
- 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 -44
- 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 -56
- 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 -44
- 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 -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 -44
- 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 -56
- 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 -44
- 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 -55
- 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 -44
- 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 -55
- 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 -44
- 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 -56
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -58
- package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -58
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -0
- 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 -44
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -33
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +28 -33
- 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 -44
- package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -33
- 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 -45
- package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -33
- 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 -44
- package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -33
- 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 -44
- package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -33
- 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 -44
- package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -44
- package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -33
- package/dist/declarations/src/generated/index.d.ts +26 -32
- package/dist/declarations/src/generated/models/categories.d.ts +79 -86
- package/dist/declarations/src/generated/models/common.d.ts +570 -551
- package/dist/declarations/src/generated/models/customers.d.ts +252 -259
- package/dist/declarations/src/generated/models/customfields.d.ts +260 -267
- package/dist/declarations/src/generated/models/errors.d.ts +356 -359
- package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -0
- package/dist/declarations/src/generated/models/importoperations.d.ts +128 -136
- package/dist/declarations/src/generated/models/importrequests.d.ts +175 -182
- package/dist/declarations/src/generated/models/importsinks.d.ts +113 -120
- package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -57
- package/dist/declarations/src/generated/models/inventories.d.ts +44 -51
- package/dist/declarations/src/generated/models/order-patches.d.ts +227 -234
- package/dist/declarations/src/generated/models/orders.d.ts +778 -785
- package/dist/declarations/src/generated/models/prices.d.ts +130 -137
- package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -231
- package/dist/declarations/src/generated/models/products.d.ts +181 -186
- package/dist/declarations/src/generated/models/producttypes.d.ts +173 -180
- package/dist/declarations/src/generated/models/productvariants.d.ts +529 -534
- package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -33
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -15
- package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -20
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -14
- package/dist/declarations/src/index.d.ts +2 -2
- package/package.json +8 -6
|
@@ -1,186 +1,181 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export interface
|
|
55
|
-
readonly type: '
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* Maps to `Product.
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
readonly
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
*
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
*
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
142
|
-
readonly
|
|
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
|
-
readonly
|
|
173
|
-
/**
|
|
174
|
-
*
|
|
175
|
-
* If
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
readonly publish?: boolean;
|
|
186
|
-
}
|
|
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 { CategoryKeyReference, ImportResource, LocalizedString, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference } from './common';
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
* ```json
|
|
10
|
+
* {
|
|
11
|
+
* "en": [
|
|
12
|
+
* { "text": "Multi tool" },
|
|
13
|
+
* { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
|
|
14
|
+
* ],
|
|
15
|
+
* "de": [
|
|
16
|
+
* {
|
|
17
|
+
* "text": "Schweizer Messer",
|
|
18
|
+
* "suggestTokenizer": {
|
|
19
|
+
* "type": "custom",
|
|
20
|
+
* "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* ]
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export interface SearchKeywords {
|
|
29
|
+
[key: string]: SearchKeyword[];
|
|
30
|
+
}
|
|
31
|
+
export interface SearchKeyword {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
readonly text: string;
|
|
36
|
+
/**
|
|
37
|
+
* The tokenizer defines the tokens that are used to match against the [Suggest Query](/../products-suggestions#suggest-query) input.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
readonly suggestTokenizer?: SuggestTokenizer;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The tokenizer defines the tokens that are used to match against the [Suggest Query](/../products-suggestions#suggest-query) input.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
export declare type SuggestTokenizer = CustomTokenizer | WhitespaceTokenizer;
|
|
47
|
+
export interface CustomTokenizer {
|
|
48
|
+
readonly type: 'custom';
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
readonly inputs: string[];
|
|
53
|
+
}
|
|
54
|
+
export interface WhitespaceTokenizer {
|
|
55
|
+
readonly type: 'whitespace';
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The data representation for a Product to be imported that is persisted as a [Product](/../api/projects/products#product) in the Project.
|
|
59
|
+
*
|
|
60
|
+
* This is the minimal representation required for creating a [Product](/../api/projects/products#product) in commercetools.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export interface ProductImport extends ImportResource {
|
|
64
|
+
/**
|
|
65
|
+
* Maps to `Product.name`.
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
readonly name: LocalizedString;
|
|
70
|
+
/**
|
|
71
|
+
* The `productType` of a [Product](/../api/projects/products#product).
|
|
72
|
+
* Maps to `Product.productType`.
|
|
73
|
+
* The Reference to the [ProductType](/../api/projects/productTypes#producttype) with which the Product is associated.
|
|
74
|
+
* 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.
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
readonly productType: ProductTypeKeyReference;
|
|
79
|
+
/**
|
|
80
|
+
* Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a Project,
|
|
81
|
+
* but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters.
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
readonly slug: LocalizedString;
|
|
86
|
+
/**
|
|
87
|
+
* Maps to `Product.description`.
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
readonly description?: LocalizedString;
|
|
92
|
+
/**
|
|
93
|
+
* Maps to `Product.categories`.
|
|
94
|
+
* The References to the [Categories](/../api/projects/categories#category) with which the Product is associated.
|
|
95
|
+
* 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.
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
readonly categories?: CategoryKeyReference[];
|
|
100
|
+
/**
|
|
101
|
+
* 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.
|
|
102
|
+
* ```json
|
|
103
|
+
* {
|
|
104
|
+
* "de": "Hundefutter",
|
|
105
|
+
* "en": "dog food"
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
readonly metaTitle?: LocalizedString;
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
* ```json
|
|
115
|
+
* {
|
|
116
|
+
* "de": "Hundefutter",
|
|
117
|
+
* "en": "dog food"
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
readonly metaDescription?: LocalizedString;
|
|
124
|
+
/**
|
|
125
|
+
* 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.
|
|
126
|
+
* ```json
|
|
127
|
+
* {
|
|
128
|
+
* "de": "Hundefutter",
|
|
129
|
+
* "en": "dog food"
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
readonly metaKeywords?: LocalizedString;
|
|
136
|
+
/**
|
|
137
|
+
* The Reference to the [TaxCategory](/../api/projects/taxCategories#taxcategory) with which the Product is associated.
|
|
138
|
+
* 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.
|
|
139
|
+
*
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
readonly taxCategory?: TaxCategoryKeyReference;
|
|
143
|
+
/**
|
|
144
|
+
* 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.
|
|
145
|
+
* ```json
|
|
146
|
+
* {
|
|
147
|
+
* "en": [
|
|
148
|
+
* { "text": "Multi tool" },
|
|
149
|
+
* { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
|
|
150
|
+
* ],
|
|
151
|
+
* "de": [
|
|
152
|
+
* {
|
|
153
|
+
* "text": "Schweizer Messer",
|
|
154
|
+
* "suggestTokenizer": {
|
|
155
|
+
* "type": "custom",
|
|
156
|
+
* "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
|
|
157
|
+
* }
|
|
158
|
+
* }
|
|
159
|
+
* ]
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
readonly searchKeywords?: SearchKeywords;
|
|
166
|
+
/**
|
|
167
|
+
* The Reference to the [State](/../api/projects/states#state) with which the Product is associated.
|
|
168
|
+
* 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.
|
|
169
|
+
*
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
readonly state?: StateKeyReference;
|
|
173
|
+
/**
|
|
174
|
+
* 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.
|
|
175
|
+
* If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
|
|
176
|
+
* 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.
|
|
177
|
+
*
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
readonly publish?: boolean;
|
|
181
|
+
}
|