@wix/auto_sdk_stores_catalog-imports-v-3 1.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/build/cjs/index.d.ts +3168 -0
- package/build/cjs/index.js +913 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +883 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +3057 -0
- package/build/cjs/meta.js +371 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +3168 -0
- package/build/es/index.mjs +839 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +809 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +3057 -0
- package/build/es/meta.mjs +342 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +55 -0
- package/build/internal/cjs/index.js +913 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +3233 -0
- package/build/internal/cjs/index.typings.js +883 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +3058 -0
- package/build/internal/cjs/meta.js +371 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +55 -0
- package/build/internal/es/index.mjs +839 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +3233 -0
- package/build/internal/es/index.typings.mjs +809 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +3058 -0
- package/build/internal/es/meta.mjs +342 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
addProductsToImport: () => addProductsToImport2,
|
|
24
|
+
createCatalogImport: () => createCatalogImport2,
|
|
25
|
+
submitCatalogImport: () => submitCatalogImport2
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(meta_exports);
|
|
28
|
+
|
|
29
|
+
// src/stores-catalog-v3-catalog-import-catalog-imports-v-3.http.ts
|
|
30
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
31
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
32
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
33
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
34
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
35
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
36
|
+
function resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl(opts) {
|
|
37
|
+
const domainToMappings = {
|
|
38
|
+
"www.wixapis.com": [
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/stores/v3/catalog-imports",
|
|
41
|
+
destPath: "/v3/catalog-imports"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
};
|
|
45
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
46
|
+
}
|
|
47
|
+
var PACKAGE_NAME = "@wix/auto_sdk_stores_catalog-imports-v-3";
|
|
48
|
+
function createCatalogImport(payload) {
|
|
49
|
+
function __createCatalogImport({ host }) {
|
|
50
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
51
|
+
{
|
|
52
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
53
|
+
paths: [{ path: "catalogImport.createdDate" }]
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
const metadata = {
|
|
57
|
+
entityFqdn: "wix.stores.catalog.v3.catalog_import",
|
|
58
|
+
method: "POST",
|
|
59
|
+
methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
|
|
60
|
+
packageName: PACKAGE_NAME,
|
|
61
|
+
url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
|
|
62
|
+
protoPath: "/v3/catalog-imports",
|
|
63
|
+
data: serializedData,
|
|
64
|
+
host
|
|
65
|
+
}),
|
|
66
|
+
data: serializedData,
|
|
67
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
68
|
+
{
|
|
69
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
70
|
+
paths: [{ path: "catalogImport.createdDate" }]
|
|
71
|
+
}
|
|
72
|
+
])
|
|
73
|
+
};
|
|
74
|
+
return metadata;
|
|
75
|
+
}
|
|
76
|
+
return __createCatalogImport;
|
|
77
|
+
}
|
|
78
|
+
function addProductsToImport(payload) {
|
|
79
|
+
function __addProductsToImport({ host }) {
|
|
80
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
81
|
+
{
|
|
82
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
83
|
+
paths: [{ path: "products.fieldMask" }]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
87
|
+
paths: [
|
|
88
|
+
{ path: "products.product.physicalProperties.pricePerUnit.quantity" },
|
|
89
|
+
{
|
|
90
|
+
path: "products.product.physicalProperties.shippingWeightRange.minValue"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
path: "products.product.physicalProperties.shippingWeightRange.maxValue"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
path: "products.product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
path: "products.product.variantsInfo.variants.revenueDetails.profitMargin"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
path: "products.product.subscriptionDetails.subscriptions.discount.percentOff"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "products.product.description.nodes.galleryData.items.image.media.duration"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
path: "products.product.description.nodes.galleryData.items.video.media.duration"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "products.product.description.nodes.galleryData.items.video.thumbnail.duration"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: "products.product.description.nodes.galleryData.options.item.ratio"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "products.product.description.nodes.imageData.image.duration"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
path: "products.product.description.nodes.mapData.mapSettings.lat"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "products.product.description.nodes.mapData.mapSettings.lng"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
path: "products.product.description.nodes.pollData.poll.image.duration"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
path: "products.product.description.nodes.pollData.poll.options.image.duration"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
path: "products.product.description.nodes.pollData.design.poll.background.image.duration"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
path: "products.product.description.nodes.appEmbedData.image.duration"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
path: "products.product.description.nodes.videoData.video.duration"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
path: "products.product.description.nodes.videoData.thumbnail.duration"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "products.product.description.nodes.audioData.audio.duration"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
path: "products.product.description.nodes.audioData.coverImage.duration"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
path: "products.product.infoSections.description.nodes.galleryData.items.image.media.duration"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
path: "products.product.infoSections.description.nodes.galleryData.items.video.media.duration"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
path: "products.product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
path: "products.product.infoSections.description.nodes.galleryData.options.item.ratio"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
path: "products.product.infoSections.description.nodes.imageData.image.duration"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
path: "products.product.infoSections.description.nodes.mapData.mapSettings.lat"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "products.product.infoSections.description.nodes.mapData.mapSettings.lng"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "products.product.infoSections.description.nodes.pollData.poll.image.duration"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "products.product.infoSections.description.nodes.pollData.poll.options.image.duration"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
path: "products.product.infoSections.description.nodes.pollData.design.poll.background.image.duration"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: "products.product.infoSections.description.nodes.appEmbedData.image.duration"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
path: "products.product.infoSections.description.nodes.videoData.video.duration"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
path: "products.product.infoSections.description.nodes.videoData.thumbnail.duration"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
path: "products.product.infoSections.description.nodes.audioData.audio.duration"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
path: "products.product.infoSections.description.nodes.audioData.coverImage.duration"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: "products.product.variantsInfo.variants.physicalProperties.weight"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
201
|
+
paths: [
|
|
202
|
+
{ path: "products.product.description.metadata.createdTimestamp" },
|
|
203
|
+
{ path: "products.product.description.metadata.updatedTimestamp" },
|
|
204
|
+
{ path: "products.product.media.main.image.urlExpirationDate" },
|
|
205
|
+
{ path: "products.product.media.main.video.urlExpirationDate" },
|
|
206
|
+
{
|
|
207
|
+
path: "products.product.media.main.video.resolutions.urlExpirationDate"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: "products.product.media.main.video.resolutions.poster.urlExpirationDate"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: "products.product.media.main.video.posters.urlExpirationDate"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "products.product.media.itemsInfo.items.image.urlExpirationDate"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: "products.product.media.itemsInfo.items.video.urlExpirationDate"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
path: "products.product.media.itemsInfo.items.video.resolutions.urlExpirationDate"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
path: "products.product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
path: "products.product.media.itemsInfo.items.video.posters.urlExpirationDate"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
path: "products.product.options.choicesSettings.choices.image.urlExpirationDate"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
path: "products.product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
path: "products.product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
path: "products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
path: "products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
path: "products.product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
path: "products.product.modifiers.choicesSettings.choices.image.urlExpirationDate"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
path: "products.product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: "products.product.infoSections.description.metadata.createdTimestamp"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: "products.product.infoSections.description.metadata.updatedTimestamp"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
]);
|
|
275
|
+
const metadata = {
|
|
276
|
+
entityFqdn: "wix.stores.catalog.v3.catalog_import",
|
|
277
|
+
method: "POST",
|
|
278
|
+
methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
|
|
279
|
+
packageName: PACKAGE_NAME,
|
|
280
|
+
url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
|
|
281
|
+
protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
|
|
282
|
+
data: serializedData,
|
|
283
|
+
host
|
|
284
|
+
}),
|
|
285
|
+
data: serializedData
|
|
286
|
+
};
|
|
287
|
+
return metadata;
|
|
288
|
+
}
|
|
289
|
+
return __addProductsToImport;
|
|
290
|
+
}
|
|
291
|
+
function submitCatalogImport(payload) {
|
|
292
|
+
function __submitCatalogImport({ host }) {
|
|
293
|
+
const metadata = {
|
|
294
|
+
entityFqdn: "wix.stores.catalog.v3.catalog_import",
|
|
295
|
+
method: "POST",
|
|
296
|
+
methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
|
|
297
|
+
packageName: PACKAGE_NAME,
|
|
298
|
+
url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
|
|
299
|
+
protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
|
|
300
|
+
data: payload,
|
|
301
|
+
host
|
|
302
|
+
}),
|
|
303
|
+
data: payload
|
|
304
|
+
};
|
|
305
|
+
return metadata;
|
|
306
|
+
}
|
|
307
|
+
return __submitCatalogImport;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.ts
|
|
311
|
+
function createCatalogImport2() {
|
|
312
|
+
const payload = {};
|
|
313
|
+
const getRequestOptions = createCatalogImport(payload);
|
|
314
|
+
const getUrl = (context) => {
|
|
315
|
+
const { url } = getRequestOptions(context);
|
|
316
|
+
return url;
|
|
317
|
+
};
|
|
318
|
+
return {
|
|
319
|
+
getUrl,
|
|
320
|
+
httpMethod: "POST",
|
|
321
|
+
path: "/v3/catalog-imports",
|
|
322
|
+
pathParams: {},
|
|
323
|
+
__requestType: null,
|
|
324
|
+
__originalRequestType: null,
|
|
325
|
+
__responseType: null,
|
|
326
|
+
__originalResponseType: null
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function addProductsToImport2() {
|
|
330
|
+
const payload = { catalogImportId: ":catalogImportId" };
|
|
331
|
+
const getRequestOptions = addProductsToImport(payload);
|
|
332
|
+
const getUrl = (context) => {
|
|
333
|
+
const { url } = getRequestOptions(context);
|
|
334
|
+
return url;
|
|
335
|
+
};
|
|
336
|
+
return {
|
|
337
|
+
getUrl,
|
|
338
|
+
httpMethod: "POST",
|
|
339
|
+
path: "/v3/catalog-imports/{catalogImportId}/add-products",
|
|
340
|
+
pathParams: { catalogImportId: "catalogImportId" },
|
|
341
|
+
__requestType: null,
|
|
342
|
+
__originalRequestType: null,
|
|
343
|
+
__responseType: null,
|
|
344
|
+
__originalResponseType: null
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function submitCatalogImport2() {
|
|
348
|
+
const payload = { catalogImportId: ":catalogImportId" };
|
|
349
|
+
const getRequestOptions = submitCatalogImport(payload);
|
|
350
|
+
const getUrl = (context) => {
|
|
351
|
+
const { url } = getRequestOptions(context);
|
|
352
|
+
return url;
|
|
353
|
+
};
|
|
354
|
+
return {
|
|
355
|
+
getUrl,
|
|
356
|
+
httpMethod: "POST",
|
|
357
|
+
path: "/v3/catalog-imports/{catalogImportId}/submit",
|
|
358
|
+
pathParams: { catalogImportId: "catalogImportId" },
|
|
359
|
+
__requestType: null,
|
|
360
|
+
__originalRequestType: null,
|
|
361
|
+
__responseType: null,
|
|
362
|
+
__originalResponseType: null
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
366
|
+
0 && (module.exports = {
|
|
367
|
+
addProductsToImport,
|
|
368
|
+
createCatalogImport,
|
|
369
|
+
submitCatalogImport
|
|
370
|
+
});
|
|
371
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../meta.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.http.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.ts"],"sourcesContent":["export * from './src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.js';\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/stores/v3/catalog-imports',\n destPath: '/v3/catalog-imports',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_stores_catalog-imports-v-3';\n\n/**\n * Creates a CatalogImport for upsert product operations.\n *\n * Returns `catalogImport.id` that can be used in subsequent AddProductsToImport and SubmitCatalogImport calls.\n */\nexport function createCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCatalogImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCatalogImport;\n}\n\n/**\n * Add products in bulk to an existing catalog import session.\n *\n * Products are stored in temporary storage until SubmitCatalogImport is called.\n * Can be called multiple times for the same import session.\n *\n * > **Notes:**\n * > + Products are upserted based on the `handle` field\n * > + Updates don't require passing the current revision number and overwrites existing fields which are specified in `product`\n * > + Pass `category_ids` to update categories assignments, overwrites existing assignments\n */\nexport function addProductsToImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __addProductsToImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'products.fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.product.physicalProperties.pricePerUnit.quantity' },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.minValue',\n },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.maxValue',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity',\n },\n {\n path: 'products.product.variantsInfo.variants.revenueDetails.profitMargin',\n },\n {\n path: 'products.product.subscriptionDetails.subscriptions.discount.percentOff',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.infoSections.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.weight',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.product.description.metadata.createdTimestamp' },\n { path: 'products.product.description.metadata.updatedTimestamp' },\n { path: 'products.product.media.main.image.urlExpirationDate' },\n { path: 'products.product.media.main.video.urlExpirationDate' },\n {\n path: 'products.product.media.main.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.image.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.infoSections.description.metadata.createdTimestamp',\n },\n {\n path: 'products.product.infoSections.description.metadata.updatedTimestamp',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/add-products',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __addProductsToImport;\n}\n\n/**\n * Submits all products in the catalog import for processing.\n * Once called, no more items can be added to this import session.\n */\nexport function submitCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __submitCatalogImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/submit',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __submitCatalogImport;\n}\n","import * as ambassadorWixStoresCatalogV3CatalogImport from './stores-catalog-v3-catalog-import-catalog-imports-v-3.http.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.types.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportUniversalTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.createCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addProductsToImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.addProductsToImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/add-products',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function submitCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.submitCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/submit',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,wDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,oBACd,SAC4B;AAC5B,WAAS,sBAAsB,EAAE,KAAK,GAAQ;AAC5C,UAAM,qBAAiB,uCAAe,SAA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ACF;","names":["addProductsToImport","createCatalogImport","submitCatalogImport","import_timestamp","payload","createCatalogImport","addProductsToImport","submitCatalogImport"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { CatalogImport, ProductItem, SubmitCatalogImportResponse, SubmitCatalogImportApplicationErrors } from './index.typings.mjs';
|
|
3
|
+
export { ActionEvent, AddProductsToImportRequest, AddProductsToImportResponse, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BlockquoteData, BookingData, Border, BorderColors, Brand, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CatalogImportAlreadySubmittedErrorData, CellStyle, ChoiceType, ChoiceTypeWithLiterals, ChoicesSettings, CodeBlockData, CollapsibleListData, ColorData, Colors, ConnectedModifier, ConnectedModifierChoice, ConnectedModifierChoiceValueOneOf, ConnectedModifierModifierSettingsOneOf, ConnectedOption, ConnectedOptionChoice, ConnectedOptionChoiceValueOneOf, ConnectedOptionOptionSettingsOneOf, CreateCatalogImportRequest, CreateCatalogImportResponse, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DiscountType, DiscountTypeWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FileType, FileTypeWithLiterals, FixedMonetaryAmount, FontSizeData, FontType, FontTypeWithLiterals, FreeTextSettings, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InfoSection, InitialExpandedItems, InitialExpandedItemsWithLiterals, InventoryItemComposite, InventoryItemCompositeTrackingMethodOneOf, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MeasurementUnit, MeasurementUnitWithLiterals, Media, MediaItemsInfo, MediaType, MediaTypeWithLiterals, MentionData, MessageEnvelope, Metadata, ModifierChoicesSettings, ModifierRenderType, ModifierRenderTypeWithLiterals, MultipleColors, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionChoiceIds, OptionChoiceNames, OptionChoiceReferences, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, PhysicalProperties, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PreorderInfo, PriceInfo, PricePerUnit, PricePerUnitRange, PricePerUnitRangePricePerUnit, PricePerUnitSettings, PricingData, ProductCategoryIdsInfo, ProductMedia, ProductMediaMediaOneOf, ProductMediaSetByOneOf, ProductOptionRenderType, ProductOptionRenderTypeWithLiterals, ProductType, ProductTypeWithLiterals, ProductWithInventory, ProductWithInventoryTypedPropertiesOneOf, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RevenueDetails, Ribbon, RibbonStyles, RichContent, SecuredMedia, SeoSchema, Settings, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, SubmitCatalogImportRequest, Subscription, SubscriptionCyclesOneOf, SubscriptionDetails, SubscriptionDiscount, SubscriptionDiscountDiscountOneOf, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnail, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, V1Media, VariantDigitalProperties, VariantPhysicalProperties, VariantWithInventory, VariantWithInventoryTypedPropertiesOneOf, VariantsInfo, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightMeasurementUnitInfo, WeightRange, WeightUnit, WeightUnitWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
|
|
4
|
+
|
|
5
|
+
/** @internal */
|
|
6
|
+
declare function createCatalogImport$1(httpClient: HttpClient): CreateCatalogImportSignature;
|
|
7
|
+
interface CreateCatalogImportSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a CatalogImport for upsert product operations.
|
|
10
|
+
*
|
|
11
|
+
* Returns `catalogImport.id` that can be used in subsequent AddProductsToImport and SubmitCatalogImport calls.
|
|
12
|
+
* @param - CatalogImport to be created.
|
|
13
|
+
* @returns Created CatalogImport.
|
|
14
|
+
*/
|
|
15
|
+
(catalogImport: CatalogImport): Promise<CatalogImport>;
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
declare function addProductsToImport$1(httpClient: HttpClient): AddProductsToImportSignature;
|
|
19
|
+
interface AddProductsToImportSignature {
|
|
20
|
+
/**
|
|
21
|
+
* Add products in bulk to an existing catalog import session.
|
|
22
|
+
*
|
|
23
|
+
* Products are stored in temporary storage until SubmitCatalogImport is called.
|
|
24
|
+
* Can be called multiple times for the same import session.
|
|
25
|
+
*
|
|
26
|
+
* > **Notes:**
|
|
27
|
+
* > + Products are upserted based on the `handle` field
|
|
28
|
+
* > + Updates don't require passing the current revision number and overwrites existing fields which are specified in `product`
|
|
29
|
+
* > + Pass `category_ids` to update categories assignments, overwrites existing assignments
|
|
30
|
+
* @param - Catalog Import ID.
|
|
31
|
+
* @param - List of product items to add to the import session.
|
|
32
|
+
*/
|
|
33
|
+
(catalogImportId: string, products: NonNullablePaths<ProductItem, `product.handle`, 3>[]): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
/** @internal */
|
|
36
|
+
declare function submitCatalogImport$1(httpClient: HttpClient): SubmitCatalogImportSignature;
|
|
37
|
+
interface SubmitCatalogImportSignature {
|
|
38
|
+
/**
|
|
39
|
+
* Submits all products in the catalog import for processing.
|
|
40
|
+
* Once called, no more items can be added to this import session.
|
|
41
|
+
* @param - Catalog Import ID.
|
|
42
|
+
*/
|
|
43
|
+
(catalogImportId: string): Promise<NonNullablePaths<SubmitCatalogImportResponse, `jobId`, 2> & {
|
|
44
|
+
__applicationErrorsType?: SubmitCatalogImportApplicationErrors;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
declare const createCatalogImport: MaybeContext<BuildRESTFunction<typeof createCatalogImport$1> & typeof createCatalogImport$1>;
|
|
50
|
+
/** @internal */
|
|
51
|
+
declare const addProductsToImport: MaybeContext<BuildRESTFunction<typeof addProductsToImport$1> & typeof addProductsToImport$1>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
declare const submitCatalogImport: MaybeContext<BuildRESTFunction<typeof submitCatalogImport$1> & typeof submitCatalogImport$1>;
|
|
54
|
+
|
|
55
|
+
export { CatalogImport, ProductItem, SubmitCatalogImportApplicationErrors, SubmitCatalogImportResponse, addProductsToImport, createCatalogImport, submitCatalogImport };
|