@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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +3168 -0
  2. package/build/cjs/index.js +913 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +883 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +3057 -0
  8. package/build/cjs/meta.js +371 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +3168 -0
  11. package/build/es/index.mjs +839 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1 -0
  14. package/build/es/index.typings.mjs +809 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +3057 -0
  17. package/build/es/meta.mjs +342 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +55 -0
  21. package/build/internal/cjs/index.js +913 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +3233 -0
  24. package/build/internal/cjs/index.typings.js +883 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +3058 -0
  27. package/build/internal/cjs/meta.js +371 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +55 -0
  30. package/build/internal/es/index.mjs +839 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +3233 -0
  33. package/build/internal/es/index.typings.mjs +809 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +3058 -0
  36. package/build/internal/es/meta.mjs +342 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,342 @@
1
+ // src/stores-catalog-v3-catalog-import-catalog-imports-v-3.http.ts
2
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
3
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
6
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
7
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
8
+ function resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl(opts) {
9
+ const domainToMappings = {
10
+ "www.wixapis.com": [
11
+ {
12
+ srcPath: "/stores/v3/catalog-imports",
13
+ destPath: "/v3/catalog-imports"
14
+ }
15
+ ]
16
+ };
17
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
18
+ }
19
+ var PACKAGE_NAME = "@wix/auto_sdk_stores_catalog-imports-v-3";
20
+ function createCatalogImport(payload) {
21
+ function __createCatalogImport({ host }) {
22
+ const serializedData = transformPaths(payload, [
23
+ {
24
+ transformFn: transformSDKTimestampToRESTTimestamp,
25
+ paths: [{ path: "catalogImport.createdDate" }]
26
+ }
27
+ ]);
28
+ const metadata = {
29
+ entityFqdn: "wix.stores.catalog.v3.catalog_import",
30
+ method: "POST",
31
+ methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
32
+ packageName: PACKAGE_NAME,
33
+ url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
34
+ protoPath: "/v3/catalog-imports",
35
+ data: serializedData,
36
+ host
37
+ }),
38
+ data: serializedData,
39
+ transformResponse: (payload2) => transformPaths(payload2, [
40
+ {
41
+ transformFn: transformRESTTimestampToSDKTimestamp,
42
+ paths: [{ path: "catalogImport.createdDate" }]
43
+ }
44
+ ])
45
+ };
46
+ return metadata;
47
+ }
48
+ return __createCatalogImport;
49
+ }
50
+ function addProductsToImport(payload) {
51
+ function __addProductsToImport({ host }) {
52
+ const serializedData = transformPaths(payload, [
53
+ {
54
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
55
+ paths: [{ path: "products.fieldMask" }]
56
+ },
57
+ {
58
+ transformFn: transformSDKFloatToRESTFloat,
59
+ paths: [
60
+ { path: "products.product.physicalProperties.pricePerUnit.quantity" },
61
+ {
62
+ path: "products.product.physicalProperties.shippingWeightRange.minValue"
63
+ },
64
+ {
65
+ path: "products.product.physicalProperties.shippingWeightRange.maxValue"
66
+ },
67
+ {
68
+ path: "products.product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity"
69
+ },
70
+ {
71
+ path: "products.product.variantsInfo.variants.revenueDetails.profitMargin"
72
+ },
73
+ {
74
+ path: "products.product.subscriptionDetails.subscriptions.discount.percentOff"
75
+ },
76
+ {
77
+ path: "products.product.description.nodes.galleryData.items.image.media.duration"
78
+ },
79
+ {
80
+ path: "products.product.description.nodes.galleryData.items.video.media.duration"
81
+ },
82
+ {
83
+ path: "products.product.description.nodes.galleryData.items.video.thumbnail.duration"
84
+ },
85
+ {
86
+ path: "products.product.description.nodes.galleryData.options.item.ratio"
87
+ },
88
+ {
89
+ path: "products.product.description.nodes.imageData.image.duration"
90
+ },
91
+ {
92
+ path: "products.product.description.nodes.mapData.mapSettings.lat"
93
+ },
94
+ {
95
+ path: "products.product.description.nodes.mapData.mapSettings.lng"
96
+ },
97
+ {
98
+ path: "products.product.description.nodes.pollData.poll.image.duration"
99
+ },
100
+ {
101
+ path: "products.product.description.nodes.pollData.poll.options.image.duration"
102
+ },
103
+ {
104
+ path: "products.product.description.nodes.pollData.design.poll.background.image.duration"
105
+ },
106
+ {
107
+ path: "products.product.description.nodes.appEmbedData.image.duration"
108
+ },
109
+ {
110
+ path: "products.product.description.nodes.videoData.video.duration"
111
+ },
112
+ {
113
+ path: "products.product.description.nodes.videoData.thumbnail.duration"
114
+ },
115
+ {
116
+ path: "products.product.description.nodes.audioData.audio.duration"
117
+ },
118
+ {
119
+ path: "products.product.description.nodes.audioData.coverImage.duration"
120
+ },
121
+ {
122
+ path: "products.product.infoSections.description.nodes.galleryData.items.image.media.duration"
123
+ },
124
+ {
125
+ path: "products.product.infoSections.description.nodes.galleryData.items.video.media.duration"
126
+ },
127
+ {
128
+ path: "products.product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration"
129
+ },
130
+ {
131
+ path: "products.product.infoSections.description.nodes.galleryData.options.item.ratio"
132
+ },
133
+ {
134
+ path: "products.product.infoSections.description.nodes.imageData.image.duration"
135
+ },
136
+ {
137
+ path: "products.product.infoSections.description.nodes.mapData.mapSettings.lat"
138
+ },
139
+ {
140
+ path: "products.product.infoSections.description.nodes.mapData.mapSettings.lng"
141
+ },
142
+ {
143
+ path: "products.product.infoSections.description.nodes.pollData.poll.image.duration"
144
+ },
145
+ {
146
+ path: "products.product.infoSections.description.nodes.pollData.poll.options.image.duration"
147
+ },
148
+ {
149
+ path: "products.product.infoSections.description.nodes.pollData.design.poll.background.image.duration"
150
+ },
151
+ {
152
+ path: "products.product.infoSections.description.nodes.appEmbedData.image.duration"
153
+ },
154
+ {
155
+ path: "products.product.infoSections.description.nodes.videoData.video.duration"
156
+ },
157
+ {
158
+ path: "products.product.infoSections.description.nodes.videoData.thumbnail.duration"
159
+ },
160
+ {
161
+ path: "products.product.infoSections.description.nodes.audioData.audio.duration"
162
+ },
163
+ {
164
+ path: "products.product.infoSections.description.nodes.audioData.coverImage.duration"
165
+ },
166
+ {
167
+ path: "products.product.variantsInfo.variants.physicalProperties.weight"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ transformFn: transformSDKTimestampToRESTTimestamp,
173
+ paths: [
174
+ { path: "products.product.description.metadata.createdTimestamp" },
175
+ { path: "products.product.description.metadata.updatedTimestamp" },
176
+ { path: "products.product.media.main.image.urlExpirationDate" },
177
+ { path: "products.product.media.main.video.urlExpirationDate" },
178
+ {
179
+ path: "products.product.media.main.video.resolutions.urlExpirationDate"
180
+ },
181
+ {
182
+ path: "products.product.media.main.video.resolutions.poster.urlExpirationDate"
183
+ },
184
+ {
185
+ path: "products.product.media.main.video.posters.urlExpirationDate"
186
+ },
187
+ {
188
+ path: "products.product.media.itemsInfo.items.image.urlExpirationDate"
189
+ },
190
+ {
191
+ path: "products.product.media.itemsInfo.items.video.urlExpirationDate"
192
+ },
193
+ {
194
+ path: "products.product.media.itemsInfo.items.video.resolutions.urlExpirationDate"
195
+ },
196
+ {
197
+ path: "products.product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate"
198
+ },
199
+ {
200
+ path: "products.product.media.itemsInfo.items.video.posters.urlExpirationDate"
201
+ },
202
+ {
203
+ path: "products.product.options.choicesSettings.choices.image.urlExpirationDate"
204
+ },
205
+ {
206
+ path: "products.product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate"
207
+ },
208
+ {
209
+ path: "products.product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate"
210
+ },
211
+ {
212
+ path: "products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate"
213
+ },
214
+ {
215
+ path: "products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate"
216
+ },
217
+ {
218
+ path: "products.product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate"
219
+ },
220
+ {
221
+ path: "products.product.modifiers.choicesSettings.choices.image.urlExpirationDate"
222
+ },
223
+ {
224
+ path: "products.product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate"
225
+ },
226
+ {
227
+ path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate"
228
+ },
229
+ {
230
+ path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate"
231
+ },
232
+ {
233
+ path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate"
234
+ },
235
+ {
236
+ path: "products.product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate"
237
+ },
238
+ {
239
+ path: "products.product.infoSections.description.metadata.createdTimestamp"
240
+ },
241
+ {
242
+ path: "products.product.infoSections.description.metadata.updatedTimestamp"
243
+ }
244
+ ]
245
+ }
246
+ ]);
247
+ const metadata = {
248
+ entityFqdn: "wix.stores.catalog.v3.catalog_import",
249
+ method: "POST",
250
+ methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
251
+ packageName: PACKAGE_NAME,
252
+ url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
253
+ protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
254
+ data: serializedData,
255
+ host
256
+ }),
257
+ data: serializedData
258
+ };
259
+ return metadata;
260
+ }
261
+ return __addProductsToImport;
262
+ }
263
+ function submitCatalogImport(payload) {
264
+ function __submitCatalogImport({ host }) {
265
+ const metadata = {
266
+ entityFqdn: "wix.stores.catalog.v3.catalog_import",
267
+ method: "POST",
268
+ methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
269
+ packageName: PACKAGE_NAME,
270
+ url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
271
+ protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
272
+ data: payload,
273
+ host
274
+ }),
275
+ data: payload
276
+ };
277
+ return metadata;
278
+ }
279
+ return __submitCatalogImport;
280
+ }
281
+
282
+ // src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.ts
283
+ function createCatalogImport2() {
284
+ const payload = {};
285
+ const getRequestOptions = createCatalogImport(payload);
286
+ const getUrl = (context) => {
287
+ const { url } = getRequestOptions(context);
288
+ return url;
289
+ };
290
+ return {
291
+ getUrl,
292
+ httpMethod: "POST",
293
+ path: "/v3/catalog-imports",
294
+ pathParams: {},
295
+ __requestType: null,
296
+ __originalRequestType: null,
297
+ __responseType: null,
298
+ __originalResponseType: null
299
+ };
300
+ }
301
+ function addProductsToImport2() {
302
+ const payload = { catalogImportId: ":catalogImportId" };
303
+ const getRequestOptions = addProductsToImport(payload);
304
+ const getUrl = (context) => {
305
+ const { url } = getRequestOptions(context);
306
+ return url;
307
+ };
308
+ return {
309
+ getUrl,
310
+ httpMethod: "POST",
311
+ path: "/v3/catalog-imports/{catalogImportId}/add-products",
312
+ pathParams: { catalogImportId: "catalogImportId" },
313
+ __requestType: null,
314
+ __originalRequestType: null,
315
+ __responseType: null,
316
+ __originalResponseType: null
317
+ };
318
+ }
319
+ function submitCatalogImport2() {
320
+ const payload = { catalogImportId: ":catalogImportId" };
321
+ const getRequestOptions = submitCatalogImport(payload);
322
+ const getUrl = (context) => {
323
+ const { url } = getRequestOptions(context);
324
+ return url;
325
+ };
326
+ return {
327
+ getUrl,
328
+ httpMethod: "POST",
329
+ path: "/v3/catalog-imports/{catalogImportId}/submit",
330
+ pathParams: { catalogImportId: "catalogImportId" },
331
+ __requestType: null,
332
+ __originalRequestType: null,
333
+ __responseType: null,
334
+ __originalResponseType: null
335
+ };
336
+ }
337
+ export {
338
+ addProductsToImport2 as addProductsToImport,
339
+ createCatalogImport2 as createCatalogImport,
340
+ submitCatalogImport2 as submitCatalogImport
341
+ };
342
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../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":["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,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,wDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAA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EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createCatalogImport","addProductsToImport","submitCatalogImport"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,55 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { CatalogImport, ProductItem, SubmitCatalogImportResponse, SubmitCatalogImportApplicationErrors } from './index.typings.js';
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.js';
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 };