@wix/auto_sdk_stores_customizations-v-3 1.0.92 → 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.
@@ -1,1912 +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
- // index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- ChoiceSortStrategy: () => ChoiceSortStrategy,
24
- ChoiceType: () => ChoiceType,
25
- CustomizationRenderType: () => CustomizationRenderType,
26
- CustomizationType: () => CustomizationType,
27
- RequestedFields: () => RequestedFields,
28
- SortOrder: () => SortOrder,
29
- WebhookIdentityType: () => WebhookIdentityType,
30
- addCustomizationChoices: () => addCustomizationChoices4,
31
- bulkAddCustomizationChoices: () => bulkAddCustomizationChoices4,
32
- bulkCreateCustomizations: () => bulkCreateCustomizations4,
33
- bulkUpdateCustomizations: () => bulkUpdateCustomizations4,
34
- countCustomizations: () => countCustomizations4,
35
- createCustomization: () => createCustomization4,
36
- deleteCustomization: () => deleteCustomization4,
37
- getCustomization: () => getCustomization4,
38
- onCustomizationCreated: () => onCustomizationCreated2,
39
- onCustomizationDeleted: () => onCustomizationDeleted2,
40
- onCustomizationUpdated: () => onCustomizationUpdated2,
41
- queryCustomizations: () => queryCustomizations4,
42
- removeCustomizationChoices: () => removeCustomizationChoices4,
43
- reorderCustomizationChoices: () => reorderCustomizationChoices4,
44
- setCustomizationChoices: () => setCustomizationChoices4,
45
- updateCustomization: () => updateCustomization4,
46
- updateCustomizationChoices: () => updateCustomizationChoices4,
47
- utils: () => utils
48
- });
49
- module.exports = __toCommonJS(index_exports);
50
-
51
- // src/stores-catalog-v3-customization-customizations-v-3.public.ts
52
- var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
53
- var import_image3 = require("@wix/sdk-runtime/transformations/image");
54
- var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
55
- var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
56
- var import_sdk_types = require("@wix/sdk-types");
57
-
58
- // src/stores-catalog-v3-customization-customizations-v-3.universal.ts
59
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
60
- var import_query_builder = require("@wix/sdk-runtime/query-builder");
61
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
62
-
63
- // src/stores-catalog-v3-customization-customizations-v-3.http.ts
64
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
65
- var import_float = require("@wix/sdk-runtime/transformations/float");
66
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
67
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
68
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
69
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
70
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
71
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
72
- function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
73
- const domainToMappings = {
74
- "manage._base_domain_": [
75
- {
76
- srcPath: "/customization",
77
- destPath: ""
78
- }
79
- ],
80
- "www.wixapis.com": [
81
- {
82
- srcPath: "/stores/v3/customizations",
83
- destPath: "/v3/customizations"
84
- },
85
- {
86
- srcPath: "/stores/v3/bulk/customizations",
87
- destPath: "/v3/bulk/customizations"
88
- }
89
- ],
90
- "editor._base_domain_": [
91
- {
92
- srcPath: "/_api/customization",
93
- destPath: ""
94
- }
95
- ],
96
- "blocks._base_domain_": [
97
- {
98
- srcPath: "/_api/customization",
99
- destPath: ""
100
- }
101
- ],
102
- "create.editorx": [
103
- {
104
- srcPath: "/_api/customization",
105
- destPath: ""
106
- }
107
- ],
108
- _: [
109
- {
110
- srcPath: "/_api/customization",
111
- destPath: ""
112
- }
113
- ],
114
- "*.dev.wix-code.com": [
115
- {
116
- srcPath: "/_api/customization",
117
- destPath: ""
118
- }
119
- ]
120
- };
121
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
122
- }
123
- var PACKAGE_NAME = "@wix/auto_sdk_stores_customizations-v-3";
124
- function createCustomization(payload) {
125
- function __createCustomization({ host }) {
126
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
127
- {
128
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
129
- paths: [
130
- { path: "customization.createdDate" },
131
- { path: "customization.updatedDate" },
132
- {
133
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
134
- },
135
- {
136
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
137
- }
138
- ]
139
- },
140
- {
141
- transformFn: import_float.transformSDKFloatToRESTFloat,
142
- paths: [
143
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
144
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
145
- ]
146
- }
147
- ]);
148
- const metadata = {
149
- entityFqdn: "wix.stores.catalog.v3.customization",
150
- method: "POST",
151
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization",
152
- packageName: PACKAGE_NAME,
153
- migrationOptions: {
154
- optInTransformResponse: true
155
- },
156
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
157
- protoPath: "/v3/customizations",
158
- data: serializedData,
159
- host
160
- }),
161
- data: serializedData,
162
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
163
- {
164
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
165
- paths: [
166
- { path: "customization.createdDate" },
167
- { path: "customization.updatedDate" },
168
- {
169
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
170
- },
171
- {
172
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
173
- }
174
- ]
175
- },
176
- {
177
- transformFn: import_float2.transformRESTFloatToSDKFloat,
178
- paths: [
179
- {
180
- path: "customization.choicesSettings.choices.image.focalPoint.x"
181
- },
182
- {
183
- path: "customization.choicesSettings.choices.image.focalPoint.y"
184
- }
185
- ]
186
- }
187
- ])
188
- };
189
- return metadata;
190
- }
191
- return __createCustomization;
192
- }
193
- function getCustomization(payload) {
194
- function __getCustomization({ host }) {
195
- const metadata = {
196
- entityFqdn: "wix.stores.catalog.v3.customization",
197
- method: "GET",
198
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.GetCustomization",
199
- packageName: PACKAGE_NAME,
200
- migrationOptions: {
201
- optInTransformResponse: true
202
- },
203
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
204
- protoPath: "/v3/customizations/{customizationId}",
205
- data: payload,
206
- host
207
- }),
208
- params: (0, import_rest_modules.toURLSearchParams)(payload),
209
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
210
- {
211
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
212
- paths: [
213
- { path: "customization.createdDate" },
214
- { path: "customization.updatedDate" },
215
- {
216
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
217
- },
218
- {
219
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
220
- }
221
- ]
222
- },
223
- {
224
- transformFn: import_float2.transformRESTFloatToSDKFloat,
225
- paths: [
226
- {
227
- path: "customization.choicesSettings.choices.image.focalPoint.x"
228
- },
229
- {
230
- path: "customization.choicesSettings.choices.image.focalPoint.y"
231
- }
232
- ]
233
- }
234
- ])
235
- };
236
- return metadata;
237
- }
238
- return __getCustomization;
239
- }
240
- function updateCustomization(payload) {
241
- function __updateCustomization({ host }) {
242
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
243
- {
244
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
245
- paths: [{ path: "fieldMask" }]
246
- },
247
- {
248
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
249
- paths: [
250
- { path: "customization.createdDate" },
251
- { path: "customization.updatedDate" },
252
- {
253
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
254
- },
255
- {
256
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
257
- }
258
- ]
259
- },
260
- {
261
- transformFn: import_float.transformSDKFloatToRESTFloat,
262
- paths: [
263
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
264
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
265
- ]
266
- }
267
- ]);
268
- const metadata = {
269
- entityFqdn: "wix.stores.catalog.v3.customization",
270
- method: "PATCH",
271
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization",
272
- packageName: PACKAGE_NAME,
273
- migrationOptions: {
274
- optInTransformResponse: true
275
- },
276
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
277
- protoPath: "/v3/customizations/{customization.id}",
278
- data: serializedData,
279
- host
280
- }),
281
- data: serializedData,
282
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
283
- {
284
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
285
- paths: [
286
- { path: "customization.createdDate" },
287
- { path: "customization.updatedDate" },
288
- {
289
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
290
- },
291
- {
292
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
293
- }
294
- ]
295
- },
296
- {
297
- transformFn: import_float2.transformRESTFloatToSDKFloat,
298
- paths: [
299
- {
300
- path: "customization.choicesSettings.choices.image.focalPoint.x"
301
- },
302
- {
303
- path: "customization.choicesSettings.choices.image.focalPoint.y"
304
- }
305
- ]
306
- }
307
- ])
308
- };
309
- return metadata;
310
- }
311
- return __updateCustomization;
312
- }
313
- function deleteCustomization(payload) {
314
- function __deleteCustomization({ host }) {
315
- const metadata = {
316
- entityFqdn: "wix.stores.catalog.v3.customization",
317
- method: "DELETE",
318
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.DeleteCustomization",
319
- packageName: PACKAGE_NAME,
320
- migrationOptions: {
321
- optInTransformResponse: true
322
- },
323
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
324
- protoPath: "/v3/customizations/{customizationId}",
325
- data: payload,
326
- host
327
- }),
328
- params: (0, import_rest_modules.toURLSearchParams)(payload)
329
- };
330
- return metadata;
331
- }
332
- return __deleteCustomization;
333
- }
334
- function queryCustomizations(payload) {
335
- function __queryCustomizations({ host }) {
336
- const metadata = {
337
- entityFqdn: "wix.stores.catalog.v3.customization",
338
- method: "GET",
339
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations",
340
- packageName: PACKAGE_NAME,
341
- migrationOptions: {
342
- optInTransformResponse: true
343
- },
344
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
345
- protoPath: "/v3/customizations/query",
346
- data: payload,
347
- host
348
- }),
349
- params: (0, import_rest_modules.toURLSearchParams)(payload, true),
350
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
351
- {
352
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
353
- paths: [
354
- { path: "customizations.createdDate" },
355
- { path: "customizations.updatedDate" },
356
- {
357
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
358
- },
359
- {
360
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
361
- }
362
- ]
363
- },
364
- {
365
- transformFn: import_float2.transformRESTFloatToSDKFloat,
366
- paths: [
367
- {
368
- path: "customizations.choicesSettings.choices.image.focalPoint.x"
369
- },
370
- {
371
- path: "customizations.choicesSettings.choices.image.focalPoint.y"
372
- }
373
- ]
374
- }
375
- ]),
376
- fallback: [
377
- {
378
- method: "POST",
379
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
380
- protoPath: "/v3/customizations/query",
381
- data: payload,
382
- host
383
- }),
384
- data: payload
385
- }
386
- ]
387
- };
388
- return metadata;
389
- }
390
- return __queryCustomizations;
391
- }
392
- function countCustomizations(payload) {
393
- function __countCustomizations({ host }) {
394
- const metadata = {
395
- entityFqdn: "wix.stores.catalog.v3.customization",
396
- method: "POST",
397
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CountCustomizations",
398
- packageName: PACKAGE_NAME,
399
- migrationOptions: {
400
- optInTransformResponse: true
401
- },
402
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
403
- protoPath: "/v3/customizations/count",
404
- data: payload,
405
- host
406
- }),
407
- data: payload
408
- };
409
- return metadata;
410
- }
411
- return __countCustomizations;
412
- }
413
- function bulkCreateCustomizations(payload) {
414
- function __bulkCreateCustomizations({ host }) {
415
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
416
- {
417
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
418
- paths: [
419
- { path: "customizations.createdDate" },
420
- { path: "customizations.updatedDate" },
421
- {
422
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
423
- },
424
- {
425
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
426
- }
427
- ]
428
- },
429
- {
430
- transformFn: import_float.transformSDKFloatToRESTFloat,
431
- paths: [
432
- { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
433
- { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
434
- ]
435
- }
436
- ]);
437
- const metadata = {
438
- entityFqdn: "wix.stores.catalog.v3.customization",
439
- method: "POST",
440
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations",
441
- packageName: PACKAGE_NAME,
442
- migrationOptions: {
443
- optInTransformResponse: true
444
- },
445
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
446
- protoPath: "/v3/bulk/customizations/create",
447
- data: serializedData,
448
- host
449
- }),
450
- data: serializedData,
451
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
452
- {
453
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
454
- paths: [
455
- { path: "results.customization.createdDate" },
456
- { path: "results.customization.updatedDate" },
457
- {
458
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
459
- },
460
- {
461
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
462
- }
463
- ]
464
- },
465
- {
466
- transformFn: import_float2.transformRESTFloatToSDKFloat,
467
- paths: [
468
- {
469
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
470
- },
471
- {
472
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
473
- }
474
- ]
475
- }
476
- ])
477
- };
478
- return metadata;
479
- }
480
- return __bulkCreateCustomizations;
481
- }
482
- function addCustomizationChoices(payload) {
483
- function __addCustomizationChoices({ host }) {
484
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
485
- {
486
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
487
- paths: [
488
- { path: "choices.image.urlExpirationDate" },
489
- { path: "choices.displayImage.urlExpirationDate" }
490
- ]
491
- },
492
- {
493
- transformFn: import_float.transformSDKFloatToRESTFloat,
494
- paths: [
495
- { path: "choices.image.focalPoint.x" },
496
- { path: "choices.image.focalPoint.y" }
497
- ]
498
- }
499
- ]);
500
- const metadata = {
501
- entityFqdn: "wix.stores.catalog.v3.customization",
502
- method: "POST",
503
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices",
504
- packageName: PACKAGE_NAME,
505
- migrationOptions: {
506
- optInTransformResponse: true
507
- },
508
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
509
- protoPath: "/v3/customizations/{customizationId}/add-choices",
510
- data: serializedData,
511
- host
512
- }),
513
- data: serializedData,
514
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
515
- {
516
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
517
- paths: [
518
- { path: "customization.createdDate" },
519
- { path: "customization.updatedDate" },
520
- {
521
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
522
- },
523
- {
524
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
525
- }
526
- ]
527
- },
528
- {
529
- transformFn: import_float2.transformRESTFloatToSDKFloat,
530
- paths: [
531
- {
532
- path: "customization.choicesSettings.choices.image.focalPoint.x"
533
- },
534
- {
535
- path: "customization.choicesSettings.choices.image.focalPoint.y"
536
- }
537
- ]
538
- }
539
- ])
540
- };
541
- return metadata;
542
- }
543
- return __addCustomizationChoices;
544
- }
545
- function setCustomizationChoices(payload) {
546
- function __setCustomizationChoices({ host }) {
547
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
548
- {
549
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
550
- paths: [
551
- { path: "choices.image.urlExpirationDate" },
552
- { path: "choices.displayImage.urlExpirationDate" }
553
- ]
554
- },
555
- {
556
- transformFn: import_float.transformSDKFloatToRESTFloat,
557
- paths: [
558
- { path: "choices.image.focalPoint.x" },
559
- { path: "choices.image.focalPoint.y" }
560
- ]
561
- }
562
- ]);
563
- const metadata = {
564
- entityFqdn: "wix.stores.catalog.v3.customization",
565
- method: "POST",
566
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices",
567
- packageName: PACKAGE_NAME,
568
- migrationOptions: {
569
- optInTransformResponse: true
570
- },
571
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
572
- protoPath: "/v3/customizations/{customizationId}/set-choices",
573
- data: serializedData,
574
- host
575
- }),
576
- data: serializedData,
577
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
578
- {
579
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
580
- paths: [
581
- { path: "customization.createdDate" },
582
- { path: "customization.updatedDate" },
583
- {
584
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
585
- },
586
- {
587
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
588
- }
589
- ]
590
- },
591
- {
592
- transformFn: import_float2.transformRESTFloatToSDKFloat,
593
- paths: [
594
- {
595
- path: "customization.choicesSettings.choices.image.focalPoint.x"
596
- },
597
- {
598
- path: "customization.choicesSettings.choices.image.focalPoint.y"
599
- }
600
- ]
601
- }
602
- ])
603
- };
604
- return metadata;
605
- }
606
- return __setCustomizationChoices;
607
- }
608
- function removeCustomizationChoices(payload) {
609
- function __removeCustomizationChoices({ host }) {
610
- const metadata = {
611
- entityFqdn: "wix.stores.catalog.v3.customization",
612
- method: "POST",
613
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices",
614
- packageName: PACKAGE_NAME,
615
- migrationOptions: {
616
- optInTransformResponse: true
617
- },
618
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
619
- protoPath: "/v3/customizations/{customizationId}/remove-choices",
620
- data: payload,
621
- host
622
- }),
623
- data: payload,
624
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
625
- {
626
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
627
- paths: [
628
- { path: "customization.createdDate" },
629
- { path: "customization.updatedDate" },
630
- {
631
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
632
- },
633
- {
634
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
635
- }
636
- ]
637
- },
638
- {
639
- transformFn: import_float2.transformRESTFloatToSDKFloat,
640
- paths: [
641
- {
642
- path: "customization.choicesSettings.choices.image.focalPoint.x"
643
- },
644
- {
645
- path: "customization.choicesSettings.choices.image.focalPoint.y"
646
- }
647
- ]
648
- }
649
- ])
650
- };
651
- return metadata;
652
- }
653
- return __removeCustomizationChoices;
654
- }
655
- function updateCustomizationChoices(payload) {
656
- function __updateCustomizationChoices({ host }) {
657
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
658
- {
659
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
660
- paths: [{ path: "choices.fieldMask" }]
661
- },
662
- {
663
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
664
- paths: [
665
- { path: "choices.choice.image.urlExpirationDate" },
666
- { path: "choices.choice.displayImage.urlExpirationDate" }
667
- ]
668
- },
669
- {
670
- transformFn: import_float.transformSDKFloatToRESTFloat,
671
- paths: [
672
- { path: "choices.choice.image.focalPoint.x" },
673
- { path: "choices.choice.image.focalPoint.y" }
674
- ]
675
- }
676
- ]);
677
- const metadata = {
678
- entityFqdn: "wix.stores.catalog.v3.customization",
679
- method: "POST",
680
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomizationChoices",
681
- packageName: PACKAGE_NAME,
682
- migrationOptions: {
683
- optInTransformResponse: true
684
- },
685
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
686
- protoPath: "/v3/customizations/{customizationId}/update-choices",
687
- data: serializedData,
688
- host
689
- }),
690
- data: serializedData,
691
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
692
- {
693
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
694
- paths: [
695
- { path: "customization.createdDate" },
696
- { path: "customization.updatedDate" },
697
- {
698
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
699
- },
700
- {
701
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
702
- }
703
- ]
704
- },
705
- {
706
- transformFn: import_float2.transformRESTFloatToSDKFloat,
707
- paths: [
708
- {
709
- path: "customization.choicesSettings.choices.image.focalPoint.x"
710
- },
711
- {
712
- path: "customization.choicesSettings.choices.image.focalPoint.y"
713
- }
714
- ]
715
- }
716
- ])
717
- };
718
- return metadata;
719
- }
720
- return __updateCustomizationChoices;
721
- }
722
- function reorderCustomizationChoices(payload) {
723
- function __reorderCustomizationChoices({ host }) {
724
- const metadata = {
725
- entityFqdn: "wix.stores.catalog.v3.customization",
726
- method: "POST",
727
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.ReorderCustomizationChoices",
728
- packageName: PACKAGE_NAME,
729
- migrationOptions: {
730
- optInTransformResponse: true
731
- },
732
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
733
- protoPath: "/v3/customizations/{customizationId}/reorder-choices",
734
- data: payload,
735
- host
736
- }),
737
- data: payload,
738
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
739
- {
740
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
741
- paths: [
742
- { path: "customization.createdDate" },
743
- { path: "customization.updatedDate" },
744
- {
745
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
746
- },
747
- {
748
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
749
- }
750
- ]
751
- },
752
- {
753
- transformFn: import_float2.transformRESTFloatToSDKFloat,
754
- paths: [
755
- {
756
- path: "customization.choicesSettings.choices.image.focalPoint.x"
757
- },
758
- {
759
- path: "customization.choicesSettings.choices.image.focalPoint.y"
760
- }
761
- ]
762
- }
763
- ])
764
- };
765
- return metadata;
766
- }
767
- return __reorderCustomizationChoices;
768
- }
769
- function bulkAddCustomizationChoices(payload) {
770
- function __bulkAddCustomizationChoices({ host }) {
771
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
772
- {
773
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
774
- paths: [
775
- { path: "customizationsChoices.choices.image.urlExpirationDate" },
776
- {
777
- path: "customizationsChoices.choices.displayImage.urlExpirationDate"
778
- }
779
- ]
780
- },
781
- {
782
- transformFn: import_float.transformSDKFloatToRESTFloat,
783
- paths: [
784
- { path: "customizationsChoices.choices.image.focalPoint.x" },
785
- { path: "customizationsChoices.choices.image.focalPoint.y" }
786
- ]
787
- }
788
- ]);
789
- const metadata = {
790
- entityFqdn: "wix.stores.catalog.v3.customization",
791
- method: "POST",
792
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices",
793
- packageName: PACKAGE_NAME,
794
- migrationOptions: {
795
- optInTransformResponse: true
796
- },
797
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
798
- protoPath: "/v3/bulk/customizations/add-choices",
799
- data: serializedData,
800
- host
801
- }),
802
- data: serializedData,
803
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
804
- {
805
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
806
- paths: [
807
- { path: "results.customization.createdDate" },
808
- { path: "results.customization.updatedDate" },
809
- {
810
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
811
- },
812
- {
813
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
814
- }
815
- ]
816
- },
817
- {
818
- transformFn: import_float2.transformRESTFloatToSDKFloat,
819
- paths: [
820
- {
821
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
822
- },
823
- {
824
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
825
- }
826
- ]
827
- }
828
- ])
829
- };
830
- return metadata;
831
- }
832
- return __bulkAddCustomizationChoices;
833
- }
834
- function bulkUpdateCustomizations(payload) {
835
- function __bulkUpdateCustomizations({ host }) {
836
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
837
- {
838
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
839
- paths: [{ path: "customizations.fieldMask" }]
840
- },
841
- {
842
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
843
- paths: [
844
- { path: "customizations.customization.createdDate" },
845
- { path: "customizations.customization.updatedDate" },
846
- {
847
- path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
848
- },
849
- {
850
- path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
851
- }
852
- ]
853
- },
854
- {
855
- transformFn: import_float.transformSDKFloatToRESTFloat,
856
- paths: [
857
- {
858
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
859
- },
860
- {
861
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
862
- }
863
- ]
864
- }
865
- ]);
866
- const metadata = {
867
- entityFqdn: "wix.stores.catalog.v3.customization",
868
- method: "POST",
869
- methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations",
870
- packageName: PACKAGE_NAME,
871
- migrationOptions: {
872
- optInTransformResponse: true
873
- },
874
- url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
875
- protoPath: "/v3/bulk/customizations/update",
876
- data: serializedData,
877
- host
878
- }),
879
- data: serializedData,
880
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
881
- {
882
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
883
- paths: [
884
- { path: "results.customization.createdDate" },
885
- { path: "results.customization.updatedDate" },
886
- {
887
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
888
- },
889
- {
890
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
891
- }
892
- ]
893
- },
894
- {
895
- transformFn: import_float2.transformRESTFloatToSDKFloat,
896
- paths: [
897
- {
898
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
899
- },
900
- {
901
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
902
- }
903
- ]
904
- }
905
- ])
906
- };
907
- return metadata;
908
- }
909
- return __bulkUpdateCustomizations;
910
- }
911
-
912
- // src/stores-catalog-v3-customization-customizations-v-3.universal.ts
913
- var import_image = require("@wix/sdk-runtime/transformations/image");
914
- var import_image2 = require("@wix/sdk-runtime/transformations/image");
915
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
916
- var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
917
- var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
918
- CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
919
- CustomizationType2["MODIFIER"] = "MODIFIER";
920
- return CustomizationType2;
921
- })(CustomizationType || {});
922
- var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
923
- CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
924
- CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
925
- CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
926
- return CustomizationRenderType2;
927
- })(CustomizationRenderType || {});
928
- var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
929
- ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
930
- ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
931
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
932
- ChoiceType2["IMAGE"] = "IMAGE";
933
- return ChoiceType2;
934
- })(ChoiceType || {});
935
- var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
936
- ChoiceSortStrategy2["DEFAULT"] = "DEFAULT";
937
- ChoiceSortStrategy2["BY_NAME"] = "BY_NAME";
938
- ChoiceSortStrategy2["BY_PRODUCT_COUNT"] = "BY_PRODUCT_COUNT";
939
- ChoiceSortStrategy2["MANUAL"] = "MANUAL";
940
- return ChoiceSortStrategy2;
941
- })(ChoiceSortStrategy || {});
942
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
943
- RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
944
- RequestedFields2["CHOICE_DISPLAY_IMAGE"] = "CHOICE_DISPLAY_IMAGE";
945
- return RequestedFields2;
946
- })(RequestedFields || {});
947
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
948
- SortOrder2["ASC"] = "ASC";
949
- SortOrder2["DESC"] = "DESC";
950
- return SortOrder2;
951
- })(SortOrder || {});
952
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
953
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
954
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
955
- WebhookIdentityType2["MEMBER"] = "MEMBER";
956
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
957
- WebhookIdentityType2["APP"] = "APP";
958
- return WebhookIdentityType2;
959
- })(WebhookIdentityType || {});
960
- async function createCustomization2(customization) {
961
- const { httpClient, sideEffects } = arguments[1];
962
- const payload = (0, import_transform_paths2.transformPaths)(
963
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ customization }),
964
- [
965
- {
966
- transformFn: import_image.transformSDKImageToRESTImage,
967
- paths: [
968
- { path: "customization.choicesSettings.choices.image" },
969
- { path: "customization.choicesSettings.choices.displayImage" }
970
- ]
971
- }
972
- ]
973
- );
974
- const reqOpts = createCustomization(payload);
975
- sideEffects?.onSiteCall?.();
976
- try {
977
- const result = await httpClient.request(reqOpts);
978
- sideEffects?.onSuccess?.(result);
979
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
980
- (0, import_transform_paths2.transformPaths)(result.data, [
981
- {
982
- transformFn: import_image2.transformRESTImageToSDKImage,
983
- paths: [
984
- { path: "customization.choicesSettings.choices.image" },
985
- { path: "customization.choicesSettings.choices.displayImage" }
986
- ]
987
- }
988
- ])
989
- )?.customization;
990
- } catch (err) {
991
- const transformedError = (0, import_transform_error.transformError)(
992
- err,
993
- {
994
- spreadPathsToArguments: {},
995
- explicitPathsToArguments: { customization: "$[0]" },
996
- singleArgumentUnchanged: false
997
- },
998
- ["customization"]
999
- );
1000
- sideEffects?.onError?.(err);
1001
- throw transformedError;
1002
- }
1003
- }
1004
- async function getCustomization2(customizationId, options) {
1005
- const { httpClient, sideEffects } = arguments[2];
1006
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1007
- customizationId,
1008
- fields: options?.fields
1009
- });
1010
- const reqOpts = getCustomization(payload);
1011
- sideEffects?.onSiteCall?.();
1012
- try {
1013
- const result = await httpClient.request(reqOpts);
1014
- sideEffects?.onSuccess?.(result);
1015
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1016
- (0, import_transform_paths2.transformPaths)(result.data, [
1017
- {
1018
- transformFn: import_image2.transformRESTImageToSDKImage,
1019
- paths: [
1020
- { path: "customization.choicesSettings.choices.image" },
1021
- { path: "customization.choicesSettings.choices.displayImage" }
1022
- ]
1023
- }
1024
- ])
1025
- )?.customization;
1026
- } catch (err) {
1027
- const transformedError = (0, import_transform_error.transformError)(
1028
- err,
1029
- {
1030
- spreadPathsToArguments: {},
1031
- explicitPathsToArguments: {
1032
- customizationId: "$[0]",
1033
- fields: "$[1].fields"
1034
- },
1035
- singleArgumentUnchanged: false
1036
- },
1037
- ["customizationId", "options"]
1038
- );
1039
- sideEffects?.onError?.(err);
1040
- throw transformedError;
1041
- }
1042
- }
1043
- async function updateCustomization2(_id, customization, options) {
1044
- const { httpClient, sideEffects } = arguments[3];
1045
- const payload = (0, import_transform_paths2.transformPaths)(
1046
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1047
- customization: { ...customization, id: _id },
1048
- fields: options?.fields
1049
- }),
1050
- [
1051
- {
1052
- transformFn: import_image.transformSDKImageToRESTImage,
1053
- paths: [
1054
- { path: "customization.choicesSettings.choices.image" },
1055
- { path: "customization.choicesSettings.choices.displayImage" }
1056
- ]
1057
- }
1058
- ]
1059
- );
1060
- const reqOpts = updateCustomization(payload);
1061
- sideEffects?.onSiteCall?.();
1062
- try {
1063
- const result = await httpClient.request(reqOpts);
1064
- sideEffects?.onSuccess?.(result);
1065
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1066
- (0, import_transform_paths2.transformPaths)(result.data, [
1067
- {
1068
- transformFn: import_image2.transformRESTImageToSDKImage,
1069
- paths: [
1070
- { path: "customization.choicesSettings.choices.image" },
1071
- { path: "customization.choicesSettings.choices.displayImage" }
1072
- ]
1073
- }
1074
- ])
1075
- )?.customization;
1076
- } catch (err) {
1077
- const transformedError = (0, import_transform_error.transformError)(
1078
- err,
1079
- {
1080
- spreadPathsToArguments: { customization: "$[1]" },
1081
- explicitPathsToArguments: {
1082
- "customization.id": "$[0]",
1083
- fields: "$[2].fields"
1084
- },
1085
- singleArgumentUnchanged: false
1086
- },
1087
- ["_id", "customization", "options"]
1088
- );
1089
- sideEffects?.onError?.(err);
1090
- throw transformedError;
1091
- }
1092
- }
1093
- async function deleteCustomization2(customizationId) {
1094
- const { httpClient, sideEffects } = arguments[1];
1095
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1096
- customizationId
1097
- });
1098
- const reqOpts = deleteCustomization(payload);
1099
- sideEffects?.onSiteCall?.();
1100
- try {
1101
- const result = await httpClient.request(reqOpts);
1102
- sideEffects?.onSuccess?.(result);
1103
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1104
- } catch (err) {
1105
- const transformedError = (0, import_transform_error.transformError)(
1106
- err,
1107
- {
1108
- spreadPathsToArguments: {},
1109
- explicitPathsToArguments: { customizationId: "$[0]" },
1110
- singleArgumentUnchanged: false
1111
- },
1112
- ["customizationId"]
1113
- );
1114
- sideEffects?.onError?.(err);
1115
- throw transformedError;
1116
- }
1117
- }
1118
- function queryCustomizations2(options) {
1119
- const { httpClient, sideEffects } = arguments[1];
1120
- return (0, import_query_builder.queryBuilder)({
1121
- func: async (payload) => {
1122
- const reqOpts = queryCustomizations({
1123
- ...payload,
1124
- ...options ?? {}
1125
- });
1126
- sideEffects?.onSiteCall?.();
1127
- try {
1128
- const result = await httpClient.request(reqOpts);
1129
- sideEffects?.onSuccess?.(result);
1130
- return result;
1131
- } catch (err) {
1132
- sideEffects?.onError?.(err);
1133
- throw err;
1134
- }
1135
- },
1136
- requestTransformer: (query) => {
1137
- const args = [query, options];
1138
- return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1139
- ...args?.[1],
1140
- query: args?.[0]
1141
- });
1142
- },
1143
- responseTransformer: ({
1144
- data
1145
- }) => {
1146
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1147
- (0, import_transform_paths2.transformPaths)(data, [
1148
- {
1149
- transformFn: import_image2.transformRESTImageToSDKImage,
1150
- paths: [
1151
- { path: "customizations.choicesSettings.choices.image" },
1152
- { path: "customizations.choicesSettings.choices.displayImage" }
1153
- ]
1154
- }
1155
- ])
1156
- );
1157
- return {
1158
- items: transformedData?.customizations,
1159
- pagingMetadata: transformedData?.pagingMetadata
1160
- };
1161
- },
1162
- errorTransformer: (err) => {
1163
- const transformedError = (0, import_transform_error.transformError)(err, {
1164
- spreadPathsToArguments: {},
1165
- explicitPathsToArguments: { query: "$[0]" },
1166
- singleArgumentUnchanged: false
1167
- });
1168
- throw transformedError;
1169
- },
1170
- pagingMethod: "CURSOR",
1171
- transformationPaths: {}
1172
- });
1173
- }
1174
- async function typedQueryCustomizations(query, options) {
1175
- const { httpClient, sideEffects } = arguments[2];
1176
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1177
- query,
1178
- ...options
1179
- });
1180
- const reqOpts = queryCustomizations(payload);
1181
- sideEffects?.onSiteCall?.();
1182
- try {
1183
- const result = await httpClient.request(reqOpts);
1184
- sideEffects?.onSuccess?.(result);
1185
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1186
- (0, import_transform_paths2.transformPaths)(result.data, [
1187
- {
1188
- transformFn: import_image2.transformRESTImageToSDKImage,
1189
- paths: [
1190
- { path: "customizations.choicesSettings.choices.image" },
1191
- { path: "customizations.choicesSettings.choices.displayImage" }
1192
- ]
1193
- }
1194
- ])
1195
- );
1196
- } catch (err) {
1197
- const transformedError = (0, import_transform_error.transformError)(
1198
- err,
1199
- {
1200
- spreadPathsToArguments: {},
1201
- explicitPathsToArguments: { query: "$[0]" },
1202
- singleArgumentUnchanged: false
1203
- },
1204
- ["query", "options"]
1205
- );
1206
- sideEffects?.onError?.(err);
1207
- throw transformedError;
1208
- }
1209
- }
1210
- var utils = {
1211
- query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
1212
- };
1213
- async function countCustomizations2(options) {
1214
- const { httpClient, sideEffects } = arguments[1];
1215
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1216
- filter: options?.filter
1217
- });
1218
- const reqOpts = countCustomizations(payload);
1219
- sideEffects?.onSiteCall?.();
1220
- try {
1221
- const result = await httpClient.request(reqOpts);
1222
- sideEffects?.onSuccess?.(result);
1223
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1224
- } catch (err) {
1225
- const transformedError = (0, import_transform_error.transformError)(
1226
- err,
1227
- {
1228
- spreadPathsToArguments: {},
1229
- explicitPathsToArguments: { filter: "$[0].filter" },
1230
- singleArgumentUnchanged: false
1231
- },
1232
- ["options"]
1233
- );
1234
- sideEffects?.onError?.(err);
1235
- throw transformedError;
1236
- }
1237
- }
1238
- async function bulkCreateCustomizations2(customizations, options) {
1239
- const { httpClient, sideEffects } = arguments[2];
1240
- const payload = (0, import_transform_paths2.transformPaths)(
1241
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1242
- customizations,
1243
- returnEntity: options?.returnEntity
1244
- }),
1245
- [
1246
- {
1247
- transformFn: import_image.transformSDKImageToRESTImage,
1248
- paths: [
1249
- { path: "customizations.choicesSettings.choices.image" },
1250
- { path: "customizations.choicesSettings.choices.displayImage" }
1251
- ]
1252
- }
1253
- ]
1254
- );
1255
- const reqOpts = bulkCreateCustomizations(payload);
1256
- sideEffects?.onSiteCall?.();
1257
- try {
1258
- const result = await httpClient.request(reqOpts);
1259
- sideEffects?.onSuccess?.(result);
1260
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1261
- (0, import_transform_paths2.transformPaths)(result.data, [
1262
- {
1263
- transformFn: import_image2.transformRESTImageToSDKImage,
1264
- paths: [
1265
- { path: "results.customization.choicesSettings.choices.image" },
1266
- {
1267
- path: "results.customization.choicesSettings.choices.displayImage"
1268
- }
1269
- ]
1270
- }
1271
- ])
1272
- );
1273
- } catch (err) {
1274
- const transformedError = (0, import_transform_error.transformError)(
1275
- err,
1276
- {
1277
- spreadPathsToArguments: {},
1278
- explicitPathsToArguments: {
1279
- customizations: "$[0]",
1280
- returnEntity: "$[1].returnEntity"
1281
- },
1282
- singleArgumentUnchanged: false
1283
- },
1284
- ["customizations", "options"]
1285
- );
1286
- sideEffects?.onError?.(err);
1287
- throw transformedError;
1288
- }
1289
- }
1290
- async function addCustomizationChoices2(customizationId, choices, options) {
1291
- const { httpClient, sideEffects } = arguments[3];
1292
- const payload = (0, import_transform_paths2.transformPaths)(
1293
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1294
- customizationId,
1295
- choices,
1296
- fields: options?.fields
1297
- }),
1298
- [
1299
- {
1300
- transformFn: import_image.transformSDKImageToRESTImage,
1301
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1302
- }
1303
- ]
1304
- );
1305
- const reqOpts = addCustomizationChoices(payload);
1306
- sideEffects?.onSiteCall?.();
1307
- try {
1308
- const result = await httpClient.request(reqOpts);
1309
- sideEffects?.onSuccess?.(result);
1310
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1311
- (0, import_transform_paths2.transformPaths)(result.data, [
1312
- {
1313
- transformFn: import_image2.transformRESTImageToSDKImage,
1314
- paths: [
1315
- { path: "customization.choicesSettings.choices.image" },
1316
- { path: "customization.choicesSettings.choices.displayImage" }
1317
- ]
1318
- }
1319
- ])
1320
- );
1321
- } catch (err) {
1322
- const transformedError = (0, import_transform_error.transformError)(
1323
- err,
1324
- {
1325
- spreadPathsToArguments: {},
1326
- explicitPathsToArguments: {
1327
- customizationId: "$[0]",
1328
- choices: "$[1]",
1329
- fields: "$[2].fields"
1330
- },
1331
- singleArgumentUnchanged: false
1332
- },
1333
- ["customizationId", "choices", "options"]
1334
- );
1335
- sideEffects?.onError?.(err);
1336
- throw transformedError;
1337
- }
1338
- }
1339
- async function setCustomizationChoices2(customizationId, choices, options) {
1340
- const { httpClient, sideEffects } = arguments[3];
1341
- const payload = (0, import_transform_paths2.transformPaths)(
1342
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1343
- customizationId,
1344
- choices,
1345
- fields: options?.fields
1346
- }),
1347
- [
1348
- {
1349
- transformFn: import_image.transformSDKImageToRESTImage,
1350
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1351
- }
1352
- ]
1353
- );
1354
- const reqOpts = setCustomizationChoices(payload);
1355
- sideEffects?.onSiteCall?.();
1356
- try {
1357
- const result = await httpClient.request(reqOpts);
1358
- sideEffects?.onSuccess?.(result);
1359
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1360
- (0, import_transform_paths2.transformPaths)(result.data, [
1361
- {
1362
- transformFn: import_image2.transformRESTImageToSDKImage,
1363
- paths: [
1364
- { path: "customization.choicesSettings.choices.image" },
1365
- { path: "customization.choicesSettings.choices.displayImage" }
1366
- ]
1367
- }
1368
- ])
1369
- );
1370
- } catch (err) {
1371
- const transformedError = (0, import_transform_error.transformError)(
1372
- err,
1373
- {
1374
- spreadPathsToArguments: {},
1375
- explicitPathsToArguments: {
1376
- customizationId: "$[0]",
1377
- choices: "$[1]",
1378
- fields: "$[2].fields"
1379
- },
1380
- singleArgumentUnchanged: false
1381
- },
1382
- ["customizationId", "choices", "options"]
1383
- );
1384
- sideEffects?.onError?.(err);
1385
- throw transformedError;
1386
- }
1387
- }
1388
- async function removeCustomizationChoices2(customizationId, choiceIds, options) {
1389
- const { httpClient, sideEffects } = arguments[3];
1390
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1391
- customizationId,
1392
- choiceIds,
1393
- revision: options?.revision,
1394
- fields: options?.fields
1395
- });
1396
- const reqOpts = removeCustomizationChoices(
1397
- payload
1398
- );
1399
- sideEffects?.onSiteCall?.();
1400
- try {
1401
- const result = await httpClient.request(reqOpts);
1402
- sideEffects?.onSuccess?.(result);
1403
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1404
- (0, import_transform_paths2.transformPaths)(result.data, [
1405
- {
1406
- transformFn: import_image2.transformRESTImageToSDKImage,
1407
- paths: [
1408
- { path: "customization.choicesSettings.choices.image" },
1409
- { path: "customization.choicesSettings.choices.displayImage" }
1410
- ]
1411
- }
1412
- ])
1413
- );
1414
- } catch (err) {
1415
- const transformedError = (0, import_transform_error.transformError)(
1416
- err,
1417
- {
1418
- spreadPathsToArguments: {},
1419
- explicitPathsToArguments: {
1420
- customizationId: "$[0]",
1421
- choiceIds: "$[1]",
1422
- revision: "$[2].revision",
1423
- fields: "$[2].fields"
1424
- },
1425
- singleArgumentUnchanged: false
1426
- },
1427
- ["customizationId", "choiceIds", "options"]
1428
- );
1429
- sideEffects?.onError?.(err);
1430
- throw transformedError;
1431
- }
1432
- }
1433
- async function updateCustomizationChoices2(customizationId, revision, options) {
1434
- const { httpClient, sideEffects } = arguments[3];
1435
- const payload = (0, import_transform_paths2.transformPaths)(
1436
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1437
- customizationId,
1438
- revision,
1439
- choices: options?.choices,
1440
- fields: options?.fields
1441
- }),
1442
- [
1443
- {
1444
- transformFn: import_image.transformSDKImageToRESTImage,
1445
- paths: [
1446
- { path: "choices.choice.image" },
1447
- { path: "choices.choice.displayImage" }
1448
- ]
1449
- }
1450
- ]
1451
- );
1452
- const reqOpts = updateCustomizationChoices(
1453
- payload
1454
- );
1455
- sideEffects?.onSiteCall?.();
1456
- try {
1457
- const result = await httpClient.request(reqOpts);
1458
- sideEffects?.onSuccess?.(result);
1459
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1460
- (0, import_transform_paths2.transformPaths)(result.data, [
1461
- {
1462
- transformFn: import_image2.transformRESTImageToSDKImage,
1463
- paths: [
1464
- { path: "customization.choicesSettings.choices.image" },
1465
- { path: "customization.choicesSettings.choices.displayImage" }
1466
- ]
1467
- }
1468
- ])
1469
- );
1470
- } catch (err) {
1471
- const transformedError = (0, import_transform_error.transformError)(
1472
- err,
1473
- {
1474
- spreadPathsToArguments: {},
1475
- explicitPathsToArguments: {
1476
- customizationId: "$[0]",
1477
- revision: "$[1]",
1478
- choices: "$[2].choices",
1479
- fields: "$[2].fields"
1480
- },
1481
- singleArgumentUnchanged: false
1482
- },
1483
- ["customizationId", "revision", "options"]
1484
- );
1485
- sideEffects?.onError?.(err);
1486
- throw transformedError;
1487
- }
1488
- }
1489
- async function reorderCustomizationChoices2(customizationId, revision, options) {
1490
- const { httpClient, sideEffects } = arguments[3];
1491
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1492
- customizationId,
1493
- revision,
1494
- choiceIds: options?.choiceIds,
1495
- fields: options?.fields
1496
- });
1497
- const reqOpts = reorderCustomizationChoices(
1498
- payload
1499
- );
1500
- sideEffects?.onSiteCall?.();
1501
- try {
1502
- const result = await httpClient.request(reqOpts);
1503
- sideEffects?.onSuccess?.(result);
1504
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1505
- (0, import_transform_paths2.transformPaths)(result.data, [
1506
- {
1507
- transformFn: import_image2.transformRESTImageToSDKImage,
1508
- paths: [
1509
- { path: "customization.choicesSettings.choices.image" },
1510
- { path: "customization.choicesSettings.choices.displayImage" }
1511
- ]
1512
- }
1513
- ])
1514
- );
1515
- } catch (err) {
1516
- const transformedError = (0, import_transform_error.transformError)(
1517
- err,
1518
- {
1519
- spreadPathsToArguments: {},
1520
- explicitPathsToArguments: {
1521
- customizationId: "$[0]",
1522
- revision: "$[1]",
1523
- choiceIds: "$[2].choiceIds",
1524
- fields: "$[2].fields"
1525
- },
1526
- singleArgumentUnchanged: false
1527
- },
1528
- ["customizationId", "revision", "options"]
1529
- );
1530
- sideEffects?.onError?.(err);
1531
- throw transformedError;
1532
- }
1533
- }
1534
- async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1535
- const { httpClient, sideEffects } = arguments[2];
1536
- const payload = (0, import_transform_paths2.transformPaths)(
1537
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1538
- customizationsChoices,
1539
- returnEntity: options?.returnEntity,
1540
- fields: options?.fields
1541
- }),
1542
- [
1543
- {
1544
- transformFn: import_image.transformSDKImageToRESTImage,
1545
- paths: [
1546
- { path: "customizationsChoices.choices.image" },
1547
- { path: "customizationsChoices.choices.displayImage" }
1548
- ]
1549
- }
1550
- ]
1551
- );
1552
- const reqOpts = bulkAddCustomizationChoices(
1553
- payload
1554
- );
1555
- sideEffects?.onSiteCall?.();
1556
- try {
1557
- const result = await httpClient.request(reqOpts);
1558
- sideEffects?.onSuccess?.(result);
1559
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1560
- (0, import_transform_paths2.transformPaths)(result.data, [
1561
- {
1562
- transformFn: import_image2.transformRESTImageToSDKImage,
1563
- paths: [
1564
- { path: "results.customization.choicesSettings.choices.image" },
1565
- {
1566
- path: "results.customization.choicesSettings.choices.displayImage"
1567
- }
1568
- ]
1569
- }
1570
- ])
1571
- );
1572
- } catch (err) {
1573
- const transformedError = (0, import_transform_error.transformError)(
1574
- err,
1575
- {
1576
- spreadPathsToArguments: {},
1577
- explicitPathsToArguments: {
1578
- customizationsChoices: "$[0]",
1579
- returnEntity: "$[1].returnEntity",
1580
- fields: "$[1].fields"
1581
- },
1582
- singleArgumentUnchanged: false
1583
- },
1584
- ["customizationsChoices", "options"]
1585
- );
1586
- sideEffects?.onError?.(err);
1587
- throw transformedError;
1588
- }
1589
- }
1590
- async function bulkUpdateCustomizations2(customizations, options) {
1591
- const { httpClient, sideEffects } = arguments[2];
1592
- const payload = (0, import_transform_paths2.transformPaths)(
1593
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1594
- customizations,
1595
- returnEntity: options?.returnEntity,
1596
- fields: options?.fields
1597
- }),
1598
- [
1599
- {
1600
- transformFn: import_image.transformSDKImageToRESTImage,
1601
- paths: [
1602
- {
1603
- path: "customizations.customization.choicesSettings.choices.image"
1604
- },
1605
- {
1606
- path: "customizations.customization.choicesSettings.choices.displayImage"
1607
- }
1608
- ]
1609
- }
1610
- ]
1611
- );
1612
- const reqOpts = bulkUpdateCustomizations(payload);
1613
- sideEffects?.onSiteCall?.();
1614
- try {
1615
- const result = await httpClient.request(reqOpts);
1616
- sideEffects?.onSuccess?.(result);
1617
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1618
- (0, import_transform_paths2.transformPaths)(result.data, [
1619
- {
1620
- transformFn: import_image2.transformRESTImageToSDKImage,
1621
- paths: [
1622
- { path: "results.customization.choicesSettings.choices.image" },
1623
- {
1624
- path: "results.customization.choicesSettings.choices.displayImage"
1625
- }
1626
- ]
1627
- }
1628
- ])
1629
- );
1630
- } catch (err) {
1631
- const transformedError = (0, import_transform_error.transformError)(
1632
- err,
1633
- {
1634
- spreadPathsToArguments: {},
1635
- explicitPathsToArguments: {
1636
- customizations: "$[0]",
1637
- returnEntity: "$[1].returnEntity",
1638
- fields: "$[1].fields"
1639
- },
1640
- singleArgumentUnchanged: false
1641
- },
1642
- ["customizations", "options"]
1643
- );
1644
- sideEffects?.onError?.(err);
1645
- throw transformedError;
1646
- }
1647
- }
1648
-
1649
- // src/stores-catalog-v3-customization-customizations-v-3.public.ts
1650
- function createCustomization3(httpClient) {
1651
- return (customization) => createCustomization2(
1652
- customization,
1653
- // @ts-ignore
1654
- { httpClient }
1655
- );
1656
- }
1657
- function getCustomization3(httpClient) {
1658
- return (customizationId, options) => getCustomization2(
1659
- customizationId,
1660
- options,
1661
- // @ts-ignore
1662
- { httpClient }
1663
- );
1664
- }
1665
- function updateCustomization3(httpClient) {
1666
- return (_id, customization, options) => updateCustomization2(
1667
- _id,
1668
- customization,
1669
- options,
1670
- // @ts-ignore
1671
- { httpClient }
1672
- );
1673
- }
1674
- function deleteCustomization3(httpClient) {
1675
- return (customizationId) => deleteCustomization2(
1676
- customizationId,
1677
- // @ts-ignore
1678
- { httpClient }
1679
- );
1680
- }
1681
- function queryCustomizations3(httpClient) {
1682
- return (options) => queryCustomizations2(
1683
- options,
1684
- // @ts-ignore
1685
- { httpClient }
1686
- );
1687
- }
1688
- function typedQueryCustomizations2(httpClient) {
1689
- return (query, options) => typedQueryCustomizations(
1690
- query,
1691
- options,
1692
- // @ts-ignore
1693
- { httpClient }
1694
- );
1695
- }
1696
- function countCustomizations3(httpClient) {
1697
- return (options) => countCustomizations2(
1698
- options,
1699
- // @ts-ignore
1700
- { httpClient }
1701
- );
1702
- }
1703
- function bulkCreateCustomizations3(httpClient) {
1704
- return (customizations, options) => bulkCreateCustomizations2(
1705
- customizations,
1706
- options,
1707
- // @ts-ignore
1708
- { httpClient }
1709
- );
1710
- }
1711
- function addCustomizationChoices3(httpClient) {
1712
- return (customizationId, choices, options) => addCustomizationChoices2(
1713
- customizationId,
1714
- choices,
1715
- options,
1716
- // @ts-ignore
1717
- { httpClient }
1718
- );
1719
- }
1720
- function setCustomizationChoices3(httpClient) {
1721
- return (customizationId, choices, options) => setCustomizationChoices2(
1722
- customizationId,
1723
- choices,
1724
- options,
1725
- // @ts-ignore
1726
- { httpClient }
1727
- );
1728
- }
1729
- function removeCustomizationChoices3(httpClient) {
1730
- return (customizationId, choiceIds, options) => removeCustomizationChoices2(
1731
- customizationId,
1732
- choiceIds,
1733
- options,
1734
- // @ts-ignore
1735
- { httpClient }
1736
- );
1737
- }
1738
- function updateCustomizationChoices3(httpClient) {
1739
- return (customizationId, revision, options) => updateCustomizationChoices2(
1740
- customizationId,
1741
- revision,
1742
- options,
1743
- // @ts-ignore
1744
- { httpClient }
1745
- );
1746
- }
1747
- function reorderCustomizationChoices3(httpClient) {
1748
- return (customizationId, revision, options) => reorderCustomizationChoices2(
1749
- customizationId,
1750
- revision,
1751
- options,
1752
- // @ts-ignore
1753
- { httpClient }
1754
- );
1755
- }
1756
- function bulkAddCustomizationChoices3(httpClient) {
1757
- return (customizationsChoices, options) => bulkAddCustomizationChoices2(
1758
- customizationsChoices,
1759
- options,
1760
- // @ts-ignore
1761
- { httpClient }
1762
- );
1763
- }
1764
- function bulkUpdateCustomizations3(httpClient) {
1765
- return (customizations, options) => bulkUpdateCustomizations2(
1766
- customizations,
1767
- options,
1768
- // @ts-ignore
1769
- { httpClient }
1770
- );
1771
- }
1772
- var onCustomizationCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1773
- "wix.stores.catalog.v3.customization_created",
1774
- true,
1775
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1776
- (0, import_transform_paths3.transformPaths)(event, [
1777
- {
1778
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1779
- paths: [
1780
- { path: "entity.createdDate" },
1781
- { path: "entity.updatedDate" },
1782
- { path: "metadata.eventTime" }
1783
- ]
1784
- },
1785
- {
1786
- transformFn: import_image3.transformRESTImageToSDKImage,
1787
- paths: [
1788
- { path: "entity.choicesSettings.choices.image" },
1789
- { path: "entity.choicesSettings.choices.displayImage" }
1790
- ]
1791
- }
1792
- ])
1793
- )
1794
- )();
1795
- var onCustomizationDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1796
- "wix.stores.catalog.v3.customization_deleted",
1797
- true,
1798
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1799
- (0, import_transform_paths3.transformPaths)(event, [
1800
- {
1801
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1802
- paths: [
1803
- { path: "entity.createdDate" },
1804
- { path: "entity.updatedDate" },
1805
- { path: "metadata.eventTime" }
1806
- ]
1807
- },
1808
- {
1809
- transformFn: import_image3.transformRESTImageToSDKImage,
1810
- paths: [
1811
- { path: "entity.choicesSettings.choices.image" },
1812
- { path: "entity.choicesSettings.choices.displayImage" }
1813
- ]
1814
- }
1815
- ])
1816
- )
1817
- )();
1818
- var onCustomizationUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1819
- "wix.stores.catalog.v3.customization_updated",
1820
- true,
1821
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1822
- (0, import_transform_paths3.transformPaths)(event, [
1823
- {
1824
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1825
- paths: [
1826
- { path: "entity.createdDate" },
1827
- { path: "entity.updatedDate" },
1828
- { path: "metadata.eventTime" },
1829
- { path: "modifiedFields.createdDate" },
1830
- { path: "modifiedFields.updatedDate" }
1831
- ]
1832
- },
1833
- {
1834
- transformFn: import_image3.transformRESTImageToSDKImage,
1835
- paths: [
1836
- { path: "entity.choicesSettings.choices.image" },
1837
- { path: "entity.choicesSettings.choices.displayImage" },
1838
- { path: "modifiedFields.choicesSettings.choices.image" },
1839
- { path: "modifiedFields.choicesSettings.choices.displayImage" }
1840
- ]
1841
- }
1842
- ])
1843
- )
1844
- )();
1845
-
1846
- // src/stores-catalog-v3-customization-customizations-v-3.context.ts
1847
- var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1848
- var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1849
- var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1850
- function customQueryCustomizations(httpClient) {
1851
- const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
1852
- builderQueryFunction: (options) => queryCustomizations3(httpClient)(options),
1853
- typedQueryFunction: (query, options) => typedQueryCustomizations2(httpClient)(query, options),
1854
- hasOptionsParameter: true
1855
- });
1856
- function overloadedQuery(queryOrOptions, options) {
1857
- return router(...arguments);
1858
- }
1859
- return overloadedQuery;
1860
- }
1861
- var createCustomization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCustomization3);
1862
- var getCustomization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCustomization3);
1863
- var updateCustomization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCustomization3);
1864
- var deleteCustomization4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteCustomization3);
1865
- var countCustomizations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countCustomizations3);
1866
- var bulkCreateCustomizations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateCustomizations3);
1867
- var addCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addCustomizationChoices3);
1868
- var setCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setCustomizationChoices3);
1869
- var removeCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeCustomizationChoices3);
1870
- var updateCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCustomizationChoices3);
1871
- var reorderCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(reorderCustomizationChoices3);
1872
- var bulkAddCustomizationChoices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddCustomizationChoices3);
1873
- var bulkUpdateCustomizations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateCustomizations3);
1874
- var queryCustomizations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryCustomizations);
1875
- var onCustomizationCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
1876
- onCustomizationCreated
1877
- );
1878
- var onCustomizationDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
1879
- onCustomizationDeleted
1880
- );
1881
- var onCustomizationUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
1882
- onCustomizationUpdated
1883
- );
1884
- // Annotate the CommonJS export names for ESM import in node:
1885
- 0 && (module.exports = {
1886
- ChoiceSortStrategy,
1887
- ChoiceType,
1888
- CustomizationRenderType,
1889
- CustomizationType,
1890
- RequestedFields,
1891
- SortOrder,
1892
- WebhookIdentityType,
1893
- addCustomizationChoices,
1894
- bulkAddCustomizationChoices,
1895
- bulkCreateCustomizations,
1896
- bulkUpdateCustomizations,
1897
- countCustomizations,
1898
- createCustomization,
1899
- deleteCustomization,
1900
- getCustomization,
1901
- onCustomizationCreated,
1902
- onCustomizationDeleted,
1903
- onCustomizationUpdated,
1904
- queryCustomizations,
1905
- removeCustomizationChoices,
1906
- reorderCustomizationChoices,
1907
- setCustomizationChoices,
1908
- updateCustomization,
1909
- updateCustomizationChoices,
1910
- utils
1911
- });
1912
- //# sourceMappingURL=index.js.map