@wix/auto_sdk_table-reservations_experiences 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +85 -0
  2. package/build/cjs/index.js +1781 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +3183 -0
  5. package/build/cjs/index.typings.js +1442 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2934 -0
  8. package/build/cjs/meta.js +1240 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +85 -0
  11. package/build/es/index.mjs +1699 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +3183 -0
  14. package/build/es/index.typings.mjs +1363 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2934 -0
  17. package/build/es/meta.mjs +1158 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +85 -0
  21. package/build/internal/cjs/index.js +1781 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +3183 -0
  24. package/build/internal/cjs/index.typings.js +1442 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +2934 -0
  27. package/build/internal/cjs/meta.js +1240 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +85 -0
  30. package/build/internal/es/index.mjs +1699 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +3183 -0
  33. package/build/internal/es/index.typings.mjs +1363 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +2934 -0
  36. package/build/internal/es/meta.mjs +1158 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,1442 @@
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.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ Alignment: () => Alignment,
24
+ AppType: () => AppType,
25
+ AspectRatio: () => AspectRatio,
26
+ BackgroundType: () => BackgroundType,
27
+ ButtonDataType: () => ButtonDataType,
28
+ Crop: () => Crop,
29
+ DayOfWeek: () => DayOfWeek,
30
+ DecorationType: () => DecorationType,
31
+ Direction: () => Direction,
32
+ DividerDataAlignment: () => DividerDataAlignment,
33
+ FontType: () => FontType,
34
+ GIFType: () => GIFType,
35
+ InitialExpandedItems: () => InitialExpandedItems,
36
+ Layout: () => Layout,
37
+ LayoutType: () => LayoutType,
38
+ LineStyle: () => LineStyle,
39
+ MapType: () => MapType,
40
+ Mode: () => Mode,
41
+ NodeType: () => NodeType,
42
+ NullValue: () => NullValue,
43
+ Orientation: () => Orientation,
44
+ PaymentPolicyType: () => PaymentPolicyType,
45
+ Placement: () => Placement,
46
+ PlacementType: () => PlacementType,
47
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
48
+ PollLayoutDirection: () => PollLayoutDirection,
49
+ PollLayoutType: () => PollLayoutType,
50
+ Position: () => Position,
51
+ Recurrence: () => Recurrence,
52
+ Resizing: () => Resizing,
53
+ ResolutionMethod: () => ResolutionMethod,
54
+ SortOrder: () => SortOrder,
55
+ Source: () => Source,
56
+ StartDaysAndTimesDayOfWeek: () => StartDaysAndTimesDayOfWeek,
57
+ StylesPosition: () => StylesPosition,
58
+ TableAssignmentType: () => TableAssignmentType,
59
+ TableAvailabilityType: () => TableAvailabilityType,
60
+ TableManagementMode: () => TableManagementMode,
61
+ Target: () => Target,
62
+ TextAlignment: () => TextAlignment,
63
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
64
+ Type: () => Type,
65
+ Unit: () => Unit,
66
+ VerticalAlignment: () => VerticalAlignment,
67
+ ViewMode: () => ViewMode,
68
+ ViewRole: () => ViewRole,
69
+ VoteRole: () => VoteRole,
70
+ WebhookIdentityType: () => WebhookIdentityType,
71
+ Width: () => Width,
72
+ WidthType: () => WidthType,
73
+ bulkUpdateExperienceTags: () => bulkUpdateExperienceTags2,
74
+ bulkUpdateExperienceTagsByFilter: () => bulkUpdateExperienceTagsByFilter2,
75
+ createExperience: () => createExperience2,
76
+ getExperience: () => getExperience2,
77
+ queryExperiences: () => queryExperiences2,
78
+ updateExperience: () => updateExperience2
79
+ });
80
+ module.exports = __toCommonJS(index_typings_exports);
81
+
82
+ // src/table-reservations-v1-experience-experiences.universal.ts
83
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
84
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
85
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
86
+
87
+ // src/table-reservations-v1-experience-experiences.http.ts
88
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
89
+ var import_float = require("@wix/sdk-runtime/transformations/float");
90
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
91
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
92
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
93
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
94
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
95
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
96
+ function resolveWixTableReservationsExperienceV1ExperiencesServiceUrl(opts) {
97
+ const domainToMappings = {
98
+ "manage._base_domain_": [
99
+ {
100
+ srcPath: "/_api/experiences",
101
+ destPath: ""
102
+ },
103
+ {
104
+ srcPath: "/_api/table-reservations/experiences",
105
+ destPath: ""
106
+ }
107
+ ],
108
+ "bo._base_domain_": [
109
+ {
110
+ srcPath: "/_api/table-reservations/experiences",
111
+ destPath: ""
112
+ }
113
+ ],
114
+ "wixbo.ai": [
115
+ {
116
+ srcPath: "/_api/table-reservations/experiences",
117
+ destPath: ""
118
+ }
119
+ ],
120
+ "wix-bo.com": [
121
+ {
122
+ srcPath: "/_api/table-reservations/experiences",
123
+ destPath: ""
124
+ }
125
+ ],
126
+ "editor._base_domain_": [
127
+ {
128
+ srcPath: "/_api/table-reservations/experiences",
129
+ destPath: ""
130
+ }
131
+ ],
132
+ "blocks._base_domain_": [
133
+ {
134
+ srcPath: "/_api/table-reservations/experiences",
135
+ destPath: ""
136
+ }
137
+ ],
138
+ "create.editorx": [
139
+ {
140
+ srcPath: "/_api/table-reservations/experiences",
141
+ destPath: ""
142
+ }
143
+ ],
144
+ "dev._base_domain_": [
145
+ {
146
+ srcPath: "/_api/table-reservations/experiences",
147
+ destPath: ""
148
+ }
149
+ ],
150
+ "apps._base_domain_": [
151
+ {
152
+ srcPath: "/_api/table-reservations/experiences",
153
+ destPath: ""
154
+ }
155
+ ],
156
+ "www.wixapis.com": [
157
+ {
158
+ srcPath: "/table-reservations/experiences",
159
+ destPath: ""
160
+ }
161
+ ],
162
+ "*.dev.wix-code.com": [
163
+ {
164
+ srcPath: "/_api/table-reservations/experiences",
165
+ destPath: ""
166
+ }
167
+ ],
168
+ "www._base_domain_": [
169
+ {
170
+ srcPath: "/_api/table-reservations/experiences",
171
+ destPath: ""
172
+ }
173
+ ],
174
+ "editor.wixapps.net": [
175
+ {
176
+ srcPath: "/_api/table-reservations/experiences",
177
+ destPath: ""
178
+ }
179
+ ],
180
+ _: [
181
+ {
182
+ srcPath: "/_api/table-reservations/experiences",
183
+ destPath: ""
184
+ }
185
+ ]
186
+ };
187
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
188
+ }
189
+ var PACKAGE_NAME = "@wix/auto_sdk_table-reservations_experiences";
190
+ function createExperience(payload) {
191
+ function __createExperience({ host }) {
192
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
193
+ {
194
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
195
+ paths: [
196
+ { path: "experience.createdDate" },
197
+ { path: "experience.updatedDate" },
198
+ {
199
+ path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
200
+ },
201
+ {
202
+ path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ transformFn: import_float.transformSDKFloatToRESTFloat,
208
+ paths: [
209
+ {
210
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
211
+ },
212
+ {
213
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
214
+ },
215
+ {
216
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
217
+ },
218
+ {
219
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
220
+ },
221
+ {
222
+ path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
223
+ },
224
+ {
225
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
226
+ },
227
+ {
228
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
229
+ },
230
+ {
231
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
232
+ },
233
+ {
234
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
235
+ },
236
+ {
237
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
238
+ },
239
+ {
240
+ path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
241
+ },
242
+ {
243
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
244
+ },
245
+ {
246
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
247
+ },
248
+ {
249
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
250
+ },
251
+ {
252
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
253
+ }
254
+ ]
255
+ }
256
+ ]);
257
+ const metadata = {
258
+ entityFqdn: "wix.table_reservations.v1.experience",
259
+ method: "POST",
260
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.CreateExperience",
261
+ packageName: PACKAGE_NAME,
262
+ migrationOptions: {
263
+ optInTransformResponse: true
264
+ },
265
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
266
+ protoPath: "/v1/experiences",
267
+ data: serializedData,
268
+ host
269
+ }),
270
+ data: serializedData,
271
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
272
+ {
273
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
274
+ paths: [
275
+ { path: "experience.createdDate" },
276
+ { path: "experience.updatedDate" },
277
+ {
278
+ path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
279
+ },
280
+ {
281
+ path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
287
+ paths: [
288
+ {
289
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
290
+ },
291
+ {
292
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
293
+ },
294
+ {
295
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
296
+ },
297
+ {
298
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
299
+ },
300
+ {
301
+ path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
302
+ },
303
+ {
304
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
305
+ },
306
+ {
307
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
308
+ },
309
+ {
310
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
311
+ },
312
+ {
313
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
314
+ },
315
+ {
316
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
317
+ },
318
+ {
319
+ path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
320
+ },
321
+ {
322
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
323
+ },
324
+ {
325
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
326
+ },
327
+ {
328
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
329
+ },
330
+ {
331
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
332
+ }
333
+ ]
334
+ }
335
+ ])
336
+ };
337
+ return metadata;
338
+ }
339
+ return __createExperience;
340
+ }
341
+ function getExperience(payload) {
342
+ function __getExperience({ host }) {
343
+ const metadata = {
344
+ entityFqdn: "wix.table_reservations.v1.experience",
345
+ method: "GET",
346
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperience",
347
+ packageName: PACKAGE_NAME,
348
+ migrationOptions: {
349
+ optInTransformResponse: true
350
+ },
351
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
352
+ protoPath: "/v1/experiences/{experienceId}",
353
+ data: payload,
354
+ host
355
+ }),
356
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
357
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
358
+ {
359
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
360
+ paths: [
361
+ { path: "experience.createdDate" },
362
+ { path: "experience.updatedDate" },
363
+ {
364
+ path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
365
+ },
366
+ {
367
+ path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
373
+ paths: [
374
+ {
375
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
376
+ },
377
+ {
378
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
379
+ },
380
+ {
381
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
382
+ },
383
+ {
384
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
385
+ },
386
+ {
387
+ path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
388
+ },
389
+ {
390
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
391
+ },
392
+ {
393
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
394
+ },
395
+ {
396
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
397
+ },
398
+ {
399
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
400
+ },
401
+ {
402
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
403
+ },
404
+ {
405
+ path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
406
+ },
407
+ {
408
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
409
+ },
410
+ {
411
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
412
+ },
413
+ {
414
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
415
+ },
416
+ {
417
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
418
+ }
419
+ ]
420
+ }
421
+ ])
422
+ };
423
+ return metadata;
424
+ }
425
+ return __getExperience;
426
+ }
427
+ function updateExperience(payload) {
428
+ function __updateExperience({ host }) {
429
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
430
+ {
431
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
432
+ paths: [{ path: "fieldMask" }]
433
+ },
434
+ {
435
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
436
+ paths: [
437
+ { path: "experience.createdDate" },
438
+ { path: "experience.updatedDate" },
439
+ {
440
+ path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
441
+ },
442
+ {
443
+ path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ transformFn: import_float.transformSDKFloatToRESTFloat,
449
+ paths: [
450
+ {
451
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
452
+ },
453
+ {
454
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
455
+ },
456
+ {
457
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
458
+ },
459
+ {
460
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
461
+ },
462
+ {
463
+ path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
464
+ },
465
+ {
466
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
467
+ },
468
+ {
469
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
470
+ },
471
+ {
472
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
473
+ },
474
+ {
475
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
476
+ },
477
+ {
478
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
479
+ },
480
+ {
481
+ path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
482
+ },
483
+ {
484
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
485
+ },
486
+ {
487
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
488
+ },
489
+ {
490
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
491
+ },
492
+ {
493
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
494
+ }
495
+ ]
496
+ }
497
+ ]);
498
+ const metadata = {
499
+ entityFqdn: "wix.table_reservations.v1.experience",
500
+ method: "PATCH",
501
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.UpdateExperience",
502
+ packageName: PACKAGE_NAME,
503
+ migrationOptions: {
504
+ optInTransformResponse: true
505
+ },
506
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
507
+ protoPath: "/v1/experiences/{experience.id}",
508
+ data: serializedData,
509
+ host
510
+ }),
511
+ data: serializedData,
512
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
513
+ {
514
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
515
+ paths: [
516
+ { path: "experience.createdDate" },
517
+ { path: "experience.updatedDate" },
518
+ {
519
+ path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
520
+ },
521
+ {
522
+ path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
528
+ paths: [
529
+ {
530
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
531
+ },
532
+ {
533
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
534
+ },
535
+ {
536
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
537
+ },
538
+ {
539
+ path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
540
+ },
541
+ {
542
+ path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
543
+ },
544
+ {
545
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
546
+ },
547
+ {
548
+ path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
549
+ },
550
+ {
551
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
552
+ },
553
+ {
554
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
555
+ },
556
+ {
557
+ path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
558
+ },
559
+ {
560
+ path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
561
+ },
562
+ {
563
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
564
+ },
565
+ {
566
+ path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
567
+ },
568
+ {
569
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
570
+ },
571
+ {
572
+ path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
573
+ }
574
+ ]
575
+ }
576
+ ])
577
+ };
578
+ return metadata;
579
+ }
580
+ return __updateExperience;
581
+ }
582
+ function queryExperiences(payload) {
583
+ function __queryExperiences({ host }) {
584
+ const metadata = {
585
+ entityFqdn: "wix.table_reservations.v1.experience",
586
+ method: "GET",
587
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.QueryExperiences",
588
+ packageName: PACKAGE_NAME,
589
+ migrationOptions: {
590
+ optInTransformResponse: true
591
+ },
592
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
593
+ protoPath: "/v1/experiences/query",
594
+ data: payload,
595
+ host
596
+ }),
597
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
598
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
599
+ {
600
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
601
+ paths: [
602
+ { path: "experiences.createdDate" },
603
+ { path: "experiences.updatedDate" },
604
+ {
605
+ path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
606
+ },
607
+ {
608
+ path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
614
+ paths: [
615
+ {
616
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
617
+ },
618
+ {
619
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
620
+ },
621
+ {
622
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
623
+ },
624
+ {
625
+ path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
626
+ },
627
+ {
628
+ path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
629
+ },
630
+ {
631
+ path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
632
+ },
633
+ {
634
+ path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
635
+ },
636
+ {
637
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
638
+ },
639
+ {
640
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
641
+ },
642
+ {
643
+ path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
644
+ },
645
+ {
646
+ path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
647
+ },
648
+ {
649
+ path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
650
+ },
651
+ {
652
+ path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
653
+ },
654
+ {
655
+ path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
656
+ },
657
+ {
658
+ path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
659
+ }
660
+ ]
661
+ }
662
+ ]),
663
+ fallback: [
664
+ {
665
+ method: "POST",
666
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
667
+ protoPath: "/v1/experiences/query",
668
+ data: payload,
669
+ host
670
+ }),
671
+ data: payload
672
+ }
673
+ ]
674
+ };
675
+ return metadata;
676
+ }
677
+ return __queryExperiences;
678
+ }
679
+ function bulkUpdateExperienceTags(payload) {
680
+ function __bulkUpdateExperienceTags({ host }) {
681
+ const metadata = {
682
+ entityFqdn: "wix.table_reservations.v1.experience",
683
+ method: "POST",
684
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTags",
685
+ packageName: PACKAGE_NAME,
686
+ migrationOptions: {
687
+ optInTransformResponse: true
688
+ },
689
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
690
+ protoPath: "/v1/bulk/experiences/update-tags",
691
+ data: payload,
692
+ host
693
+ }),
694
+ data: payload
695
+ };
696
+ return metadata;
697
+ }
698
+ return __bulkUpdateExperienceTags;
699
+ }
700
+ function bulkUpdateExperienceTagsByFilter(payload) {
701
+ function __bulkUpdateExperienceTagsByFilter({ host }) {
702
+ const metadata = {
703
+ entityFqdn: "wix.table_reservations.v1.experience",
704
+ method: "POST",
705
+ methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTagsByFilter",
706
+ packageName: PACKAGE_NAME,
707
+ migrationOptions: {
708
+ optInTransformResponse: true
709
+ },
710
+ url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
711
+ protoPath: "/v1/bulk/experiences/update-tags-by-filter",
712
+ data: payload,
713
+ host
714
+ }),
715
+ data: payload
716
+ };
717
+ return metadata;
718
+ }
719
+ return __bulkUpdateExperienceTagsByFilter;
720
+ }
721
+
722
+ // src/table-reservations-v1-experience-experiences.universal.ts
723
+ var import_image = require("@wix/sdk-runtime/transformations/image");
724
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
725
+ var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
726
+ var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
727
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
728
+ var TableAvailabilityType = /* @__PURE__ */ ((TableAvailabilityType2) => {
729
+ TableAvailabilityType2["UNKNOWN_TABLE_AVAILABILITY_TYPE"] = "UNKNOWN_TABLE_AVAILABILITY_TYPE";
730
+ TableAvailabilityType2["ANY_ONLINE_TABLE"] = "ANY_ONLINE_TABLE";
731
+ TableAvailabilityType2["SPECIFIC_TABLES"] = "SPECIFIC_TABLES";
732
+ return TableAvailabilityType2;
733
+ })(TableAvailabilityType || {});
734
+ var TableAssignmentType = /* @__PURE__ */ ((TableAssignmentType2) => {
735
+ TableAssignmentType2["UNKNOWN_ASSIGMENT_TYPE"] = "UNKNOWN_ASSIGMENT_TYPE";
736
+ TableAssignmentType2["AUTOMATIC"] = "AUTOMATIC";
737
+ TableAssignmentType2["MANUAL"] = "MANUAL";
738
+ return TableAssignmentType2;
739
+ })(TableAssignmentType || {});
740
+ var TableManagementMode = /* @__PURE__ */ ((TableManagementMode2) => {
741
+ TableManagementMode2["UNKNOWN_MODE"] = "UNKNOWN_MODE";
742
+ TableManagementMode2["ON"] = "ON";
743
+ TableManagementMode2["OFF"] = "OFF";
744
+ return TableManagementMode2;
745
+ })(TableManagementMode || {});
746
+ var Unit = /* @__PURE__ */ ((Unit2) => {
747
+ Unit2["UNKNOWN_UNIT"] = "UNKNOWN_UNIT";
748
+ Unit2["MINUTES"] = "MINUTES";
749
+ Unit2["HOURS"] = "HOURS";
750
+ Unit2["DAYS"] = "DAYS";
751
+ return Unit2;
752
+ })(Unit || {});
753
+ var Mode = /* @__PURE__ */ ((Mode2) => {
754
+ Mode2["UNKNOWN_MODE"] = "UNKNOWN_MODE";
755
+ Mode2["AUTOMATIC"] = "AUTOMATIC";
756
+ Mode2["MANUAL"] = "MANUAL";
757
+ return Mode2;
758
+ })(Mode || {});
759
+ var StartDaysAndTimesDayOfWeek = /* @__PURE__ */ ((StartDaysAndTimesDayOfWeek2) => {
760
+ StartDaysAndTimesDayOfWeek2["MONDAY"] = "MONDAY";
761
+ StartDaysAndTimesDayOfWeek2["TUESDAY"] = "TUESDAY";
762
+ StartDaysAndTimesDayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
763
+ StartDaysAndTimesDayOfWeek2["THURSDAY"] = "THURSDAY";
764
+ StartDaysAndTimesDayOfWeek2["FRIDAY"] = "FRIDAY";
765
+ StartDaysAndTimesDayOfWeek2["SATURDAY"] = "SATURDAY";
766
+ StartDaysAndTimesDayOfWeek2["SUNDAY"] = "SUNDAY";
767
+ return StartDaysAndTimesDayOfWeek2;
768
+ })(StartDaysAndTimesDayOfWeek || {});
769
+ var Recurrence = /* @__PURE__ */ ((Recurrence2) => {
770
+ Recurrence2["UNKNOWN_RECURRENCE"] = "UNKNOWN_RECURRENCE";
771
+ Recurrence2["WEEKLY"] = "WEEKLY";
772
+ Recurrence2["ONE_TIME"] = "ONE_TIME";
773
+ return Recurrence2;
774
+ })(Recurrence || {});
775
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
776
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
777
+ NodeType2["TEXT"] = "TEXT";
778
+ NodeType2["HEADING"] = "HEADING";
779
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
780
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
781
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
782
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
783
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
784
+ NodeType2["VIDEO"] = "VIDEO";
785
+ NodeType2["DIVIDER"] = "DIVIDER";
786
+ NodeType2["FILE"] = "FILE";
787
+ NodeType2["GALLERY"] = "GALLERY";
788
+ NodeType2["GIF"] = "GIF";
789
+ NodeType2["HTML"] = "HTML";
790
+ NodeType2["IMAGE"] = "IMAGE";
791
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
792
+ NodeType2["MAP"] = "MAP";
793
+ NodeType2["POLL"] = "POLL";
794
+ NodeType2["APP_EMBED"] = "APP_EMBED";
795
+ NodeType2["BUTTON"] = "BUTTON";
796
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
797
+ NodeType2["TABLE"] = "TABLE";
798
+ NodeType2["EMBED"] = "EMBED";
799
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
800
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
801
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
802
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
803
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
804
+ NodeType2["EXTERNAL"] = "EXTERNAL";
805
+ NodeType2["AUDIO"] = "AUDIO";
806
+ NodeType2["CAPTION"] = "CAPTION";
807
+ NodeType2["LAYOUT"] = "LAYOUT";
808
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
809
+ return NodeType2;
810
+ })(NodeType || {});
811
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
812
+ WidthType2["CONTENT"] = "CONTENT";
813
+ WidthType2["SMALL"] = "SMALL";
814
+ WidthType2["ORIGINAL"] = "ORIGINAL";
815
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
816
+ return WidthType2;
817
+ })(WidthType || {});
818
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
819
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
820
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
821
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
822
+ return PluginContainerDataAlignment2;
823
+ })(PluginContainerDataAlignment || {});
824
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
825
+ ButtonDataType2["LINK"] = "LINK";
826
+ ButtonDataType2["ACTION"] = "ACTION";
827
+ return ButtonDataType2;
828
+ })(ButtonDataType || {});
829
+ var Target = /* @__PURE__ */ ((Target2) => {
830
+ Target2["SELF"] = "SELF";
831
+ Target2["BLANK"] = "BLANK";
832
+ Target2["PARENT"] = "PARENT";
833
+ Target2["TOP"] = "TOP";
834
+ return Target2;
835
+ })(Target || {});
836
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
837
+ TextAlignment2["AUTO"] = "AUTO";
838
+ TextAlignment2["LEFT"] = "LEFT";
839
+ TextAlignment2["RIGHT"] = "RIGHT";
840
+ TextAlignment2["CENTER"] = "CENTER";
841
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
842
+ return TextAlignment2;
843
+ })(TextAlignment || {});
844
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
845
+ LineStyle2["SINGLE"] = "SINGLE";
846
+ LineStyle2["DOUBLE"] = "DOUBLE";
847
+ LineStyle2["DASHED"] = "DASHED";
848
+ LineStyle2["DOTTED"] = "DOTTED";
849
+ return LineStyle2;
850
+ })(LineStyle || {});
851
+ var Width = /* @__PURE__ */ ((Width2) => {
852
+ Width2["LARGE"] = "LARGE";
853
+ Width2["MEDIUM"] = "MEDIUM";
854
+ Width2["SMALL"] = "SMALL";
855
+ return Width2;
856
+ })(Width || {});
857
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
858
+ DividerDataAlignment2["CENTER"] = "CENTER";
859
+ DividerDataAlignment2["LEFT"] = "LEFT";
860
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
861
+ return DividerDataAlignment2;
862
+ })(DividerDataAlignment || {});
863
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
864
+ ViewMode2["NONE"] = "NONE";
865
+ ViewMode2["FULL"] = "FULL";
866
+ ViewMode2["MINI"] = "MINI";
867
+ return ViewMode2;
868
+ })(ViewMode || {});
869
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
870
+ LayoutType2["COLLAGE"] = "COLLAGE";
871
+ LayoutType2["MASONRY"] = "MASONRY";
872
+ LayoutType2["GRID"] = "GRID";
873
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
874
+ LayoutType2["SLIDER"] = "SLIDER";
875
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
876
+ LayoutType2["PANORAMA"] = "PANORAMA";
877
+ LayoutType2["COLUMN"] = "COLUMN";
878
+ LayoutType2["MAGIC"] = "MAGIC";
879
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
880
+ return LayoutType2;
881
+ })(LayoutType || {});
882
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
883
+ Orientation2["ROWS"] = "ROWS";
884
+ Orientation2["COLUMNS"] = "COLUMNS";
885
+ return Orientation2;
886
+ })(Orientation || {});
887
+ var Crop = /* @__PURE__ */ ((Crop2) => {
888
+ Crop2["FILL"] = "FILL";
889
+ Crop2["FIT"] = "FIT";
890
+ return Crop2;
891
+ })(Crop || {});
892
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
893
+ ThumbnailsAlignment2["TOP"] = "TOP";
894
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
895
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
896
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
897
+ ThumbnailsAlignment2["NONE"] = "NONE";
898
+ return ThumbnailsAlignment2;
899
+ })(ThumbnailsAlignment || {});
900
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
901
+ GIFType2["NORMAL"] = "NORMAL";
902
+ GIFType2["STICKER"] = "STICKER";
903
+ return GIFType2;
904
+ })(GIFType || {});
905
+ var Source = /* @__PURE__ */ ((Source2) => {
906
+ Source2["HTML"] = "HTML";
907
+ Source2["ADSENSE"] = "ADSENSE";
908
+ return Source2;
909
+ })(Source || {});
910
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
911
+ StylesPosition2["START"] = "START";
912
+ StylesPosition2["END"] = "END";
913
+ StylesPosition2["TOP"] = "TOP";
914
+ StylesPosition2["HIDDEN"] = "HIDDEN";
915
+ return StylesPosition2;
916
+ })(StylesPosition || {});
917
+ var MapType = /* @__PURE__ */ ((MapType2) => {
918
+ MapType2["ROADMAP"] = "ROADMAP";
919
+ MapType2["SATELITE"] = "SATELITE";
920
+ MapType2["HYBRID"] = "HYBRID";
921
+ MapType2["TERRAIN"] = "TERRAIN";
922
+ return MapType2;
923
+ })(MapType || {});
924
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
925
+ ViewRole2["CREATOR"] = "CREATOR";
926
+ ViewRole2["VOTERS"] = "VOTERS";
927
+ ViewRole2["EVERYONE"] = "EVERYONE";
928
+ return ViewRole2;
929
+ })(ViewRole || {});
930
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
931
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
932
+ VoteRole2["ALL"] = "ALL";
933
+ return VoteRole2;
934
+ })(VoteRole || {});
935
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
936
+ PollLayoutType2["LIST"] = "LIST";
937
+ PollLayoutType2["GRID"] = "GRID";
938
+ return PollLayoutType2;
939
+ })(PollLayoutType || {});
940
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
941
+ PollLayoutDirection2["LTR"] = "LTR";
942
+ PollLayoutDirection2["RTL"] = "RTL";
943
+ return PollLayoutDirection2;
944
+ })(PollLayoutDirection || {});
945
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
946
+ BackgroundType2["COLOR"] = "COLOR";
947
+ BackgroundType2["IMAGE"] = "IMAGE";
948
+ BackgroundType2["GRADIENT"] = "GRADIENT";
949
+ return BackgroundType2;
950
+ })(BackgroundType || {});
951
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
952
+ DecorationType2["BOLD"] = "BOLD";
953
+ DecorationType2["ITALIC"] = "ITALIC";
954
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
955
+ DecorationType2["SPOILER"] = "SPOILER";
956
+ DecorationType2["ANCHOR"] = "ANCHOR";
957
+ DecorationType2["MENTION"] = "MENTION";
958
+ DecorationType2["LINK"] = "LINK";
959
+ DecorationType2["COLOR"] = "COLOR";
960
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
961
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
962
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
963
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
964
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
965
+ return DecorationType2;
966
+ })(DecorationType || {});
967
+ var FontType = /* @__PURE__ */ ((FontType2) => {
968
+ FontType2["PX"] = "PX";
969
+ FontType2["EM"] = "EM";
970
+ return FontType2;
971
+ })(FontType || {});
972
+ var Position = /* @__PURE__ */ ((Position2) => {
973
+ Position2["START"] = "START";
974
+ Position2["END"] = "END";
975
+ Position2["TOP"] = "TOP";
976
+ return Position2;
977
+ })(Position || {});
978
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
979
+ AspectRatio2["SQUARE"] = "SQUARE";
980
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
981
+ return AspectRatio2;
982
+ })(AspectRatio || {});
983
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
984
+ Resizing2["FILL"] = "FILL";
985
+ Resizing2["FIT"] = "FIT";
986
+ return Resizing2;
987
+ })(Resizing || {});
988
+ var Placement = /* @__PURE__ */ ((Placement2) => {
989
+ Placement2["IMAGE"] = "IMAGE";
990
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
991
+ return Placement2;
992
+ })(Placement || {});
993
+ var Type = /* @__PURE__ */ ((Type2) => {
994
+ Type2["CONTAINED"] = "CONTAINED";
995
+ Type2["FRAMELESS"] = "FRAMELESS";
996
+ return Type2;
997
+ })(Type || {});
998
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
999
+ Alignment2["START"] = "START";
1000
+ Alignment2["CENTER"] = "CENTER";
1001
+ Alignment2["END"] = "END";
1002
+ return Alignment2;
1003
+ })(Alignment || {});
1004
+ var Layout = /* @__PURE__ */ ((Layout2) => {
1005
+ Layout2["STACKED"] = "STACKED";
1006
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1007
+ return Layout2;
1008
+ })(Layout || {});
1009
+ var AppType = /* @__PURE__ */ ((AppType2) => {
1010
+ AppType2["PRODUCT"] = "PRODUCT";
1011
+ AppType2["EVENT"] = "EVENT";
1012
+ AppType2["BOOKING"] = "BOOKING";
1013
+ return AppType2;
1014
+ })(AppType || {});
1015
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1016
+ InitialExpandedItems2["FIRST"] = "FIRST";
1017
+ InitialExpandedItems2["ALL"] = "ALL";
1018
+ InitialExpandedItems2["NONE"] = "NONE";
1019
+ return InitialExpandedItems2;
1020
+ })(InitialExpandedItems || {});
1021
+ var Direction = /* @__PURE__ */ ((Direction2) => {
1022
+ Direction2["LTR"] = "LTR";
1023
+ Direction2["RTL"] = "RTL";
1024
+ return Direction2;
1025
+ })(Direction || {});
1026
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1027
+ VerticalAlignment2["TOP"] = "TOP";
1028
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
1029
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
1030
+ return VerticalAlignment2;
1031
+ })(VerticalAlignment || {});
1032
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1033
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
1034
+ return NullValue2;
1035
+ })(NullValue || {});
1036
+ var PaymentPolicyType = /* @__PURE__ */ ((PaymentPolicyType2) => {
1037
+ PaymentPolicyType2["UNKNOWN_PAYMENT_POLICY_TYPE"] = "UNKNOWN_PAYMENT_POLICY_TYPE";
1038
+ PaymentPolicyType2["PER_GUEST"] = "PER_GUEST";
1039
+ PaymentPolicyType2["FREE"] = "FREE";
1040
+ return PaymentPolicyType2;
1041
+ })(PaymentPolicyType || {});
1042
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1043
+ SortOrder2["ASC"] = "ASC";
1044
+ SortOrder2["DESC"] = "DESC";
1045
+ return SortOrder2;
1046
+ })(SortOrder || {});
1047
+ var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
1048
+ PlacementType2["BEFORE"] = "BEFORE";
1049
+ PlacementType2["AFTER"] = "AFTER";
1050
+ PlacementType2["REPLACE"] = "REPLACE";
1051
+ return PlacementType2;
1052
+ })(PlacementType || {});
1053
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
1054
+ DayOfWeek2["MONDAY"] = "MONDAY";
1055
+ DayOfWeek2["TUESDAY"] = "TUESDAY";
1056
+ DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
1057
+ DayOfWeek2["THURSDAY"] = "THURSDAY";
1058
+ DayOfWeek2["FRIDAY"] = "FRIDAY";
1059
+ DayOfWeek2["SATURDAY"] = "SATURDAY";
1060
+ DayOfWeek2["SUNDAY"] = "SUNDAY";
1061
+ return DayOfWeek2;
1062
+ })(DayOfWeek || {});
1063
+ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
1064
+ ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
1065
+ ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
1066
+ ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
1067
+ return ResolutionMethod2;
1068
+ })(ResolutionMethod || {});
1069
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1070
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1071
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1072
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1073
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1074
+ WebhookIdentityType2["APP"] = "APP";
1075
+ return WebhookIdentityType2;
1076
+ })(WebhookIdentityType || {});
1077
+ async function createExperience2(experience) {
1078
+ const { httpClient, sideEffects } = arguments[1];
1079
+ const payload = (0, import_transform_paths2.transformPaths)(
1080
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ experience }, [
1081
+ "experience.configuration.displayInfo.richContent"
1082
+ ]),
1083
+ [
1084
+ {
1085
+ transformFn: import_image.transformSDKImageToRESTImage,
1086
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1087
+ },
1088
+ {
1089
+ transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
1090
+ paths: [
1091
+ {
1092
+ path: "experience.configuration.reservationForm.privacyPolicy.url"
1093
+ },
1094
+ {
1095
+ path: "experience.configuration.reservationForm.termsAndConditions.url"
1096
+ }
1097
+ ]
1098
+ }
1099
+ ]
1100
+ );
1101
+ const reqOpts = createExperience(payload);
1102
+ sideEffects?.onSiteCall?.();
1103
+ try {
1104
+ const result = await httpClient.request(reqOpts);
1105
+ sideEffects?.onSuccess?.(result);
1106
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1107
+ (0, import_transform_paths2.transformPaths)(result.data, [
1108
+ {
1109
+ transformFn: import_image2.transformRESTImageToSDKImage,
1110
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1111
+ },
1112
+ {
1113
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1114
+ paths: [
1115
+ {
1116
+ path: "experience.configuration.reservationForm.privacyPolicy.url"
1117
+ },
1118
+ {
1119
+ path: "experience.configuration.reservationForm.termsAndConditions.url"
1120
+ }
1121
+ ]
1122
+ }
1123
+ ]),
1124
+ ["experience.configuration.displayInfo.richContent"]
1125
+ )?.experience;
1126
+ } catch (err) {
1127
+ const transformedError = (0, import_transform_error.transformError)(
1128
+ err,
1129
+ {
1130
+ spreadPathsToArguments: {},
1131
+ explicitPathsToArguments: { experience: "$[0]" },
1132
+ singleArgumentUnchanged: false
1133
+ },
1134
+ ["experience"]
1135
+ );
1136
+ sideEffects?.onError?.(err);
1137
+ throw transformedError;
1138
+ }
1139
+ }
1140
+ async function getExperience2(experienceId) {
1141
+ const { httpClient, sideEffects } = arguments[1];
1142
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1143
+ { experienceId },
1144
+ []
1145
+ );
1146
+ const reqOpts = getExperience(payload);
1147
+ sideEffects?.onSiteCall?.();
1148
+ try {
1149
+ const result = await httpClient.request(reqOpts);
1150
+ sideEffects?.onSuccess?.(result);
1151
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1152
+ (0, import_transform_paths2.transformPaths)(result.data, [
1153
+ {
1154
+ transformFn: import_image2.transformRESTImageToSDKImage,
1155
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1156
+ },
1157
+ {
1158
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1159
+ paths: [
1160
+ {
1161
+ path: "experience.configuration.reservationForm.privacyPolicy.url"
1162
+ },
1163
+ {
1164
+ path: "experience.configuration.reservationForm.termsAndConditions.url"
1165
+ }
1166
+ ]
1167
+ }
1168
+ ]),
1169
+ ["experience.configuration.displayInfo.richContent"]
1170
+ )?.experience;
1171
+ } catch (err) {
1172
+ const transformedError = (0, import_transform_error.transformError)(
1173
+ err,
1174
+ {
1175
+ spreadPathsToArguments: {},
1176
+ explicitPathsToArguments: { experienceId: "$[0]" },
1177
+ singleArgumentUnchanged: false
1178
+ },
1179
+ ["experienceId"]
1180
+ );
1181
+ sideEffects?.onError?.(err);
1182
+ throw transformedError;
1183
+ }
1184
+ }
1185
+ async function updateExperience2(_id, experience) {
1186
+ const { httpClient, sideEffects } = arguments[2];
1187
+ const payload = (0, import_transform_paths2.transformPaths)(
1188
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1189
+ { experience: { ...experience, id: _id } },
1190
+ ["experience.configuration.displayInfo.richContent"]
1191
+ ),
1192
+ [
1193
+ {
1194
+ transformFn: import_image.transformSDKImageToRESTImage,
1195
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1196
+ },
1197
+ {
1198
+ transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
1199
+ paths: [
1200
+ {
1201
+ path: "experience.configuration.reservationForm.privacyPolicy.url"
1202
+ },
1203
+ {
1204
+ path: "experience.configuration.reservationForm.termsAndConditions.url"
1205
+ }
1206
+ ]
1207
+ }
1208
+ ]
1209
+ );
1210
+ const reqOpts = updateExperience(payload);
1211
+ sideEffects?.onSiteCall?.();
1212
+ try {
1213
+ const result = await httpClient.request(reqOpts);
1214
+ sideEffects?.onSuccess?.(result);
1215
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1216
+ (0, import_transform_paths2.transformPaths)(result.data, [
1217
+ {
1218
+ transformFn: import_image2.transformRESTImageToSDKImage,
1219
+ paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
1220
+ },
1221
+ {
1222
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1223
+ paths: [
1224
+ {
1225
+ path: "experience.configuration.reservationForm.privacyPolicy.url"
1226
+ },
1227
+ {
1228
+ path: "experience.configuration.reservationForm.termsAndConditions.url"
1229
+ }
1230
+ ]
1231
+ }
1232
+ ]),
1233
+ ["experience.configuration.displayInfo.richContent"]
1234
+ )?.experience;
1235
+ } catch (err) {
1236
+ const transformedError = (0, import_transform_error.transformError)(
1237
+ err,
1238
+ {
1239
+ spreadPathsToArguments: { experience: "$[1]" },
1240
+ explicitPathsToArguments: { "experience.id": "$[0]" },
1241
+ singleArgumentUnchanged: false
1242
+ },
1243
+ ["_id", "experience"]
1244
+ );
1245
+ sideEffects?.onError?.(err);
1246
+ throw transformedError;
1247
+ }
1248
+ }
1249
+ function queryExperiences2() {
1250
+ const { httpClient, sideEffects } = arguments[0];
1251
+ return (0, import_query_builder.queryBuilder)({
1252
+ func: async (payload) => {
1253
+ const reqOpts = queryExperiences(payload);
1254
+ sideEffects?.onSiteCall?.();
1255
+ try {
1256
+ const result = await httpClient.request(reqOpts);
1257
+ sideEffects?.onSuccess?.(result);
1258
+ return result;
1259
+ } catch (err) {
1260
+ sideEffects?.onError?.(err);
1261
+ throw err;
1262
+ }
1263
+ },
1264
+ requestTransformer: (query) => {
1265
+ const args = [query, {}];
1266
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1267
+ { ...args?.[1], query: args?.[0] },
1268
+ []
1269
+ );
1270
+ },
1271
+ responseTransformer: ({ data }) => {
1272
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1273
+ (0, import_transform_paths2.transformPaths)(data, [
1274
+ {
1275
+ transformFn: import_image2.transformRESTImageToSDKImage,
1276
+ paths: [
1277
+ { path: "experiences.configuration.displayInfo.coverImage" }
1278
+ ]
1279
+ },
1280
+ {
1281
+ transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
1282
+ paths: [
1283
+ {
1284
+ path: "experiences.configuration.reservationForm.privacyPolicy.url"
1285
+ },
1286
+ {
1287
+ path: "experiences.configuration.reservationForm.termsAndConditions.url"
1288
+ }
1289
+ ]
1290
+ }
1291
+ ]),
1292
+ ["experiences.configuration.displayInfo.richContent"]
1293
+ );
1294
+ return {
1295
+ items: transformedData?.experiences,
1296
+ pagingMetadata: transformedData?.pagingMetadata
1297
+ };
1298
+ },
1299
+ errorTransformer: (err) => {
1300
+ const transformedError = (0, import_transform_error.transformError)(err, {
1301
+ spreadPathsToArguments: {},
1302
+ explicitPathsToArguments: { query: "$[0]" },
1303
+ singleArgumentUnchanged: false
1304
+ });
1305
+ throw transformedError;
1306
+ },
1307
+ pagingMethod: "CURSOR",
1308
+ transformationPaths: {}
1309
+ });
1310
+ }
1311
+ async function bulkUpdateExperienceTags2(experienceIds, options) {
1312
+ const { httpClient, sideEffects } = arguments[2];
1313
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1314
+ {
1315
+ experienceIds,
1316
+ assignTags: options?.assignTags,
1317
+ unassignTags: options?.unassignTags
1318
+ },
1319
+ []
1320
+ );
1321
+ const reqOpts = bulkUpdateExperienceTags(
1322
+ payload
1323
+ );
1324
+ sideEffects?.onSiteCall?.();
1325
+ try {
1326
+ const result = await httpClient.request(reqOpts);
1327
+ sideEffects?.onSuccess?.(result);
1328
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1329
+ } catch (err) {
1330
+ const transformedError = (0, import_transform_error.transformError)(
1331
+ err,
1332
+ {
1333
+ spreadPathsToArguments: {},
1334
+ explicitPathsToArguments: {
1335
+ experienceIds: "$[0]",
1336
+ assignTags: "$[1].assignTags",
1337
+ unassignTags: "$[1].unassignTags"
1338
+ },
1339
+ singleArgumentUnchanged: false
1340
+ },
1341
+ ["experienceIds", "options"]
1342
+ );
1343
+ sideEffects?.onError?.(err);
1344
+ throw transformedError;
1345
+ }
1346
+ }
1347
+ async function bulkUpdateExperienceTagsByFilter2(filter, options) {
1348
+ const { httpClient, sideEffects } = arguments[2];
1349
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1350
+ {
1351
+ filter,
1352
+ assignTags: options?.assignTags,
1353
+ unassignTags: options?.unassignTags
1354
+ },
1355
+ []
1356
+ );
1357
+ const reqOpts = bulkUpdateExperienceTagsByFilter(
1358
+ payload
1359
+ );
1360
+ sideEffects?.onSiteCall?.();
1361
+ try {
1362
+ const result = await httpClient.request(reqOpts);
1363
+ sideEffects?.onSuccess?.(result);
1364
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1365
+ } catch (err) {
1366
+ const transformedError = (0, import_transform_error.transformError)(
1367
+ err,
1368
+ {
1369
+ spreadPathsToArguments: {},
1370
+ explicitPathsToArguments: {
1371
+ filter: "$[0]",
1372
+ assignTags: "$[1].assignTags",
1373
+ unassignTags: "$[1].unassignTags"
1374
+ },
1375
+ singleArgumentUnchanged: false
1376
+ },
1377
+ ["filter", "options"]
1378
+ );
1379
+ sideEffects?.onError?.(err);
1380
+ throw transformedError;
1381
+ }
1382
+ }
1383
+ // Annotate the CommonJS export names for ESM import in node:
1384
+ 0 && (module.exports = {
1385
+ Alignment,
1386
+ AppType,
1387
+ AspectRatio,
1388
+ BackgroundType,
1389
+ ButtonDataType,
1390
+ Crop,
1391
+ DayOfWeek,
1392
+ DecorationType,
1393
+ Direction,
1394
+ DividerDataAlignment,
1395
+ FontType,
1396
+ GIFType,
1397
+ InitialExpandedItems,
1398
+ Layout,
1399
+ LayoutType,
1400
+ LineStyle,
1401
+ MapType,
1402
+ Mode,
1403
+ NodeType,
1404
+ NullValue,
1405
+ Orientation,
1406
+ PaymentPolicyType,
1407
+ Placement,
1408
+ PlacementType,
1409
+ PluginContainerDataAlignment,
1410
+ PollLayoutDirection,
1411
+ PollLayoutType,
1412
+ Position,
1413
+ Recurrence,
1414
+ Resizing,
1415
+ ResolutionMethod,
1416
+ SortOrder,
1417
+ Source,
1418
+ StartDaysAndTimesDayOfWeek,
1419
+ StylesPosition,
1420
+ TableAssignmentType,
1421
+ TableAvailabilityType,
1422
+ TableManagementMode,
1423
+ Target,
1424
+ TextAlignment,
1425
+ ThumbnailsAlignment,
1426
+ Type,
1427
+ Unit,
1428
+ VerticalAlignment,
1429
+ ViewMode,
1430
+ ViewRole,
1431
+ VoteRole,
1432
+ WebhookIdentityType,
1433
+ Width,
1434
+ WidthType,
1435
+ bulkUpdateExperienceTags,
1436
+ bulkUpdateExperienceTagsByFilter,
1437
+ createExperience,
1438
+ getExperience,
1439
+ queryExperiences,
1440
+ updateExperience
1441
+ });
1442
+ //# sourceMappingURL=index.typings.js.map