@wix/auto_sdk_table-reservations_experiences 1.0.0

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