@wix/auto_sdk_events_wix-events-v-2 1.0.37 → 1.0.39

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 (29) hide show
  1. package/build/cjs/index.d.ts +65 -58
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/{events-v3-event-wix-events-v-2.universal-DItP6oop.d.ts → index.typings.d.ts} +647 -126
  4. package/build/cjs/index.typings.js +2154 -0
  5. package/build/cjs/index.typings.js.map +1 -0
  6. package/build/cjs/meta.d.ts +25 -24
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/index.d.mts +65 -58
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/{events-v3-event-wix-events-v-2.universal-DItP6oop.d.mts → index.typings.d.mts} +647 -126
  11. package/build/es/index.typings.mjs +2057 -0
  12. package/build/es/index.typings.mjs.map +1 -0
  13. package/build/es/meta.d.mts +25 -24
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/internal/cjs/index.d.ts +65 -58
  16. package/build/internal/cjs/index.js.map +1 -1
  17. package/build/internal/cjs/{events-v3-event-wix-events-v-2.universal-DItP6oop.d.ts → index.typings.d.ts} +647 -126
  18. package/build/internal/cjs/index.typings.js +2154 -0
  19. package/build/internal/cjs/index.typings.js.map +1 -0
  20. package/build/internal/cjs/meta.d.ts +25 -24
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/index.d.mts +65 -58
  23. package/build/internal/es/index.mjs.map +1 -1
  24. package/build/internal/es/{events-v3-event-wix-events-v-2.universal-DItP6oop.d.mts → index.typings.d.mts} +647 -126
  25. package/build/internal/es/index.typings.mjs +2057 -0
  26. package/build/internal/es/index.typings.mjs.map +1 -0
  27. package/build/internal/es/meta.d.mts +25 -24
  28. package/build/internal/es/meta.mjs.map +1 -1
  29. package/package.json +3 -3
