@wix/auto_sdk_table-reservations_experiences 1.0.56 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3555 +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.typings.ts
21
- var index_typings_exports = {};
22
- __export(index_typings_exports, {
23
- AggregationType: () => AggregationType,
24
- Alignment: () => Alignment,
25
- AppType: () => AppType,
26
- AspectRatio: () => AspectRatio,
27
- BackdropType: () => BackdropType,
28
- BackgroundType: () => BackgroundType,
29
- BannerPosition: () => BannerPosition,
30
- ButtonDataType: () => ButtonDataType,
31
- CardDataBackgroundType: () => CardDataBackgroundType,
32
- CardStylesType: () => CardStylesType,
33
- ColumnSize: () => ColumnSize,
34
- Crop: () => Crop,
35
- DayOfWeek: () => DayOfWeek,
36
- DecorationType: () => DecorationType,
37
- DesignTarget: () => DesignTarget,
38
- Direction: () => Direction,
39
- DividerDataAlignment: () => DividerDataAlignment,
40
- EntranceEffectType: () => EntranceEffectType,
41
- FontType: () => FontType,
42
- GIFType: () => GIFType,
43
- GradientType: () => GradientType,
44
- ImagePosition: () => ImagePosition,
45
- ImagePositionPosition: () => ImagePositionPosition,
46
- ImageScalingScaling: () => ImageScalingScaling,
47
- Indentation: () => Indentation,
48
- InitialExpandedItems: () => InitialExpandedItems,
49
- Interval: () => Interval,
50
- LayerEffect: () => LayerEffect,
51
- Layout: () => Layout,
52
- LayoutDataBackgroundType: () => LayoutDataBackgroundType,
53
- LayoutType: () => LayoutType,
54
- LineCap: () => LineCap,
55
- LineStyle: () => LineStyle,
56
- ListStyle: () => ListStyle,
57
- LoopEffectType: () => LoopEffectType,
58
- MapType: () => MapType,
59
- MissingValues: () => MissingValues,
60
- Mode: () => Mode,
61
- NestedAggregationType: () => NestedAggregationType,
62
- NodeType: () => NodeType,
63
- NullValue: () => NullValue,
64
- Orientation: () => Orientation,
65
- Origin: () => Origin,
66
- PaymentPolicyType: () => PaymentPolicyType,
67
- Placement: () => Placement,
68
- PlacementType: () => PlacementType,
69
- PluginContainerDataAlignment: () => PluginContainerDataAlignment,
70
- PointerEffectType: () => PointerEffectType,
71
- PollDesignBackgroundType: () => PollDesignBackgroundType,
72
- PollLayoutDirection: () => PollLayoutDirection,
73
- PollLayoutType: () => PollLayoutType,
74
- Position: () => Position,
75
- Recurrence: () => Recurrence,
76
- Resizing: () => Resizing,
77
- ResolutionMethod: () => ResolutionMethod,
78
- ResponsivenessBehaviour: () => ResponsivenessBehaviour,
79
- ScalarType: () => ScalarType,
80
- Scaling: () => Scaling,
81
- SearchDetailsMode: () => SearchDetailsMode,
82
- Shape: () => Shape,
83
- SmartBlockDataType: () => SmartBlockDataType,
84
- SortDirection: () => SortDirection,
85
- SortOrder: () => SortOrder,
86
- SortType: () => SortType,
87
- Source: () => Source,
88
- StartDaysAndTimesDayOfWeek: () => StartDaysAndTimesDayOfWeek,
89
- StylesPosition: () => StylesPosition,
90
- TableAssignmentType: () => TableAssignmentType,
91
- TableAvailabilityType: () => TableAvailabilityType,
92
- TableManagementMode: () => TableManagementMode,
93
- Target: () => Target,
94
- TextAlignment: () => TextAlignment,
95
- ThumbnailsAlignment: () => ThumbnailsAlignment,
96
- Type: () => Type,
97
- Unit: () => Unit,
98
- Variant: () => Variant,
99
- VerticalAlignment: () => VerticalAlignment,
100
- VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
101
- ViewMode: () => ViewMode,
102
- ViewRole: () => ViewRole,
103
- VoteRole: () => VoteRole,
104
- WebhookIdentityType: () => WebhookIdentityType,
105
- Width: () => Width,
106
- WidthType: () => WidthType,
107
- bulkArchiveExperiences: () => bulkArchiveExperiences2,
108
- bulkUnarchiveExperiences: () => bulkUnarchiveExperiences2,
109
- bulkUpdateExperienceTags: () => bulkUpdateExperienceTags2,
110
- bulkUpdateExperienceTagsByFilter: () => bulkUpdateExperienceTagsByFilter2,
111
- bulkUpdateExperiences: () => bulkUpdateExperiences2,
112
- createExperience: () => createExperience2,
113
- getExperience: () => getExperience2,
114
- getExperienceBySlug: () => getExperienceBySlug2,
115
- queryExperiences: () => queryExperiences2,
116
- searchExperiences: () => searchExperiences2,
117
- typedQueryExperiences: () => typedQueryExperiences,
118
- updateExperience: () => updateExperience2,
119
- utils: () => utils
120
- });
121
- module.exports = __toCommonJS(index_typings_exports);
122
-
123
- // src/table-reservations-v1-experience-experiences.universal.ts
124
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
125
- var import_query_builder = require("@wix/sdk-runtime/query-builder");
126
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
127
-
128
- // src/table-reservations-v1-experience-experiences.http.ts
129
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
130
- var import_float = require("@wix/sdk-runtime/transformations/float");
131
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
132
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
133
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
134
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
135
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
136
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
137
- function resolveWixTableReservationsExperienceV1ExperiencesServiceUrl(opts) {
138
- const domainToMappings = {
139
- "manage._base_domain_": [
140
- {
141
- srcPath: "/_api/experiences",
142
- destPath: ""
143
- },
144
- {
145
- srcPath: "/_api/table-reservations/experiences",
146
- destPath: ""
147
- }
148
- ],
149
- "bo._base_domain_": [
150
- {
151
- srcPath: "/_api/table-reservations/experiences",
152
- destPath: ""
153
- }
154
- ],
155
- "wixbo.ai": [
156
- {
157
- srcPath: "/_api/table-reservations/experiences",
158
- destPath: ""
159
- }
160
- ],
161
- "wix-bo.com": [
162
- {
163
- srcPath: "/_api/table-reservations/experiences",
164
- destPath: ""
165
- }
166
- ],
167
- "editor._base_domain_": [
168
- {
169
- srcPath: "/_api/table-reservations/experiences",
170
- destPath: ""
171
- }
172
- ],
173
- "blocks._base_domain_": [
174
- {
175
- srcPath: "/_api/table-reservations/experiences",
176
- destPath: ""
177
- }
178
- ],
179
- "create.editorx": [
180
- {
181
- srcPath: "/_api/table-reservations/experiences",
182
- destPath: ""
183
- }
184
- ],
185
- "dev._base_domain_": [
186
- {
187
- srcPath: "/_api/table-reservations/experiences",
188
- destPath: ""
189
- }
190
- ],
191
- "apps._base_domain_": [
192
- {
193
- srcPath: "/_api/table-reservations/experiences",
194
- destPath: ""
195
- }
196
- ],
197
- "www.wixapis.com": [
198
- {
199
- srcPath: "/table-reservations/experiences",
200
- destPath: ""
201
- }
202
- ],
203
- "*.dev.wix-code.com": [
204
- {
205
- srcPath: "/_api/table-reservations/experiences",
206
- destPath: ""
207
- }
208
- ],
209
- "www._base_domain_": [
210
- {
211
- srcPath: "/_api/table-reservations/experiences",
212
- destPath: ""
213
- }
214
- ],
215
- "editor.wixapps.net": [
216
- {
217
- srcPath: "/_api/table-reservations/experiences",
218
- destPath: ""
219
- }
220
- ],
221
- _: [
222
- {
223
- srcPath: "/_api/table-reservations/experiences",
224
- destPath: ""
225
- }
226
- ]
227
- };
228
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
229
- }
230
- var PACKAGE_NAME = "@wix/auto_sdk_table-reservations_experiences";
231
- function createExperience(payload) {
232
- function __createExperience({ host }) {
233
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
234
- {
235
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
236
- paths: [
237
- { path: "experience.createdDate" },
238
- { path: "experience.updatedDate" },
239
- {
240
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
241
- },
242
- {
243
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
244
- }
245
- ]
246
- },
247
- {
248
- transformFn: import_float.transformSDKFloatToRESTFloat,
249
- paths: [
250
- {
251
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
252
- },
253
- {
254
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
255
- },
256
- {
257
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
258
- },
259
- {
260
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
261
- },
262
- {
263
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
264
- },
265
- {
266
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
267
- },
268
- {
269
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
270
- },
271
- {
272
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
273
- },
274
- {
275
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
276
- },
277
- {
278
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
279
- },
280
- {
281
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
282
- },
283
- {
284
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
285
- },
286
- {
287
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
288
- },
289
- {
290
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
291
- },
292
- {
293
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
294
- },
295
- {
296
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
297
- },
298
- {
299
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
300
- },
301
- {
302
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
303
- },
304
- {
305
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
306
- },
307
- {
308
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
309
- },
310
- {
311
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
312
- },
313
- {
314
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
315
- },
316
- {
317
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
318
- },
319
- {
320
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
321
- },
322
- {
323
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
324
- },
325
- {
326
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
327
- },
328
- {
329
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
330
- },
331
- {
332
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
333
- },
334
- {
335
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
336
- },
337
- {
338
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
339
- },
340
- {
341
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
342
- },
343
- {
344
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
345
- },
346
- {
347
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
348
- },
349
- {
350
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
351
- },
352
- {
353
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
354
- },
355
- {
356
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
357
- },
358
- {
359
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
360
- },
361
- {
362
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
363
- },
364
- {
365
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
366
- },
367
- {
368
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
369
- },
370
- {
371
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
372
- },
373
- {
374
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
375
- },
376
- {
377
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
378
- },
379
- {
380
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
381
- },
382
- {
383
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
384
- },
385
- {
386
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
387
- },
388
- {
389
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
390
- },
391
- {
392
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
393
- },
394
- {
395
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
396
- },
397
- {
398
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
399
- }
400
- ]
401
- }
402
- ]);
403
- const metadata = {
404
- entityFqdn: "wix.table_reservations.v1.experience",
405
- method: "POST",
406
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.CreateExperience",
407
- packageName: PACKAGE_NAME,
408
- migrationOptions: {
409
- optInTransformResponse: true
410
- },
411
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
412
- protoPath: "/v1/experiences",
413
- data: serializedData,
414
- host
415
- }),
416
- data: serializedData,
417
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
418
- {
419
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
420
- paths: [
421
- { path: "experience.createdDate" },
422
- { path: "experience.updatedDate" },
423
- {
424
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
425
- },
426
- {
427
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
428
- }
429
- ]
430
- },
431
- {
432
- transformFn: import_float2.transformRESTFloatToSDKFloat,
433
- paths: [
434
- {
435
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
436
- },
437
- {
438
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
439
- },
440
- {
441
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
442
- },
443
- {
444
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
445
- },
446
- {
447
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
448
- },
449
- {
450
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
451
- },
452
- {
453
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
454
- },
455
- {
456
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
457
- },
458
- {
459
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
460
- },
461
- {
462
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
463
- },
464
- {
465
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
466
- },
467
- {
468
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
469
- },
470
- {
471
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
472
- },
473
- {
474
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
475
- },
476
- {
477
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
478
- },
479
- {
480
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
481
- },
482
- {
483
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
484
- },
485
- {
486
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
487
- },
488
- {
489
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
490
- },
491
- {
492
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
493
- },
494
- {
495
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
496
- },
497
- {
498
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
499
- },
500
- {
501
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
502
- },
503
- {
504
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
505
- },
506
- {
507
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
508
- },
509
- {
510
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
511
- },
512
- {
513
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
514
- },
515
- {
516
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
517
- },
518
- {
519
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
520
- },
521
- {
522
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
523
- },
524
- {
525
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
526
- },
527
- {
528
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
529
- },
530
- {
531
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
532
- },
533
- {
534
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
535
- },
536
- {
537
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
538
- },
539
- {
540
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
541
- },
542
- {
543
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
544
- },
545
- {
546
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
547
- },
548
- {
549
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
550
- },
551
- {
552
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
553
- },
554
- {
555
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
556
- },
557
- {
558
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
559
- },
560
- {
561
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
562
- },
563
- {
564
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
565
- },
566
- {
567
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
568
- },
569
- {
570
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
571
- },
572
- {
573
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
574
- },
575
- {
576
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
577
- },
578
- {
579
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
580
- },
581
- {
582
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
583
- }
584
- ]
585
- }
586
- ])
587
- };
588
- return metadata;
589
- }
590
- return __createExperience;
591
- }
592
- function getExperience(payload) {
593
- function __getExperience({ host }) {
594
- const metadata = {
595
- entityFqdn: "wix.table_reservations.v1.experience",
596
- method: "GET",
597
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperience",
598
- packageName: PACKAGE_NAME,
599
- migrationOptions: {
600
- optInTransformResponse: true
601
- },
602
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
603
- protoPath: "/v1/experiences/{experienceId}",
604
- data: payload,
605
- host
606
- }),
607
- params: (0, import_rest_modules.toURLSearchParams)(payload),
608
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
609
- {
610
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
611
- paths: [
612
- { path: "experience.createdDate" },
613
- { path: "experience.updatedDate" },
614
- {
615
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
616
- },
617
- {
618
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
619
- }
620
- ]
621
- },
622
- {
623
- transformFn: import_float2.transformRESTFloatToSDKFloat,
624
- paths: [
625
- {
626
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
627
- },
628
- {
629
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
630
- },
631
- {
632
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
633
- },
634
- {
635
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
636
- },
637
- {
638
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
639
- },
640
- {
641
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
642
- },
643
- {
644
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
645
- },
646
- {
647
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
648
- },
649
- {
650
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
651
- },
652
- {
653
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
654
- },
655
- {
656
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
657
- },
658
- {
659
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
660
- },
661
- {
662
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
663
- },
664
- {
665
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
666
- },
667
- {
668
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
669
- },
670
- {
671
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
672
- },
673
- {
674
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
675
- },
676
- {
677
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
678
- },
679
- {
680
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
681
- },
682
- {
683
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
684
- },
685
- {
686
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
687
- },
688
- {
689
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
690
- },
691
- {
692
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
693
- },
694
- {
695
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
696
- },
697
- {
698
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
699
- },
700
- {
701
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
702
- },
703
- {
704
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
705
- },
706
- {
707
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
708
- },
709
- {
710
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
711
- },
712
- {
713
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
714
- },
715
- {
716
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
717
- },
718
- {
719
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
720
- },
721
- {
722
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
723
- },
724
- {
725
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
726
- },
727
- {
728
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
729
- },
730
- {
731
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
732
- },
733
- {
734
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
735
- },
736
- {
737
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
738
- },
739
- {
740
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
741
- },
742
- {
743
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
744
- },
745
- {
746
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
747
- },
748
- {
749
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
750
- },
751
- {
752
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
753
- },
754
- {
755
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
756
- },
757
- {
758
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
759
- },
760
- {
761
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
762
- },
763
- {
764
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
765
- },
766
- {
767
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
768
- },
769
- {
770
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
771
- },
772
- {
773
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
774
- }
775
- ]
776
- }
777
- ])
778
- };
779
- return metadata;
780
- }
781
- return __getExperience;
782
- }
783
- function getExperienceBySlug(payload) {
784
- function __getExperienceBySlug({ host }) {
785
- const metadata = {
786
- entityFqdn: "wix.table_reservations.v1.experience",
787
- method: "GET",
788
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperienceBySlug",
789
- packageName: PACKAGE_NAME,
790
- migrationOptions: {
791
- optInTransformResponse: true
792
- },
793
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
794
- protoPath: "/v1/experiences/slug/{slug}",
795
- data: payload,
796
- host
797
- }),
798
- params: (0, import_rest_modules.toURLSearchParams)(payload),
799
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
800
- {
801
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
802
- paths: [
803
- { path: "experience.createdDate" },
804
- { path: "experience.updatedDate" },
805
- {
806
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
807
- },
808
- {
809
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
810
- }
811
- ]
812
- },
813
- {
814
- transformFn: import_float2.transformRESTFloatToSDKFloat,
815
- paths: [
816
- {
817
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
818
- },
819
- {
820
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
821
- },
822
- {
823
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
824
- },
825
- {
826
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
827
- },
828
- {
829
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
830
- },
831
- {
832
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
833
- },
834
- {
835
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
836
- },
837
- {
838
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
839
- },
840
- {
841
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
842
- },
843
- {
844
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
845
- },
846
- {
847
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
848
- },
849
- {
850
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
851
- },
852
- {
853
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
854
- },
855
- {
856
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
857
- },
858
- {
859
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
860
- },
861
- {
862
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
863
- },
864
- {
865
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
866
- },
867
- {
868
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
869
- },
870
- {
871
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
872
- },
873
- {
874
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
875
- },
876
- {
877
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
878
- },
879
- {
880
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
881
- },
882
- {
883
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
884
- },
885
- {
886
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
887
- },
888
- {
889
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
890
- },
891
- {
892
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
893
- },
894
- {
895
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
896
- },
897
- {
898
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
899
- },
900
- {
901
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
902
- },
903
- {
904
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
905
- },
906
- {
907
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
908
- },
909
- {
910
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
911
- },
912
- {
913
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
914
- },
915
- {
916
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
917
- },
918
- {
919
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
920
- },
921
- {
922
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
923
- },
924
- {
925
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
926
- },
927
- {
928
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
929
- },
930
- {
931
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
932
- },
933
- {
934
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
935
- },
936
- {
937
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
938
- },
939
- {
940
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
941
- },
942
- {
943
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
944
- },
945
- {
946
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
947
- },
948
- {
949
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
950
- },
951
- {
952
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
953
- },
954
- {
955
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
956
- },
957
- {
958
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
959
- },
960
- {
961
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
962
- },
963
- {
964
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
965
- }
966
- ]
967
- }
968
- ])
969
- };
970
- return metadata;
971
- }
972
- return __getExperienceBySlug;
973
- }
974
- function updateExperience(payload) {
975
- function __updateExperience({ host }) {
976
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
977
- {
978
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
979
- paths: [{ path: "fieldMask" }]
980
- },
981
- {
982
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
983
- paths: [
984
- { path: "experience.createdDate" },
985
- { path: "experience.updatedDate" },
986
- {
987
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
988
- },
989
- {
990
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
991
- }
992
- ]
993
- },
994
- {
995
- transformFn: import_float.transformSDKFloatToRESTFloat,
996
- paths: [
997
- {
998
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
999
- },
1000
- {
1001
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1002
- },
1003
- {
1004
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1005
- },
1006
- {
1007
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1008
- },
1009
- {
1010
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1011
- },
1012
- {
1013
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1014
- },
1015
- {
1016
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1017
- },
1018
- {
1019
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1020
- },
1021
- {
1022
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1023
- },
1024
- {
1025
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1026
- },
1027
- {
1028
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1029
- },
1030
- {
1031
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
1032
- },
1033
- {
1034
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
1035
- },
1036
- {
1037
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
1038
- },
1039
- {
1040
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
1041
- },
1042
- {
1043
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1044
- },
1045
- {
1046
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1047
- },
1048
- {
1049
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1050
- },
1051
- {
1052
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1053
- },
1054
- {
1055
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1056
- },
1057
- {
1058
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1059
- },
1060
- {
1061
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1062
- },
1063
- {
1064
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1065
- },
1066
- {
1067
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1068
- },
1069
- {
1070
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1071
- },
1072
- {
1073
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1074
- },
1075
- {
1076
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1077
- },
1078
- {
1079
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1080
- },
1081
- {
1082
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1083
- },
1084
- {
1085
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1086
- },
1087
- {
1088
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1089
- },
1090
- {
1091
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1092
- },
1093
- {
1094
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1095
- },
1096
- {
1097
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1098
- },
1099
- {
1100
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1101
- },
1102
- {
1103
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1104
- },
1105
- {
1106
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1107
- },
1108
- {
1109
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1110
- },
1111
- {
1112
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1113
- },
1114
- {
1115
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1116
- },
1117
- {
1118
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1119
- },
1120
- {
1121
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1122
- },
1123
- {
1124
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1125
- },
1126
- {
1127
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1128
- },
1129
- {
1130
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1131
- },
1132
- {
1133
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1134
- },
1135
- {
1136
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1137
- },
1138
- {
1139
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1140
- },
1141
- {
1142
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1143
- },
1144
- {
1145
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1146
- }
1147
- ]
1148
- }
1149
- ]);
1150
- const metadata = {
1151
- entityFqdn: "wix.table_reservations.v1.experience",
1152
- method: "PATCH",
1153
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.UpdateExperience",
1154
- packageName: PACKAGE_NAME,
1155
- migrationOptions: {
1156
- optInTransformResponse: true
1157
- },
1158
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1159
- protoPath: "/v1/experiences/{experience.id}",
1160
- data: serializedData,
1161
- host
1162
- }),
1163
- data: serializedData,
1164
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1165
- {
1166
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1167
- paths: [
1168
- { path: "experience.createdDate" },
1169
- { path: "experience.updatedDate" },
1170
- {
1171
- path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
1172
- },
1173
- {
1174
- path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1175
- }
1176
- ]
1177
- },
1178
- {
1179
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1180
- paths: [
1181
- {
1182
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1183
- },
1184
- {
1185
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1186
- },
1187
- {
1188
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1189
- },
1190
- {
1191
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1192
- },
1193
- {
1194
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1195
- },
1196
- {
1197
- path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1198
- },
1199
- {
1200
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1201
- },
1202
- {
1203
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1204
- },
1205
- {
1206
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1207
- },
1208
- {
1209
- path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1210
- },
1211
- {
1212
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1213
- },
1214
- {
1215
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
1216
- },
1217
- {
1218
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
1219
- },
1220
- {
1221
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
1222
- },
1223
- {
1224
- path: "experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
1225
- },
1226
- {
1227
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1228
- },
1229
- {
1230
- path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1231
- },
1232
- {
1233
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1234
- },
1235
- {
1236
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1237
- },
1238
- {
1239
- path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1240
- },
1241
- {
1242
- path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1243
- },
1244
- {
1245
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1246
- },
1247
- {
1248
- path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1249
- },
1250
- {
1251
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1252
- },
1253
- {
1254
- path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1255
- },
1256
- {
1257
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1258
- },
1259
- {
1260
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1261
- },
1262
- {
1263
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1264
- },
1265
- {
1266
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1267
- },
1268
- {
1269
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1270
- },
1271
- {
1272
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1273
- },
1274
- {
1275
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1276
- },
1277
- {
1278
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1279
- },
1280
- {
1281
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1282
- },
1283
- {
1284
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1285
- },
1286
- {
1287
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1288
- },
1289
- {
1290
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1291
- },
1292
- {
1293
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1294
- },
1295
- {
1296
- path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1297
- },
1298
- {
1299
- path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1300
- },
1301
- {
1302
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1303
- },
1304
- {
1305
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1306
- },
1307
- {
1308
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1309
- },
1310
- {
1311
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1312
- },
1313
- {
1314
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1315
- },
1316
- {
1317
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1318
- },
1319
- {
1320
- path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1321
- },
1322
- {
1323
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1324
- },
1325
- {
1326
- path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1327
- },
1328
- {
1329
- path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1330
- }
1331
- ]
1332
- }
1333
- ])
1334
- };
1335
- return metadata;
1336
- }
1337
- return __updateExperience;
1338
- }
1339
- function queryExperiences(payload) {
1340
- function __queryExperiences({ host }) {
1341
- const metadata = {
1342
- entityFqdn: "wix.table_reservations.v1.experience",
1343
- method: "GET",
1344
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.QueryExperiences",
1345
- packageName: PACKAGE_NAME,
1346
- migrationOptions: {
1347
- optInTransformResponse: true
1348
- },
1349
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1350
- protoPath: "/v1/experiences/query",
1351
- data: payload,
1352
- host
1353
- }),
1354
- params: (0, import_rest_modules.toURLSearchParams)(payload, true),
1355
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1356
- {
1357
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1358
- paths: [
1359
- { path: "experiences.createdDate" },
1360
- { path: "experiences.updatedDate" },
1361
- {
1362
- path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
1363
- },
1364
- {
1365
- path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1366
- }
1367
- ]
1368
- },
1369
- {
1370
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1371
- paths: [
1372
- {
1373
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1374
- },
1375
- {
1376
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1377
- },
1378
- {
1379
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1380
- },
1381
- {
1382
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1383
- },
1384
- {
1385
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1386
- },
1387
- {
1388
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1389
- },
1390
- {
1391
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1392
- },
1393
- {
1394
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1395
- },
1396
- {
1397
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1398
- },
1399
- {
1400
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1401
- },
1402
- {
1403
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1404
- },
1405
- {
1406
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.x"
1407
- },
1408
- {
1409
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.y"
1410
- },
1411
- {
1412
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.width"
1413
- },
1414
- {
1415
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.height"
1416
- },
1417
- {
1418
- path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1419
- },
1420
- {
1421
- path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1422
- },
1423
- {
1424
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1425
- },
1426
- {
1427
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1428
- },
1429
- {
1430
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1431
- },
1432
- {
1433
- path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1434
- },
1435
- {
1436
- path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1437
- },
1438
- {
1439
- path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1440
- },
1441
- {
1442
- path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1443
- },
1444
- {
1445
- path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1446
- },
1447
- {
1448
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1449
- },
1450
- {
1451
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1452
- },
1453
- {
1454
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1455
- },
1456
- {
1457
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1458
- },
1459
- {
1460
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1461
- },
1462
- {
1463
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1464
- },
1465
- {
1466
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1467
- },
1468
- {
1469
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1470
- },
1471
- {
1472
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1473
- },
1474
- {
1475
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1476
- },
1477
- {
1478
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1479
- },
1480
- {
1481
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1482
- },
1483
- {
1484
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1485
- },
1486
- {
1487
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1488
- },
1489
- {
1490
- path: "experiences.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1491
- },
1492
- {
1493
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1494
- },
1495
- {
1496
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1497
- },
1498
- {
1499
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1500
- },
1501
- {
1502
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1503
- },
1504
- {
1505
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1506
- },
1507
- {
1508
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1509
- },
1510
- {
1511
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1512
- },
1513
- {
1514
- path: "experiences.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1515
- },
1516
- {
1517
- path: "experiences.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1518
- },
1519
- {
1520
- path: "experiences.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1521
- }
1522
- ]
1523
- }
1524
- ]),
1525
- fallback: [
1526
- {
1527
- method: "POST",
1528
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1529
- protoPath: "/v1/experiences/query",
1530
- data: payload,
1531
- host
1532
- }),
1533
- data: payload
1534
- }
1535
- ]
1536
- };
1537
- return metadata;
1538
- }
1539
- return __queryExperiences;
1540
- }
1541
- function searchExperiences(payload) {
1542
- function __searchExperiences({ host }) {
1543
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1544
- {
1545
- transformFn: import_float.transformSDKFloatToRESTFloat,
1546
- paths: [
1547
- { path: "search.aggregations.range.buckets.from" },
1548
- { path: "search.aggregations.range.buckets.to" },
1549
- {
1550
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
1551
- },
1552
- {
1553
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
1554
- }
1555
- ]
1556
- }
1557
- ]);
1558
- const metadata = {
1559
- entityFqdn: "wix.table_reservations.v1.experience",
1560
- method: "GET",
1561
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.SearchExperiences",
1562
- packageName: PACKAGE_NAME,
1563
- migrationOptions: {
1564
- optInTransformResponse: true
1565
- },
1566
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1567
- protoPath: "/v1/experiences/search",
1568
- data: serializedData,
1569
- host
1570
- }),
1571
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
1572
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1573
- {
1574
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1575
- paths: [
1576
- { path: "experiences.createdDate" },
1577
- { path: "experiences.updatedDate" },
1578
- {
1579
- path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
1580
- },
1581
- {
1582
- path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1583
- }
1584
- ]
1585
- },
1586
- {
1587
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1588
- paths: [
1589
- {
1590
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1591
- },
1592
- {
1593
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1594
- },
1595
- {
1596
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1597
- },
1598
- {
1599
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1600
- },
1601
- {
1602
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1603
- },
1604
- {
1605
- path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1606
- },
1607
- {
1608
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1609
- },
1610
- {
1611
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1612
- },
1613
- {
1614
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1615
- },
1616
- {
1617
- path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1618
- },
1619
- {
1620
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1621
- },
1622
- {
1623
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.x"
1624
- },
1625
- {
1626
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.y"
1627
- },
1628
- {
1629
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.width"
1630
- },
1631
- {
1632
- path: "experiences.configuration.displayInfo.richContent.nodes.imageData.crop.height"
1633
- },
1634
- {
1635
- path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1636
- },
1637
- {
1638
- path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1639
- },
1640
- {
1641
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1642
- },
1643
- {
1644
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1645
- },
1646
- {
1647
- path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1648
- },
1649
- {
1650
- path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1651
- },
1652
- {
1653
- path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1654
- },
1655
- {
1656
- path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1657
- },
1658
- {
1659
- path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1660
- },
1661
- {
1662
- path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1663
- },
1664
- {
1665
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1666
- },
1667
- {
1668
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1669
- },
1670
- {
1671
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1672
- },
1673
- {
1674
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1675
- },
1676
- {
1677
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1678
- },
1679
- {
1680
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1681
- },
1682
- {
1683
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1684
- },
1685
- {
1686
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1687
- },
1688
- {
1689
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1690
- },
1691
- {
1692
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1693
- },
1694
- {
1695
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1696
- },
1697
- {
1698
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1699
- },
1700
- {
1701
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1702
- },
1703
- {
1704
- path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1705
- },
1706
- {
1707
- path: "experiences.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1708
- },
1709
- {
1710
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1711
- },
1712
- {
1713
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1714
- },
1715
- {
1716
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1717
- },
1718
- {
1719
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1720
- },
1721
- {
1722
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1723
- },
1724
- {
1725
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1726
- },
1727
- {
1728
- path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1729
- },
1730
- {
1731
- path: "experiences.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1732
- },
1733
- {
1734
- path: "experiences.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1735
- },
1736
- {
1737
- path: "experiences.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1738
- },
1739
- { path: "aggregationData.results.ranges.results.from" },
1740
- { path: "aggregationData.results.ranges.results.to" },
1741
- {
1742
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
1743
- },
1744
- {
1745
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
1746
- },
1747
- {
1748
- path: "aggregationData.results.nested.results.results.*.range.from"
1749
- },
1750
- {
1751
- path: "aggregationData.results.nested.results.results.*.range.to"
1752
- },
1753
- { path: "aggregationData.results.scalar.value" },
1754
- {
1755
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
1756
- },
1757
- {
1758
- path: "aggregationData.results.nested.results.results.*.scalar.value"
1759
- }
1760
- ]
1761
- }
1762
- ]),
1763
- fallback: [
1764
- {
1765
- method: "POST",
1766
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1767
- protoPath: "/v1/experiences/search",
1768
- data: serializedData,
1769
- host
1770
- }),
1771
- data: serializedData
1772
- }
1773
- ]
1774
- };
1775
- return metadata;
1776
- }
1777
- return __searchExperiences;
1778
- }
1779
- function bulkUpdateExperiences(payload) {
1780
- function __bulkUpdateExperiences({ host }) {
1781
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1782
- {
1783
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
1784
- paths: [{ path: "experiences.fieldMask" }]
1785
- },
1786
- {
1787
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
1788
- paths: [
1789
- { path: "experiences.experience.createdDate" },
1790
- { path: "experiences.experience.updatedDate" },
1791
- {
1792
- path: "experiences.experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
1793
- },
1794
- {
1795
- path: "experiences.experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1796
- }
1797
- ]
1798
- },
1799
- {
1800
- transformFn: import_float.transformSDKFloatToRESTFloat,
1801
- paths: [
1802
- {
1803
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1804
- },
1805
- {
1806
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1807
- },
1808
- {
1809
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1810
- },
1811
- {
1812
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1813
- },
1814
- {
1815
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1816
- },
1817
- {
1818
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1819
- },
1820
- {
1821
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
1822
- },
1823
- {
1824
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
1825
- },
1826
- {
1827
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
1828
- },
1829
- {
1830
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
1831
- },
1832
- {
1833
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
1834
- },
1835
- {
1836
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.crop.x"
1837
- },
1838
- {
1839
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.crop.y"
1840
- },
1841
- {
1842
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.crop.width"
1843
- },
1844
- {
1845
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.imageData.crop.height"
1846
- },
1847
- {
1848
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
1849
- },
1850
- {
1851
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
1852
- },
1853
- {
1854
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
1855
- },
1856
- {
1857
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
1858
- },
1859
- {
1860
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
1861
- },
1862
- {
1863
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
1864
- },
1865
- {
1866
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
1867
- },
1868
- {
1869
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
1870
- },
1871
- {
1872
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
1873
- },
1874
- {
1875
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
1876
- },
1877
- {
1878
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
1879
- },
1880
- {
1881
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1882
- },
1883
- {
1884
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1885
- },
1886
- {
1887
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1888
- },
1889
- {
1890
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
1891
- },
1892
- {
1893
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1894
- },
1895
- {
1896
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1897
- },
1898
- {
1899
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1900
- },
1901
- {
1902
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
1903
- },
1904
- {
1905
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
1906
- },
1907
- {
1908
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
1909
- },
1910
- {
1911
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
1912
- },
1913
- {
1914
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
1915
- },
1916
- {
1917
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1918
- },
1919
- {
1920
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
1921
- },
1922
- {
1923
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
1924
- },
1925
- {
1926
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
1927
- },
1928
- {
1929
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
1930
- },
1931
- {
1932
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
1933
- },
1934
- {
1935
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1936
- },
1937
- {
1938
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1939
- },
1940
- {
1941
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1942
- },
1943
- {
1944
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
1945
- },
1946
- {
1947
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
1948
- },
1949
- {
1950
- path: "experiences.experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
1951
- }
1952
- ]
1953
- }
1954
- ]);
1955
- const metadata = {
1956
- entityFqdn: "wix.table_reservations.v1.experience",
1957
- method: "POST",
1958
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperiences",
1959
- packageName: PACKAGE_NAME,
1960
- migrationOptions: {
1961
- optInTransformResponse: true
1962
- },
1963
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
1964
- protoPath: "/v1/bulk/experiences/update",
1965
- data: serializedData,
1966
- host
1967
- }),
1968
- data: serializedData,
1969
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1970
- {
1971
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1972
- paths: [
1973
- { path: "results.item.createdDate" },
1974
- { path: "results.item.updatedDate" },
1975
- {
1976
- path: "results.item.configuration.displayInfo.richContent.metadata.createdTimestamp"
1977
- },
1978
- {
1979
- path: "results.item.configuration.displayInfo.richContent.metadata.updatedTimestamp"
1980
- }
1981
- ]
1982
- },
1983
- {
1984
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1985
- paths: [
1986
- {
1987
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
1988
- },
1989
- {
1990
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
1991
- },
1992
- {
1993
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1994
- },
1995
- {
1996
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1997
- },
1998
- {
1999
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
2000
- },
2001
- {
2002
- path: "results.item.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
2003
- },
2004
- {
2005
- path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
2006
- },
2007
- {
2008
- path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
2009
- },
2010
- {
2011
- path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
2012
- },
2013
- {
2014
- path: "results.item.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
2015
- },
2016
- {
2017
- path: "results.item.configuration.displayInfo.richContent.nodes.imageData.image.duration"
2018
- },
2019
- {
2020
- path: "results.item.configuration.displayInfo.richContent.nodes.imageData.crop.x"
2021
- },
2022
- {
2023
- path: "results.item.configuration.displayInfo.richContent.nodes.imageData.crop.y"
2024
- },
2025
- {
2026
- path: "results.item.configuration.displayInfo.richContent.nodes.imageData.crop.width"
2027
- },
2028
- {
2029
- path: "results.item.configuration.displayInfo.richContent.nodes.imageData.crop.height"
2030
- },
2031
- {
2032
- path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
2033
- },
2034
- {
2035
- path: "results.item.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
2036
- },
2037
- {
2038
- path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
2039
- },
2040
- {
2041
- path: "results.item.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
2042
- },
2043
- {
2044
- path: "results.item.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
2045
- },
2046
- {
2047
- path: "results.item.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
2048
- },
2049
- {
2050
- path: "results.item.configuration.displayInfo.richContent.nodes.videoData.video.duration"
2051
- },
2052
- {
2053
- path: "results.item.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
2054
- },
2055
- {
2056
- path: "results.item.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
2057
- },
2058
- {
2059
- path: "results.item.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
2060
- },
2061
- {
2062
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
2063
- },
2064
- {
2065
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
2066
- },
2067
- {
2068
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
2069
- },
2070
- {
2071
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
2072
- },
2073
- {
2074
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
2075
- },
2076
- {
2077
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
2078
- },
2079
- {
2080
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
2081
- },
2082
- {
2083
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
2084
- },
2085
- {
2086
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
2087
- },
2088
- {
2089
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
2090
- },
2091
- {
2092
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
2093
- },
2094
- {
2095
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
2096
- },
2097
- {
2098
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
2099
- },
2100
- {
2101
- path: "results.item.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
2102
- },
2103
- {
2104
- path: "results.item.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
2105
- },
2106
- {
2107
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
2108
- },
2109
- {
2110
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
2111
- },
2112
- {
2113
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
2114
- },
2115
- {
2116
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
2117
- },
2118
- {
2119
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
2120
- },
2121
- {
2122
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
2123
- },
2124
- {
2125
- path: "results.item.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
2126
- },
2127
- {
2128
- path: "results.item.configuration.displayInfo.richContent.nodes.tocData.fontSize"
2129
- },
2130
- {
2131
- path: "results.item.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
2132
- },
2133
- {
2134
- path: "results.item.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
2135
- }
2136
- ]
2137
- }
2138
- ])
2139
- };
2140
- return metadata;
2141
- }
2142
- return __bulkUpdateExperiences;
2143
- }
2144
- function bulkUpdateExperienceTags(payload) {
2145
- function __bulkUpdateExperienceTags({ host }) {
2146
- const metadata = {
2147
- entityFqdn: "wix.table_reservations.v1.experience",
2148
- method: "POST",
2149
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTags",
2150
- packageName: PACKAGE_NAME,
2151
- migrationOptions: {
2152
- optInTransformResponse: true
2153
- },
2154
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
2155
- protoPath: "/v1/bulk/experiences/update-tags",
2156
- data: payload,
2157
- host
2158
- }),
2159
- data: payload
2160
- };
2161
- return metadata;
2162
- }
2163
- return __bulkUpdateExperienceTags;
2164
- }
2165
- function bulkUpdateExperienceTagsByFilter(payload) {
2166
- function __bulkUpdateExperienceTagsByFilter({ host }) {
2167
- const metadata = {
2168
- entityFqdn: "wix.table_reservations.v1.experience",
2169
- method: "POST",
2170
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTagsByFilter",
2171
- packageName: PACKAGE_NAME,
2172
- migrationOptions: {
2173
- optInTransformResponse: true
2174
- },
2175
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
2176
- protoPath: "/v1/bulk/experiences/update-tags-by-filter",
2177
- data: payload,
2178
- host
2179
- }),
2180
- data: payload
2181
- };
2182
- return metadata;
2183
- }
2184
- return __bulkUpdateExperienceTagsByFilter;
2185
- }
2186
- function bulkArchiveExperiences(payload) {
2187
- function __bulkArchiveExperiences({ host }) {
2188
- const metadata = {
2189
- entityFqdn: "wix.table_reservations.v1.experience",
2190
- method: "POST",
2191
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkArchiveExperiences",
2192
- packageName: PACKAGE_NAME,
2193
- migrationOptions: {
2194
- optInTransformResponse: true
2195
- },
2196
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
2197
- protoPath: "/v1/bulk/experiences/archive",
2198
- data: payload,
2199
- host
2200
- }),
2201
- data: payload
2202
- };
2203
- return metadata;
2204
- }
2205
- return __bulkArchiveExperiences;
2206
- }
2207
- function bulkUnarchiveExperiences(payload) {
2208
- function __bulkUnarchiveExperiences({ host }) {
2209
- const metadata = {
2210
- entityFqdn: "wix.table_reservations.v1.experience",
2211
- method: "POST",
2212
- methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUnarchiveExperiences",
2213
- packageName: PACKAGE_NAME,
2214
- migrationOptions: {
2215
- optInTransformResponse: true
2216
- },
2217
- url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
2218
- protoPath: "/v1/bulk/experiences/unarchive",
2219
- data: payload,
2220
- host
2221
- }),
2222
- data: payload
2223
- };
2224
- return metadata;
2225
- }
2226
- return __bulkUnarchiveExperiences;
2227
- }
2228
-
2229
- // src/table-reservations-v1-experience-experiences.universal.ts
2230
- var import_image = require("@wix/sdk-runtime/transformations/image");
2231
- var import_image2 = require("@wix/sdk-runtime/transformations/image");
2232
- var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
2233
- var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
2234
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
2235
- var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
2236
- var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
2237
- var TableAvailabilityType = /* @__PURE__ */ ((TableAvailabilityType2) => {
2238
- TableAvailabilityType2["ANY_ONLINE_TABLE"] = "ANY_ONLINE_TABLE";
2239
- TableAvailabilityType2["SPECIFIC_TABLES"] = "SPECIFIC_TABLES";
2240
- return TableAvailabilityType2;
2241
- })(TableAvailabilityType || {});
2242
- var TableAssignmentType = /* @__PURE__ */ ((TableAssignmentType2) => {
2243
- TableAssignmentType2["AUTOMATIC"] = "AUTOMATIC";
2244
- TableAssignmentType2["MANUAL"] = "MANUAL";
2245
- return TableAssignmentType2;
2246
- })(TableAssignmentType || {});
2247
- var TableManagementMode = /* @__PURE__ */ ((TableManagementMode2) => {
2248
- TableManagementMode2["ON"] = "ON";
2249
- TableManagementMode2["OFF"] = "OFF";
2250
- return TableManagementMode2;
2251
- })(TableManagementMode || {});
2252
- var Unit = /* @__PURE__ */ ((Unit2) => {
2253
- Unit2["MINUTES"] = "MINUTES";
2254
- Unit2["HOURS"] = "HOURS";
2255
- Unit2["DAYS"] = "DAYS";
2256
- return Unit2;
2257
- })(Unit || {});
2258
- var Mode = /* @__PURE__ */ ((Mode2) => {
2259
- Mode2["AUTOMATIC"] = "AUTOMATIC";
2260
- Mode2["MANUAL"] = "MANUAL";
2261
- return Mode2;
2262
- })(Mode || {});
2263
- var StartDaysAndTimesDayOfWeek = /* @__PURE__ */ ((StartDaysAndTimesDayOfWeek2) => {
2264
- StartDaysAndTimesDayOfWeek2["MONDAY"] = "MONDAY";
2265
- StartDaysAndTimesDayOfWeek2["TUESDAY"] = "TUESDAY";
2266
- StartDaysAndTimesDayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
2267
- StartDaysAndTimesDayOfWeek2["THURSDAY"] = "THURSDAY";
2268
- StartDaysAndTimesDayOfWeek2["FRIDAY"] = "FRIDAY";
2269
- StartDaysAndTimesDayOfWeek2["SATURDAY"] = "SATURDAY";
2270
- StartDaysAndTimesDayOfWeek2["SUNDAY"] = "SUNDAY";
2271
- return StartDaysAndTimesDayOfWeek2;
2272
- })(StartDaysAndTimesDayOfWeek || {});
2273
- var Recurrence = /* @__PURE__ */ ((Recurrence2) => {
2274
- Recurrence2["WEEKLY"] = "WEEKLY";
2275
- Recurrence2["ONE_TIME"] = "ONE_TIME";
2276
- return Recurrence2;
2277
- })(Recurrence || {});
2278
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
2279
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
2280
- NodeType2["TEXT"] = "TEXT";
2281
- NodeType2["HEADING"] = "HEADING";
2282
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
2283
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
2284
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
2285
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
2286
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
2287
- NodeType2["VIDEO"] = "VIDEO";
2288
- NodeType2["DIVIDER"] = "DIVIDER";
2289
- NodeType2["FILE"] = "FILE";
2290
- NodeType2["GALLERY"] = "GALLERY";
2291
- NodeType2["GIF"] = "GIF";
2292
- NodeType2["HTML"] = "HTML";
2293
- NodeType2["IMAGE"] = "IMAGE";
2294
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
2295
- NodeType2["MAP"] = "MAP";
2296
- NodeType2["POLL"] = "POLL";
2297
- NodeType2["APP_EMBED"] = "APP_EMBED";
2298
- NodeType2["BUTTON"] = "BUTTON";
2299
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
2300
- NodeType2["TABLE"] = "TABLE";
2301
- NodeType2["EMBED"] = "EMBED";
2302
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
2303
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
2304
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
2305
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
2306
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
2307
- NodeType2["EXTERNAL"] = "EXTERNAL";
2308
- NodeType2["AUDIO"] = "AUDIO";
2309
- NodeType2["CAPTION"] = "CAPTION";
2310
- NodeType2["LAYOUT"] = "LAYOUT";
2311
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
2312
- NodeType2["SHAPE"] = "SHAPE";
2313
- NodeType2["CARD"] = "CARD";
2314
- NodeType2["TOC"] = "TOC";
2315
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
2316
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
2317
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
2318
- return NodeType2;
2319
- })(NodeType || {});
2320
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
2321
- BackgroundType2["COLOR"] = "COLOR";
2322
- BackgroundType2["GRADIENT"] = "GRADIENT";
2323
- return BackgroundType2;
2324
- })(BackgroundType || {});
2325
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
2326
- GradientType2["LINEAR"] = "LINEAR";
2327
- GradientType2["RADIAL"] = "RADIAL";
2328
- return GradientType2;
2329
- })(GradientType || {});
2330
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
2331
- WidthType2["CONTENT"] = "CONTENT";
2332
- WidthType2["SMALL"] = "SMALL";
2333
- WidthType2["ORIGINAL"] = "ORIGINAL";
2334
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
2335
- return WidthType2;
2336
- })(WidthType || {});
2337
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
2338
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
2339
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
2340
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
2341
- return PluginContainerDataAlignment2;
2342
- })(PluginContainerDataAlignment || {});
2343
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
2344
- ButtonDataType2["LINK"] = "LINK";
2345
- ButtonDataType2["ACTION"] = "ACTION";
2346
- return ButtonDataType2;
2347
- })(ButtonDataType || {});
2348
- var Target = /* @__PURE__ */ ((Target2) => {
2349
- Target2["SELF"] = "SELF";
2350
- Target2["BLANK"] = "BLANK";
2351
- Target2["PARENT"] = "PARENT";
2352
- Target2["TOP"] = "TOP";
2353
- return Target2;
2354
- })(Target || {});
2355
- var Type = /* @__PURE__ */ ((Type2) => {
2356
- Type2["VIEW"] = "VIEW";
2357
- Type2["POINTER"] = "POINTER";
2358
- return Type2;
2359
- })(Type || {});
2360
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
2361
- EntranceEffectType2["FADE"] = "FADE";
2362
- EntranceEffectType2["ARC"] = "ARC";
2363
- EntranceEffectType2["BLUR"] = "BLUR";
2364
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
2365
- EntranceEffectType2["DROP"] = "DROP";
2366
- EntranceEffectType2["EXPAND"] = "EXPAND";
2367
- EntranceEffectType2["FLIP"] = "FLIP";
2368
- EntranceEffectType2["FLOAT"] = "FLOAT";
2369
- EntranceEffectType2["FOLD"] = "FOLD";
2370
- EntranceEffectType2["GLIDE"] = "GLIDE";
2371
- EntranceEffectType2["REVEAL"] = "REVEAL";
2372
- EntranceEffectType2["SHAPE"] = "SHAPE";
2373
- EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
2374
- EntranceEffectType2["SLIDE"] = "SLIDE";
2375
- EntranceEffectType2["SPIN"] = "SPIN";
2376
- EntranceEffectType2["TILT"] = "TILT";
2377
- EntranceEffectType2["TURN"] = "TURN";
2378
- EntranceEffectType2["WINK"] = "WINK";
2379
- return EntranceEffectType2;
2380
- })(EntranceEffectType || {});
2381
- var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
2382
- LoopEffectType2["BOUNCE"] = "BOUNCE";
2383
- LoopEffectType2["BREATHE"] = "BREATHE";
2384
- LoopEffectType2["CROSS"] = "CROSS";
2385
- LoopEffectType2["FLASH"] = "FLASH";
2386
- LoopEffectType2["FLIP"] = "FLIP";
2387
- LoopEffectType2["FOLD"] = "FOLD";
2388
- LoopEffectType2["JELLO"] = "JELLO";
2389
- LoopEffectType2["POKE"] = "POKE";
2390
- LoopEffectType2["PULSE"] = "PULSE";
2391
- LoopEffectType2["RUBBER"] = "RUBBER";
2392
- LoopEffectType2["SPIN"] = "SPIN";
2393
- LoopEffectType2["SWING"] = "SWING";
2394
- LoopEffectType2["WIGGLE"] = "WIGGLE";
2395
- return LoopEffectType2;
2396
- })(LoopEffectType || {});
2397
- var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
2398
- PointerEffectType2["AIRY"] = "AIRY";
2399
- PointerEffectType2["BLOB"] = "BLOB";
2400
- PointerEffectType2["BLUR"] = "BLUR";
2401
- PointerEffectType2["SCALE"] = "SCALE";
2402
- PointerEffectType2["SKEW"] = "SKEW";
2403
- PointerEffectType2["SWIVEL"] = "SWIVEL";
2404
- PointerEffectType2["TILT_3D"] = "TILT_3D";
2405
- PointerEffectType2["TRACK"] = "TRACK";
2406
- PointerEffectType2["TRACK_3D"] = "TRACK_3D";
2407
- return PointerEffectType2;
2408
- })(PointerEffectType || {});
2409
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
2410
- TextAlignment2["AUTO"] = "AUTO";
2411
- TextAlignment2["LEFT"] = "LEFT";
2412
- TextAlignment2["RIGHT"] = "RIGHT";
2413
- TextAlignment2["CENTER"] = "CENTER";
2414
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
2415
- return TextAlignment2;
2416
- })(TextAlignment || {});
2417
- var LineCap = /* @__PURE__ */ ((LineCap2) => {
2418
- LineCap2["SQUARE"] = "SQUARE";
2419
- LineCap2["ROUND"] = "ROUND";
2420
- return LineCap2;
2421
- })(LineCap || {});
2422
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
2423
- LineStyle2["SINGLE"] = "SINGLE";
2424
- LineStyle2["DOUBLE"] = "DOUBLE";
2425
- LineStyle2["DASHED"] = "DASHED";
2426
- LineStyle2["DOTTED"] = "DOTTED";
2427
- return LineStyle2;
2428
- })(LineStyle || {});
2429
- var Width = /* @__PURE__ */ ((Width2) => {
2430
- Width2["LARGE"] = "LARGE";
2431
- Width2["MEDIUM"] = "MEDIUM";
2432
- Width2["SMALL"] = "SMALL";
2433
- return Width2;
2434
- })(Width || {});
2435
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
2436
- DividerDataAlignment2["CENTER"] = "CENTER";
2437
- DividerDataAlignment2["LEFT"] = "LEFT";
2438
- DividerDataAlignment2["RIGHT"] = "RIGHT";
2439
- return DividerDataAlignment2;
2440
- })(DividerDataAlignment || {});
2441
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
2442
- ViewMode2["NONE"] = "NONE";
2443
- ViewMode2["FULL"] = "FULL";
2444
- ViewMode2["MINI"] = "MINI";
2445
- return ViewMode2;
2446
- })(ViewMode || {});
2447
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
2448
- LayoutType2["COLLAGE"] = "COLLAGE";
2449
- LayoutType2["MASONRY"] = "MASONRY";
2450
- LayoutType2["GRID"] = "GRID";
2451
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
2452
- LayoutType2["SLIDER"] = "SLIDER";
2453
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
2454
- LayoutType2["PANORAMA"] = "PANORAMA";
2455
- LayoutType2["COLUMN"] = "COLUMN";
2456
- LayoutType2["MAGIC"] = "MAGIC";
2457
- LayoutType2["FULLSIZE"] = "FULLSIZE";
2458
- return LayoutType2;
2459
- })(LayoutType || {});
2460
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
2461
- Orientation2["ROWS"] = "ROWS";
2462
- Orientation2["COLUMNS"] = "COLUMNS";
2463
- return Orientation2;
2464
- })(Orientation || {});
2465
- var Crop = /* @__PURE__ */ ((Crop2) => {
2466
- Crop2["FILL"] = "FILL";
2467
- Crop2["FIT"] = "FIT";
2468
- return Crop2;
2469
- })(Crop || {});
2470
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
2471
- ThumbnailsAlignment2["TOP"] = "TOP";
2472
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
2473
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
2474
- ThumbnailsAlignment2["LEFT"] = "LEFT";
2475
- ThumbnailsAlignment2["NONE"] = "NONE";
2476
- return ThumbnailsAlignment2;
2477
- })(ThumbnailsAlignment || {});
2478
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
2479
- GIFType2["NORMAL"] = "NORMAL";
2480
- GIFType2["STICKER"] = "STICKER";
2481
- return GIFType2;
2482
- })(GIFType || {});
2483
- var Source = /* @__PURE__ */ ((Source2) => {
2484
- Source2["HTML"] = "HTML";
2485
- Source2["ADSENSE"] = "ADSENSE";
2486
- Source2["AI"] = "AI";
2487
- Source2["AI_WIDGET"] = "AI_WIDGET";
2488
- return Source2;
2489
- })(Source || {});
2490
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
2491
- StylesPosition2["START"] = "START";
2492
- StylesPosition2["END"] = "END";
2493
- StylesPosition2["TOP"] = "TOP";
2494
- StylesPosition2["HIDDEN"] = "HIDDEN";
2495
- return StylesPosition2;
2496
- })(StylesPosition || {});
2497
- var MapType = /* @__PURE__ */ ((MapType2) => {
2498
- MapType2["ROADMAP"] = "ROADMAP";
2499
- MapType2["SATELITE"] = "SATELITE";
2500
- MapType2["HYBRID"] = "HYBRID";
2501
- MapType2["TERRAIN"] = "TERRAIN";
2502
- return MapType2;
2503
- })(MapType || {});
2504
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
2505
- ViewRole2["CREATOR"] = "CREATOR";
2506
- ViewRole2["VOTERS"] = "VOTERS";
2507
- ViewRole2["EVERYONE"] = "EVERYONE";
2508
- return ViewRole2;
2509
- })(ViewRole || {});
2510
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
2511
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
2512
- VoteRole2["ALL"] = "ALL";
2513
- return VoteRole2;
2514
- })(VoteRole || {});
2515
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
2516
- PollLayoutType2["LIST"] = "LIST";
2517
- PollLayoutType2["GRID"] = "GRID";
2518
- return PollLayoutType2;
2519
- })(PollLayoutType || {});
2520
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
2521
- PollLayoutDirection2["LTR"] = "LTR";
2522
- PollLayoutDirection2["RTL"] = "RTL";
2523
- return PollLayoutDirection2;
2524
- })(PollLayoutDirection || {});
2525
- var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
2526
- PollDesignBackgroundType2["COLOR"] = "COLOR";
2527
- PollDesignBackgroundType2["IMAGE"] = "IMAGE";
2528
- PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
2529
- return PollDesignBackgroundType2;
2530
- })(PollDesignBackgroundType || {});
2531
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
2532
- DecorationType2["BOLD"] = "BOLD";
2533
- DecorationType2["ITALIC"] = "ITALIC";
2534
- DecorationType2["UNDERLINE"] = "UNDERLINE";
2535
- DecorationType2["SPOILER"] = "SPOILER";
2536
- DecorationType2["ANCHOR"] = "ANCHOR";
2537
- DecorationType2["MENTION"] = "MENTION";
2538
- DecorationType2["LINK"] = "LINK";
2539
- DecorationType2["COLOR"] = "COLOR";
2540
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
2541
- DecorationType2["EXTERNAL"] = "EXTERNAL";
2542
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
2543
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
2544
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
2545
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
2546
- DecorationType2["SKETCH"] = "SKETCH";
2547
- return DecorationType2;
2548
- })(DecorationType || {});
2549
- var FontType = /* @__PURE__ */ ((FontType2) => {
2550
- FontType2["PX"] = "PX";
2551
- FontType2["EM"] = "EM";
2552
- return FontType2;
2553
- })(FontType || {});
2554
- var Variant = /* @__PURE__ */ ((Variant2) => {
2555
- Variant2["UNDERLINE"] = "UNDERLINE";
2556
- Variant2["BOX"] = "BOX";
2557
- Variant2["CIRCLE"] = "CIRCLE";
2558
- Variant2["HIGHLIGHT"] = "HIGHLIGHT";
2559
- Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
2560
- Variant2["CROSSED_OFF"] = "CROSSED_OFF";
2561
- return Variant2;
2562
- })(Variant || {});
2563
- var Position = /* @__PURE__ */ ((Position2) => {
2564
- Position2["START"] = "START";
2565
- Position2["END"] = "END";
2566
- Position2["TOP"] = "TOP";
2567
- return Position2;
2568
- })(Position || {});
2569
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
2570
- AspectRatio2["SQUARE"] = "SQUARE";
2571
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
2572
- return AspectRatio2;
2573
- })(AspectRatio || {});
2574
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
2575
- Resizing2["FILL"] = "FILL";
2576
- Resizing2["FIT"] = "FIT";
2577
- return Resizing2;
2578
- })(Resizing || {});
2579
- var Placement = /* @__PURE__ */ ((Placement2) => {
2580
- Placement2["IMAGE"] = "IMAGE";
2581
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
2582
- return Placement2;
2583
- })(Placement || {});
2584
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
2585
- CardStylesType2["CONTAINED"] = "CONTAINED";
2586
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
2587
- return CardStylesType2;
2588
- })(CardStylesType || {});
2589
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
2590
- Alignment2["START"] = "START";
2591
- Alignment2["CENTER"] = "CENTER";
2592
- Alignment2["END"] = "END";
2593
- return Alignment2;
2594
- })(Alignment || {});
2595
- var Layout = /* @__PURE__ */ ((Layout2) => {
2596
- Layout2["STACKED"] = "STACKED";
2597
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
2598
- return Layout2;
2599
- })(Layout || {});
2600
- var AppType = /* @__PURE__ */ ((AppType2) => {
2601
- AppType2["PRODUCT"] = "PRODUCT";
2602
- AppType2["EVENT"] = "EVENT";
2603
- AppType2["BOOKING"] = "BOOKING";
2604
- return AppType2;
2605
- })(AppType || {});
2606
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
2607
- InitialExpandedItems2["FIRST"] = "FIRST";
2608
- InitialExpandedItems2["ALL"] = "ALL";
2609
- InitialExpandedItems2["NONE"] = "NONE";
2610
- return InitialExpandedItems2;
2611
- })(InitialExpandedItems || {});
2612
- var Direction = /* @__PURE__ */ ((Direction2) => {
2613
- Direction2["LTR"] = "LTR";
2614
- Direction2["RTL"] = "RTL";
2615
- return Direction2;
2616
- })(Direction || {});
2617
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
2618
- VerticalAlignment2["TOP"] = "TOP";
2619
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
2620
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
2621
- return VerticalAlignment2;
2622
- })(VerticalAlignment || {});
2623
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
2624
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
2625
- return NullValue2;
2626
- })(NullValue || {});
2627
- var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
2628
- ImageScalingScaling2["AUTO"] = "AUTO";
2629
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
2630
- ImageScalingScaling2["COVER"] = "COVER";
2631
- return ImageScalingScaling2;
2632
- })(ImageScalingScaling || {});
2633
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
2634
- ImagePosition2["CENTER"] = "CENTER";
2635
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
2636
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
2637
- ImagePosition2["TOP"] = "TOP";
2638
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
2639
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
2640
- ImagePosition2["BOTTOM"] = "BOTTOM";
2641
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
2642
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
2643
- return ImagePosition2;
2644
- })(ImagePosition || {});
2645
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
2646
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
2647
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
2648
- return LayoutDataBackgroundType2;
2649
- })(LayoutDataBackgroundType || {});
2650
- var Origin = /* @__PURE__ */ ((Origin2) => {
2651
- Origin2["IMAGE"] = "IMAGE";
2652
- Origin2["LAYOUT"] = "LAYOUT";
2653
- return Origin2;
2654
- })(Origin || {});
2655
- var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
2656
- BannerPosition2["TOP"] = "TOP";
2657
- BannerPosition2["BOTTOM"] = "BOTTOM";
2658
- return BannerPosition2;
2659
- })(BannerPosition || {});
2660
- var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
2661
- LayerEffect2["CENTER"] = "CENTER";
2662
- LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
2663
- LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
2664
- return LayerEffect2;
2665
- })(LayerEffect || {});
2666
- var Shape = /* @__PURE__ */ ((Shape2) => {
2667
- Shape2["ELLIPSE"] = "ELLIPSE";
2668
- Shape2["TILT"] = "TILT";
2669
- Shape2["LIQUID"] = "LIQUID";
2670
- Shape2["LEFT_WAVE"] = "LEFT_WAVE";
2671
- Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
2672
- Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
2673
- Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
2674
- Shape2["DUNES"] = "DUNES";
2675
- Shape2["WAVES"] = "WAVES";
2676
- Shape2["TRIANGLE"] = "TRIANGLE";
2677
- Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
2678
- Shape2["PLANTS"] = "PLANTS";
2679
- Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
2680
- Shape2["PIXELS"] = "PIXELS";
2681
- Shape2["PAINT"] = "PAINT";
2682
- Shape2["CLOUDS"] = "CLOUDS";
2683
- Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
2684
- Shape2["STRIPES"] = "STRIPES";
2685
- Shape2["BLOBS"] = "BLOBS";
2686
- Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
2687
- Shape2["HILL"] = "HILL";
2688
- Shape2["BRUSH"] = "BRUSH";
2689
- Shape2["PEAKS"] = "PEAKS";
2690
- Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
2691
- return Shape2;
2692
- })(Shape || {});
2693
- var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
2694
- BackdropType2["COLOR"] = "COLOR";
2695
- BackdropType2["GRADIENT"] = "GRADIENT";
2696
- return BackdropType2;
2697
- })(BackdropType || {});
2698
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
2699
- VerticalAlignmentAlignment2["TOP"] = "TOP";
2700
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
2701
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
2702
- return VerticalAlignmentAlignment2;
2703
- })(VerticalAlignmentAlignment || {});
2704
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
2705
- ResponsivenessBehaviour2["STACK"] = "STACK";
2706
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
2707
- return ResponsivenessBehaviour2;
2708
- })(ResponsivenessBehaviour || {});
2709
- var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
2710
- DesignTarget2["LAYOUT"] = "LAYOUT";
2711
- DesignTarget2["CELL"] = "CELL";
2712
- return DesignTarget2;
2713
- })(DesignTarget || {});
2714
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
2715
- Scaling2["AUTO"] = "AUTO";
2716
- Scaling2["CONTAIN"] = "CONTAIN";
2717
- Scaling2["COVER"] = "COVER";
2718
- return Scaling2;
2719
- })(Scaling || {});
2720
- var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
2721
- ImagePositionPosition2["CENTER"] = "CENTER";
2722
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
2723
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
2724
- ImagePositionPosition2["TOP"] = "TOP";
2725
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
2726
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
2727
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
2728
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
2729
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
2730
- return ImagePositionPosition2;
2731
- })(ImagePositionPosition || {});
2732
- var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
2733
- CardDataBackgroundType2["COLOR"] = "COLOR";
2734
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
2735
- return CardDataBackgroundType2;
2736
- })(CardDataBackgroundType || {});
2737
- var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
2738
- ListStyle2["PLAIN"] = "PLAIN";
2739
- ListStyle2["NUMBERED"] = "NUMBERED";
2740
- ListStyle2["LETTERS"] = "LETTERS";
2741
- ListStyle2["ROMAN"] = "ROMAN";
2742
- ListStyle2["BULLETED"] = "BULLETED";
2743
- ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
2744
- ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
2745
- return ListStyle2;
2746
- })(ListStyle || {});
2747
- var Indentation = /* @__PURE__ */ ((Indentation2) => {
2748
- Indentation2["NESTED"] = "NESTED";
2749
- Indentation2["FLAT"] = "FLAT";
2750
- return Indentation2;
2751
- })(Indentation || {});
2752
- var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
2753
- SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
2754
- SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
2755
- SmartBlockDataType2["STATS"] = "STATS";
2756
- SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
2757
- SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
2758
- SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
2759
- SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
2760
- SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
2761
- SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
2762
- SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
2763
- SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
2764
- SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
2765
- SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
2766
- SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
2767
- SmartBlockDataType2["TIMELINE"] = "TIMELINE";
2768
- SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
2769
- SmartBlockDataType2["PILLS"] = "PILLS";
2770
- SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
2771
- SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
2772
- SmartBlockDataType2["CIRCLE"] = "CIRCLE";
2773
- SmartBlockDataType2["PYRAMID"] = "PYRAMID";
2774
- SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
2775
- SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
2776
- return SmartBlockDataType2;
2777
- })(SmartBlockDataType || {});
2778
- var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
2779
- ColumnSize2["SMALL"] = "SMALL";
2780
- ColumnSize2["MEDIUM"] = "MEDIUM";
2781
- ColumnSize2["LARGE"] = "LARGE";
2782
- ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
2783
- return ColumnSize2;
2784
- })(ColumnSize || {});
2785
- var PaymentPolicyType = /* @__PURE__ */ ((PaymentPolicyType2) => {
2786
- PaymentPolicyType2["PER_GUEST"] = "PER_GUEST";
2787
- PaymentPolicyType2["FREE"] = "FREE";
2788
- return PaymentPolicyType2;
2789
- })(PaymentPolicyType || {});
2790
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2791
- SortOrder2["ASC"] = "ASC";
2792
- SortOrder2["DESC"] = "DESC";
2793
- return SortOrder2;
2794
- })(SortOrder || {});
2795
- var SortType = /* @__PURE__ */ ((SortType2) => {
2796
- SortType2["COUNT"] = "COUNT";
2797
- SortType2["VALUE"] = "VALUE";
2798
- return SortType2;
2799
- })(SortType || {});
2800
- var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
2801
- SortDirection2["DESC"] = "DESC";
2802
- SortDirection2["ASC"] = "ASC";
2803
- return SortDirection2;
2804
- })(SortDirection || {});
2805
- var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
2806
- MissingValues2["EXCLUDE"] = "EXCLUDE";
2807
- MissingValues2["INCLUDE"] = "INCLUDE";
2808
- return MissingValues2;
2809
- })(MissingValues || {});
2810
- var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
2811
- ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
2812
- ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
2813
- ScalarType2["MIN"] = "MIN";
2814
- ScalarType2["MAX"] = "MAX";
2815
- ScalarType2["SUM"] = "SUM";
2816
- ScalarType2["AVG"] = "AVG";
2817
- return ScalarType2;
2818
- })(ScalarType || {});
2819
- var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
2820
- NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
2821
- NestedAggregationType2["VALUE"] = "VALUE";
2822
- NestedAggregationType2["RANGE"] = "RANGE";
2823
- NestedAggregationType2["SCALAR"] = "SCALAR";
2824
- NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
2825
- return NestedAggregationType2;
2826
- })(NestedAggregationType || {});
2827
- var Interval = /* @__PURE__ */ ((Interval2) => {
2828
- Interval2["YEAR"] = "YEAR";
2829
- Interval2["MONTH"] = "MONTH";
2830
- Interval2["WEEK"] = "WEEK";
2831
- Interval2["DAY"] = "DAY";
2832
- Interval2["HOUR"] = "HOUR";
2833
- Interval2["MINUTE"] = "MINUTE";
2834
- Interval2["SECOND"] = "SECOND";
2835
- return Interval2;
2836
- })(Interval || {});
2837
- var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
2838
- AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
2839
- AggregationType2["VALUE"] = "VALUE";
2840
- AggregationType2["RANGE"] = "RANGE";
2841
- AggregationType2["SCALAR"] = "SCALAR";
2842
- AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
2843
- AggregationType2["NESTED"] = "NESTED";
2844
- return AggregationType2;
2845
- })(AggregationType || {});
2846
- var SearchDetailsMode = /* @__PURE__ */ ((SearchDetailsMode2) => {
2847
- SearchDetailsMode2["OR"] = "OR";
2848
- SearchDetailsMode2["AND"] = "AND";
2849
- return SearchDetailsMode2;
2850
- })(SearchDetailsMode || {});
2851
- var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
2852
- PlacementType2["BEFORE"] = "BEFORE";
2853
- PlacementType2["AFTER"] = "AFTER";
2854
- PlacementType2["REPLACE"] = "REPLACE";
2855
- return PlacementType2;
2856
- })(PlacementType || {});
2857
- var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
2858
- DayOfWeek2["MONDAY"] = "MONDAY";
2859
- DayOfWeek2["TUESDAY"] = "TUESDAY";
2860
- DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
2861
- DayOfWeek2["THURSDAY"] = "THURSDAY";
2862
- DayOfWeek2["FRIDAY"] = "FRIDAY";
2863
- DayOfWeek2["SATURDAY"] = "SATURDAY";
2864
- DayOfWeek2["SUNDAY"] = "SUNDAY";
2865
- return DayOfWeek2;
2866
- })(DayOfWeek || {});
2867
- var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
2868
- ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
2869
- ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
2870
- ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
2871
- return ResolutionMethod2;
2872
- })(ResolutionMethod || {});
2873
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2874
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2875
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2876
- WebhookIdentityType2["MEMBER"] = "MEMBER";
2877
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2878
- WebhookIdentityType2["APP"] = "APP";
2879
- return WebhookIdentityType2;
2880
- })(WebhookIdentityType || {});
2881
- async function createExperience2(experience) {
2882
- const { httpClient, sideEffects } = arguments[1];
2883
- const payload = (0, import_transform_paths2.transformPaths)(
2884
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ experience }, [
2885
- "experience.configuration.displayInfo.richContent"
2886
- ]),
2887
- [
2888
- {
2889
- transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
2890
- paths: [
2891
- { path: "experience.experiencePageUrl" },
2892
- {
2893
- path: "experience.configuration.reservationForm.privacyPolicy.url"
2894
- },
2895
- {
2896
- path: "experience.configuration.reservationForm.termsAndConditions.url"
2897
- }
2898
- ]
2899
- },
2900
- {
2901
- transformFn: import_image.transformSDKImageToRESTImage,
2902
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
2903
- }
2904
- ]
2905
- );
2906
- const reqOpts = createExperience(payload);
2907
- sideEffects?.onSiteCall?.();
2908
- try {
2909
- const result = await httpClient.request(reqOpts);
2910
- sideEffects?.onSuccess?.(result);
2911
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2912
- (0, import_transform_paths2.transformPaths)(result.data, [
2913
- {
2914
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
2915
- paths: [
2916
- { path: "experience.experiencePageUrl" },
2917
- {
2918
- path: "experience.configuration.reservationForm.privacyPolicy.url"
2919
- },
2920
- {
2921
- path: "experience.configuration.reservationForm.termsAndConditions.url"
2922
- }
2923
- ]
2924
- },
2925
- {
2926
- transformFn: import_image2.transformRESTImageToSDKImage,
2927
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
2928
- }
2929
- ]),
2930
- ["experience.configuration.displayInfo.richContent"]
2931
- )?.experience;
2932
- } catch (err) {
2933
- const transformedError = (0, import_transform_error.transformError)(
2934
- err,
2935
- {
2936
- spreadPathsToArguments: {},
2937
- explicitPathsToArguments: { experience: "$[0]" },
2938
- singleArgumentUnchanged: false
2939
- },
2940
- ["experience"]
2941
- );
2942
- sideEffects?.onError?.(err);
2943
- throw transformedError;
2944
- }
2945
- }
2946
- async function getExperience2(experienceId) {
2947
- const { httpClient, sideEffects } = arguments[1];
2948
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2949
- { experienceId },
2950
- []
2951
- );
2952
- const reqOpts = getExperience(payload);
2953
- sideEffects?.onSiteCall?.();
2954
- try {
2955
- const result = await httpClient.request(reqOpts);
2956
- sideEffects?.onSuccess?.(result);
2957
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2958
- (0, import_transform_paths2.transformPaths)(result.data, [
2959
- {
2960
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
2961
- paths: [
2962
- { path: "experience.experiencePageUrl" },
2963
- {
2964
- path: "experience.configuration.reservationForm.privacyPolicy.url"
2965
- },
2966
- {
2967
- path: "experience.configuration.reservationForm.termsAndConditions.url"
2968
- }
2969
- ]
2970
- },
2971
- {
2972
- transformFn: import_image2.transformRESTImageToSDKImage,
2973
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
2974
- }
2975
- ]),
2976
- ["experience.configuration.displayInfo.richContent"]
2977
- )?.experience;
2978
- } catch (err) {
2979
- const transformedError = (0, import_transform_error.transformError)(
2980
- err,
2981
- {
2982
- spreadPathsToArguments: {},
2983
- explicitPathsToArguments: { experienceId: "$[0]" },
2984
- singleArgumentUnchanged: false
2985
- },
2986
- ["experienceId"]
2987
- );
2988
- sideEffects?.onError?.(err);
2989
- throw transformedError;
2990
- }
2991
- }
2992
- async function getExperienceBySlug2(slug) {
2993
- const { httpClient, sideEffects } = arguments[1];
2994
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ slug }, []);
2995
- const reqOpts = getExperienceBySlug(payload);
2996
- sideEffects?.onSiteCall?.();
2997
- try {
2998
- const result = await httpClient.request(reqOpts);
2999
- sideEffects?.onSuccess?.(result);
3000
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3001
- (0, import_transform_paths2.transformPaths)(result.data, [
3002
- {
3003
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3004
- paths: [
3005
- { path: "experience.experiencePageUrl" },
3006
- {
3007
- path: "experience.configuration.reservationForm.privacyPolicy.url"
3008
- },
3009
- {
3010
- path: "experience.configuration.reservationForm.termsAndConditions.url"
3011
- }
3012
- ]
3013
- },
3014
- {
3015
- transformFn: import_image2.transformRESTImageToSDKImage,
3016
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
3017
- }
3018
- ]),
3019
- ["experience.configuration.displayInfo.richContent"]
3020
- );
3021
- } catch (err) {
3022
- const transformedError = (0, import_transform_error.transformError)(
3023
- err,
3024
- {
3025
- spreadPathsToArguments: {},
3026
- explicitPathsToArguments: { slug: "$[0]" },
3027
- singleArgumentUnchanged: false
3028
- },
3029
- ["slug"]
3030
- );
3031
- sideEffects?.onError?.(err);
3032
- throw transformedError;
3033
- }
3034
- }
3035
- async function updateExperience2(_id, experience) {
3036
- const { httpClient, sideEffects } = arguments[2];
3037
- const payload = (0, import_transform_paths2.transformPaths)(
3038
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3039
- { experience: { ...experience, id: _id } },
3040
- ["experience.configuration.displayInfo.richContent"]
3041
- ),
3042
- [
3043
- {
3044
- transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
3045
- paths: [
3046
- { path: "experience.experiencePageUrl" },
3047
- {
3048
- path: "experience.configuration.reservationForm.privacyPolicy.url"
3049
- },
3050
- {
3051
- path: "experience.configuration.reservationForm.termsAndConditions.url"
3052
- }
3053
- ]
3054
- },
3055
- {
3056
- transformFn: import_image.transformSDKImageToRESTImage,
3057
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
3058
- }
3059
- ]
3060
- );
3061
- const reqOpts = updateExperience(payload);
3062
- sideEffects?.onSiteCall?.();
3063
- try {
3064
- const result = await httpClient.request(reqOpts);
3065
- sideEffects?.onSuccess?.(result);
3066
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3067
- (0, import_transform_paths2.transformPaths)(result.data, [
3068
- {
3069
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3070
- paths: [
3071
- { path: "experience.experiencePageUrl" },
3072
- {
3073
- path: "experience.configuration.reservationForm.privacyPolicy.url"
3074
- },
3075
- {
3076
- path: "experience.configuration.reservationForm.termsAndConditions.url"
3077
- }
3078
- ]
3079
- },
3080
- {
3081
- transformFn: import_image2.transformRESTImageToSDKImage,
3082
- paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
3083
- }
3084
- ]),
3085
- ["experience.configuration.displayInfo.richContent"]
3086
- )?.experience;
3087
- } catch (err) {
3088
- const transformedError = (0, import_transform_error.transformError)(
3089
- err,
3090
- {
3091
- spreadPathsToArguments: { experience: "$[1]" },
3092
- explicitPathsToArguments: { "experience.id": "$[0]" },
3093
- singleArgumentUnchanged: false
3094
- },
3095
- ["_id", "experience"]
3096
- );
3097
- sideEffects?.onError?.(err);
3098
- throw transformedError;
3099
- }
3100
- }
3101
- function queryExperiences2() {
3102
- const { httpClient, sideEffects } = arguments[0];
3103
- return (0, import_query_builder.queryBuilder)({
3104
- func: async (payload) => {
3105
- const reqOpts = queryExperiences(payload);
3106
- sideEffects?.onSiteCall?.();
3107
- try {
3108
- const result = await httpClient.request(reqOpts);
3109
- sideEffects?.onSuccess?.(result);
3110
- return result;
3111
- } catch (err) {
3112
- sideEffects?.onError?.(err);
3113
- throw err;
3114
- }
3115
- },
3116
- requestTransformer: (query) => {
3117
- const args = [query, {}];
3118
- return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3119
- { ...args?.[1], query: args?.[0] },
3120
- []
3121
- );
3122
- },
3123
- responseTransformer: ({ data }) => {
3124
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3125
- (0, import_transform_paths2.transformPaths)(data, [
3126
- {
3127
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3128
- paths: [
3129
- { path: "experiences.experiencePageUrl" },
3130
- {
3131
- path: "experiences.configuration.reservationForm.privacyPolicy.url"
3132
- },
3133
- {
3134
- path: "experiences.configuration.reservationForm.termsAndConditions.url"
3135
- }
3136
- ]
3137
- },
3138
- {
3139
- transformFn: import_image2.transformRESTImageToSDKImage,
3140
- paths: [
3141
- { path: "experiences.configuration.displayInfo.coverImage" }
3142
- ]
3143
- }
3144
- ]),
3145
- ["experiences.configuration.displayInfo.richContent"]
3146
- );
3147
- return {
3148
- items: transformedData?.experiences,
3149
- pagingMetadata: transformedData?.pagingMetadata
3150
- };
3151
- },
3152
- errorTransformer: (err) => {
3153
- const transformedError = (0, import_transform_error.transformError)(err, {
3154
- spreadPathsToArguments: {},
3155
- explicitPathsToArguments: { query: "$[0]" },
3156
- singleArgumentUnchanged: false
3157
- });
3158
- throw transformedError;
3159
- },
3160
- pagingMethod: "CURSOR",
3161
- transformationPaths: {}
3162
- });
3163
- }
3164
- async function typedQueryExperiences(query) {
3165
- const { httpClient, sideEffects } = arguments[1];
3166
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
3167
- const reqOpts = queryExperiences(payload);
3168
- sideEffects?.onSiteCall?.();
3169
- try {
3170
- const result = await httpClient.request(reqOpts);
3171
- sideEffects?.onSuccess?.(result);
3172
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3173
- (0, import_transform_paths2.transformPaths)(result.data, [
3174
- {
3175
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3176
- paths: [
3177
- { path: "experiences.experiencePageUrl" },
3178
- {
3179
- path: "experiences.configuration.reservationForm.privacyPolicy.url"
3180
- },
3181
- {
3182
- path: "experiences.configuration.reservationForm.termsAndConditions.url"
3183
- }
3184
- ]
3185
- },
3186
- {
3187
- transformFn: import_image2.transformRESTImageToSDKImage,
3188
- paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
3189
- }
3190
- ]),
3191
- ["experiences.configuration.displayInfo.richContent"]
3192
- );
3193
- } catch (err) {
3194
- const transformedError = (0, import_transform_error.transformError)(
3195
- err,
3196
- {
3197
- spreadPathsToArguments: {},
3198
- explicitPathsToArguments: { query: "$[0]" },
3199
- singleArgumentUnchanged: false
3200
- },
3201
- ["query"]
3202
- );
3203
- sideEffects?.onError?.(err);
3204
- throw transformedError;
3205
- }
3206
- }
3207
- var utils = {
3208
- query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)(),
3209
- search: /* @__PURE__ */ (0, import_search_builder_utils.createSearchUtils)()
3210
- };
3211
- async function searchExperiences2(search) {
3212
- const { httpClient, sideEffects } = arguments[1];
3213
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search }, []);
3214
- const reqOpts = searchExperiences(payload);
3215
- sideEffects?.onSiteCall?.();
3216
- try {
3217
- const result = await httpClient.request(reqOpts);
3218
- sideEffects?.onSuccess?.(result);
3219
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3220
- (0, import_transform_paths2.transformPaths)(result.data, [
3221
- {
3222
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3223
- paths: [
3224
- { path: "experiences.experiencePageUrl" },
3225
- {
3226
- path: "experiences.configuration.reservationForm.privacyPolicy.url"
3227
- },
3228
- {
3229
- path: "experiences.configuration.reservationForm.termsAndConditions.url"
3230
- }
3231
- ]
3232
- },
3233
- {
3234
- transformFn: import_image2.transformRESTImageToSDKImage,
3235
- paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
3236
- }
3237
- ]),
3238
- ["experiences.configuration.displayInfo.richContent"]
3239
- );
3240
- } catch (err) {
3241
- const transformedError = (0, import_transform_error.transformError)(
3242
- err,
3243
- {
3244
- spreadPathsToArguments: {},
3245
- explicitPathsToArguments: { search: "$[0]" },
3246
- singleArgumentUnchanged: false
3247
- },
3248
- ["search"]
3249
- );
3250
- sideEffects?.onError?.(err);
3251
- throw transformedError;
3252
- }
3253
- }
3254
- async function bulkUpdateExperiences2(experiences, options) {
3255
- const { httpClient, sideEffects } = arguments[2];
3256
- const payload = (0, import_transform_paths2.transformPaths)(
3257
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3258
- { experiences, returnEntity: options?.returnEntity },
3259
- ["experiences.experience.configuration.displayInfo.richContent"]
3260
- ),
3261
- [
3262
- {
3263
- transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
3264
- paths: [
3265
- { path: "experiences.experience.experiencePageUrl" },
3266
- {
3267
- path: "experiences.experience.configuration.reservationForm.privacyPolicy.url"
3268
- },
3269
- {
3270
- path: "experiences.experience.configuration.reservationForm.termsAndConditions.url"
3271
- }
3272
- ]
3273
- },
3274
- {
3275
- transformFn: import_image.transformSDKImageToRESTImage,
3276
- paths: [
3277
- {
3278
- path: "experiences.experience.configuration.displayInfo.coverImage"
3279
- }
3280
- ]
3281
- }
3282
- ]
3283
- );
3284
- const reqOpts = bulkUpdateExperiences(payload);
3285
- sideEffects?.onSiteCall?.();
3286
- try {
3287
- const result = await httpClient.request(reqOpts);
3288
- sideEffects?.onSuccess?.(result);
3289
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3290
- (0, import_transform_paths2.transformPaths)(result.data, [
3291
- {
3292
- transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
3293
- paths: [
3294
- { path: "results.item.experiencePageUrl" },
3295
- {
3296
- path: "results.item.configuration.reservationForm.privacyPolicy.url"
3297
- },
3298
- {
3299
- path: "results.item.configuration.reservationForm.termsAndConditions.url"
3300
- }
3301
- ]
3302
- },
3303
- {
3304
- transformFn: import_image2.transformRESTImageToSDKImage,
3305
- paths: [
3306
- { path: "results.item.configuration.displayInfo.coverImage" }
3307
- ]
3308
- }
3309
- ]),
3310
- ["results.item.configuration.displayInfo.richContent"]
3311
- );
3312
- } catch (err) {
3313
- const transformedError = (0, import_transform_error.transformError)(
3314
- err,
3315
- {
3316
- spreadPathsToArguments: {},
3317
- explicitPathsToArguments: {
3318
- experiences: "$[0]",
3319
- returnEntity: "$[1].returnEntity"
3320
- },
3321
- singleArgumentUnchanged: false
3322
- },
3323
- ["experiences", "options"]
3324
- );
3325
- sideEffects?.onError?.(err);
3326
- throw transformedError;
3327
- }
3328
- }
3329
- async function bulkUpdateExperienceTags2(experienceIds, options) {
3330
- const { httpClient, sideEffects } = arguments[2];
3331
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3332
- {
3333
- experienceIds,
3334
- assignTags: options?.assignTags,
3335
- unassignTags: options?.unassignTags
3336
- },
3337
- []
3338
- );
3339
- const reqOpts = bulkUpdateExperienceTags(
3340
- payload
3341
- );
3342
- sideEffects?.onSiteCall?.();
3343
- try {
3344
- const result = await httpClient.request(reqOpts);
3345
- sideEffects?.onSuccess?.(result);
3346
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3347
- } catch (err) {
3348
- const transformedError = (0, import_transform_error.transformError)(
3349
- err,
3350
- {
3351
- spreadPathsToArguments: {},
3352
- explicitPathsToArguments: {
3353
- experienceIds: "$[0]",
3354
- assignTags: "$[1].assignTags",
3355
- unassignTags: "$[1].unassignTags"
3356
- },
3357
- singleArgumentUnchanged: false
3358
- },
3359
- ["experienceIds", "options"]
3360
- );
3361
- sideEffects?.onError?.(err);
3362
- throw transformedError;
3363
- }
3364
- }
3365
- async function bulkUpdateExperienceTagsByFilter2(filter, options) {
3366
- const { httpClient, sideEffects } = arguments[2];
3367
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3368
- {
3369
- filter,
3370
- assignTags: options?.assignTags,
3371
- unassignTags: options?.unassignTags
3372
- },
3373
- []
3374
- );
3375
- const reqOpts = bulkUpdateExperienceTagsByFilter(
3376
- payload
3377
- );
3378
- sideEffects?.onSiteCall?.();
3379
- try {
3380
- const result = await httpClient.request(reqOpts);
3381
- sideEffects?.onSuccess?.(result);
3382
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3383
- } catch (err) {
3384
- const transformedError = (0, import_transform_error.transformError)(
3385
- err,
3386
- {
3387
- spreadPathsToArguments: {},
3388
- explicitPathsToArguments: {
3389
- filter: "$[0]",
3390
- assignTags: "$[1].assignTags",
3391
- unassignTags: "$[1].unassignTags"
3392
- },
3393
- singleArgumentUnchanged: false
3394
- },
3395
- ["filter", "options"]
3396
- );
3397
- sideEffects?.onError?.(err);
3398
- throw transformedError;
3399
- }
3400
- }
3401
- async function bulkArchiveExperiences2(experienceIds) {
3402
- const { httpClient, sideEffects } = arguments[1];
3403
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3404
- { experienceIds },
3405
- []
3406
- );
3407
- const reqOpts = bulkArchiveExperiences(payload);
3408
- sideEffects?.onSiteCall?.();
3409
- try {
3410
- const result = await httpClient.request(reqOpts);
3411
- sideEffects?.onSuccess?.(result);
3412
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3413
- } catch (err) {
3414
- const transformedError = (0, import_transform_error.transformError)(
3415
- err,
3416
- {
3417
- spreadPathsToArguments: {},
3418
- explicitPathsToArguments: { experienceIds: "$[0]" },
3419
- singleArgumentUnchanged: false
3420
- },
3421
- ["experienceIds"]
3422
- );
3423
- sideEffects?.onError?.(err);
3424
- throw transformedError;
3425
- }
3426
- }
3427
- async function bulkUnarchiveExperiences2(experienceIds) {
3428
- const { httpClient, sideEffects } = arguments[1];
3429
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3430
- { experienceIds },
3431
- []
3432
- );
3433
- const reqOpts = bulkUnarchiveExperiences(
3434
- payload
3435
- );
3436
- sideEffects?.onSiteCall?.();
3437
- try {
3438
- const result = await httpClient.request(reqOpts);
3439
- sideEffects?.onSuccess?.(result);
3440
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3441
- } catch (err) {
3442
- const transformedError = (0, import_transform_error.transformError)(
3443
- err,
3444
- {
3445
- spreadPathsToArguments: {},
3446
- explicitPathsToArguments: { experienceIds: "$[0]" },
3447
- singleArgumentUnchanged: false
3448
- },
3449
- ["experienceIds"]
3450
- );
3451
- sideEffects?.onError?.(err);
3452
- throw transformedError;
3453
- }
3454
- }
3455
- // Annotate the CommonJS export names for ESM import in node:
3456
- 0 && (module.exports = {
3457
- AggregationType,
3458
- Alignment,
3459
- AppType,
3460
- AspectRatio,
3461
- BackdropType,
3462
- BackgroundType,
3463
- BannerPosition,
3464
- ButtonDataType,
3465
- CardDataBackgroundType,
3466
- CardStylesType,
3467
- ColumnSize,
3468
- Crop,
3469
- DayOfWeek,
3470
- DecorationType,
3471
- DesignTarget,
3472
- Direction,
3473
- DividerDataAlignment,
3474
- EntranceEffectType,
3475
- FontType,
3476
- GIFType,
3477
- GradientType,
3478
- ImagePosition,
3479
- ImagePositionPosition,
3480
- ImageScalingScaling,
3481
- Indentation,
3482
- InitialExpandedItems,
3483
- Interval,
3484
- LayerEffect,
3485
- Layout,
3486
- LayoutDataBackgroundType,
3487
- LayoutType,
3488
- LineCap,
3489
- LineStyle,
3490
- ListStyle,
3491
- LoopEffectType,
3492
- MapType,
3493
- MissingValues,
3494
- Mode,
3495
- NestedAggregationType,
3496
- NodeType,
3497
- NullValue,
3498
- Orientation,
3499
- Origin,
3500
- PaymentPolicyType,
3501
- Placement,
3502
- PlacementType,
3503
- PluginContainerDataAlignment,
3504
- PointerEffectType,
3505
- PollDesignBackgroundType,
3506
- PollLayoutDirection,
3507
- PollLayoutType,
3508
- Position,
3509
- Recurrence,
3510
- Resizing,
3511
- ResolutionMethod,
3512
- ResponsivenessBehaviour,
3513
- ScalarType,
3514
- Scaling,
3515
- SearchDetailsMode,
3516
- Shape,
3517
- SmartBlockDataType,
3518
- SortDirection,
3519
- SortOrder,
3520
- SortType,
3521
- Source,
3522
- StartDaysAndTimesDayOfWeek,
3523
- StylesPosition,
3524
- TableAssignmentType,
3525
- TableAvailabilityType,
3526
- TableManagementMode,
3527
- Target,
3528
- TextAlignment,
3529
- ThumbnailsAlignment,
3530
- Type,
3531
- Unit,
3532
- Variant,
3533
- VerticalAlignment,
3534
- VerticalAlignmentAlignment,
3535
- ViewMode,
3536
- ViewRole,
3537
- VoteRole,
3538
- WebhookIdentityType,
3539
- Width,
3540
- WidthType,
3541
- bulkArchiveExperiences,
3542
- bulkUnarchiveExperiences,
3543
- bulkUpdateExperienceTags,
3544
- bulkUpdateExperienceTagsByFilter,
3545
- bulkUpdateExperiences,
3546
- createExperience,
3547
- getExperience,
3548
- getExperienceBySlug,
3549
- queryExperiences,
3550
- searchExperiences,
3551
- typedQueryExperiences,
3552
- updateExperience,
3553
- utils
3554
- });
3555
- //# sourceMappingURL=index.typings.js.map