@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;A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M,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
+ "main": "../build/cjs/meta.js"
3
+ }
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@wix/auto_sdk_stores_catalog-imports-v-3",
3
+ "version": "1.0.0",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/",
7
+ "access": "public"
8
+ },
9
+ "keywords": [],
10
+ "sideEffects": false,
11
+ "main": "./build/cjs/index.js",
12
+ "types": "./build/cjs/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./build/es/index.mjs",
16
+ "require": "./build/cjs/index.js",
17
+ "types": "./build/es/index.d.mts"
18
+ },
19
+ "./package.json": "./package.json",
20
+ "./meta": {
21
+ "import": "./build/es/meta.mjs",
22
+ "require": "./build/cjs/meta.js",
23
+ "types": "./build/es/meta.d.mts"
24
+ }
25
+ },
26
+ "files": [
27
+ "build",
28
+ "meta",
29
+ "service-plugins"
30
+ ],
31
+ "dependencies": {
32
+ "@wix/sdk-runtime": "^0.3.55",
33
+ "@wix/sdk-types": "^1.13.35"
34
+ },
35
+ "devDependencies": {
36
+ "tsup": "^8.4.0",
37
+ "typescript": "^5.3.2"
38
+ },
39
+ "scripts": {
40
+ "build": "tsup",
41
+ "test": ":"
42
+ },
43
+ "wix": {
44
+ "artifact": {
45
+ "artifactId": "auto-sdk-stores-catalog-imports-v-3",
46
+ "groupId": "com.wixpress.public-sdk-dependencies"
47
+ },
48
+ "sdkDependency": {
49
+ "fqdnNamespace": "catalogImportsV3",
50
+ "fqdn": "wix.stores.catalog.v3.catalog_import"
51
+ }
52
+ },
53
+ "falconPackageHash": "307028e481c981593ddc4fa6718228ebfdac9708e00f6ba47375d118"
54
+ }