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