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