@wix/auto_sdk_events_wix-events-v-2 1.0.31 → 1.0.33

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