@wix/auto_sdk_stores_customizations-v-3 1.0.91 → 1.0.93

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 (49) hide show
  1. package/build/cjs/index.d.ts +11 -3
  2. package/build/cjs/index.js +56 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +21 -1
  5. package/build/cjs/index.typings.js +48 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +11 -2
  8. package/build/cjs/meta.js +41 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +9 -1
  11. package/build/cjs/schemas.js +973 -871
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +11 -3
  14. package/build/es/index.mjs +55 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +21 -1
  17. package/build/es/index.typings.mjs +47 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +11 -2
  20. package/build/es/meta.mjs +40 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +9 -1
  23. package/build/es/schemas.mjs +971 -871
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +11 -3
  26. package/build/internal/cjs/index.typings.d.ts +21 -1
  27. package/build/internal/cjs/meta.d.ts +11 -2
  28. package/build/internal/cjs/schemas.d.ts +9 -1
  29. package/build/internal/es/index.d.mts +11 -3
  30. package/build/internal/es/index.typings.d.mts +21 -1
  31. package/build/internal/es/meta.d.mts +11 -2
  32. package/build/internal/es/schemas.d.mts +9 -1
  33. package/package.json +2 -2
  34. package/build/internal/cjs/index.js +0 -1856
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -1617
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -1185
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -1908
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -1809
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -1572
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -1139
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -1846
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,1139 +0,0 @@
1
- // src/stores-catalog-v3-customization-customizations-v-3.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
- function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
11
- const domainToMappings = {
12
- "manage._base_domain_": [
13
- {
14
- srcPath: "/customization",
15
- destPath: ""
16
- }
17
- ],
18
- "www.wixapis.com": [
19
- {
20
- srcPath: "/stores/v3/customizations",
21
- destPath: "/v3/customizations"
22
- },
23
- {
24
- srcPath: "/stores/v3/bulk/customizations",
25
- destPath: "/v3/bulk/customizations"
26
- }
27
- ],
28
- "editor._base_domain_": [
29
- {
30
- srcPath: "/_api/customization",
31
- destPath: ""
32
- }
33
- ],
34
- "blocks._base_domain_": [
35
- {
36
- srcPath: "/_api/customization",
37
- destPath: ""
38
- }
39
- ],
40
- "create.editorx": [
41
- {
42
- srcPath: "/_api/customization",
43
- destPath: ""
44
- }
45
- ],
46
- _: [
47
- {
48
- srcPath: "/_api/customization",
49
- destPath: ""
50
- }
51
- ],
52
- "*.dev.wix-code.com": [
53
- {
54
- srcPath: "/_api/customization",
55
- destPath: ""
56
- }
57
- ]
58
- };
59
- return resolveUrl(Object.assign(opts, { domainToMappings }));
60
- }
61
- var PACKAGE_NAME = "@wix/auto_sdk_stores_customizations-v-3";
62
- function createCustomization(payload) {
63
- function __createCustomization({ host }) {
64
- const serializedData = transformPaths(payload, [
65
- {
66
- transformFn: transformSDKTimestampToRESTTimestamp,
67
- paths: [
68
- { path: "customization.createdDate" },
69
- { path: "customization.updatedDate" },
70
- {
71
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
72
- },
73
- {
74
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
75
- }
76
- ]
77
- },
78
- {
79
- transformFn: transformSDKFloatToRESTFloat,
80
- paths: [
81
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
82
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
83
- ]
84
- }
85
- ]);
86
- const metadata = {
87
- entityFqdn: "wix.stores.catalog.v3.customization",
88
- method: "POST",
89
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization",
90
- packageName: PACKAGE_NAME,
91
- migrationOptions: {
92
- optInTransformResponse: true
93
- },
94
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
95
- protoPath: "/v3/customizations",
96
- data: serializedData,
97
- host
98
- }),
99
- data: serializedData,
100
- transformResponse: (payload2) => transformPaths(payload2, [
101
- {
102
- transformFn: transformRESTTimestampToSDKTimestamp,
103
- paths: [
104
- { path: "customization.createdDate" },
105
- { path: "customization.updatedDate" },
106
- {
107
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
108
- },
109
- {
110
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
111
- }
112
- ]
113
- },
114
- {
115
- transformFn: transformRESTFloatToSDKFloat,
116
- paths: [
117
- {
118
- path: "customization.choicesSettings.choices.image.focalPoint.x"
119
- },
120
- {
121
- path: "customization.choicesSettings.choices.image.focalPoint.y"
122
- }
123
- ]
124
- }
125
- ])
126
- };
127
- return metadata;
128
- }
129
- return __createCustomization;
130
- }
131
- function getCustomization(payload) {
132
- function __getCustomization({ host }) {
133
- const metadata = {
134
- entityFqdn: "wix.stores.catalog.v3.customization",
135
- method: "GET",
136
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.GetCustomization",
137
- packageName: PACKAGE_NAME,
138
- migrationOptions: {
139
- optInTransformResponse: true
140
- },
141
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
142
- protoPath: "/v3/customizations/{customizationId}",
143
- data: payload,
144
- host
145
- }),
146
- params: toURLSearchParams(payload),
147
- transformResponse: (payload2) => transformPaths(payload2, [
148
- {
149
- transformFn: transformRESTTimestampToSDKTimestamp,
150
- paths: [
151
- { path: "customization.createdDate" },
152
- { path: "customization.updatedDate" },
153
- {
154
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
155
- },
156
- {
157
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
158
- }
159
- ]
160
- },
161
- {
162
- transformFn: transformRESTFloatToSDKFloat,
163
- paths: [
164
- {
165
- path: "customization.choicesSettings.choices.image.focalPoint.x"
166
- },
167
- {
168
- path: "customization.choicesSettings.choices.image.focalPoint.y"
169
- }
170
- ]
171
- }
172
- ])
173
- };
174
- return metadata;
175
- }
176
- return __getCustomization;
177
- }
178
- function updateCustomization(payload) {
179
- function __updateCustomization({ host }) {
180
- const serializedData = transformPaths(payload, [
181
- {
182
- transformFn: transformSDKFieldMaskToRESTFieldMask,
183
- paths: [{ path: "fieldMask" }]
184
- },
185
- {
186
- transformFn: transformSDKTimestampToRESTTimestamp,
187
- paths: [
188
- { path: "customization.createdDate" },
189
- { path: "customization.updatedDate" },
190
- {
191
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
192
- },
193
- {
194
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
195
- }
196
- ]
197
- },
198
- {
199
- transformFn: transformSDKFloatToRESTFloat,
200
- paths: [
201
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
202
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
203
- ]
204
- }
205
- ]);
206
- const metadata = {
207
- entityFqdn: "wix.stores.catalog.v3.customization",
208
- method: "PATCH",
209
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization",
210
- packageName: PACKAGE_NAME,
211
- migrationOptions: {
212
- optInTransformResponse: true
213
- },
214
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
215
- protoPath: "/v3/customizations/{customization.id}",
216
- data: serializedData,
217
- host
218
- }),
219
- data: serializedData,
220
- transformResponse: (payload2) => transformPaths(payload2, [
221
- {
222
- transformFn: transformRESTTimestampToSDKTimestamp,
223
- paths: [
224
- { path: "customization.createdDate" },
225
- { path: "customization.updatedDate" },
226
- {
227
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
228
- },
229
- {
230
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
231
- }
232
- ]
233
- },
234
- {
235
- transformFn: transformRESTFloatToSDKFloat,
236
- paths: [
237
- {
238
- path: "customization.choicesSettings.choices.image.focalPoint.x"
239
- },
240
- {
241
- path: "customization.choicesSettings.choices.image.focalPoint.y"
242
- }
243
- ]
244
- }
245
- ])
246
- };
247
- return metadata;
248
- }
249
- return __updateCustomization;
250
- }
251
- function deleteCustomization(payload) {
252
- function __deleteCustomization({ host }) {
253
- const metadata = {
254
- entityFqdn: "wix.stores.catalog.v3.customization",
255
- method: "DELETE",
256
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.DeleteCustomization",
257
- packageName: PACKAGE_NAME,
258
- migrationOptions: {
259
- optInTransformResponse: true
260
- },
261
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
262
- protoPath: "/v3/customizations/{customizationId}",
263
- data: payload,
264
- host
265
- }),
266
- params: toURLSearchParams(payload)
267
- };
268
- return metadata;
269
- }
270
- return __deleteCustomization;
271
- }
272
- function queryCustomizations(payload) {
273
- function __queryCustomizations({ host }) {
274
- const metadata = {
275
- entityFqdn: "wix.stores.catalog.v3.customization",
276
- method: "GET",
277
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations",
278
- packageName: PACKAGE_NAME,
279
- migrationOptions: {
280
- optInTransformResponse: true
281
- },
282
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
283
- protoPath: "/v3/customizations/query",
284
- data: payload,
285
- host
286
- }),
287
- params: toURLSearchParams(payload, true),
288
- transformResponse: (payload2) => transformPaths(payload2, [
289
- {
290
- transformFn: transformRESTTimestampToSDKTimestamp,
291
- paths: [
292
- { path: "customizations.createdDate" },
293
- { path: "customizations.updatedDate" },
294
- {
295
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
296
- },
297
- {
298
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
299
- }
300
- ]
301
- },
302
- {
303
- transformFn: transformRESTFloatToSDKFloat,
304
- paths: [
305
- {
306
- path: "customizations.choicesSettings.choices.image.focalPoint.x"
307
- },
308
- {
309
- path: "customizations.choicesSettings.choices.image.focalPoint.y"
310
- }
311
- ]
312
- }
313
- ]),
314
- fallback: [
315
- {
316
- method: "POST",
317
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
318
- protoPath: "/v3/customizations/query",
319
- data: payload,
320
- host
321
- }),
322
- data: payload
323
- }
324
- ]
325
- };
326
- return metadata;
327
- }
328
- return __queryCustomizations;
329
- }
330
- function bulkCreateCustomizations(payload) {
331
- function __bulkCreateCustomizations({ host }) {
332
- const serializedData = transformPaths(payload, [
333
- {
334
- transformFn: transformSDKTimestampToRESTTimestamp,
335
- paths: [
336
- { path: "customizations.createdDate" },
337
- { path: "customizations.updatedDate" },
338
- {
339
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
340
- },
341
- {
342
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
343
- }
344
- ]
345
- },
346
- {
347
- transformFn: transformSDKFloatToRESTFloat,
348
- paths: [
349
- { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
350
- { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
351
- ]
352
- }
353
- ]);
354
- const metadata = {
355
- entityFqdn: "wix.stores.catalog.v3.customization",
356
- method: "POST",
357
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations",
358
- packageName: PACKAGE_NAME,
359
- migrationOptions: {
360
- optInTransformResponse: true
361
- },
362
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
363
- protoPath: "/v3/bulk/customizations/create",
364
- data: serializedData,
365
- host
366
- }),
367
- data: serializedData,
368
- transformResponse: (payload2) => transformPaths(payload2, [
369
- {
370
- transformFn: transformRESTTimestampToSDKTimestamp,
371
- paths: [
372
- { path: "results.customization.createdDate" },
373
- { path: "results.customization.updatedDate" },
374
- {
375
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
376
- },
377
- {
378
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
379
- }
380
- ]
381
- },
382
- {
383
- transformFn: transformRESTFloatToSDKFloat,
384
- paths: [
385
- {
386
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
387
- },
388
- {
389
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
390
- }
391
- ]
392
- }
393
- ])
394
- };
395
- return metadata;
396
- }
397
- return __bulkCreateCustomizations;
398
- }
399
- function addCustomizationChoices(payload) {
400
- function __addCustomizationChoices({ host }) {
401
- const serializedData = transformPaths(payload, [
402
- {
403
- transformFn: transformSDKTimestampToRESTTimestamp,
404
- paths: [
405
- { path: "choices.image.urlExpirationDate" },
406
- { path: "choices.displayImage.urlExpirationDate" }
407
- ]
408
- },
409
- {
410
- transformFn: transformSDKFloatToRESTFloat,
411
- paths: [
412
- { path: "choices.image.focalPoint.x" },
413
- { path: "choices.image.focalPoint.y" }
414
- ]
415
- }
416
- ]);
417
- const metadata = {
418
- entityFqdn: "wix.stores.catalog.v3.customization",
419
- method: "POST",
420
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices",
421
- packageName: PACKAGE_NAME,
422
- migrationOptions: {
423
- optInTransformResponse: true
424
- },
425
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
426
- protoPath: "/v3/customizations/{customizationId}/add-choices",
427
- data: serializedData,
428
- host
429
- }),
430
- data: serializedData,
431
- transformResponse: (payload2) => transformPaths(payload2, [
432
- {
433
- transformFn: transformRESTTimestampToSDKTimestamp,
434
- paths: [
435
- { path: "customization.createdDate" },
436
- { path: "customization.updatedDate" },
437
- {
438
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
439
- },
440
- {
441
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
442
- }
443
- ]
444
- },
445
- {
446
- transformFn: transformRESTFloatToSDKFloat,
447
- paths: [
448
- {
449
- path: "customization.choicesSettings.choices.image.focalPoint.x"
450
- },
451
- {
452
- path: "customization.choicesSettings.choices.image.focalPoint.y"
453
- }
454
- ]
455
- }
456
- ])
457
- };
458
- return metadata;
459
- }
460
- return __addCustomizationChoices;
461
- }
462
- function setCustomizationChoices(payload) {
463
- function __setCustomizationChoices({ host }) {
464
- const serializedData = transformPaths(payload, [
465
- {
466
- transformFn: transformSDKTimestampToRESTTimestamp,
467
- paths: [
468
- { path: "choices.image.urlExpirationDate" },
469
- { path: "choices.displayImage.urlExpirationDate" }
470
- ]
471
- },
472
- {
473
- transformFn: transformSDKFloatToRESTFloat,
474
- paths: [
475
- { path: "choices.image.focalPoint.x" },
476
- { path: "choices.image.focalPoint.y" }
477
- ]
478
- }
479
- ]);
480
- const metadata = {
481
- entityFqdn: "wix.stores.catalog.v3.customization",
482
- method: "POST",
483
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices",
484
- packageName: PACKAGE_NAME,
485
- migrationOptions: {
486
- optInTransformResponse: true
487
- },
488
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
489
- protoPath: "/v3/customizations/{customizationId}/set-choices",
490
- data: serializedData,
491
- host
492
- }),
493
- data: serializedData,
494
- transformResponse: (payload2) => transformPaths(payload2, [
495
- {
496
- transformFn: transformRESTTimestampToSDKTimestamp,
497
- paths: [
498
- { path: "customization.createdDate" },
499
- { path: "customization.updatedDate" },
500
- {
501
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
502
- },
503
- {
504
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
505
- }
506
- ]
507
- },
508
- {
509
- transformFn: transformRESTFloatToSDKFloat,
510
- paths: [
511
- {
512
- path: "customization.choicesSettings.choices.image.focalPoint.x"
513
- },
514
- {
515
- path: "customization.choicesSettings.choices.image.focalPoint.y"
516
- }
517
- ]
518
- }
519
- ])
520
- };
521
- return metadata;
522
- }
523
- return __setCustomizationChoices;
524
- }
525
- function removeCustomizationChoices(payload) {
526
- function __removeCustomizationChoices({ host }) {
527
- const metadata = {
528
- entityFqdn: "wix.stores.catalog.v3.customization",
529
- method: "POST",
530
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices",
531
- packageName: PACKAGE_NAME,
532
- migrationOptions: {
533
- optInTransformResponse: true
534
- },
535
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
536
- protoPath: "/v3/customizations/{customizationId}/remove-choices",
537
- data: payload,
538
- host
539
- }),
540
- data: payload,
541
- transformResponse: (payload2) => transformPaths(payload2, [
542
- {
543
- transformFn: transformRESTTimestampToSDKTimestamp,
544
- paths: [
545
- { path: "customization.createdDate" },
546
- { path: "customization.updatedDate" },
547
- {
548
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
549
- },
550
- {
551
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
552
- }
553
- ]
554
- },
555
- {
556
- transformFn: transformRESTFloatToSDKFloat,
557
- paths: [
558
- {
559
- path: "customization.choicesSettings.choices.image.focalPoint.x"
560
- },
561
- {
562
- path: "customization.choicesSettings.choices.image.focalPoint.y"
563
- }
564
- ]
565
- }
566
- ])
567
- };
568
- return metadata;
569
- }
570
- return __removeCustomizationChoices;
571
- }
572
- function updateCustomizationChoices(payload) {
573
- function __updateCustomizationChoices({ host }) {
574
- const serializedData = transformPaths(payload, [
575
- {
576
- transformFn: transformSDKFieldMaskToRESTFieldMask,
577
- paths: [{ path: "choices.fieldMask" }]
578
- },
579
- {
580
- transformFn: transformSDKTimestampToRESTTimestamp,
581
- paths: [
582
- { path: "choices.choice.image.urlExpirationDate" },
583
- { path: "choices.choice.displayImage.urlExpirationDate" }
584
- ]
585
- },
586
- {
587
- transformFn: transformSDKFloatToRESTFloat,
588
- paths: [
589
- { path: "choices.choice.image.focalPoint.x" },
590
- { path: "choices.choice.image.focalPoint.y" }
591
- ]
592
- }
593
- ]);
594
- const metadata = {
595
- entityFqdn: "wix.stores.catalog.v3.customization",
596
- method: "POST",
597
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomizationChoices",
598
- packageName: PACKAGE_NAME,
599
- migrationOptions: {
600
- optInTransformResponse: true
601
- },
602
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
603
- protoPath: "/v3/customizations/{customizationId}/update-choices",
604
- data: serializedData,
605
- host
606
- }),
607
- data: serializedData,
608
- transformResponse: (payload2) => transformPaths(payload2, [
609
- {
610
- transformFn: transformRESTTimestampToSDKTimestamp,
611
- paths: [
612
- { path: "customization.createdDate" },
613
- { path: "customization.updatedDate" },
614
- {
615
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
616
- },
617
- {
618
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
619
- }
620
- ]
621
- },
622
- {
623
- transformFn: transformRESTFloatToSDKFloat,
624
- paths: [
625
- {
626
- path: "customization.choicesSettings.choices.image.focalPoint.x"
627
- },
628
- {
629
- path: "customization.choicesSettings.choices.image.focalPoint.y"
630
- }
631
- ]
632
- }
633
- ])
634
- };
635
- return metadata;
636
- }
637
- return __updateCustomizationChoices;
638
- }
639
- function reorderCustomizationChoices(payload) {
640
- function __reorderCustomizationChoices({ host }) {
641
- const metadata = {
642
- entityFqdn: "wix.stores.catalog.v3.customization",
643
- method: "POST",
644
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.ReorderCustomizationChoices",
645
- packageName: PACKAGE_NAME,
646
- migrationOptions: {
647
- optInTransformResponse: true
648
- },
649
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
650
- protoPath: "/v3/customizations/{customizationId}/reorder-choices",
651
- data: payload,
652
- host
653
- }),
654
- data: payload,
655
- transformResponse: (payload2) => transformPaths(payload2, [
656
- {
657
- transformFn: transformRESTTimestampToSDKTimestamp,
658
- paths: [
659
- { path: "customization.createdDate" },
660
- { path: "customization.updatedDate" },
661
- {
662
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
663
- },
664
- {
665
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
666
- }
667
- ]
668
- },
669
- {
670
- transformFn: transformRESTFloatToSDKFloat,
671
- paths: [
672
- {
673
- path: "customization.choicesSettings.choices.image.focalPoint.x"
674
- },
675
- {
676
- path: "customization.choicesSettings.choices.image.focalPoint.y"
677
- }
678
- ]
679
- }
680
- ])
681
- };
682
- return metadata;
683
- }
684
- return __reorderCustomizationChoices;
685
- }
686
- function bulkAddCustomizationChoices(payload) {
687
- function __bulkAddCustomizationChoices({ host }) {
688
- const serializedData = transformPaths(payload, [
689
- {
690
- transformFn: transformSDKTimestampToRESTTimestamp,
691
- paths: [
692
- { path: "customizationsChoices.choices.image.urlExpirationDate" },
693
- {
694
- path: "customizationsChoices.choices.displayImage.urlExpirationDate"
695
- }
696
- ]
697
- },
698
- {
699
- transformFn: transformSDKFloatToRESTFloat,
700
- paths: [
701
- { path: "customizationsChoices.choices.image.focalPoint.x" },
702
- { path: "customizationsChoices.choices.image.focalPoint.y" }
703
- ]
704
- }
705
- ]);
706
- const metadata = {
707
- entityFqdn: "wix.stores.catalog.v3.customization",
708
- method: "POST",
709
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices",
710
- packageName: PACKAGE_NAME,
711
- migrationOptions: {
712
- optInTransformResponse: true
713
- },
714
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
715
- protoPath: "/v3/bulk/customizations/add-choices",
716
- data: serializedData,
717
- host
718
- }),
719
- data: serializedData,
720
- transformResponse: (payload2) => transformPaths(payload2, [
721
- {
722
- transformFn: transformRESTTimestampToSDKTimestamp,
723
- paths: [
724
- { path: "results.customization.createdDate" },
725
- { path: "results.customization.updatedDate" },
726
- {
727
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
728
- },
729
- {
730
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
731
- }
732
- ]
733
- },
734
- {
735
- transformFn: transformRESTFloatToSDKFloat,
736
- paths: [
737
- {
738
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
739
- },
740
- {
741
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
742
- }
743
- ]
744
- }
745
- ])
746
- };
747
- return metadata;
748
- }
749
- return __bulkAddCustomizationChoices;
750
- }
751
- function bulkUpdateCustomizations(payload) {
752
- function __bulkUpdateCustomizations({ host }) {
753
- const serializedData = transformPaths(payload, [
754
- {
755
- transformFn: transformSDKFieldMaskToRESTFieldMask,
756
- paths: [{ path: "customizations.fieldMask" }]
757
- },
758
- {
759
- transformFn: transformSDKTimestampToRESTTimestamp,
760
- paths: [
761
- { path: "customizations.customization.createdDate" },
762
- { path: "customizations.customization.updatedDate" },
763
- {
764
- path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
765
- },
766
- {
767
- path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
768
- }
769
- ]
770
- },
771
- {
772
- transformFn: transformSDKFloatToRESTFloat,
773
- paths: [
774
- {
775
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
776
- },
777
- {
778
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
779
- }
780
- ]
781
- }
782
- ]);
783
- const metadata = {
784
- entityFqdn: "wix.stores.catalog.v3.customization",
785
- method: "POST",
786
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations",
787
- packageName: PACKAGE_NAME,
788
- migrationOptions: {
789
- optInTransformResponse: true
790
- },
791
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
792
- protoPath: "/v3/bulk/customizations/update",
793
- data: serializedData,
794
- host
795
- }),
796
- data: serializedData,
797
- transformResponse: (payload2) => transformPaths(payload2, [
798
- {
799
- transformFn: transformRESTTimestampToSDKTimestamp,
800
- paths: [
801
- { path: "results.customization.createdDate" },
802
- { path: "results.customization.updatedDate" },
803
- {
804
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
805
- },
806
- {
807
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
808
- }
809
- ]
810
- },
811
- {
812
- transformFn: transformRESTFloatToSDKFloat,
813
- paths: [
814
- {
815
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
816
- },
817
- {
818
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
819
- }
820
- ]
821
- }
822
- ])
823
- };
824
- return metadata;
825
- }
826
- return __bulkUpdateCustomizations;
827
- }
828
-
829
- // src/stores-catalog-v3-customization-customizations-v-3.types.ts
830
- var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
831
- CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
832
- CustomizationType2["MODIFIER"] = "MODIFIER";
833
- return CustomizationType2;
834
- })(CustomizationType || {});
835
- var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
836
- CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
837
- CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
838
- CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
839
- return CustomizationRenderType2;
840
- })(CustomizationRenderType || {});
841
- var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
842
- ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
843
- ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
844
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
845
- ChoiceType2["IMAGE"] = "IMAGE";
846
- return ChoiceType2;
847
- })(ChoiceType || {});
848
- var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
849
- ChoiceSortStrategy2["DEFAULT"] = "DEFAULT";
850
- ChoiceSortStrategy2["BY_NAME"] = "BY_NAME";
851
- ChoiceSortStrategy2["BY_PRODUCT_COUNT"] = "BY_PRODUCT_COUNT";
852
- ChoiceSortStrategy2["MANUAL"] = "MANUAL";
853
- return ChoiceSortStrategy2;
854
- })(ChoiceSortStrategy || {});
855
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
856
- RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
857
- RequestedFields2["CHOICE_DISPLAY_IMAGE"] = "CHOICE_DISPLAY_IMAGE";
858
- return RequestedFields2;
859
- })(RequestedFields || {});
860
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
861
- SortOrder2["ASC"] = "ASC";
862
- SortOrder2["DESC"] = "DESC";
863
- return SortOrder2;
864
- })(SortOrder || {});
865
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
866
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
867
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
868
- WebhookIdentityType2["MEMBER"] = "MEMBER";
869
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
870
- WebhookIdentityType2["APP"] = "APP";
871
- return WebhookIdentityType2;
872
- })(WebhookIdentityType || {});
873
-
874
- // src/stores-catalog-v3-customization-customizations-v-3.meta.ts
875
- function createCustomization2() {
876
- const payload = {};
877
- const getRequestOptions = createCustomization(payload);
878
- const getUrl = (context) => {
879
- const { url } = getRequestOptions(context);
880
- return url;
881
- };
882
- return {
883
- getUrl,
884
- httpMethod: "POST",
885
- path: "/v3/customizations",
886
- pathParams: {},
887
- __requestType: null,
888
- __originalRequestType: null,
889
- __responseType: null,
890
- __originalResponseType: null
891
- };
892
- }
893
- function getCustomization2() {
894
- const payload = { customizationId: ":customizationId" };
895
- const getRequestOptions = getCustomization(payload);
896
- const getUrl = (context) => {
897
- const { url } = getRequestOptions(context);
898
- return url;
899
- };
900
- return {
901
- getUrl,
902
- httpMethod: "GET",
903
- path: "/v3/customizations/{customizationId}",
904
- pathParams: { customizationId: "customizationId" },
905
- __requestType: null,
906
- __originalRequestType: null,
907
- __responseType: null,
908
- __originalResponseType: null
909
- };
910
- }
911
- function updateCustomization2() {
912
- const payload = { customization: { id: ":customizationId" } };
913
- const getRequestOptions = updateCustomization(payload);
914
- const getUrl = (context) => {
915
- const { url } = getRequestOptions(context);
916
- return url;
917
- };
918
- return {
919
- getUrl,
920
- httpMethod: "PATCH",
921
- path: "/v3/customizations/{customization.id}",
922
- pathParams: { customizationId: "customizationId" },
923
- __requestType: null,
924
- __originalRequestType: null,
925
- __responseType: null,
926
- __originalResponseType: null
927
- };
928
- }
929
- function deleteCustomization2() {
930
- const payload = { customizationId: ":customizationId" };
931
- const getRequestOptions = deleteCustomization(payload);
932
- const getUrl = (context) => {
933
- const { url } = getRequestOptions(context);
934
- return url;
935
- };
936
- return {
937
- getUrl,
938
- httpMethod: "DELETE",
939
- path: "/v3/customizations/{customizationId}",
940
- pathParams: { customizationId: "customizationId" },
941
- __requestType: null,
942
- __originalRequestType: null,
943
- __responseType: null,
944
- __originalResponseType: null
945
- };
946
- }
947
- function queryCustomizations2() {
948
- const payload = {};
949
- const getRequestOptions = queryCustomizations(payload);
950
- const getUrl = (context) => {
951
- const { url } = getRequestOptions(context);
952
- return url;
953
- };
954
- return {
955
- getUrl,
956
- httpMethod: "GET",
957
- path: "/v3/customizations/query",
958
- pathParams: {},
959
- __requestType: null,
960
- __originalRequestType: null,
961
- __responseType: null,
962
- __originalResponseType: null
963
- };
964
- }
965
- function bulkCreateCustomizations2() {
966
- const payload = {};
967
- const getRequestOptions = bulkCreateCustomizations(payload);
968
- const getUrl = (context) => {
969
- const { url } = getRequestOptions(context);
970
- return url;
971
- };
972
- return {
973
- getUrl,
974
- httpMethod: "POST",
975
- path: "/v3/bulk/customizations/create",
976
- pathParams: {},
977
- __requestType: null,
978
- __originalRequestType: null,
979
- __responseType: null,
980
- __originalResponseType: null
981
- };
982
- }
983
- function addCustomizationChoices2() {
984
- const payload = { customizationId: ":customizationId" };
985
- const getRequestOptions = addCustomizationChoices(payload);
986
- const getUrl = (context) => {
987
- const { url } = getRequestOptions(context);
988
- return url;
989
- };
990
- return {
991
- getUrl,
992
- httpMethod: "POST",
993
- path: "/v3/customizations/{customizationId}/add-choices",
994
- pathParams: { customizationId: "customizationId" },
995
- __requestType: null,
996
- __originalRequestType: null,
997
- __responseType: null,
998
- __originalResponseType: null
999
- };
1000
- }
1001
- function setCustomizationChoices2() {
1002
- const payload = { customizationId: ":customizationId" };
1003
- const getRequestOptions = setCustomizationChoices(payload);
1004
- const getUrl = (context) => {
1005
- const { url } = getRequestOptions(context);
1006
- return url;
1007
- };
1008
- return {
1009
- getUrl,
1010
- httpMethod: "POST",
1011
- path: "/v3/customizations/{customizationId}/set-choices",
1012
- pathParams: { customizationId: "customizationId" },
1013
- __requestType: null,
1014
- __originalRequestType: null,
1015
- __responseType: null,
1016
- __originalResponseType: null
1017
- };
1018
- }
1019
- function removeCustomizationChoices2() {
1020
- const payload = { customizationId: ":customizationId" };
1021
- const getRequestOptions = removeCustomizationChoices(
1022
- payload
1023
- );
1024
- const getUrl = (context) => {
1025
- const { url } = getRequestOptions(context);
1026
- return url;
1027
- };
1028
- return {
1029
- getUrl,
1030
- httpMethod: "POST",
1031
- path: "/v3/customizations/{customizationId}/remove-choices",
1032
- pathParams: { customizationId: "customizationId" },
1033
- __requestType: null,
1034
- __originalRequestType: null,
1035
- __responseType: null,
1036
- __originalResponseType: null
1037
- };
1038
- }
1039
- function updateCustomizationChoices2() {
1040
- const payload = { customizationId: ":customizationId" };
1041
- const getRequestOptions = updateCustomizationChoices(
1042
- payload
1043
- );
1044
- const getUrl = (context) => {
1045
- const { url } = getRequestOptions(context);
1046
- return url;
1047
- };
1048
- return {
1049
- getUrl,
1050
- httpMethod: "POST",
1051
- path: "/v3/customizations/{customizationId}/update-choices",
1052
- pathParams: { customizationId: "customizationId" },
1053
- __requestType: null,
1054
- __originalRequestType: null,
1055
- __responseType: null,
1056
- __originalResponseType: null
1057
- };
1058
- }
1059
- function reorderCustomizationChoices2() {
1060
- const payload = { customizationId: ":customizationId" };
1061
- const getRequestOptions = reorderCustomizationChoices(
1062
- payload
1063
- );
1064
- const getUrl = (context) => {
1065
- const { url } = getRequestOptions(context);
1066
- return url;
1067
- };
1068
- return {
1069
- getUrl,
1070
- httpMethod: "POST",
1071
- path: "/v3/customizations/{customizationId}/reorder-choices",
1072
- pathParams: { customizationId: "customizationId" },
1073
- __requestType: null,
1074
- __originalRequestType: null,
1075
- __responseType: null,
1076
- __originalResponseType: null
1077
- };
1078
- }
1079
- function bulkAddCustomizationChoices2() {
1080
- const payload = {};
1081
- const getRequestOptions = bulkAddCustomizationChoices(
1082
- payload
1083
- );
1084
- const getUrl = (context) => {
1085
- const { url } = getRequestOptions(context);
1086
- return url;
1087
- };
1088
- return {
1089
- getUrl,
1090
- httpMethod: "POST",
1091
- path: "/v3/bulk/customizations/add-choices",
1092
- pathParams: {},
1093
- __requestType: null,
1094
- __originalRequestType: null,
1095
- __responseType: null,
1096
- __originalResponseType: null
1097
- };
1098
- }
1099
- function bulkUpdateCustomizations2() {
1100
- const payload = {};
1101
- const getRequestOptions = bulkUpdateCustomizations(payload);
1102
- const getUrl = (context) => {
1103
- const { url } = getRequestOptions(context);
1104
- return url;
1105
- };
1106
- return {
1107
- getUrl,
1108
- httpMethod: "POST",
1109
- path: "/v3/bulk/customizations/update",
1110
- pathParams: {},
1111
- __requestType: null,
1112
- __originalRequestType: null,
1113
- __responseType: null,
1114
- __originalResponseType: null
1115
- };
1116
- }
1117
- export {
1118
- ChoiceSortStrategy as ChoiceSortStrategyOriginal,
1119
- ChoiceType as ChoiceTypeOriginal,
1120
- CustomizationRenderType as CustomizationRenderTypeOriginal,
1121
- CustomizationType as CustomizationTypeOriginal,
1122
- RequestedFields as RequestedFieldsOriginal,
1123
- SortOrder as SortOrderOriginal,
1124
- WebhookIdentityType as WebhookIdentityTypeOriginal,
1125
- addCustomizationChoices2 as addCustomizationChoices,
1126
- bulkAddCustomizationChoices2 as bulkAddCustomizationChoices,
1127
- bulkCreateCustomizations2 as bulkCreateCustomizations,
1128
- bulkUpdateCustomizations2 as bulkUpdateCustomizations,
1129
- createCustomization2 as createCustomization,
1130
- deleteCustomization2 as deleteCustomization,
1131
- getCustomization2 as getCustomization,
1132
- queryCustomizations2 as queryCustomizations,
1133
- removeCustomizationChoices2 as removeCustomizationChoices,
1134
- reorderCustomizationChoices2 as reorderCustomizationChoices,
1135
- setCustomizationChoices2 as setCustomizationChoices,
1136
- updateCustomization2 as updateCustomization,
1137
- updateCustomizationChoices2 as updateCustomizationChoices
1138
- };
1139
- //# sourceMappingURL=meta.mjs.map