@@ -0,0 +1,2154 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.typings.ts
21
+ var index_typings_exports = {};
22
+ __export(index_typings_exports, {
23
+ Alignment: () => Alignment,
24
+ AppType: () => AppType,
25
+ BackgroundType: () => BackgroundType,
26
+ BadgeTypeType: () => BadgeTypeType,
27
+ ButtonDataType: () => ButtonDataType,
28
+ CategoryTypeType: () => CategoryTypeType,
29
+ CommonSortOrder: () => CommonSortOrder,
30
+ ConferenceType: () => ConferenceType,
31
+ ConferenceTypeType: () => ConferenceTypeType,
32
+ Crop: () => Crop,
33
+ DecorationType: () => DecorationType,
34
+ Direction: () => Direction,
35
+ EventStatus: () => EventStatus,
36
+ EventType: () => EventType,
37
+ EventsRecurrenceStatusStatus: () => EventsRecurrenceStatusStatus,
38
+ EventsTaxType: () => EventsTaxType,
39
+ FontType: () => FontType,
40
+ GIFType: () => GIFType,
41
+ GuestTypeType: () => GuestTypeType,
42
+ InitialExpandedItems: () => InitialExpandedItems,
43
+ InitialRegistrationTypeType: () => InitialRegistrationTypeType,
44
+ InputControlType: () => InputControlType,
45
+ LayoutType: () => LayoutType,
46
+ LineStyle: () => LineStyle,
47
+ LocationLocationType: () => LocationLocationType,
48
+ LocationType: () => LocationType,
49
+ MapType: () => MapType,
50
+ NodeType: () => NodeType,
51
+ NullValue: () => NullValue,
52
+ Orientation: () => Orientation,
53
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
54
+ PollLayoutDirection: () => PollLayoutDirection,
55
+ PollLayoutType: () => PollLayoutType,
56
+ Position: () => Position,
57
+ RecurrenceStatusStatus: () => RecurrenceStatusStatus,
58
+ RegistrationStatus: () => RegistrationStatus,
59
+ RegistrationStatusStatus: () => RegistrationStatusStatus,
60
+ RegistrationTypeType: () => RegistrationTypeType,
61
+ Relation: () => Relation,
62
+ RequestedFields: () => RequestedFields,
63
+ ResponseType: () => ResponseType,
64
+ RsvpStatusOptions: () => RsvpStatusOptions,
65
+ SortOrder: () => SortOrder,
66
+ Source: () => Source,
67
+ State: () => State,
68
+ Status: () => Status,
69
+ SubdivisionSubdivisionType: () => SubdivisionSubdivisionType,
70
+ SubdivisionType: () => SubdivisionType,
71
+ Target: () => Target,
72
+ TaxType: () => TaxType,
73
+ TextAlignment: () => TextAlignment,
74
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
75
+ Type: () => Type,
76
+ ValueType: () => ValueType,
77
+ VerticalAlignment: () => VerticalAlignment,
78
+ ViewMode: () => ViewMode,
79
+ ViewRole: () => ViewRole,
80
+ VisitorType: () => VisitorType,
81
+ VoteRole: () => VoteRole,
82
+ WebhookIdentityType: () => WebhookIdentityType,
83
+ Width: () => Width,
84
+ WidthType: () => WidthType,
85
+ bulkCancelEventsByFilter: () => bulkCancelEventsByFilter2,
86
+ bulkDeleteEventsByFilter: () => bulkDeleteEventsByFilter2,
87
+ cancelEvent: () => cancelEvent2,
88
+ cloneEvent: () => cloneEvent2,
89
+ countEventsByStatus: () => countEventsByStatus2,
90
+ createEvent: () => createEvent2,
91
+ deleteEvent: () => deleteEvent2,
92
+ getEvent: () => getEvent2,
93
+ getEventBySlug: () => getEventBySlug2,
94
+ publishDraftEvent: () => publishDraftEvent2,
95
+ queryEvents: () => queryEvents2,
96
+ updateEvent: () => updateEvent2
97
+ });
98
+ module.exports = __toCommonJS(index_typings_exports);
99
+
100
+ // src/events-v3-event-wix-events-v-2.universal.ts
101
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
102
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
103
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
104
+
105
+ // src/events-v3-event-wix-events-v-2.http.ts
106
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
107
+ var import_float = require("@wix/sdk-runtime/transformations/float");
108
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
109
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
110
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
111
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
112
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
113
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
114
+ function resolveWixEventsEventsV3EventManagementUrl(opts) {
115
+ const domainToMappings = {
116
+ "www.wixapis.com": [
117
+ {
118
+ srcPath: "/events/v3/events",
119
+ destPath: "/v3/events"
120
+ },
121
+ {
122
+ srcPath: "/events/v3/bulk/events",
123
+ destPath: "/v3/bulk/events"
124
+ }
125
+ ],
126
+ "api._api_base_domain_": [
127
+ {
128
+ srcPath: "/events-events-v3-adapter",
129
+ destPath: ""
130
+ }
131
+ ],
132
+ "manage._base_domain_": [
133
+ {
134
+ srcPath: "/_api/events-events-v3-adapter",
135
+ destPath: ""
136
+ }
137
+ ],
138
+ "editor.wixapps.net": [
139
+ {
140
+ srcPath: "/_api/events-events-v3-adapter",
141
+ destPath: ""
142
+ }
143
+ ],
144
+ "editor._base_domain_": [
145
+ {
146
+ srcPath: "/_api/events-events-v3-adapter",
147
+ destPath: ""
148
+ }
149
+ ],
150
+ "blocks._base_domain_": [
151
+ {
152
+ srcPath: "/_api/events-events-v3-adapter",
153
+ destPath: ""
154
+ }
155
+ ],
156
+ "create.editorx": [
157
+ {
158
+ srcPath: "/_api/events-events-v3-adapter",
159
+ destPath: ""
160
+ }
161
+ ],
162
+ "*.dev.wix-code.com": [
163
+ {
164
+ srcPath: "/_api/events-events-v3-adapter",
165
+ destPath: ""
166
+ }
167
+ ],
168
+ _: [
169
+ {
170
+ srcPath: "/_api/events-events-v3-adapter",
171
+ destPath: ""
172
+ }
173
+ ]
174
+ };
175
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
176
+ }
177
+ var PACKAGE_NAME = "@wix/auto_sdk_events_wix-events-v-2";
178
+ function createEvent(payload) {
179
+ function __createEvent({ host }) {
180
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
181
+ {
182
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
183
+ paths: [
184
+ { path: "event.createdDate" },
185
+ { path: "event.updatedDate" },
186
+ { path: "event.publishedDate" },
187
+ { path: "event.dateAndTimeSettings.startDate" },
188
+ { path: "event.dateAndTimeSettings.endDate" },
189
+ {
190
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
191
+ },
192
+ {
193
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
194
+ },
195
+ { path: "event.mainImage.urlExpirationDate" },
196
+ { path: "event.registration.rsvp.startDate" },
197
+ { path: "event.registration.rsvp.endDate" },
198
+ { path: "event.categories.categories.createdDate" },
199
+ { path: "event.description.metadata.createdTimestamp" },
200
+ { path: "event.description.metadata.updatedTimestamp" },
201
+ { path: "event.badges.badges.functionUpdateDate" }
202
+ ]
203
+ },
204
+ {
205
+ transformFn: import_float.transformSDKFloatToRESTFloat,
206
+ paths: [
207
+ { path: "event.location.address.geocode.latitude" },
208
+ { path: "event.location.address.geocode.longitude" },
209
+ {
210
+ path: "event.description.nodes.galleryData.items.image.media.duration"
211
+ },
212
+ {
213
+ path: "event.description.nodes.galleryData.items.video.media.duration"
214
+ },
215
+ {
216
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
217
+ },
218
+ { path: "event.description.nodes.galleryData.options.item.ratio" },
219
+ { path: "event.description.nodes.imageData.image.duration" },
220
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
221
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
222
+ { path: "event.description.nodes.pollData.poll.image.duration" },
223
+ {
224
+ path: "event.description.nodes.pollData.poll.options.image.duration"
225
+ },
226
+ {
227
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
228
+ },
229
+ { path: "event.description.nodes.appEmbedData.image.duration" },
230
+ { path: "event.description.nodes.videoData.video.duration" },
231
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
232
+ { path: "event.description.nodes.audioData.audio.duration" },
233
+ { path: "event.description.nodes.audioData.coverImage.duration" }
234
+ ]
235
+ }
236
+ ]);
237
+ const metadata = {
238
+ entityFqdn: "wix.events.v3.event",
239
+ method: "POST",
240
+ methodFqn: "wix.events.events.v3.EventManagement.CreateEvent",
241
+ packageName: PACKAGE_NAME,
242
+ url: resolveWixEventsEventsV3EventManagementUrl({
243
+ protoPath: "/v3/events",
244
+ data: serializedData,
245
+ host
246
+ }),
247
+ data: serializedData,
248
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
249
+ {
250
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
251
+ paths: [
252
+ { path: "event.createdDate" },
253
+ { path: "event.updatedDate" },
254
+ { path: "event.publishedDate" },
255
+ { path: "event.dateAndTimeSettings.startDate" },
256
+ { path: "event.dateAndTimeSettings.endDate" },
257
+ {
258
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
259
+ },
260
+ {
261
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
262
+ },
263
+ { path: "event.mainImage.urlExpirationDate" },
264
+ { path: "event.registration.rsvp.startDate" },
265
+ { path: "event.registration.rsvp.endDate" },
266
+ { path: "event.categories.categories.createdDate" },
267
+ { path: "event.description.metadata.createdTimestamp" },
268
+ { path: "event.description.metadata.updatedTimestamp" },
269
+ { path: "event.badges.badges.functionUpdateDate" }
270
+ ]
271
+ },
272
+ {
273
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
274
+ paths: [
275
+ { path: "event.location.address.geocode.latitude" },
276
+ { path: "event.location.address.geocode.longitude" },
277
+ {
278
+ path: "event.description.nodes.galleryData.items.image.media.duration"
279
+ },
280
+ {
281
+ path: "event.description.nodes.galleryData.items.video.media.duration"
282
+ },
283
+ {
284
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
285
+ },
286
+ {
287
+ path: "event.description.nodes.galleryData.options.item.ratio"
288
+ },
289
+ { path: "event.description.nodes.imageData.image.duration" },
290
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
291
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
292
+ { path: "event.description.nodes.pollData.poll.image.duration" },
293
+ {
294
+ path: "event.description.nodes.pollData.poll.options.image.duration"
295
+ },
296
+ {
297
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
298
+ },
299
+ { path: "event.description.nodes.appEmbedData.image.duration" },
300
+ { path: "event.description.nodes.videoData.video.duration" },
301
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
302
+ { path: "event.description.nodes.audioData.audio.duration" },
303
+ { path: "event.description.nodes.audioData.coverImage.duration" }
304
+ ]
305
+ }
306
+ ])
307
+ };
308
+ return metadata;
309
+ }
310
+ return __createEvent;
311
+ }
312
+ function cloneEvent(payload) {
313
+ function __cloneEvent({ host }) {
314
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
315
+ {
316
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
317
+ paths: [{ path: "fieldmask" }]
318
+ },
319
+ {
320
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
321
+ paths: [
322
+ { path: "event.createdDate" },
323
+ { path: "event.updatedDate" },
324
+ { path: "event.publishedDate" },
325
+ { path: "event.dateAndTimeSettings.startDate" },
326
+ { path: "event.dateAndTimeSettings.endDate" },
327
+ {
328
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
329
+ },
330
+ {
331
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
332
+ },
333
+ { path: "event.mainImage.urlExpirationDate" },
334
+ { path: "event.registration.rsvp.startDate" },
335
+ { path: "event.registration.rsvp.endDate" },
336
+ { path: "event.categories.categories.createdDate" },
337
+ { path: "event.description.metadata.createdTimestamp" },
338
+ { path: "event.description.metadata.updatedTimestamp" },
339
+ { path: "event.badges.badges.functionUpdateDate" }
340
+ ]
341
+ },
342
+ {
343
+ transformFn: import_float.transformSDKFloatToRESTFloat,
344
+ paths: [
345
+ { path: "event.location.address.geocode.latitude" },
346
+ { path: "event.location.address.geocode.longitude" },
347
+ {
348
+ path: "event.description.nodes.galleryData.items.image.media.duration"
349
+ },
350
+ {
351
+ path: "event.description.nodes.galleryData.items.video.media.duration"
352
+ },
353
+ {
354
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
355
+ },
356
+ { path: "event.description.nodes.galleryData.options.item.ratio" },
357
+ { path: "event.description.nodes.imageData.image.duration" },
358
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
359
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
360
+ { path: "event.description.nodes.pollData.poll.image.duration" },
361
+ {
362
+ path: "event.description.nodes.pollData.poll.options.image.duration"
363
+ },
364
+ {
365
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
366
+ },
367
+ { path: "event.description.nodes.appEmbedData.image.duration" },
368
+ { path: "event.description.nodes.videoData.video.duration" },
369
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
370
+ { path: "event.description.nodes.audioData.audio.duration" },
371
+ { path: "event.description.nodes.audioData.coverImage.duration" }
372
+ ]
373
+ }
374
+ ]);
375
+ const metadata = {
376
+ entityFqdn: "wix.events.v3.event",
377
+ method: "POST",
378
+ methodFqn: "wix.events.events.v3.EventManagement.CloneEvent",
379
+ packageName: PACKAGE_NAME,
380
+ url: resolveWixEventsEventsV3EventManagementUrl({
381
+ protoPath: "/v3/events/{eventId}/clone",
382
+ data: serializedData,
383
+ host
384
+ }),
385
+ data: serializedData,
386
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
387
+ {
388
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
389
+ paths: [
390
+ { path: "event.createdDate" },
391
+ { path: "event.updatedDate" },
392
+ { path: "event.publishedDate" },
393
+ { path: "event.dateAndTimeSettings.startDate" },
394
+ { path: "event.dateAndTimeSettings.endDate" },
395
+ {
396
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
397
+ },
398
+ {
399
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
400
+ },
401
+ { path: "event.mainImage.urlExpirationDate" },
402
+ { path: "event.registration.rsvp.startDate" },
403
+ { path: "event.registration.rsvp.endDate" },
404
+ { path: "event.categories.categories.createdDate" },
405
+ { path: "event.description.metadata.createdTimestamp" },
406
+ { path: "event.description.metadata.updatedTimestamp" },
407
+ { path: "event.badges.badges.functionUpdateDate" }
408
+ ]
409
+ },
410
+ {
411
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
412
+ paths: [
413
+ { path: "event.location.address.geocode.latitude" },
414
+ { path: "event.location.address.geocode.longitude" },
415
+ {
416
+ path: "event.description.nodes.galleryData.items.image.media.duration"
417
+ },
418
+ {
419
+ path: "event.description.nodes.galleryData.items.video.media.duration"
420
+ },
421
+ {
422
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
423
+ },
424
+ {
425
+ path: "event.description.nodes.galleryData.options.item.ratio"
426
+ },
427
+ { path: "event.description.nodes.imageData.image.duration" },
428
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
429
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
430
+ { path: "event.description.nodes.pollData.poll.image.duration" },
431
+ {
432
+ path: "event.description.nodes.pollData.poll.options.image.duration"
433
+ },
434
+ {
435
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
436
+ },
437
+ { path: "event.description.nodes.appEmbedData.image.duration" },
438
+ { path: "event.description.nodes.videoData.video.duration" },
439
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
440
+ { path: "event.description.nodes.audioData.audio.duration" },
441
+ { path: "event.description.nodes.audioData.coverImage.duration" }
442
+ ]
443
+ }
444
+ ])
445
+ };
446
+ return metadata;
447
+ }
448
+ return __cloneEvent;
449
+ }
450
+ function updateEvent(payload) {
451
+ function __updateEvent({ host }) {
452
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
453
+ {
454
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
455
+ paths: [{ path: "fieldmask" }]
456
+ },
457
+ {
458
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
459
+ paths: [
460
+ { path: "event.createdDate" },
461
+ { path: "event.updatedDate" },
462
+ { path: "event.publishedDate" },
463
+ { path: "event.dateAndTimeSettings.startDate" },
464
+ { path: "event.dateAndTimeSettings.endDate" },
465
+ {
466
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
467
+ },
468
+ {
469
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
470
+ },
471
+ { path: "event.mainImage.urlExpirationDate" },
472
+ { path: "event.registration.rsvp.startDate" },
473
+ { path: "event.registration.rsvp.endDate" },
474
+ { path: "event.categories.categories.createdDate" },
475
+ { path: "event.description.metadata.createdTimestamp" },
476
+ { path: "event.description.metadata.updatedTimestamp" },
477
+ { path: "event.badges.badges.functionUpdateDate" }
478
+ ]
479
+ },
480
+ {
481
+ transformFn: import_float.transformSDKFloatToRESTFloat,
482
+ paths: [
483
+ { path: "event.location.address.geocode.latitude" },
484
+ { path: "event.location.address.geocode.longitude" },
485
+ {
486
+ path: "event.description.nodes.galleryData.items.image.media.duration"
487
+ },
488
+ {
489
+ path: "event.description.nodes.galleryData.items.video.media.duration"
490
+ },
491
+ {
492
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
493
+ },
494
+ { path: "event.description.nodes.galleryData.options.item.ratio" },
495
+ { path: "event.description.nodes.imageData.image.duration" },
496
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
497
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
498
+ { path: "event.description.nodes.pollData.poll.image.duration" },
499
+ {
500
+ path: "event.description.nodes.pollData.poll.options.image.duration"
501
+ },
502
+ {
503
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
504
+ },
505
+ { path: "event.description.nodes.appEmbedData.image.duration" },
506
+ { path: "event.description.nodes.videoData.video.duration" },
507
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
508
+ { path: "event.description.nodes.audioData.audio.duration" },
509
+ { path: "event.description.nodes.audioData.coverImage.duration" }
510
+ ]
511
+ }
512
+ ]);
513
+ const metadata = {
514
+ entityFqdn: "wix.events.v3.event",
515
+ method: "PATCH",
516
+ methodFqn: "wix.events.events.v3.EventManagement.UpdateEvent",
517
+ packageName: PACKAGE_NAME,
518
+ url: resolveWixEventsEventsV3EventManagementUrl({
519
+ protoPath: "/v3/events/{event.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: "event.createdDate" },
529
+ { path: "event.updatedDate" },
530
+ { path: "event.publishedDate" },
531
+ { path: "event.dateAndTimeSettings.startDate" },
532
+ { path: "event.dateAndTimeSettings.endDate" },
533
+ {
534
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
535
+ },
536
+ {
537
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
538
+ },
539
+ { path: "event.mainImage.urlExpirationDate" },
540
+ { path: "event.registration.rsvp.startDate" },
541
+ { path: "event.registration.rsvp.endDate" },
542
+ { path: "event.categories.categories.createdDate" },
543
+ { path: "event.description.metadata.createdTimestamp" },
544
+ { path: "event.description.metadata.updatedTimestamp" },
545
+ { path: "event.badges.badges.functionUpdateDate" }
546
+ ]
547
+ },
548
+ {
549
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
550
+ paths: [
551
+ { path: "event.location.address.geocode.latitude" },
552
+ { path: "event.location.address.geocode.longitude" },
553
+ {
554
+ path: "event.description.nodes.galleryData.items.image.media.duration"
555
+ },
556
+ {
557
+ path: "event.description.nodes.galleryData.items.video.media.duration"
558
+ },
559
+ {
560
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
561
+ },
562
+ {
563
+ path: "event.description.nodes.galleryData.options.item.ratio"
564
+ },
565
+ { path: "event.description.nodes.imageData.image.duration" },
566
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
567
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
568
+ { path: "event.description.nodes.pollData.poll.image.duration" },
569
+ {
570
+ path: "event.description.nodes.pollData.poll.options.image.duration"
571
+ },
572
+ {
573
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
574
+ },
575
+ { path: "event.description.nodes.appEmbedData.image.duration" },
576
+ { path: "event.description.nodes.videoData.video.duration" },
577
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
578
+ { path: "event.description.nodes.audioData.audio.duration" },
579
+ { path: "event.description.nodes.audioData.coverImage.duration" }
580
+ ]
581
+ }
582
+ ])
583
+ };
584
+ return metadata;
585
+ }
586
+ return __updateEvent;
587
+ }
588
+ function publishDraftEvent(payload) {
589
+ function __publishDraftEvent({ host }) {
590
+ const metadata = {
591
+ entityFqdn: "wix.events.v3.event",
592
+ method: "POST",
593
+ methodFqn: "wix.events.events.v3.EventManagement.PublishDraftEvent",
594
+ packageName: PACKAGE_NAME,
595
+ url: resolveWixEventsEventsV3EventManagementUrl({
596
+ protoPath: "/v3/events/{eventId}/publish",
597
+ data: payload,
598
+ host
599
+ }),
600
+ data: payload,
601
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
602
+ {
603
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
604
+ paths: [
605
+ { path: "event.createdDate" },
606
+ { path: "event.updatedDate" },
607
+ { path: "event.publishedDate" },
608
+ { path: "event.dateAndTimeSettings.startDate" },
609
+ { path: "event.dateAndTimeSettings.endDate" },
610
+ {
611
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
612
+ },
613
+ {
614
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
615
+ },
616
+ { path: "event.mainImage.urlExpirationDate" },
617
+ { path: "event.registration.rsvp.startDate" },
618
+ { path: "event.registration.rsvp.endDate" },
619
+ { path: "event.categories.categories.createdDate" },
620
+ { path: "event.description.metadata.createdTimestamp" },
621
+ { path: "event.description.metadata.updatedTimestamp" },
622
+ { path: "event.badges.badges.functionUpdateDate" }
623
+ ]
624
+ },
625
+ {
626
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
627
+ paths: [
628
+ { path: "event.location.address.geocode.latitude" },
629
+ { path: "event.location.address.geocode.longitude" },
630
+ {
631
+ path: "event.description.nodes.galleryData.items.image.media.duration"
632
+ },
633
+ {
634
+ path: "event.description.nodes.galleryData.items.video.media.duration"
635
+ },
636
+ {
637
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
638
+ },
639
+ {
640
+ path: "event.description.nodes.galleryData.options.item.ratio"
641
+ },
642
+ { path: "event.description.nodes.imageData.image.duration" },
643
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
644
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
645
+ { path: "event.description.nodes.pollData.poll.image.duration" },
646
+ {
647
+ path: "event.description.nodes.pollData.poll.options.image.duration"
648
+ },
649
+ {
650
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
651
+ },
652
+ { path: "event.description.nodes.appEmbedData.image.duration" },
653
+ { path: "event.description.nodes.videoData.video.duration" },
654
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
655
+ { path: "event.description.nodes.audioData.audio.duration" },
656
+ { path: "event.description.nodes.audioData.coverImage.duration" }
657
+ ]
658
+ }
659
+ ])
660
+ };
661
+ return metadata;
662
+ }
663
+ return __publishDraftEvent;
664
+ }
665
+ function cancelEvent(payload) {
666
+ function __cancelEvent({ host }) {
667
+ const metadata = {
668
+ entityFqdn: "wix.events.v3.event",
669
+ method: "POST",
670
+ methodFqn: "wix.events.events.v3.EventManagement.CancelEvent",
671
+ packageName: PACKAGE_NAME,
672
+ url: resolveWixEventsEventsV3EventManagementUrl({
673
+ protoPath: "/v3/events/{eventId}/cancel",
674
+ data: payload,
675
+ host
676
+ }),
677
+ data: payload,
678
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
679
+ {
680
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
681
+ paths: [
682
+ { path: "event.createdDate" },
683
+ { path: "event.updatedDate" },
684
+ { path: "event.publishedDate" },
685
+ { path: "event.dateAndTimeSettings.startDate" },
686
+ { path: "event.dateAndTimeSettings.endDate" },
687
+ {
688
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
689
+ },
690
+ {
691
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
692
+ },
693
+ { path: "event.mainImage.urlExpirationDate" },
694
+ { path: "event.registration.rsvp.startDate" },
695
+ { path: "event.registration.rsvp.endDate" },
696
+ { path: "event.categories.categories.createdDate" },
697
+ { path: "event.description.metadata.createdTimestamp" },
698
+ { path: "event.description.metadata.updatedTimestamp" },
699
+ { path: "event.badges.badges.functionUpdateDate" }
700
+ ]
701
+ },
702
+ {
703
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
704
+ paths: [
705
+ { path: "event.location.address.geocode.latitude" },
706
+ { path: "event.location.address.geocode.longitude" },
707
+ {
708
+ path: "event.description.nodes.galleryData.items.image.media.duration"
709
+ },
710
+ {
711
+ path: "event.description.nodes.galleryData.items.video.media.duration"
712
+ },
713
+ {
714
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
715
+ },
716
+ {
717
+ path: "event.description.nodes.galleryData.options.item.ratio"
718
+ },
719
+ { path: "event.description.nodes.imageData.image.duration" },
720
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
721
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
722
+ { path: "event.description.nodes.pollData.poll.image.duration" },
723
+ {
724
+ path: "event.description.nodes.pollData.poll.options.image.duration"
725
+ },
726
+ {
727
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
728
+ },
729
+ { path: "event.description.nodes.appEmbedData.image.duration" },
730
+ { path: "event.description.nodes.videoData.video.duration" },
731
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
732
+ { path: "event.description.nodes.audioData.audio.duration" },
733
+ { path: "event.description.nodes.audioData.coverImage.duration" }
734
+ ]
735
+ }
736
+ ])
737
+ };
738
+ return metadata;
739
+ }
740
+ return __cancelEvent;
741
+ }
742
+ function bulkCancelEventsByFilter(payload) {
743
+ function __bulkCancelEventsByFilter({ host }) {
744
+ const metadata = {
745
+ entityFqdn: "wix.events.v3.event",
746
+ method: "POST",
747
+ methodFqn: "wix.events.events.v3.EventManagement.BulkCancelEventsByFilter",
748
+ packageName: PACKAGE_NAME,
749
+ url: resolveWixEventsEventsV3EventManagementUrl({
750
+ protoPath: "/v3/bulk/events/cancel-by-filter",
751
+ data: payload,
752
+ host
753
+ }),
754
+ data: payload
755
+ };
756
+ return metadata;
757
+ }
758
+ return __bulkCancelEventsByFilter;
759
+ }
760
+ function deleteEvent(payload) {
761
+ function __deleteEvent({ host }) {
762
+ const metadata = {
763
+ entityFqdn: "wix.events.v3.event",
764
+ method: "DELETE",
765
+ methodFqn: "wix.events.events.v3.EventManagement.DeleteEvent",
766
+ packageName: PACKAGE_NAME,
767
+ url: resolveWixEventsEventsV3EventManagementUrl({
768
+ protoPath: "/v3/events/{eventId}",
769
+ data: payload,
770
+ host
771
+ }),
772
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
773
+ };
774
+ return metadata;
775
+ }
776
+ return __deleteEvent;
777
+ }
778
+ function bulkDeleteEventsByFilter(payload) {
779
+ function __bulkDeleteEventsByFilter({ host }) {
780
+ const metadata = {
781
+ entityFqdn: "wix.events.v3.event",
782
+ method: "POST",
783
+ methodFqn: "wix.events.events.v3.EventManagement.BulkDeleteEventsByFilter",
784
+ packageName: PACKAGE_NAME,
785
+ url: resolveWixEventsEventsV3EventManagementUrl({
786
+ protoPath: "/v3/bulk/events/delete-by-filter",
787
+ data: payload,
788
+ host
789
+ }),
790
+ data: payload
791
+ };
792
+ return metadata;
793
+ }
794
+ return __bulkDeleteEventsByFilter;
795
+ }
796
+ function queryEvents(payload) {
797
+ function __queryEvents({ host }) {
798
+ const metadata = {
799
+ entityFqdn: "wix.events.v3.event",
800
+ method: "POST",
801
+ methodFqn: "wix.events.events.v3.EventManagement.QueryEvents",
802
+ packageName: PACKAGE_NAME,
803
+ url: resolveWixEventsEventsV3EventManagementUrl({
804
+ protoPath: "/v3/events/query",
805
+ data: payload,
806
+ host
807
+ }),
808
+ data: payload,
809
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
810
+ {
811
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
812
+ paths: [
813
+ { path: "events.createdDate" },
814
+ { path: "events.updatedDate" },
815
+ { path: "events.publishedDate" },
816
+ { path: "events.dateAndTimeSettings.startDate" },
817
+ { path: "events.dateAndTimeSettings.endDate" },
818
+ {
819
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
820
+ },
821
+ {
822
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
823
+ },
824
+ { path: "events.mainImage.urlExpirationDate" },
825
+ { path: "events.registration.rsvp.startDate" },
826
+ { path: "events.registration.rsvp.endDate" },
827
+ { path: "events.categories.categories.createdDate" },
828
+ { path: "events.description.metadata.createdTimestamp" },
829
+ { path: "events.description.metadata.updatedTimestamp" },
830
+ { path: "events.badges.badges.functionUpdateDate" }
831
+ ]
832
+ },
833
+ {
834
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
835
+ paths: [
836
+ { path: "events.location.address.geocode.latitude" },
837
+ { path: "events.location.address.geocode.longitude" },
838
+ {
839
+ path: "events.description.nodes.galleryData.items.image.media.duration"
840
+ },
841
+ {
842
+ path: "events.description.nodes.galleryData.items.video.media.duration"
843
+ },
844
+ {
845
+ path: "events.description.nodes.galleryData.items.video.thumbnail.duration"
846
+ },
847
+ {
848
+ path: "events.description.nodes.galleryData.options.item.ratio"
849
+ },
850
+ { path: "events.description.nodes.imageData.image.duration" },
851
+ { path: "events.description.nodes.mapData.mapSettings.lat" },
852
+ { path: "events.description.nodes.mapData.mapSettings.lng" },
853
+ { path: "events.description.nodes.pollData.poll.image.duration" },
854
+ {
855
+ path: "events.description.nodes.pollData.poll.options.image.duration"
856
+ },
857
+ {
858
+ path: "events.description.nodes.pollData.design.poll.background.image.duration"
859
+ },
860
+ { path: "events.description.nodes.appEmbedData.image.duration" },
861
+ { path: "events.description.nodes.videoData.video.duration" },
862
+ { path: "events.description.nodes.videoData.thumbnail.duration" },
863
+ { path: "events.description.nodes.audioData.audio.duration" },
864
+ {
865
+ path: "events.description.nodes.audioData.coverImage.duration"
866
+ }
867
+ ]
868
+ }
869
+ ])
870
+ };
871
+ return metadata;
872
+ }
873
+ return __queryEvents;
874
+ }
875
+ function countEventsByStatus(payload) {
876
+ function __countEventsByStatus({ host }) {
877
+ const metadata = {
878
+ entityFqdn: "wix.events.v3.event",
879
+ method: "POST",
880
+ methodFqn: "wix.events.events.v3.EventManagement.CountEventsByStatus",
881
+ packageName: PACKAGE_NAME,
882
+ url: resolveWixEventsEventsV3EventManagementUrl({
883
+ protoPath: "/v3/events/count-by-status",
884
+ data: payload,
885
+ host
886
+ }),
887
+ data: payload
888
+ };
889
+ return metadata;
890
+ }
891
+ return __countEventsByStatus;
892
+ }
893
+ function getEvent(payload) {
894
+ function __getEvent({ host }) {
895
+ const metadata = {
896
+ entityFqdn: "wix.events.v3.event",
897
+ method: "GET",
898
+ methodFqn: "wix.events.events.v3.EventManagement.GetEvent",
899
+ packageName: PACKAGE_NAME,
900
+ url: resolveWixEventsEventsV3EventManagementUrl({
901
+ protoPath: "/v3/events/{eventId}",
902
+ data: payload,
903
+ host
904
+ }),
905
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
906
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
907
+ {
908
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
909
+ paths: [
910
+ { path: "event.createdDate" },
911
+ { path: "event.updatedDate" },
912
+ { path: "event.publishedDate" },
913
+ { path: "event.dateAndTimeSettings.startDate" },
914
+ { path: "event.dateAndTimeSettings.endDate" },
915
+ {
916
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
917
+ },
918
+ {
919
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
920
+ },
921
+ { path: "event.mainImage.urlExpirationDate" },
922
+ { path: "event.registration.rsvp.startDate" },
923
+ { path: "event.registration.rsvp.endDate" },
924
+ { path: "event.categories.categories.createdDate" },
925
+ { path: "event.description.metadata.createdTimestamp" },
926
+ { path: "event.description.metadata.updatedTimestamp" },
927
+ { path: "event.badges.badges.functionUpdateDate" }
928
+ ]
929
+ },
930
+ {
931
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
932
+ paths: [
933
+ { path: "event.location.address.geocode.latitude" },
934
+ { path: "event.location.address.geocode.longitude" },
935
+ {
936
+ path: "event.description.nodes.galleryData.items.image.media.duration"
937
+ },
938
+ {
939
+ path: "event.description.nodes.galleryData.items.video.media.duration"
940
+ },
941
+ {
942
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
943
+ },
944
+ {
945
+ path: "event.description.nodes.galleryData.options.item.ratio"
946
+ },
947
+ { path: "event.description.nodes.imageData.image.duration" },
948
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
949
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
950
+ { path: "event.description.nodes.pollData.poll.image.duration" },
951
+ {
952
+ path: "event.description.nodes.pollData.poll.options.image.duration"
953
+ },
954
+ {
955
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
956
+ },
957
+ { path: "event.description.nodes.appEmbedData.image.duration" },
958
+ { path: "event.description.nodes.videoData.video.duration" },
959
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
960
+ { path: "event.description.nodes.audioData.audio.duration" },
961
+ { path: "event.description.nodes.audioData.coverImage.duration" }
962
+ ]
963
+ }
964
+ ])
965
+ };
966
+ return metadata;
967
+ }
968
+ return __getEvent;
969
+ }
970
+ function getEventBySlug(payload) {
971
+ function __getEventBySlug({ host }) {
972
+ const metadata = {
973
+ entityFqdn: "wix.events.v3.event",
974
+ method: "GET",
975
+ methodFqn: "wix.events.events.v3.EventManagement.GetEventBySlug",
976
+ packageName: PACKAGE_NAME,
977
+ url: resolveWixEventsEventsV3EventManagementUrl({
978
+ protoPath: "/v3/events/slug/{slug}",
979
+ data: payload,
980
+ host
981
+ }),
982
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
983
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
984
+ {
985
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
986
+ paths: [
987
+ { path: "event.createdDate" },
988
+ { path: "event.updatedDate" },
989
+ { path: "event.publishedDate" },
990
+ { path: "event.dateAndTimeSettings.startDate" },
991
+ { path: "event.dateAndTimeSettings.endDate" },
992
+ {
993
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
994
+ },
995
+ {
996
+ path: "event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
997
+ },
998
+ { path: "event.mainImage.urlExpirationDate" },
999
+ { path: "event.registration.rsvp.startDate" },
1000
+ { path: "event.registration.rsvp.endDate" },
1001
+ { path: "event.categories.categories.createdDate" },
1002
+ { path: "event.description.metadata.createdTimestamp" },
1003
+ { path: "event.description.metadata.updatedTimestamp" },
1004
+ { path: "event.badges.badges.functionUpdateDate" }
1005
+ ]
1006
+ },
1007
+ {
1008
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1009
+ paths: [
1010
+ { path: "event.location.address.geocode.latitude" },
1011
+ { path: "event.location.address.geocode.longitude" },
1012
+ {
1013
+ path: "event.description.nodes.galleryData.items.image.media.duration"
1014
+ },
1015
+ {
1016
+ path: "event.description.nodes.galleryData.items.video.media.duration"
1017
+ },
1018
+ {
1019
+ path: "event.description.nodes.galleryData.items.video.thumbnail.duration"
1020
+ },
1021
+ {
1022
+ path: "event.description.nodes.galleryData.options.item.ratio"
1023
+ },
1024
+ { path: "event.description.nodes.imageData.image.duration" },
1025
+ { path: "event.description.nodes.mapData.mapSettings.lat" },
1026
+ { path: "event.description.nodes.mapData.mapSettings.lng" },
1027
+ { path: "event.description.nodes.pollData.poll.image.duration" },
1028
+ {
1029
+ path: "event.description.nodes.pollData.poll.options.image.duration"
1030
+ },
1031
+ {
1032
+ path: "event.description.nodes.pollData.design.poll.background.image.duration"
1033
+ },
1034
+ { path: "event.description.nodes.appEmbedData.image.duration" },
1035
+ { path: "event.description.nodes.videoData.video.duration" },
1036
+ { path: "event.description.nodes.videoData.thumbnail.duration" },
1037
+ { path: "event.description.nodes.audioData.audio.duration" },
1038
+ { path: "event.description.nodes.audioData.coverImage.duration" }
1039
+ ]
1040
+ }
1041
+ ])
1042
+ };
1043
+ return metadata;
1044
+ }
1045
+ return __getEventBySlug;
1046
+ }
1047
+
1048
+ // src/events-v3-event-wix-events-v-2.universal.ts
1049
+ var import_address = require("@wix/sdk-runtime/transformations/address");
1050
+ var import_address2 = require("@wix/sdk-runtime/transformations/address");
1051
+ var import_image = require("@wix/sdk-runtime/transformations/image");
1052
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
1053
+ var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
1054
+ var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
1055
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
1056
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
1057
+ LocationType2["UNKNOWN_LOCATION"] = "UNKNOWN_LOCATION";
1058
+ LocationType2["VENUE"] = "VENUE";
1059
+ LocationType2["ONLINE"] = "ONLINE";
1060
+ return LocationType2;
1061
+ })(LocationType || {});
1062
+ var SubdivisionSubdivisionType = /* @__PURE__ */ ((SubdivisionSubdivisionType2) => {
1063
+ SubdivisionSubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
1064
+ SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
1065
+ SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
1066
+ SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
1067
+ SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
1068
+ SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
1069
+ SubdivisionSubdivisionType2["COUNTRY"] = "COUNTRY";
1070
+ return SubdivisionSubdivisionType2;
1071
+ })(SubdivisionSubdivisionType || {});
1072
+ var RecurrenceStatusStatus = /* @__PURE__ */ ((RecurrenceStatusStatus2) => {
1073
+ RecurrenceStatusStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
1074
+ RecurrenceStatusStatus2["ONE_TIME"] = "ONE_TIME";
1075
+ RecurrenceStatusStatus2["RECURRING"] = "RECURRING";
1076
+ RecurrenceStatusStatus2["RECURRING_UPCOMING"] = "RECURRING_UPCOMING";
1077
+ RecurrenceStatusStatus2["RECURRING_RECENTLY_ENDED"] = "RECURRING_RECENTLY_ENDED";
1078
+ RecurrenceStatusStatus2["RECURRING_RECENTLY_CANCELED"] = "RECURRING_RECENTLY_CANCELED";
1079
+ return RecurrenceStatusStatus2;
1080
+ })(RecurrenceStatusStatus || {});
1081
+ var Status = /* @__PURE__ */ ((Status2) => {
1082
+ Status2["UNKNOWN_EVENT_STATUS"] = "UNKNOWN_EVENT_STATUS";
1083
+ Status2["UPCOMING"] = "UPCOMING";
1084
+ Status2["STARTED"] = "STARTED";
1085
+ Status2["ENDED"] = "ENDED";
1086
+ Status2["CANCELED"] = "CANCELED";
1087
+ Status2["DRAFT"] = "DRAFT";
1088
+ return Status2;
1089
+ })(Status || {});
1090
+ var RegistrationTypeType = /* @__PURE__ */ ((RegistrationTypeType2) => {
1091
+ RegistrationTypeType2["UNKNOWN_REGISTRATION_TYPE"] = "UNKNOWN_REGISTRATION_TYPE";
1092
+ RegistrationTypeType2["RSVP"] = "RSVP";
1093
+ RegistrationTypeType2["TICKETING"] = "TICKETING";
1094
+ RegistrationTypeType2["EXTERNAL"] = "EXTERNAL";
1095
+ RegistrationTypeType2["NONE"] = "NONE";
1096
+ return RegistrationTypeType2;
1097
+ })(RegistrationTypeType || {});
1098
+ var RegistrationStatusStatus = /* @__PURE__ */ ((RegistrationStatusStatus2) => {
1099
+ RegistrationStatusStatus2["UNKNOWN_REGISTRATION_STATUS"] = "UNKNOWN_REGISTRATION_STATUS";
1100
+ RegistrationStatusStatus2["CLOSED_AUTOMATICALLY"] = "CLOSED_AUTOMATICALLY";
1101
+ RegistrationStatusStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
1102
+ RegistrationStatusStatus2["OPEN_RSVP"] = "OPEN_RSVP";
1103
+ RegistrationStatusStatus2["OPEN_RSVP_WAITLIST_ONLY"] = "OPEN_RSVP_WAITLIST_ONLY";
1104
+ RegistrationStatusStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
1105
+ RegistrationStatusStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
1106
+ RegistrationStatusStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
1107
+ return RegistrationStatusStatus2;
1108
+ })(RegistrationStatusStatus || {});
1109
+ var ResponseType = /* @__PURE__ */ ((ResponseType2) => {
1110
+ ResponseType2["UNKNOWN_RESPONSE_TYPE"] = "UNKNOWN_RESPONSE_TYPE";
1111
+ ResponseType2["YES_ONLY"] = "YES_ONLY";
1112
+ ResponseType2["YES_AND_NO"] = "YES_AND_NO";
1113
+ return ResponseType2;
1114
+ })(ResponseType || {});
1115
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
1116
+ TaxType2["UNKNOWN_TAX_TYPE"] = "UNKNOWN_TAX_TYPE";
1117
+ TaxType2["INCLUDED_IN_PRICE"] = "INCLUDED_IN_PRICE";
1118
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
1119
+ return TaxType2;
1120
+ })(TaxType || {});
1121
+ var GuestTypeType = /* @__PURE__ */ ((GuestTypeType2) => {
1122
+ GuestTypeType2["UNKNOWN_GUEST_TYPE"] = "UNKNOWN_GUEST_TYPE";
1123
+ GuestTypeType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
1124
+ GuestTypeType2["MEMBER"] = "MEMBER";
1125
+ return GuestTypeType2;
1126
+ })(GuestTypeType || {});
1127
+ var InitialRegistrationTypeType = /* @__PURE__ */ ((InitialRegistrationTypeType2) => {
1128
+ InitialRegistrationTypeType2["UNKNOWN_INITIAL_REGISTRATION_TYPE"] = "UNKNOWN_INITIAL_REGISTRATION_TYPE";
1129
+ InitialRegistrationTypeType2["RSVP"] = "RSVP";
1130
+ InitialRegistrationTypeType2["TICKETING"] = "TICKETING";
1131
+ return InitialRegistrationTypeType2;
1132
+ })(InitialRegistrationTypeType || {});
1133
+ var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
1134
+ InputControlType2["INPUT"] = "INPUT";
1135
+ InputControlType2["TEXTAREA"] = "TEXTAREA";
1136
+ InputControlType2["DROPDOWN"] = "DROPDOWN";
1137
+ InputControlType2["RADIO"] = "RADIO";
1138
+ InputControlType2["CHECKBOX"] = "CHECKBOX";
1139
+ InputControlType2["NAME"] = "NAME";
1140
+ InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
1141
+ InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
1142
+ InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
1143
+ InputControlType2["DATE"] = "DATE";
1144
+ return InputControlType2;
1145
+ })(InputControlType || {});
1146
+ var ValueType = /* @__PURE__ */ ((ValueType2) => {
1147
+ ValueType2["TEXT"] = "TEXT";
1148
+ ValueType2["NUMBER"] = "NUMBER";
1149
+ ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
1150
+ ValueType2["DATE_TIME"] = "DATE_TIME";
1151
+ ValueType2["ADDRESS"] = "ADDRESS";
1152
+ return ValueType2;
1153
+ })(ValueType || {});
1154
+ var ConferenceTypeType = /* @__PURE__ */ ((ConferenceTypeType2) => {
1155
+ ConferenceTypeType2["UNKNOWN_CONFERENCE_TYPE"] = "UNKNOWN_CONFERENCE_TYPE";
1156
+ ConferenceTypeType2["MEETING"] = "MEETING";
1157
+ ConferenceTypeType2["WEBINAR"] = "WEBINAR";
1158
+ return ConferenceTypeType2;
1159
+ })(ConferenceTypeType || {});
1160
+ var CategoryTypeType = /* @__PURE__ */ ((CategoryTypeType2) => {
1161
+ CategoryTypeType2["MANUAL"] = "MANUAL";
1162
+ CategoryTypeType2["RECURRING_EVENT"] = "RECURRING_EVENT";
1163
+ return CategoryTypeType2;
1164
+ })(CategoryTypeType || {});
1165
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
1166
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
1167
+ NodeType2["TEXT"] = "TEXT";
1168
+ NodeType2["HEADING"] = "HEADING";
1169
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
1170
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
1171
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
1172
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
1173
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
1174
+ NodeType2["VIDEO"] = "VIDEO";
1175
+ NodeType2["DIVIDER"] = "DIVIDER";
1176
+ NodeType2["FILE"] = "FILE";
1177
+ NodeType2["GALLERY"] = "GALLERY";
1178
+ NodeType2["GIF"] = "GIF";
1179
+ NodeType2["HTML"] = "HTML";
1180
+ NodeType2["IMAGE"] = "IMAGE";
1181
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
1182
+ NodeType2["MAP"] = "MAP";
1183
+ NodeType2["POLL"] = "POLL";
1184
+ NodeType2["APP_EMBED"] = "APP_EMBED";
1185
+ NodeType2["BUTTON"] = "BUTTON";
1186
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
1187
+ NodeType2["TABLE"] = "TABLE";
1188
+ NodeType2["EMBED"] = "EMBED";
1189
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
1190
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
1191
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
1192
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
1193
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
1194
+ NodeType2["EXTERNAL"] = "EXTERNAL";
1195
+ NodeType2["AUDIO"] = "AUDIO";
1196
+ NodeType2["CAPTION"] = "CAPTION";
1197
+ NodeType2["LAYOUT"] = "LAYOUT";
1198
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1199
+ return NodeType2;
1200
+ })(NodeType || {});
1201
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
1202
+ WidthType2["CONTENT"] = "CONTENT";
1203
+ WidthType2["SMALL"] = "SMALL";
1204
+ WidthType2["ORIGINAL"] = "ORIGINAL";
1205
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
1206
+ return WidthType2;
1207
+ })(WidthType || {});
1208
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
1209
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
1210
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
1211
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
1212
+ return PluginContainerDataAlignment2;
1213
+ })(PluginContainerDataAlignment || {});
1214
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
1215
+ ButtonDataType2["LINK"] = "LINK";
1216
+ ButtonDataType2["ACTION"] = "ACTION";
1217
+ return ButtonDataType2;
1218
+ })(ButtonDataType || {});
1219
+ var Target = /* @__PURE__ */ ((Target2) => {
1220
+ Target2["SELF"] = "SELF";
1221
+ Target2["BLANK"] = "BLANK";
1222
+ Target2["PARENT"] = "PARENT";
1223
+ Target2["TOP"] = "TOP";
1224
+ return Target2;
1225
+ })(Target || {});
1226
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1227
+ TextAlignment2["AUTO"] = "AUTO";
1228
+ TextAlignment2["LEFT"] = "LEFT";
1229
+ TextAlignment2["RIGHT"] = "RIGHT";
1230
+ TextAlignment2["CENTER"] = "CENTER";
1231
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
1232
+ return TextAlignment2;
1233
+ })(TextAlignment || {});
1234
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1235
+ LineStyle2["SINGLE"] = "SINGLE";
1236
+ LineStyle2["DOUBLE"] = "DOUBLE";
1237
+ LineStyle2["DASHED"] = "DASHED";
1238
+ LineStyle2["DOTTED"] = "DOTTED";
1239
+ return LineStyle2;
1240
+ })(LineStyle || {});
1241
+ var Width = /* @__PURE__ */ ((Width2) => {
1242
+ Width2["LARGE"] = "LARGE";
1243
+ Width2["MEDIUM"] = "MEDIUM";
1244
+ Width2["SMALL"] = "SMALL";
1245
+ return Width2;
1246
+ })(Width || {});
1247
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1248
+ Alignment2["CENTER"] = "CENTER";
1249
+ Alignment2["LEFT"] = "LEFT";
1250
+ Alignment2["RIGHT"] = "RIGHT";
1251
+ return Alignment2;
1252
+ })(Alignment || {});
1253
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
1254
+ ViewMode2["NONE"] = "NONE";
1255
+ ViewMode2["FULL"] = "FULL";
1256
+ ViewMode2["MINI"] = "MINI";
1257
+ return ViewMode2;
1258
+ })(ViewMode || {});
1259
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
1260
+ LayoutType2["COLLAGE"] = "COLLAGE";
1261
+ LayoutType2["MASONRY"] = "MASONRY";
1262
+ LayoutType2["GRID"] = "GRID";
1263
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
1264
+ LayoutType2["SLIDER"] = "SLIDER";
1265
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
1266
+ LayoutType2["PANORAMA"] = "PANORAMA";
1267
+ LayoutType2["COLUMN"] = "COLUMN";
1268
+ LayoutType2["MAGIC"] = "MAGIC";
1269
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
1270
+ return LayoutType2;
1271
+ })(LayoutType || {});
1272
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
1273
+ Orientation2["ROWS"] = "ROWS";
1274
+ Orientation2["COLUMNS"] = "COLUMNS";
1275
+ return Orientation2;
1276
+ })(Orientation || {});
1277
+ var Crop = /* @__PURE__ */ ((Crop2) => {
1278
+ Crop2["FILL"] = "FILL";
1279
+ Crop2["FIT"] = "FIT";
1280
+ return Crop2;
1281
+ })(Crop || {});
1282
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
1283
+ ThumbnailsAlignment2["TOP"] = "TOP";
1284
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
1285
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
1286
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
1287
+ ThumbnailsAlignment2["NONE"] = "NONE";
1288
+ return ThumbnailsAlignment2;
1289
+ })(ThumbnailsAlignment || {});
1290
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
1291
+ GIFType2["NORMAL"] = "NORMAL";
1292
+ GIFType2["STICKER"] = "STICKER";
1293
+ return GIFType2;
1294
+ })(GIFType || {});
1295
+ var Source = /* @__PURE__ */ ((Source2) => {
1296
+ Source2["HTML"] = "HTML";
1297
+ Source2["ADSENSE"] = "ADSENSE";
1298
+ return Source2;
1299
+ })(Source || {});
1300
+ var Position = /* @__PURE__ */ ((Position2) => {
1301
+ Position2["START"] = "START";
1302
+ Position2["END"] = "END";
1303
+ Position2["TOP"] = "TOP";
1304
+ Position2["HIDDEN"] = "HIDDEN";
1305
+ return Position2;
1306
+ })(Position || {});
1307
+ var MapType = /* @__PURE__ */ ((MapType2) => {
1308
+ MapType2["ROADMAP"] = "ROADMAP";
1309
+ MapType2["SATELITE"] = "SATELITE";
1310
+ MapType2["HYBRID"] = "HYBRID";
1311
+ MapType2["TERRAIN"] = "TERRAIN";
1312
+ return MapType2;
1313
+ })(MapType || {});
1314
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1315
+ ViewRole2["CREATOR"] = "CREATOR";
1316
+ ViewRole2["VOTERS"] = "VOTERS";
1317
+ ViewRole2["EVERYONE"] = "EVERYONE";
1318
+ return ViewRole2;
1319
+ })(ViewRole || {});
1320
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1321
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1322
+ VoteRole2["ALL"] = "ALL";
1323
+ return VoteRole2;
1324
+ })(VoteRole || {});
1325
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1326
+ PollLayoutType2["LIST"] = "LIST";
1327
+ PollLayoutType2["GRID"] = "GRID";
1328
+ return PollLayoutType2;
1329
+ })(PollLayoutType || {});
1330
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1331
+ PollLayoutDirection2["LTR"] = "LTR";
1332
+ PollLayoutDirection2["RTL"] = "RTL";
1333
+ return PollLayoutDirection2;
1334
+ })(PollLayoutDirection || {});
1335
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
1336
+ BackgroundType2["COLOR"] = "COLOR";
1337
+ BackgroundType2["IMAGE"] = "IMAGE";
1338
+ BackgroundType2["GRADIENT"] = "GRADIENT";
1339
+ return BackgroundType2;
1340
+ })(BackgroundType || {});
1341
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1342
+ DecorationType2["BOLD"] = "BOLD";
1343
+ DecorationType2["ITALIC"] = "ITALIC";
1344
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
1345
+ DecorationType2["SPOILER"] = "SPOILER";
1346
+ DecorationType2["ANCHOR"] = "ANCHOR";
1347
+ DecorationType2["MENTION"] = "MENTION";
1348
+ DecorationType2["LINK"] = "LINK";
1349
+ DecorationType2["COLOR"] = "COLOR";
1350
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1351
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
1352
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1353
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1354
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1355
+ return DecorationType2;
1356
+ })(DecorationType || {});
1357
+ var FontType = /* @__PURE__ */ ((FontType2) => {
1358
+ FontType2["PX"] = "PX";
1359
+ FontType2["EM"] = "EM";
1360
+ return FontType2;
1361
+ })(FontType || {});
1362
+ var AppType = /* @__PURE__ */ ((AppType2) => {
1363
+ AppType2["PRODUCT"] = "PRODUCT";
1364
+ AppType2["EVENT"] = "EVENT";
1365
+ AppType2["BOOKING"] = "BOOKING";
1366
+ return AppType2;
1367
+ })(AppType || {});
1368
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1369
+ InitialExpandedItems2["FIRST"] = "FIRST";
1370
+ InitialExpandedItems2["ALL"] = "ALL";
1371
+ InitialExpandedItems2["NONE"] = "NONE";
1372
+ return InitialExpandedItems2;
1373
+ })(InitialExpandedItems || {});
1374
+ var Direction = /* @__PURE__ */ ((Direction2) => {
1375
+ Direction2["LTR"] = "LTR";
1376
+ Direction2["RTL"] = "RTL";
1377
+ return Direction2;
1378
+ })(Direction || {});
1379
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1380
+ VerticalAlignment2["TOP"] = "TOP";
1381
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
1382
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
1383
+ return VerticalAlignment2;
1384
+ })(VerticalAlignment || {});
1385
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1386
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
1387
+ return NullValue2;
1388
+ })(NullValue || {});
1389
+ var BadgeTypeType = /* @__PURE__ */ ((BadgeTypeType2) => {
1390
+ BadgeTypeType2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
1391
+ BadgeTypeType2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
1392
+ BadgeTypeType2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
1393
+ BadgeTypeType2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
1394
+ return BadgeTypeType2;
1395
+ })(BadgeTypeType || {});
1396
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
1397
+ RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
1398
+ RequestedFields2["DETAILS"] = "DETAILS";
1399
+ RequestedFields2["TEXTS"] = "TEXTS";
1400
+ RequestedFields2["REGISTRATION"] = "REGISTRATION";
1401
+ RequestedFields2["URLS"] = "URLS";
1402
+ RequestedFields2["FORM"] = "FORM";
1403
+ RequestedFields2["DASHBOARD"] = "DASHBOARD";
1404
+ RequestedFields2["FEED"] = "FEED";
1405
+ RequestedFields2["ONLINE_CONFERENCING_SESSION"] = "ONLINE_CONFERENCING_SESSION";
1406
+ RequestedFields2["SEO_SETTINGS"] = "SEO_SETTINGS";
1407
+ RequestedFields2["AGENDA"] = "AGENDA";
1408
+ RequestedFields2["CATEGORIES"] = "CATEGORIES";
1409
+ return RequestedFields2;
1410
+ })(RequestedFields || {});
1411
+ var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
1412
+ CommonSortOrder2["ASC"] = "ASC";
1413
+ CommonSortOrder2["DESC"] = "DESC";
1414
+ return CommonSortOrder2;
1415
+ })(CommonSortOrder || {});
1416
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1417
+ SortOrder2["ASC"] = "ASC";
1418
+ SortOrder2["DESC"] = "DESC";
1419
+ return SortOrder2;
1420
+ })(SortOrder || {});
1421
+ var Relation = /* @__PURE__ */ ((Relation2) => {
1422
+ Relation2["ATTENDING"] = "ATTENDING";
1423
+ return Relation2;
1424
+ })(Relation || {});
1425
+ var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
1426
+ LocationLocationType2["VENUE"] = "VENUE";
1427
+ LocationLocationType2["ONLINE"] = "ONLINE";
1428
+ return LocationLocationType2;
1429
+ })(LocationLocationType || {});
1430
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
1431
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
1432
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
1433
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
1434
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
1435
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
1436
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
1437
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
1438
+ return SubdivisionType2;
1439
+ })(SubdivisionType || {});
1440
+ var EventsRecurrenceStatusStatus = /* @__PURE__ */ ((EventsRecurrenceStatusStatus2) => {
1441
+ EventsRecurrenceStatusStatus2["ONE_TIME"] = "ONE_TIME";
1442
+ EventsRecurrenceStatusStatus2["RECURRING"] = "RECURRING";
1443
+ EventsRecurrenceStatusStatus2["RECURRING_NEXT"] = "RECURRING_NEXT";
1444
+ EventsRecurrenceStatusStatus2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
1445
+ EventsRecurrenceStatusStatus2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
1446
+ return EventsRecurrenceStatusStatus2;
1447
+ })(EventsRecurrenceStatusStatus || {});
1448
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
1449
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
1450
+ EventStatus2["STARTED"] = "STARTED";
1451
+ EventStatus2["ENDED"] = "ENDED";
1452
+ EventStatus2["CANCELED"] = "CANCELED";
1453
+ return EventStatus2;
1454
+ })(EventStatus || {});
1455
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1456
+ EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
1457
+ EventType2["RSVP"] = "RSVP";
1458
+ EventType2["TICKETS"] = "TICKETS";
1459
+ EventType2["EXTERNAL"] = "EXTERNAL";
1460
+ EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
1461
+ return EventType2;
1462
+ })(EventType || {});
1463
+ var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
1464
+ RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
1465
+ RegistrationStatus2["CLOSED"] = "CLOSED";
1466
+ RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
1467
+ RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
1468
+ RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
1469
+ RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
1470
+ RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
1471
+ RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
1472
+ return RegistrationStatus2;
1473
+ })(RegistrationStatus || {});
1474
+ var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
1475
+ RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
1476
+ RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
1477
+ return RsvpStatusOptions2;
1478
+ })(RsvpStatusOptions || {});
1479
+ var EventsTaxType = /* @__PURE__ */ ((EventsTaxType2) => {
1480
+ EventsTaxType2["INCLUDED"] = "INCLUDED";
1481
+ EventsTaxType2["ADDED"] = "ADDED";
1482
+ EventsTaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
1483
+ return EventsTaxType2;
1484
+ })(EventsTaxType || {});
1485
+ var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
1486
+ VisitorType2["VISITOR"] = "VISITOR";
1487
+ VisitorType2["MEMBER"] = "MEMBER";
1488
+ VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
1489
+ return VisitorType2;
1490
+ })(VisitorType || {});
1491
+ var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
1492
+ ConferenceType2["MEETING"] = "MEETING";
1493
+ ConferenceType2["WEBINAR"] = "WEBINAR";
1494
+ return ConferenceType2;
1495
+ })(ConferenceType || {});
1496
+ var State = /* @__PURE__ */ ((State2) => {
1497
+ State2["MANUAL"] = "MANUAL";
1498
+ State2["AUTO"] = "AUTO";
1499
+ State2["RECURRING_EVENT"] = "RECURRING_EVENT";
1500
+ State2["HIDDEN"] = "HIDDEN";
1501
+ return State2;
1502
+ })(State || {});
1503
+ var Type = /* @__PURE__ */ ((Type2) => {
1504
+ Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
1505
+ Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
1506
+ Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
1507
+ Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
1508
+ return Type2;
1509
+ })(Type || {});
1510
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1511
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1512
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1513
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1514
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1515
+ WebhookIdentityType2["APP"] = "APP";
1516
+ return WebhookIdentityType2;
1517
+ })(WebhookIdentityType || {});
1518
+ async function createEvent2(event, options) {
1519
+ const { httpClient, sideEffects } = arguments[2];
1520
+ const payload = (0, import_transform_paths2.transformPaths)(
1521
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1522
+ { event, draft: options?.draft, fields: options?.fields },
1523
+ ["event.description"]
1524
+ ),
1525
+ [
1526
+ {
1527
+ transformFn: import_image.transformSDKImageToRESTImage,
1528
+ paths: [{ path: "event.mainImage" }]
1529
+ },
1530
+ {
1531
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
1532
+ paths: [
1533
+ { path: "event.eventPageUrl" },
1534
+ { path: "event.agendaSettings.pageUrl" }
1535
+ ]
1536
+ },
1537
+ {
1538
+ transformFn: import_address.transformSDKAddressToRESTAddress,
1539
+ paths: [{ path: "event.location.address" }]
1540
+ }
1541
+ ]
1542
+ );
1543
+ const reqOpts = createEvent(payload);
1544
+ sideEffects?.onSiteCall?.();
1545
+ try {
1546
+ const result = await httpClient.request(reqOpts);
1547
+ sideEffects?.onSuccess?.(result);
1548
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1549
+ (0, import_transform_paths2.transformPaths)(result.data, [
1550
+ {
1551
+ transformFn: import_image2.transformRESTImageToSDKImage,
1552
+ paths: [{ path: "event.mainImage" }]
1553
+ },
1554
+ {
1555
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1556
+ paths: [
1557
+ { path: "event.eventPageUrl" },
1558
+ { path: "event.agendaSettings.pageUrl" }
1559
+ ]
1560
+ },
1561
+ {
1562
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1563
+ paths: [{ path: "event.location.address" }]
1564
+ }
1565
+ ]),
1566
+ ["event.description"]
1567
+ )?.event;
1568
+ } catch (err) {
1569
+ const transformedError = (0, import_transform_error.transformError)(
1570
+ err,
1571
+ {
1572
+ spreadPathsToArguments: {},
1573
+ explicitPathsToArguments: {
1574
+ event: "$[0]",
1575
+ draft: "$[1].draft",
1576
+ fields: "$[1].fields"
1577
+ },
1578
+ singleArgumentUnchanged: false
1579
+ },
1580
+ ["event", "options"]
1581
+ );
1582
+ sideEffects?.onError?.(err);
1583
+ throw transformedError;
1584
+ }
1585
+ }
1586
+ async function cloneEvent2(eventId, options) {
1587
+ const { httpClient, sideEffects } = arguments[2];
1588
+ const payload = (0, import_transform_paths2.transformPaths)(
1589
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1590
+ {
1591
+ eventId,
1592
+ event: options?.event,
1593
+ draft: options?.draft,
1594
+ fields: options?.fields
1595
+ },
1596
+ ["event.description"]
1597
+ ),
1598
+ [
1599
+ {
1600
+ transformFn: import_image.transformSDKImageToRESTImage,
1601
+ paths: [{ path: "event.mainImage" }]
1602
+ },
1603
+ {
1604
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
1605
+ paths: [
1606
+ { path: "event.eventPageUrl" },
1607
+ { path: "event.agendaSettings.pageUrl" }
1608
+ ]
1609
+ },
1610
+ {
1611
+ transformFn: import_address.transformSDKAddressToRESTAddress,
1612
+ paths: [{ path: "event.location.address" }]
1613
+ }
1614
+ ]
1615
+ );
1616
+ const reqOpts = cloneEvent(payload);
1617
+ sideEffects?.onSiteCall?.();
1618
+ try {
1619
+ const result = await httpClient.request(reqOpts);
1620
+ sideEffects?.onSuccess?.(result);
1621
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1622
+ (0, import_transform_paths2.transformPaths)(result.data, [
1623
+ {
1624
+ transformFn: import_image2.transformRESTImageToSDKImage,
1625
+ paths: [{ path: "event.mainImage" }]
1626
+ },
1627
+ {
1628
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1629
+ paths: [
1630
+ { path: "event.eventPageUrl" },
1631
+ { path: "event.agendaSettings.pageUrl" }
1632
+ ]
1633
+ },
1634
+ {
1635
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1636
+ paths: [{ path: "event.location.address" }]
1637
+ }
1638
+ ]),
1639
+ ["event.description"]
1640
+ );
1641
+ } catch (err) {
1642
+ const transformedError = (0, import_transform_error.transformError)(
1643
+ err,
1644
+ {
1645
+ spreadPathsToArguments: {},
1646
+ explicitPathsToArguments: {
1647
+ eventId: "$[0]",
1648
+ event: "$[1].event",
1649
+ draft: "$[1].draft",
1650
+ fields: "$[1].fields"
1651
+ },
1652
+ singleArgumentUnchanged: false
1653
+ },
1654
+ ["eventId", "options"]
1655
+ );
1656
+ sideEffects?.onError?.(err);
1657
+ throw transformedError;
1658
+ }
1659
+ }
1660
+ async function updateEvent2(_id, options) {
1661
+ const { httpClient, sideEffects } = arguments[2];
1662
+ const payload = (0, import_transform_paths2.transformPaths)(
1663
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1664
+ { event: { ...options?.event, id: _id }, fields: options?.fields },
1665
+ ["event.description"]
1666
+ ),
1667
+ [
1668
+ {
1669
+ transformFn: import_image.transformSDKImageToRESTImage,
1670
+ paths: [{ path: "event.mainImage" }]
1671
+ },
1672
+ {
1673
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
1674
+ paths: [
1675
+ { path: "event.eventPageUrl" },
1676
+ { path: "event.agendaSettings.pageUrl" }
1677
+ ]
1678
+ },
1679
+ {
1680
+ transformFn: import_address.transformSDKAddressToRESTAddress,
1681
+ paths: [{ path: "event.location.address" }]
1682
+ }
1683
+ ]
1684
+ );
1685
+ const reqOpts = updateEvent(payload);
1686
+ sideEffects?.onSiteCall?.();
1687
+ try {
1688
+ const result = await httpClient.request(reqOpts);
1689
+ sideEffects?.onSuccess?.(result);
1690
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1691
+ (0, import_transform_paths2.transformPaths)(result.data, [
1692
+ {
1693
+ transformFn: import_image2.transformRESTImageToSDKImage,
1694
+ paths: [{ path: "event.mainImage" }]
1695
+ },
1696
+ {
1697
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1698
+ paths: [
1699
+ { path: "event.eventPageUrl" },
1700
+ { path: "event.agendaSettings.pageUrl" }
1701
+ ]
1702
+ },
1703
+ {
1704
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1705
+ paths: [{ path: "event.location.address" }]
1706
+ }
1707
+ ]),
1708
+ ["event.description"]
1709
+ )?.event;
1710
+ } catch (err) {
1711
+ const transformedError = (0, import_transform_error.transformError)(
1712
+ err,
1713
+ {
1714
+ spreadPathsToArguments: { event: "$[1].event" },
1715
+ explicitPathsToArguments: { "event.id": "$[0]", fields: "$[1].fields" },
1716
+ singleArgumentUnchanged: false
1717
+ },
1718
+ ["_id", "options"]
1719
+ );
1720
+ sideEffects?.onError?.(err);
1721
+ throw transformedError;
1722
+ }
1723
+ }
1724
+ async function publishDraftEvent2(eventId, options) {
1725
+ const { httpClient, sideEffects } = arguments[2];
1726
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1727
+ { eventId, fields: options?.fields },
1728
+ []
1729
+ );
1730
+ const reqOpts = publishDraftEvent(payload);
1731
+ sideEffects?.onSiteCall?.();
1732
+ try {
1733
+ const result = await httpClient.request(reqOpts);
1734
+ sideEffects?.onSuccess?.(result);
1735
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1736
+ (0, import_transform_paths2.transformPaths)(result.data, [
1737
+ {
1738
+ transformFn: import_image2.transformRESTImageToSDKImage,
1739
+ paths: [{ path: "event.mainImage" }]
1740
+ },
1741
+ {
1742
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1743
+ paths: [
1744
+ { path: "event.eventPageUrl" },
1745
+ { path: "event.agendaSettings.pageUrl" }
1746
+ ]
1747
+ },
1748
+ {
1749
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1750
+ paths: [{ path: "event.location.address" }]
1751
+ }
1752
+ ]),
1753
+ ["event.description"]
1754
+ );
1755
+ } catch (err) {
1756
+ const transformedError = (0, import_transform_error.transformError)(
1757
+ err,
1758
+ {
1759
+ spreadPathsToArguments: {},
1760
+ explicitPathsToArguments: { eventId: "$[0]", fields: "$[1].fields" },
1761
+ singleArgumentUnchanged: false
1762
+ },
1763
+ ["eventId", "options"]
1764
+ );
1765
+ sideEffects?.onError?.(err);
1766
+ throw transformedError;
1767
+ }
1768
+ }
1769
+ async function cancelEvent2(eventId, options) {
1770
+ const { httpClient, sideEffects } = arguments[2];
1771
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1772
+ { eventId, fields: options?.fields },
1773
+ []
1774
+ );
1775
+ const reqOpts = cancelEvent(payload);
1776
+ sideEffects?.onSiteCall?.();
1777
+ try {
1778
+ const result = await httpClient.request(reqOpts);
1779
+ sideEffects?.onSuccess?.(result);
1780
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1781
+ (0, import_transform_paths2.transformPaths)(result.data, [
1782
+ {
1783
+ transformFn: import_image2.transformRESTImageToSDKImage,
1784
+ paths: [{ path: "event.mainImage" }]
1785
+ },
1786
+ {
1787
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1788
+ paths: [
1789
+ { path: "event.eventPageUrl" },
1790
+ { path: "event.agendaSettings.pageUrl" }
1791
+ ]
1792
+ },
1793
+ {
1794
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1795
+ paths: [{ path: "event.location.address" }]
1796
+ }
1797
+ ]),
1798
+ ["event.description"]
1799
+ );
1800
+ } catch (err) {
1801
+ const transformedError = (0, import_transform_error.transformError)(
1802
+ err,
1803
+ {
1804
+ spreadPathsToArguments: {},
1805
+ explicitPathsToArguments: { eventId: "$[0]", fields: "$[1].fields" },
1806
+ singleArgumentUnchanged: false
1807
+ },
1808
+ ["eventId", "options"]
1809
+ );
1810
+ sideEffects?.onError?.(err);
1811
+ throw transformedError;
1812
+ }
1813
+ }
1814
+ async function bulkCancelEventsByFilter2(options) {
1815
+ const { httpClient, sideEffects } = arguments[1];
1816
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1817
+ { filter: options?.filter },
1818
+ []
1819
+ );
1820
+ const reqOpts = bulkCancelEventsByFilter(payload);
1821
+ sideEffects?.onSiteCall?.();
1822
+ try {
1823
+ const result = await httpClient.request(reqOpts);
1824
+ sideEffects?.onSuccess?.(result);
1825
+ } catch (err) {
1826
+ const transformedError = (0, import_transform_error.transformError)(
1827
+ err,
1828
+ {
1829
+ spreadPathsToArguments: {},
1830
+ explicitPathsToArguments: { filter: "$[0].filter" },
1831
+ singleArgumentUnchanged: false
1832
+ },
1833
+ ["options"]
1834
+ );
1835
+ sideEffects?.onError?.(err);
1836
+ throw transformedError;
1837
+ }
1838
+ }
1839
+ async function deleteEvent2(eventId) {
1840
+ const { httpClient, sideEffects } = arguments[1];
1841
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1842
+ { eventId },
1843
+ []
1844
+ );
1845
+ const reqOpts = deleteEvent(payload);
1846
+ sideEffects?.onSiteCall?.();
1847
+ try {
1848
+ const result = await httpClient.request(reqOpts);
1849
+ sideEffects?.onSuccess?.(result);
1850
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1851
+ } catch (err) {
1852
+ const transformedError = (0, import_transform_error.transformError)(
1853
+ err,
1854
+ {
1855
+ spreadPathsToArguments: {},
1856
+ explicitPathsToArguments: { eventId: "$[0]" },
1857
+ singleArgumentUnchanged: false
1858
+ },
1859
+ ["eventId"]
1860
+ );
1861
+ sideEffects?.onError?.(err);
1862
+ throw transformedError;
1863
+ }
1864
+ }
1865
+ async function bulkDeleteEventsByFilter2(options) {
1866
+ const { httpClient, sideEffects } = arguments[1];
1867
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1868
+ { filter: options?.filter },
1869
+ []
1870
+ );
1871
+ const reqOpts = bulkDeleteEventsByFilter(payload);
1872
+ sideEffects?.onSiteCall?.();
1873
+ try {
1874
+ const result = await httpClient.request(reqOpts);
1875
+ sideEffects?.onSuccess?.(result);
1876
+ } catch (err) {
1877
+ const transformedError = (0, import_transform_error.transformError)(
1878
+ err,
1879
+ {
1880
+ spreadPathsToArguments: {},
1881
+ explicitPathsToArguments: { filter: "$[0].filter" },
1882
+ singleArgumentUnchanged: false
1883
+ },
1884
+ ["options"]
1885
+ );
1886
+ sideEffects?.onError?.(err);
1887
+ throw transformedError;
1888
+ }
1889
+ }
1890
+ function queryEvents2(options) {
1891
+ const { httpClient, sideEffects } = arguments[1];
1892
+ return (0, import_query_builder.queryBuilder)({
1893
+ func: async (payload) => {
1894
+ const reqOpts = queryEvents({
1895
+ ...payload,
1896
+ ...options ?? {}
1897
+ });
1898
+ sideEffects?.onSiteCall?.();
1899
+ try {
1900
+ const result = await httpClient.request(reqOpts);
1901
+ sideEffects?.onSuccess?.(result);
1902
+ return result;
1903
+ } catch (err) {
1904
+ sideEffects?.onError?.(err);
1905
+ throw err;
1906
+ }
1907
+ },
1908
+ requestTransformer: (query) => {
1909
+ const args = [query, options];
1910
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1911
+ { ...args?.[1], query: args?.[0] },
1912
+ []
1913
+ );
1914
+ },
1915
+ responseTransformer: ({ data }) => {
1916
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1917
+ (0, import_transform_paths2.transformPaths)(data, [
1918
+ {
1919
+ transformFn: import_image2.transformRESTImageToSDKImage,
1920
+ paths: [{ path: "events.mainImage" }]
1921
+ },
1922
+ {
1923
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1924
+ paths: [
1925
+ { path: "events.eventPageUrl" },
1926
+ { path: "events.agendaSettings.pageUrl" }
1927
+ ]
1928
+ },
1929
+ {
1930
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1931
+ paths: [{ path: "events.location.address" }]
1932
+ }
1933
+ ]),
1934
+ ["events.description"]
1935
+ );
1936
+ return {
1937
+ items: transformedData?.events,
1938
+ pagingMetadata: transformedData?.pagingMetadata
1939
+ };
1940
+ },
1941
+ errorTransformer: (err) => {
1942
+ const transformedError = (0, import_transform_error.transformError)(err, {
1943
+ spreadPathsToArguments: {},
1944
+ explicitPathsToArguments: { query: "$[0]" },
1945
+ singleArgumentUnchanged: false
1946
+ });
1947
+ throw transformedError;
1948
+ },
1949
+ pagingMethod: "OFFSET",
1950
+ transformationPaths: {}
1951
+ });
1952
+ }
1953
+ async function countEventsByStatus2(options) {
1954
+ const { httpClient, sideEffects } = arguments[1];
1955
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1956
+ {
1957
+ filter: options?.filter,
1958
+ facet: options?.facet,
1959
+ includeDrafts: options?.includeDrafts
1960
+ },
1961
+ []
1962
+ );
1963
+ const reqOpts = countEventsByStatus(payload);
1964
+ sideEffects?.onSiteCall?.();
1965
+ try {
1966
+ const result = await httpClient.request(reqOpts);
1967
+ sideEffects?.onSuccess?.(result);
1968
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
1969
+ } catch (err) {
1970
+ const transformedError = (0, import_transform_error.transformError)(
1971
+ err,
1972
+ {
1973
+ spreadPathsToArguments: {},
1974
+ explicitPathsToArguments: {
1975
+ filter: "$[0].filter",
1976
+ facet: "$[0].facet",
1977
+ includeDrafts: "$[0].includeDrafts"
1978
+ },
1979
+ singleArgumentUnchanged: false
1980
+ },
1981
+ ["options"]
1982
+ );
1983
+ sideEffects?.onError?.(err);
1984
+ throw transformedError;
1985
+ }
1986
+ }
1987
+ async function getEvent2(eventId, options) {
1988
+ const { httpClient, sideEffects } = arguments[2];
1989
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1990
+ { eventId, fields: options?.fields },
1991
+ []
1992
+ );
1993
+ const reqOpts = getEvent(payload);
1994
+ sideEffects?.onSiteCall?.();
1995
+ try {
1996
+ const result = await httpClient.request(reqOpts);
1997
+ sideEffects?.onSuccess?.(result);
1998
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1999
+ (0, import_transform_paths2.transformPaths)(result.data, [
2000
+ {
2001
+ transformFn: import_image2.transformRESTImageToSDKImage,
2002
+ paths: [{ path: "event.mainImage" }]
2003
+ },
2004
+ {
2005
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2006
+ paths: [
2007
+ { path: "event.eventPageUrl" },
2008
+ { path: "event.agendaSettings.pageUrl" }
2009
+ ]
2010
+ },
2011
+ {
2012
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
2013
+ paths: [{ path: "event.location.address" }]
2014
+ }
2015
+ ]),
2016
+ ["event.description"]
2017
+ )?.event;
2018
+ } catch (err) {
2019
+ const transformedError = (0, import_transform_error.transformError)(
2020
+ err,
2021
+ {
2022
+ spreadPathsToArguments: {},
2023
+ explicitPathsToArguments: { eventId: "$[0]", fields: "$[1].fields" },
2024
+ singleArgumentUnchanged: false
2025
+ },
2026
+ ["eventId", "options"]
2027
+ );
2028
+ sideEffects?.onError?.(err);
2029
+ throw transformedError;
2030
+ }
2031
+ }
2032
+ async function getEventBySlug2(slug, options) {
2033
+ const { httpClient, sideEffects } = arguments[2];
2034
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2035
+ { slug, fields: options?.fields },
2036
+ []
2037
+ );
2038
+ const reqOpts = getEventBySlug(payload);
2039
+ sideEffects?.onSiteCall?.();
2040
+ try {
2041
+ const result = await httpClient.request(reqOpts);
2042
+ sideEffects?.onSuccess?.(result);
2043
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2044
+ (0, import_transform_paths2.transformPaths)(result.data, [
2045
+ {
2046
+ transformFn: import_image2.transformRESTImageToSDKImage,
2047
+ paths: [{ path: "event.mainImage" }]
2048
+ },
2049
+ {
2050
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2051
+ paths: [
2052
+ { path: "event.eventPageUrl" },
2053
+ { path: "event.agendaSettings.pageUrl" }
2054
+ ]
2055
+ },
2056
+ {
2057
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
2058
+ paths: [{ path: "event.location.address" }]
2059
+ }
2060
+ ]),
2061
+ ["event.description"]
2062
+ );
2063
+ } catch (err) {
2064
+ const transformedError = (0, import_transform_error.transformError)(
2065
+ err,
2066
+ {
2067
+ spreadPathsToArguments: {},
2068
+ explicitPathsToArguments: { slug: "$[0]", fields: "$[1].fields" },
2069
+ singleArgumentUnchanged: false
2070
+ },
2071
+ ["slug", "options"]
2072
+ );
2073
+ sideEffects?.onError?.(err);
2074
+ throw transformedError;
2075
+ }
2076
+ }
2077
+ // Annotate the CommonJS export names for ESM import in node:
2078
+ 0 && (module.exports = {
2079
+ Alignment,
2080
+ AppType,
2081
+ BackgroundType,
2082
+ BadgeTypeType,
2083
+ ButtonDataType,
2084
+ CategoryTypeType,
2085
+ CommonSortOrder,
2086
+ ConferenceType,
2087
+ ConferenceTypeType,
2088
+ Crop,
2089
+ DecorationType,
2090
+ Direction,
2091
+ EventStatus,
2092
+ EventType,
2093
+ EventsRecurrenceStatusStatus,
2094
+ EventsTaxType,
2095
+ FontType,
2096
+ GIFType,
2097
+ GuestTypeType,
2098
+ InitialExpandedItems,
2099
+ InitialRegistrationTypeType,
2100
+ InputControlType,
2101
+ LayoutType,
2102
+ LineStyle,
2103
+ LocationLocationType,
2104
+ LocationType,
2105
+ MapType,
2106
+ NodeType,
2107
+ NullValue,
2108
+ Orientation,
2109
+ PluginContainerDataAlignment,
2110
+ PollLayoutDirection,
2111
+ PollLayoutType,
2112
+ Position,
2113
+ RecurrenceStatusStatus,
2114
+ RegistrationStatus,
2115
+ RegistrationStatusStatus,
2116
+ RegistrationTypeType,
2117
+ Relation,
2118
+ RequestedFields,
2119
+ ResponseType,
2120
+ RsvpStatusOptions,
2121
+ SortOrder,
2122
+ Source,
2123
+ State,
2124
+ Status,
2125
+ SubdivisionSubdivisionType,
2126
+ SubdivisionType,
2127
+ Target,
2128
+ TaxType,
2129
+ TextAlignment,
2130
+ ThumbnailsAlignment,
2131
+ Type,
2132
+ ValueType,
2133
+ VerticalAlignment,
2134
+ ViewMode,
2135
+ ViewRole,
2136
+ VisitorType,
2137
+ VoteRole,
2138
+ WebhookIdentityType,
2139
+ Width,
2140
+ WidthType,
2141
+ bulkCancelEventsByFilter,
2142
+ bulkDeleteEventsByFilter,
2143
+ cancelEvent,
2144
+ cloneEvent,
2145
+ countEventsByStatus,
2146
+ createEvent,
2147
+ deleteEvent,
2148
+ getEvent,
2149
+ getEventBySlug,
2150
+ publishDraftEvent,
2151
+ queryEvents,
2152
+ updateEvent
2153
+ });
2154
+ //# sourceMappingURL=index.typings.js.map