@wix/events 1.0.144 → 1.0.146

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 (443) hide show
  1. package/build/cjs/index.d.ts +1 -12
  2. package/build/cjs/index.js +7 -14
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -12
  5. package/build/cjs/index.typings.js +7 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -12
  8. package/build/cjs/meta.js +7 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/events-v3-ticket-definition.http.d.ts +33 -0
  11. package/build/cjs/src/events-v3-ticket-definition.http.js +271 -0
  12. package/build/cjs/src/events-v3-ticket-definition.http.js.map +1 -0
  13. package/build/cjs/src/events-v3-ticket-definition.meta.d.ts +25 -0
  14. package/build/cjs/src/{events-v1-ticket-definition.meta.js → events-v3-ticket-definition.meta.js} +47 -43
  15. package/build/cjs/src/events-v3-ticket-definition.meta.js.map +1 -0
  16. package/build/cjs/src/events-v3-ticket-definition.public.d.ts +98 -0
  17. package/build/cjs/src/events-v3-ticket-definition.public.js +63 -0
  18. package/build/cjs/src/events-v3-ticket-definition.public.js.map +1 -0
  19. package/build/cjs/src/events-v3-ticket-definition.types.d.ts +1265 -0
  20. package/build/cjs/src/events-v3-ticket-definition.types.js +195 -0
  21. package/build/cjs/src/events-v3-ticket-definition.types.js.map +1 -0
  22. package/build/cjs/src/events-v3-ticket-definition.universal.d.ts +1449 -0
  23. package/build/cjs/src/events-v3-ticket-definition.universal.js +698 -0
  24. package/build/cjs/src/events-v3-ticket-definition.universal.js.map +1 -0
  25. package/build/es/index.d.ts +1 -12
  26. package/build/es/index.js +1 -12
  27. package/build/es/index.js.map +1 -1
  28. package/build/es/index.typings.d.ts +1 -12
  29. package/build/es/index.typings.js +1 -12
  30. package/build/es/index.typings.js.map +1 -1
  31. package/build/es/meta.d.ts +1 -12
  32. package/build/es/meta.js +1 -12
  33. package/build/es/meta.js.map +1 -1
  34. package/build/es/src/events-v3-ticket-definition.http.d.ts +33 -0
  35. package/build/es/src/events-v3-ticket-definition.http.js +261 -0
  36. package/build/es/src/events-v3-ticket-definition.http.js.map +1 -0
  37. package/build/es/src/events-v3-ticket-definition.meta.d.ts +25 -0
  38. package/build/es/src/{events-v1-ticket-definition.meta.js → events-v3-ticket-definition.meta.js} +35 -35
  39. package/build/es/src/events-v3-ticket-definition.meta.js.map +1 -0
  40. package/build/es/src/events-v3-ticket-definition.public.d.ts +98 -0
  41. package/build/es/src/events-v3-ticket-definition.public.js +39 -0
  42. package/build/es/src/events-v3-ticket-definition.public.js.map +1 -0
  43. package/build/es/src/events-v3-ticket-definition.types.d.ts +1265 -0
  44. package/build/es/src/events-v3-ticket-definition.types.js +192 -0
  45. package/build/es/src/events-v3-ticket-definition.types.js.map +1 -0
  46. package/build/es/src/events-v3-ticket-definition.universal.d.ts +1449 -0
  47. package/build/es/src/events-v3-ticket-definition.universal.js +665 -0
  48. package/build/es/src/events-v3-ticket-definition.universal.js.map +1 -0
  49. package/package.json +7 -3
  50. package/build/cjs/src/events-events-v3-event.http.d.ts +0 -56
  51. package/build/cjs/src/events-events-v3-event.http.js +0 -548
  52. package/build/cjs/src/events-events-v3-event.http.js.map +0 -1
  53. package/build/cjs/src/events-events-v3-event.public.d.ts +0 -19
  54. package/build/cjs/src/events-events-v3-event.public.js +0 -99
  55. package/build/cjs/src/events-events-v3-event.public.js.map +0 -1
  56. package/build/cjs/src/events-events-v3-event.types.d.ts +0 -1512
  57. package/build/cjs/src/events-events-v3-event.types.js +0 -246
  58. package/build/cjs/src/events-events-v3-event.types.js.map +0 -1
  59. package/build/cjs/src/events-events-v3-event.universal.d.ts +0 -1808
  60. package/build/cjs/src/events-events-v3-event.universal.js +0 -987
  61. package/build/cjs/src/events-events-v3-event.universal.js.map +0 -1
  62. package/build/cjs/src/events-guests-v1-guest.http.d.ts +0 -23
  63. package/build/cjs/src/events-guests-v1-guest.http.js +0 -125
  64. package/build/cjs/src/events-guests-v1-guest.http.js.map +0 -1
  65. package/build/cjs/src/events-guests-v1-guest.meta.d.ts +0 -13
  66. package/build/cjs/src/events-guests-v1-guest.meta.js +0 -43
  67. package/build/cjs/src/events-guests-v1-guest.meta.js.map +0 -1
  68. package/build/cjs/src/events-guests-v1-guest.public.d.ts +0 -7
  69. package/build/cjs/src/events-guests-v1-guest.public.js +0 -24
  70. package/build/cjs/src/events-guests-v1-guest.public.js.map +0 -1
  71. package/build/cjs/src/events-guests-v1-guest.types.d.ts +0 -800
  72. package/build/cjs/src/events-guests-v1-guest.types.js +0 -105
  73. package/build/cjs/src/events-guests-v1-guest.types.js.map +0 -1
  74. package/build/cjs/src/events-guests-v1-guest.universal.d.ts +0 -864
  75. package/build/cjs/src/events-guests-v1-guest.universal.js +0 -237
  76. package/build/cjs/src/events-guests-v1-guest.universal.js.map +0 -1
  77. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +0 -49
  78. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +0 -521
  79. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +0 -1
  80. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.d.ts +0 -19
  81. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.js +0 -81
  82. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.js.map +0 -1
  83. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.d.ts +0 -9
  84. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js +0 -28
  85. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js.map +0 -1
  86. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +0 -415
  87. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +0 -27
  88. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +0 -1
  89. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +0 -453
  90. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +0 -239
  91. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +0 -1
  92. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.d.ts +0 -49
  93. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js +0 -521
  94. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js.map +0 -1
  95. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.meta.d.ts +0 -25
  96. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.meta.js +0 -195
  97. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.meta.js.map +0 -1
  98. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.d.ts +0 -26
  99. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.js +0 -64
  100. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.js.map +0 -1
  101. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.d.ts +0 -415
  102. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js +0 -27
  103. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js.map +0 -1
  104. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +0 -654
  105. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js +0 -613
  106. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js.map +0 -1
  107. package/build/cjs/src/events-schedule-v1-schedule-item.http.d.ts +0 -49
  108. package/build/cjs/src/events-schedule-v1-schedule-item.http.js +0 -485
  109. package/build/cjs/src/events-schedule-v1-schedule-item.http.js.map +0 -1
  110. package/build/cjs/src/events-schedule-v1-schedule-item.types.d.ts +0 -318
  111. package/build/cjs/src/events-schedule-v1-schedule-item.types.js +0 -27
  112. package/build/cjs/src/events-schedule-v1-schedule-item.types.js.map +0 -1
  113. package/build/cjs/src/events-v1-category.http.d.ts +0 -35
  114. package/build/cjs/src/events-v1-category.http.js +0 -618
  115. package/build/cjs/src/events-v1-category.http.js.map +0 -1
  116. package/build/cjs/src/events-v1-category.meta.d.ts +0 -37
  117. package/build/cjs/src/events-v1-category.meta.js +0 -271
  118. package/build/cjs/src/events-v1-category.meta.js.map +0 -1
  119. package/build/cjs/src/events-v1-category.public.d.ts +0 -28
  120. package/build/cjs/src/events-v1-category.public.js +0 -88
  121. package/build/cjs/src/events-v1-category.public.js.map +0 -1
  122. package/build/cjs/src/events-v1-category.types.d.ts +0 -364
  123. package/build/cjs/src/events-v1-category.types.js +0 -27
  124. package/build/cjs/src/events-v1-category.types.js.map +0 -1
  125. package/build/cjs/src/events-v1-category.universal.d.ts +0 -586
  126. package/build/cjs/src/events-v1-category.universal.js +0 -798
  127. package/build/cjs/src/events-v1-category.universal.js.map +0 -1
  128. package/build/cjs/src/events-v1-event.http.d.ts +0 -90
  129. package/build/cjs/src/events-v1-event.http.js +0 -973
  130. package/build/cjs/src/events-v1-event.http.js.map +0 -1
  131. package/build/cjs/src/events-v1-event.meta.d.ts +0 -41
  132. package/build/cjs/src/events-v1-event.meta.js +0 -309
  133. package/build/cjs/src/events-v1-event.meta.js.map +0 -1
  134. package/build/cjs/src/events-v1-event.public.d.ts +0 -694
  135. package/build/cjs/src/events-v1-event.public.js +0 -113
  136. package/build/cjs/src/events-v1-event.public.js.map +0 -1
  137. package/build/cjs/src/events-v1-event.types.d.ts +0 -4384
  138. package/build/cjs/src/events-v1-event.types.js +0 -199
  139. package/build/cjs/src/events-v1-event.types.js.map +0 -1
  140. package/build/cjs/src/events-v1-event.universal.d.ts +0 -4688
  141. package/build/cjs/src/events-v1-event.universal.js +0 -1214
  142. package/build/cjs/src/events-v1-event.universal.js.map +0 -1
  143. package/build/cjs/src/events-v1-form.http.d.ts +0 -25
  144. package/build/cjs/src/events-v1-form.http.js +0 -445
  145. package/build/cjs/src/events-v1-form.http.js.map +0 -1
  146. package/build/cjs/src/events-v1-form.meta.d.ts +0 -35
  147. package/build/cjs/src/events-v1-form.meta.js +0 -157
  148. package/build/cjs/src/events-v1-form.meta.js.map +0 -1
  149. package/build/cjs/src/events-v1-form.public.d.ts +0 -14
  150. package/build/cjs/src/events-v1-form.public.js +0 -54
  151. package/build/cjs/src/events-v1-form.public.js.map +0 -1
  152. package/build/cjs/src/events-v1-form.types.d.ts +0 -1231
  153. package/build/cjs/src/events-v1-form.types.js +0 -69
  154. package/build/cjs/src/events-v1-form.types.js.map +0 -1
  155. package/build/cjs/src/events-v1-form.universal.d.ts +0 -1381
  156. package/build/cjs/src/events-v1-form.universal.js +0 -552
  157. package/build/cjs/src/events-v1-form.universal.js.map +0 -1
  158. package/build/cjs/src/events-v1-order-checkout.http.d.ts +0 -89
  159. package/build/cjs/src/events-v1-order-checkout.http.js +0 -1000
  160. package/build/cjs/src/events-v1-order-checkout.http.js.map +0 -1
  161. package/build/cjs/src/events-v1-order-checkout.meta.d.ts +0 -26
  162. package/build/cjs/src/events-v1-order-checkout.meta.js +0 -176
  163. package/build/cjs/src/events-v1-order-checkout.meta.js.map +0 -1
  164. package/build/cjs/src/events-v1-order-checkout.public.d.ts +0 -15
  165. package/build/cjs/src/events-v1-order-checkout.public.js +0 -69
  166. package/build/cjs/src/events-v1-order-checkout.public.js.map +0 -1
  167. package/build/cjs/src/events-v1-order-checkout.types.d.ts +0 -3610
  168. package/build/cjs/src/events-v1-order-checkout.types.js +0 -145
  169. package/build/cjs/src/events-v1-order-checkout.types.js.map +0 -1
  170. package/build/cjs/src/events-v1-order-checkout.universal.d.ts +0 -3629
  171. package/build/cjs/src/events-v1-order-checkout.universal.js +0 -769
  172. package/build/cjs/src/events-v1-order-checkout.universal.js.map +0 -1
  173. package/build/cjs/src/events-v1-order-orders.http.d.ts +0 -121
  174. package/build/cjs/src/events-v1-order-orders.http.js +0 -1032
  175. package/build/cjs/src/events-v1-order-orders.http.js.map +0 -1
  176. package/build/cjs/src/events-v1-order-orders.meta.d.ts +0 -28
  177. package/build/cjs/src/events-v1-order-orders.meta.js +0 -138
  178. package/build/cjs/src/events-v1-order-orders.meta.js.map +0 -1
  179. package/build/cjs/src/events-v1-order-orders.public.d.ts +0 -220
  180. package/build/cjs/src/events-v1-order-orders.public.js +0 -57
  181. package/build/cjs/src/events-v1-order-orders.public.js.map +0 -1
  182. package/build/cjs/src/events-v1-order-orders.types.d.ts +0 -3610
  183. package/build/cjs/src/events-v1-order-orders.types.js +0 -145
  184. package/build/cjs/src/events-v1-order-orders.types.js.map +0 -1
  185. package/build/cjs/src/events-v1-order-orders.universal.d.ts +0 -3599
  186. package/build/cjs/src/events-v1-order-orders.universal.js +0 -637
  187. package/build/cjs/src/events-v1-order-orders.universal.js.map +0 -1
  188. package/build/cjs/src/events-v1-rsvp.http.d.ts +0 -20
  189. package/build/cjs/src/events-v1-rsvp.http.js +0 -376
  190. package/build/cjs/src/events-v1-rsvp.http.js.map +0 -1
  191. package/build/cjs/src/events-v1-rsvp.meta.d.ts +0 -25
  192. package/build/cjs/src/events-v1-rsvp.meta.js +0 -195
  193. package/build/cjs/src/events-v1-rsvp.meta.js.map +0 -1
  194. package/build/cjs/src/events-v1-rsvp.public.d.ts +0 -39
  195. package/build/cjs/src/events-v1-rsvp.public.js +0 -65
  196. package/build/cjs/src/events-v1-rsvp.public.js.map +0 -1
  197. package/build/cjs/src/events-v1-rsvp.types.d.ts +0 -808
  198. package/build/cjs/src/events-v1-rsvp.types.js +0 -44
  199. package/build/cjs/src/events-v1-rsvp.types.js.map +0 -1
  200. package/build/cjs/src/events-v1-rsvp.universal.d.ts +0 -914
  201. package/build/cjs/src/events-v1-rsvp.universal.js +0 -658
  202. package/build/cjs/src/events-v1-rsvp.universal.js.map +0 -1
  203. package/build/cjs/src/events-v1-ticket-definition.http.d.ts +0 -50
  204. package/build/cjs/src/events-v1-ticket-definition.http.js +0 -416
  205. package/build/cjs/src/events-v1-ticket-definition.http.js.map +0 -1
  206. package/build/cjs/src/events-v1-ticket-definition.meta.d.ts +0 -23
  207. package/build/cjs/src/events-v1-ticket-definition.meta.js.map +0 -1
  208. package/build/cjs/src/events-v1-ticket-definition.public.d.ts +0 -61
  209. package/build/cjs/src/events-v1-ticket-definition.public.js +0 -57
  210. package/build/cjs/src/events-v1-ticket-definition.public.js.map +0 -1
  211. package/build/cjs/src/events-v1-ticket-definition.types.d.ts +0 -725
  212. package/build/cjs/src/events-v1-ticket-definition.types.js +0 -63
  213. package/build/cjs/src/events-v1-ticket-definition.types.js.map +0 -1
  214. package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +0 -960
  215. package/build/cjs/src/events-v1-ticket-definition.universal.js +0 -570
  216. package/build/cjs/src/events-v1-ticket-definition.universal.js.map +0 -1
  217. package/build/cjs/src/events-v1-ticket.http.d.ts +0 -44
  218. package/build/cjs/src/events-v1-ticket.http.js +0 -532
  219. package/build/cjs/src/events-v1-ticket.http.js.map +0 -1
  220. package/build/cjs/src/events-v1-ticket.meta.d.ts +0 -28
  221. package/build/cjs/src/events-v1-ticket.meta.js +0 -138
  222. package/build/cjs/src/events-v1-ticket.meta.js.map +0 -1
  223. package/build/cjs/src/events-v1-ticket.public.d.ts +0 -45
  224. package/build/cjs/src/events-v1-ticket.public.js +0 -48
  225. package/build/cjs/src/events-v1-ticket.public.js.map +0 -1
  226. package/build/cjs/src/events-v1-ticket.types.d.ts +0 -791
  227. package/build/cjs/src/events-v1-ticket.types.js +0 -76
  228. package/build/cjs/src/events-v1-ticket.types.js.map +0 -1
  229. package/build/cjs/src/events-v1-ticket.universal.d.ts +0 -892
  230. package/build/cjs/src/events-v1-ticket.universal.js +0 -576
  231. package/build/cjs/src/events-v1-ticket.universal.js.map +0 -1
  232. package/build/cjs/src/events-v2-policy.http.d.ts +0 -80
  233. package/build/cjs/src/events-v2-policy.http.js +0 -295
  234. package/build/cjs/src/events-v2-policy.http.js.map +0 -1
  235. package/build/cjs/src/events-v2-policy.meta.d.ts +0 -24
  236. package/build/cjs/src/events-v2-policy.meta.js +0 -138
  237. package/build/cjs/src/events-v2-policy.meta.js.map +0 -1
  238. package/build/cjs/src/events-v2-policy.public.d.ts +0 -25
  239. package/build/cjs/src/events-v2-policy.public.js +0 -48
  240. package/build/cjs/src/events-v2-policy.public.js.map +0 -1
  241. package/build/cjs/src/events-v2-policy.types.d.ts +0 -405
  242. package/build/cjs/src/events-v2-policy.types.js +0 -56
  243. package/build/cjs/src/events-v2-policy.types.js.map +0 -1
  244. package/build/cjs/src/events-v2-policy.universal.d.ts +0 -654
  245. package/build/cjs/src/events-v2-policy.universal.js +0 -522
  246. package/build/cjs/src/events-v2-policy.universal.js.map +0 -1
  247. package/build/es/src/events-events-v3-event.http.d.ts +0 -56
  248. package/build/es/src/events-events-v3-event.http.js +0 -533
  249. package/build/es/src/events-events-v3-event.http.js.map +0 -1
  250. package/build/es/src/events-events-v3-event.public.d.ts +0 -19
  251. package/build/es/src/events-events-v3-event.public.js +0 -64
  252. package/build/es/src/events-events-v3-event.public.js.map +0 -1
  253. package/build/es/src/events-events-v3-event.types.d.ts +0 -1512
  254. package/build/es/src/events-events-v3-event.types.js +0 -243
  255. package/build/es/src/events-events-v3-event.types.js.map +0 -1
  256. package/build/es/src/events-events-v3-event.universal.d.ts +0 -1808
  257. package/build/es/src/events-events-v3-event.universal.js +0 -953
  258. package/build/es/src/events-events-v3-event.universal.js.map +0 -1
  259. package/build/es/src/events-guests-v1-guest.http.d.ts +0 -23
  260. package/build/es/src/events-guests-v1-guest.http.js +0 -121
  261. package/build/es/src/events-guests-v1-guest.http.js.map +0 -1
  262. package/build/es/src/events-guests-v1-guest.meta.d.ts +0 -13
  263. package/build/es/src/events-guests-v1-guest.meta.js +0 -20
  264. package/build/es/src/events-guests-v1-guest.meta.js.map +0 -1
  265. package/build/es/src/events-guests-v1-guest.public.d.ts +0 -7
  266. package/build/es/src/events-guests-v1-guest.public.js +0 -9
  267. package/build/es/src/events-guests-v1-guest.public.js.map +0 -1
  268. package/build/es/src/events-guests-v1-guest.types.d.ts +0 -800
  269. package/build/es/src/events-guests-v1-guest.types.js +0 -102
  270. package/build/es/src/events-guests-v1-guest.types.js.map +0 -1
  271. package/build/es/src/events-guests-v1-guest.universal.d.ts +0 -864
  272. package/build/es/src/events-guests-v1-guest.universal.js +0 -214
  273. package/build/es/src/events-guests-v1-guest.universal.js.map +0 -1
  274. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +0 -49
  275. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +0 -506
  276. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +0 -1
  277. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.d.ts +0 -19
  278. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.js +0 -56
  279. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.meta.js.map +0 -1
  280. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.d.ts +0 -9
  281. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js +0 -19
  282. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js.map +0 -1
  283. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +0 -415
  284. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +0 -24
  285. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +0 -1
  286. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +0 -453
  287. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +0 -214
  288. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +0 -1
  289. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.d.ts +0 -49
  290. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js +0 -506
  291. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js.map +0 -1
  292. package/build/es/src/events-schedule-v1-schedule-item-schedule.meta.d.ts +0 -25
  293. package/build/es/src/events-schedule-v1-schedule-item-schedule.meta.js +0 -164
  294. package/build/es/src/events-schedule-v1-schedule-item-schedule.meta.js.map +0 -1
  295. package/build/es/src/events-schedule-v1-schedule-item-schedule.public.d.ts +0 -26
  296. package/build/es/src/events-schedule-v1-schedule-item-schedule.public.js +0 -49
  297. package/build/es/src/events-schedule-v1-schedule-item-schedule.public.js.map +0 -1
  298. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.d.ts +0 -415
  299. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js +0 -24
  300. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js.map +0 -1
  301. package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +0 -654
  302. package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js +0 -582
  303. package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js.map +0 -1
  304. package/build/es/src/events-schedule-v1-schedule-item.http.d.ts +0 -49
  305. package/build/es/src/events-schedule-v1-schedule-item.http.js +0 -470
  306. package/build/es/src/events-schedule-v1-schedule-item.http.js.map +0 -1
  307. package/build/es/src/events-schedule-v1-schedule-item.types.d.ts +0 -318
  308. package/build/es/src/events-schedule-v1-schedule-item.types.js +0 -24
  309. package/build/es/src/events-schedule-v1-schedule-item.types.js.map +0 -1
  310. package/build/es/src/events-v1-category.http.d.ts +0 -35
  311. package/build/es/src/events-v1-category.http.js +0 -602
  312. package/build/es/src/events-v1-category.http.js.map +0 -1
  313. package/build/es/src/events-v1-category.meta.d.ts +0 -37
  314. package/build/es/src/events-v1-category.meta.js +0 -236
  315. package/build/es/src/events-v1-category.meta.js.map +0 -1
  316. package/build/es/src/events-v1-category.public.d.ts +0 -28
  317. package/build/es/src/events-v1-category.public.js +0 -69
  318. package/build/es/src/events-v1-category.public.js.map +0 -1
  319. package/build/es/src/events-v1-category.types.d.ts +0 -364
  320. package/build/es/src/events-v1-category.types.js +0 -24
  321. package/build/es/src/events-v1-category.types.js.map +0 -1
  322. package/build/es/src/events-v1-category.universal.d.ts +0 -586
  323. package/build/es/src/events-v1-category.universal.js +0 -763
  324. package/build/es/src/events-v1-category.universal.js.map +0 -1
  325. package/build/es/src/events-v1-event.http.d.ts +0 -90
  326. package/build/es/src/events-v1-event.http.js +0 -955
  327. package/build/es/src/events-v1-event.http.js.map +0 -1
  328. package/build/es/src/events-v1-event.meta.d.ts +0 -41
  329. package/build/es/src/events-v1-event.meta.js +0 -272
  330. package/build/es/src/events-v1-event.meta.js.map +0 -1
  331. package/build/es/src/events-v1-event.public.d.ts +0 -694
  332. package/build/es/src/events-v1-event.public.js +0 -79
  333. package/build/es/src/events-v1-event.public.js.map +0 -1
  334. package/build/es/src/events-v1-event.types.d.ts +0 -4384
  335. package/build/es/src/events-v1-event.types.js +0 -196
  336. package/build/es/src/events-v1-event.types.js.map +0 -1
  337. package/build/es/src/events-v1-event.universal.d.ts +0 -4688
  338. package/build/es/src/events-v1-event.universal.js +0 -1177
  339. package/build/es/src/events-v1-event.universal.js.map +0 -1
  340. package/build/es/src/events-v1-form.http.d.ts +0 -25
  341. package/build/es/src/events-v1-form.http.js +0 -435
  342. package/build/es/src/events-v1-form.http.js.map +0 -1
  343. package/build/es/src/events-v1-form.meta.d.ts +0 -35
  344. package/build/es/src/events-v1-form.meta.js +0 -128
  345. package/build/es/src/events-v1-form.meta.js.map +0 -1
  346. package/build/es/src/events-v1-form.public.d.ts +0 -14
  347. package/build/es/src/events-v1-form.public.js +0 -39
  348. package/build/es/src/events-v1-form.public.js.map +0 -1
  349. package/build/es/src/events-v1-form.types.d.ts +0 -1231
  350. package/build/es/src/events-v1-form.types.js +0 -66
  351. package/build/es/src/events-v1-form.types.js.map +0 -1
  352. package/build/es/src/events-v1-form.universal.d.ts +0 -1381
  353. package/build/es/src/events-v1-form.universal.js +0 -523
  354. package/build/es/src/events-v1-form.universal.js.map +0 -1
  355. package/build/es/src/events-v1-order-checkout.http.d.ts +0 -89
  356. package/build/es/src/events-v1-order-checkout.http.js +0 -983
  357. package/build/es/src/events-v1-order-checkout.http.js.map +0 -1
  358. package/build/es/src/events-v1-order-checkout.meta.d.ts +0 -26
  359. package/build/es/src/events-v1-order-checkout.meta.js +0 -146
  360. package/build/es/src/events-v1-order-checkout.meta.js.map +0 -1
  361. package/build/es/src/events-v1-order-checkout.public.d.ts +0 -15
  362. package/build/es/src/events-v1-order-checkout.public.js +0 -44
  363. package/build/es/src/events-v1-order-checkout.public.js.map +0 -1
  364. package/build/es/src/events-v1-order-checkout.types.d.ts +0 -3610
  365. package/build/es/src/events-v1-order-checkout.types.js +0 -142
  366. package/build/es/src/events-v1-order-checkout.types.js.map +0 -1
  367. package/build/es/src/events-v1-order-checkout.universal.d.ts +0 -3629
  368. package/build/es/src/events-v1-order-checkout.universal.js +0 -739
  369. package/build/es/src/events-v1-order-checkout.universal.js.map +0 -1
  370. package/build/es/src/events-v1-order-orders.http.d.ts +0 -121
  371. package/build/es/src/events-v1-order-orders.http.js +0 -1015
  372. package/build/es/src/events-v1-order-orders.http.js.map +0 -1
  373. package/build/es/src/events-v1-order-orders.meta.d.ts +0 -28
  374. package/build/es/src/events-v1-order-orders.meta.js +0 -110
  375. package/build/es/src/events-v1-order-orders.meta.js.map +0 -1
  376. package/build/es/src/events-v1-order-orders.public.d.ts +0 -220
  377. package/build/es/src/events-v1-order-orders.public.js +0 -34
  378. package/build/es/src/events-v1-order-orders.public.js.map +0 -1
  379. package/build/es/src/events-v1-order-orders.types.d.ts +0 -3610
  380. package/build/es/src/events-v1-order-orders.types.js +0 -142
  381. package/build/es/src/events-v1-order-orders.types.js.map +0 -1
  382. package/build/es/src/events-v1-order-orders.universal.d.ts +0 -3599
  383. package/build/es/src/events-v1-order-orders.universal.js +0 -609
  384. package/build/es/src/events-v1-order-orders.universal.js.map +0 -1
  385. package/build/es/src/events-v1-rsvp.http.d.ts +0 -20
  386. package/build/es/src/events-v1-rsvp.http.js +0 -364
  387. package/build/es/src/events-v1-rsvp.http.js.map +0 -1
  388. package/build/es/src/events-v1-rsvp.meta.d.ts +0 -25
  389. package/build/es/src/events-v1-rsvp.meta.js +0 -164
  390. package/build/es/src/events-v1-rsvp.meta.js.map +0 -1
  391. package/build/es/src/events-v1-rsvp.public.d.ts +0 -39
  392. package/build/es/src/events-v1-rsvp.public.js +0 -49
  393. package/build/es/src/events-v1-rsvp.public.js.map +0 -1
  394. package/build/es/src/events-v1-rsvp.types.d.ts +0 -808
  395. package/build/es/src/events-v1-rsvp.types.js +0 -41
  396. package/build/es/src/events-v1-rsvp.types.js.map +0 -1
  397. package/build/es/src/events-v1-rsvp.universal.d.ts +0 -914
  398. package/build/es/src/events-v1-rsvp.universal.js +0 -627
  399. package/build/es/src/events-v1-rsvp.universal.js.map +0 -1
  400. package/build/es/src/events-v1-ticket-definition.http.d.ts +0 -50
  401. package/build/es/src/events-v1-ticket-definition.http.js +0 -406
  402. package/build/es/src/events-v1-ticket-definition.http.js.map +0 -1
  403. package/build/es/src/events-v1-ticket-definition.meta.d.ts +0 -23
  404. package/build/es/src/events-v1-ticket-definition.meta.js.map +0 -1
  405. package/build/es/src/events-v1-ticket-definition.public.d.ts +0 -61
  406. package/build/es/src/events-v1-ticket-definition.public.js +0 -39
  407. package/build/es/src/events-v1-ticket-definition.public.js.map +0 -1
  408. package/build/es/src/events-v1-ticket-definition.types.d.ts +0 -725
  409. package/build/es/src/events-v1-ticket-definition.types.js +0 -60
  410. package/build/es/src/events-v1-ticket-definition.types.js.map +0 -1
  411. package/build/es/src/events-v1-ticket-definition.universal.d.ts +0 -960
  412. package/build/es/src/events-v1-ticket-definition.universal.js +0 -541
  413. package/build/es/src/events-v1-ticket-definition.universal.js.map +0 -1
  414. package/build/es/src/events-v1-ticket.http.d.ts +0 -44
  415. package/build/es/src/events-v1-ticket.http.js +0 -523
  416. package/build/es/src/events-v1-ticket.http.js.map +0 -1
  417. package/build/es/src/events-v1-ticket.meta.d.ts +0 -28
  418. package/build/es/src/events-v1-ticket.meta.js +0 -110
  419. package/build/es/src/events-v1-ticket.meta.js.map +0 -1
  420. package/build/es/src/events-v1-ticket.public.d.ts +0 -45
  421. package/build/es/src/events-v1-ticket.public.js +0 -34
  422. package/build/es/src/events-v1-ticket.public.js.map +0 -1
  423. package/build/es/src/events-v1-ticket.types.d.ts +0 -791
  424. package/build/es/src/events-v1-ticket.types.js +0 -73
  425. package/build/es/src/events-v1-ticket.types.js.map +0 -1
  426. package/build/es/src/events-v1-ticket.universal.d.ts +0 -892
  427. package/build/es/src/events-v1-ticket.universal.js +0 -548
  428. package/build/es/src/events-v1-ticket.universal.js.map +0 -1
  429. package/build/es/src/events-v2-policy.http.d.ts +0 -80
  430. package/build/es/src/events-v2-policy.http.js +0 -286
  431. package/build/es/src/events-v2-policy.http.js.map +0 -1
  432. package/build/es/src/events-v2-policy.meta.d.ts +0 -24
  433. package/build/es/src/events-v2-policy.meta.js +0 -110
  434. package/build/es/src/events-v2-policy.meta.js.map +0 -1
  435. package/build/es/src/events-v2-policy.public.d.ts +0 -25
  436. package/build/es/src/events-v2-policy.public.js +0 -34
  437. package/build/es/src/events-v2-policy.public.js.map +0 -1
  438. package/build/es/src/events-v2-policy.types.d.ts +0 -405
  439. package/build/es/src/events-v2-policy.types.js +0 -53
  440. package/build/es/src/events-v2-policy.types.js.map +0 -1
  441. package/build/es/src/events-v2-policy.universal.d.ts +0 -654
  442. package/build/es/src/events-v2-policy.universal.js +0 -494
  443. package/build/es/src/events-v2-policy.universal.js.map +0 -1
@@ -1,1177 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
11
- import * as ambassadorWixEventsV1Event from './events-v1-event.http';
12
- // @ts-ignore
13
- import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
14
- let __verbose = false;
15
- function __log(...args) {
16
- __verbose && console.log(...args);
17
- }
18
- function __inspect(obj) {
19
- return obj;
20
- }
21
- export const __debug = {
22
- verboseLogging: {
23
- on: () => (__verbose = true),
24
- off: () => (__verbose = false),
25
- },
26
- };
27
- const _toVeloEntity = '$';
28
- const _fromVeloEntity = '$';
29
- export var LocationType;
30
- (function (LocationType) {
31
- LocationType["VENUE"] = "VENUE";
32
- LocationType["ONLINE"] = "ONLINE";
33
- })(LocationType || (LocationType = {}));
34
- export var SubdivisionType;
35
- (function (SubdivisionType) {
36
- SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
37
- /** State */
38
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
39
- /** County */
40
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
41
- /** City/town */
42
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
43
- /** Neighborhood/quarter */
44
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
45
- /** Street/block */
46
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
47
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
48
- SubdivisionType["COUNTRY"] = "COUNTRY";
49
- })(SubdivisionType || (SubdivisionType = {}));
50
- export var Status;
51
- (function (Status) {
52
- /** Event occurs only once. */
53
- Status["ONE_TIME"] = "ONE_TIME";
54
- /** Event is recurring. */
55
- Status["RECURRING"] = "RECURRING";
56
- /** Marks the next upcoming occurrence of the recurring event. */
57
- Status["RECURRING_NEXT"] = "RECURRING_NEXT";
58
- /** Marks the most recent ended occurrence of the recurring event. */
59
- Status["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
60
- /** Marks the most recent canceled occurrence of the recurring event. */
61
- Status["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
62
- })(Status || (Status = {}));
63
- export var EventStatus;
64
- (function (EventStatus) {
65
- /** Event is public and scheduled to start */
66
- EventStatus["SCHEDULED"] = "SCHEDULED";
67
- /** Event has started */
68
- EventStatus["STARTED"] = "STARTED";
69
- /** Event has ended */
70
- EventStatus["ENDED"] = "ENDED";
71
- /** Event was canceled */
72
- EventStatus["CANCELED"] = "CANCELED";
73
- /** Event is not public and needs to be published */
74
- EventStatus["DRAFT"] = "DRAFT";
75
- })(EventStatus || (EventStatus = {}));
76
- export var EventType;
77
- (function (EventType) {
78
- /** Type not available for this request fieldset */
79
- EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
80
- /** Registration via RSVP */
81
- EventType["RSVP"] = "RSVP";
82
- /** Registration via ticket purchase */
83
- EventType["TICKETS"] = "TICKETS";
84
- /** External registration */
85
- EventType["EXTERNAL"] = "EXTERNAL";
86
- /** Registration not available */
87
- EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
88
- })(EventType || (EventType = {}));
89
- export var RegistrationStatus;
90
- (function (RegistrationStatus) {
91
- /** Registration status is not applicable */
92
- RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
93
- /** Registration to event is closed */
94
- RegistrationStatus["CLOSED"] = "CLOSED";
95
- /** Registration to event is closed manually */
96
- RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
97
- /** Registration is open via RSVP */
98
- RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
99
- /** Registration to event waitlist is open via RSVP */
100
- RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
101
- /** Registration is open via ticket purchase */
102
- RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
103
- /** Registration is open via external URL */
104
- RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
105
- /** Registration will be open via RSVP */
106
- RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
107
- })(RegistrationStatus || (RegistrationStatus = {}));
108
- export var RsvpStatusOptions;
109
- (function (RsvpStatusOptions) {
110
- /** Only YES RSVP status is available for RSVP registration */
111
- RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
112
- /** YES and NO RSVP status options are available for the registration */
113
- RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
114
- })(RsvpStatusOptions || (RsvpStatusOptions = {}));
115
- export var TaxType;
116
- (function (TaxType) {
117
- /** Tax is included in the ticket price */
118
- TaxType["INCLUDED"] = "INCLUDED";
119
- /** Tax is added to the order at the checkout */
120
- TaxType["ADDED"] = "ADDED";
121
- /** Tax is added to the final total at the checkout */
122
- TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
123
- })(TaxType || (TaxType = {}));
124
- export var VisitorType;
125
- (function (VisitorType) {
126
- /** Site visitor (including member) */
127
- VisitorType["VISITOR"] = "VISITOR";
128
- /** Site member */
129
- VisitorType["MEMBER"] = "MEMBER";
130
- /** Site visitor or member */
131
- VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
132
- })(VisitorType || (VisitorType = {}));
133
- export var InputControlType;
134
- (function (InputControlType) {
135
- /** Single text value field. */
136
- InputControlType["INPUT"] = "INPUT";
137
- /** Single text value field. */
138
- InputControlType["TEXTAREA"] = "TEXTAREA";
139
- /** Single-choice field of predefined values. */
140
- InputControlType["DROPDOWN"] = "DROPDOWN";
141
- /** Single-choice field of predefined values. */
142
- InputControlType["RADIO"] = "RADIO";
143
- /** Multiple-choice field of predefined values. */
144
- InputControlType["CHECKBOX"] = "CHECKBOX";
145
- /** First and last name fields. */
146
- InputControlType["NAME"] = "NAME";
147
- /** Additional guests and respective guest names fields. */
148
- InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
149
- /** Single-line address field. */
150
- InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
151
- /** Full address field. */
152
- InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
153
- /** Year, month and day fields. */
154
- InputControlType["DATE"] = "DATE";
155
- })(InputControlType || (InputControlType = {}));
156
- export var ValueType;
157
- (function (ValueType) {
158
- ValueType["TEXT"] = "TEXT";
159
- ValueType["NUMBER"] = "NUMBER";
160
- ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
161
- ValueType["DATE_TIME"] = "DATE_TIME";
162
- ValueType["ADDRESS"] = "ADDRESS";
163
- })(ValueType || (ValueType = {}));
164
- export var ConferenceType;
165
- (function (ConferenceType) {
166
- /** Everyone in the meeting can publish and subscribe video and audio. */
167
- ConferenceType["MEETING"] = "MEETING";
168
- /** Guests can only subscribe to video and audio. */
169
- ConferenceType["WEBINAR"] = "WEBINAR";
170
- })(ConferenceType || (ConferenceType = {}));
171
- export var State;
172
- (function (State) {
173
- /** Created manually by the user. */
174
- State["MANUAL"] = "MANUAL";
175
- /** Created automatically. */
176
- State["AUTO"] = "AUTO";
177
- /** Created when publishing recurring events. */
178
- State["RECURRING_EVENT"] = "RECURRING_EVENT";
179
- /** Category is hidden. */
180
- State["HIDDEN"] = "HIDDEN";
181
- /** Category is used to store component events. */
182
- State["COMPONENT"] = "COMPONENT";
183
- })(State || (State = {}));
184
- export var EventFieldset;
185
- (function (EventFieldset) {
186
- EventFieldset["FULL"] = "FULL";
187
- /** Include `description`, `mainImage` and `calendarLinks` in the response. */
188
- EventFieldset["DETAILS"] = "DETAILS";
189
- /** Include `about` event rich text in the response. */
190
- EventFieldset["TEXTS"] = "TEXTS";
191
- /** Include `registration` in the response. */
192
- EventFieldset["REGISTRATION"] = "REGISTRATION";
193
- /** Include `eventPageUrl` in the response. */
194
- EventFieldset["URLS"] = "URLS";
195
- /** Include `form` in the response. */
196
- EventFieldset["FORM"] = "FORM";
197
- /** Include `dashboard` in the response. */
198
- EventFieldset["DASHBOARD"] = "DASHBOARD";
199
- /** Include `feed` in the response. */
200
- EventFieldset["FEED"] = "FEED";
201
- /** Include `onlineConferencing` in the response. */
202
- EventFieldset["ONLINE_CONFERENCING_SESSION"] = "ONLINE_CONFERENCING_SESSION";
203
- /** Include `seoSettings` in the response. */
204
- EventFieldset["SEO_SETTINGS"] = "SEO_SETTINGS";
205
- /** Include `agendaSettings` in the response. */
206
- EventFieldset["AGENDA"] = "AGENDA";
207
- /** Include `categories` in the response. */
208
- EventFieldset["CATEGORIES"] = "CATEGORIES";
209
- EventFieldset["CUSTOMIZABLE_TICKETS"] = "CUSTOMIZABLE_TICKETS";
210
- })(EventFieldset || (EventFieldset = {}));
211
- export var SortOrder;
212
- (function (SortOrder) {
213
- SortOrder["ASC"] = "ASC";
214
- SortOrder["DESC"] = "DESC";
215
- })(SortOrder || (SortOrder = {}));
216
- export var Relation;
217
- (function (Relation) {
218
- /**
219
- * User is attending the event.
220
- * User has RSVP with status YES or has ordered tickets.
221
- */
222
- Relation["ATTENDING"] = "ATTENDING";
223
- })(Relation || (Relation = {}));
224
- const _bulkCancelEventsRequest = {};
225
- const _bulkCancelEventsResponse = {};
226
- const _bulkDeleteEventsRequest = {};
227
- const _bulkDeleteEventsResponse = {};
228
- const _cancelEventRequest = {};
229
- const _cancelEventResponse = { event: '_event' };
230
- const _copyEventRequest = {};
231
- const _copyEventResponse = { event: '_event' };
232
- const _copyEventV2Request = { event: '_eventData' };
233
- const _copyEventV2Response = { event: '_event' };
234
- const _createEventV2Request = { event: '_eventData' };
235
- const _createEventV2Response = { event: '_event' };
236
- const _deleteEventRequest = {};
237
- const _deleteEventResponse = {};
238
- const _event = { mainImage: 'wix.common.Image', location: '_location' };
239
- const _eventData = { mainImage: 'wix.common.Image', location: '_location' };
240
- const _findEventRequest = {};
241
- const _findEventResponse = { event: '_event' };
242
- const _getEventRequest = {};
243
- const _getEventResponse = { event: '_event' };
244
- const _listCategoryEventsRequest = {};
245
- const _listCategoryEventsResponse = { events: '_event' };
246
- const _listEventsRequest = {};
247
- const _listEventsResponse = { events: '_event' };
248
- const _location = { fullAddress: 'wix.common.Address' };
249
- const _publishDraftEventRequest = {};
250
- const _publishDraftEventResponse = { event: '_event' };
251
- const _queryEventsRequest = {};
252
- const _queryEventsResponse = { events: '_event' };
253
- const _queryEventsV2Request = {};
254
- const _queryEventsV2Response = { events: '_event' };
255
- const _updateEventRequest = { event: '_eventData' };
256
- const _updateEventResponse = { event: '_event' };
257
- /**
258
- * Retrieves a list of up to 1,000 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination), [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
259
- * @public
260
- * @documentationMaturity preview
261
- * @permissionScope Read Events - all read permissions
262
- * @permissionScope Manage Bookings Services and Settings
263
- * @permissionScope Manage Events - all permissions
264
- * @permissionScope Read Events
265
- * @permissionScope Manage Guest List
266
- * @permissionScope Manage Events
267
- * @applicableIdentity APP
268
- * @applicableIdentity MEMBER
269
- * @applicableIdentity VISITOR
270
- */
271
- export function query(options) {
272
- var _a, _b, _c;
273
- return __awaiter(this, arguments, void 0, function* () {
274
- const requestTransformation = {
275
- offset: '$[0].offset',
276
- limit: '$[0].limit',
277
- fieldset: '$[0].fieldset',
278
- filter: '$[0].filter',
279
- facet: '$[0].facet',
280
- userId: '$[0].userId',
281
- sort: '$[0].sort',
282
- includeDrafts: '$[0].includeDrafts',
283
- };
284
- const responseTransformation = '$';
285
- // @ts-ignore
286
- const { httpClient, sideEffects } = arguments[1];
287
- const { toAmbassadorRequest } = serializer({
288
- rootSchema: _queryEventsRequest,
289
- depSchemas: {},
290
- fqdnTransformation: {
291
- paths: [],
292
- transformation: _fromVeloEntity,
293
- },
294
- customTransformation: requestTransformation,
295
- });
296
- const { fromJSON } = serializer({
297
- rootSchema: _queryEventsResponse,
298
- depSchemas: { _event, _location },
299
- fqdnTransformation: {
300
- paths: [...['Array#events']],
301
- transformation: _toVeloEntity,
302
- },
303
- customTransformation: responseTransformation,
304
- });
305
- const payload = toAmbassadorRequest([options]);
306
- const reqOpts = ambassadorWixEventsV1Event.query(payload);
307
- __log(`"Query" sending request with: ${__inspect(reqOpts)}`);
308
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
309
- try {
310
- const result = yield httpClient.request(reqOpts);
311
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
312
- return fromJSON(result.data);
313
- }
314
- catch (err) {
315
- const transformedError = transformError(err, requestTransformation, [
316
- 'options',
317
- ]);
318
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
319
- throw transformedError;
320
- }
321
- });
322
- }
323
- /**
324
- * Retrieves a list of up to 1,000 events, given the provided paging, filtering and sorting.
325
- *
326
- * ** Important **:
327
- * - All results are for one specific business, resolved from the request context.
328
- *
329
- * Query object support:
330
- * - `filter` - supported, see [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
331
- * - `sort` - supported, see [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
332
- * - `paging` - supported, see [paging](https://dev.wix.com/api/rest/getting-started/pagination).
333
- * - `fields` - not supported.
334
- * - `fieldsets` - not supported, use request-level `fieldset` instead.
335
- * - `cursorPaging` - not supported, use offset pagination instead.
336
- *
337
- * Defaults:
338
- * - When filter is not specified, returns all events that caller is authorized to read.
339
- * - When sorting is not specified, defaults to `created` in `DESC` order.
340
- * @public
341
- * @documentationMaturity preview
342
- * @permissionScope Read Events - all read permissions
343
- * @permissionScope Manage Bookings Services and Settings
344
- * @permissionScope Manage Events - all permissions
345
- * @permissionScope Read Events
346
- * @permissionScope Manage Guest List
347
- * @permissionScope Manage Events
348
- * @applicableIdentity APP
349
- * @applicableIdentity MEMBER
350
- * @applicableIdentity VISITOR
351
- */
352
- export function queryEventsV2(options) {
353
- const requestTransformation = { '*': '$[1]', query: '$[0]' };
354
- const responseTransformation = {
355
- items: '$.events',
356
- pagingMetadata: '$.metadata',
357
- };
358
- // @ts-ignore
359
- const { httpClient, sideEffects } = arguments[1];
360
- const { toAmbassadorRequest } = serializer({
361
- rootSchema: _queryEventsV2Request,
362
- depSchemas: {},
363
- fqdnTransformation: {
364
- paths: [],
365
- transformation: _fromVeloEntity,
366
- },
367
- customTransformation: requestTransformation,
368
- });
369
- const { fromJSON } = serializer({
370
- rootSchema: _queryEventsV2Response,
371
- depSchemas: { _event, _location },
372
- fqdnTransformation: {
373
- paths: [...['Array#events']],
374
- transformation: _toVeloEntity,
375
- },
376
- customTransformation: responseTransformation,
377
- });
378
- return wrapWithQueryBuilder({
379
- func: (payload) => __awaiter(this, void 0, void 0, function* () {
380
- var _a, _b, _c;
381
- const reqOpts = ambassadorWixEventsV1Event.queryEventsV2(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
382
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
383
- try {
384
- const result = yield httpClient.request(reqOpts);
385
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
386
- return result;
387
- }
388
- catch (err) {
389
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
390
- throw err;
391
- }
392
- }),
393
- requestTransformer: (...args) => toAmbassadorRequest(args),
394
- responseTransformer: ({ data }) => fromJSON(data),
395
- errorTransformer: (err) => {
396
- const transformedError = transformError(err, requestTransformation);
397
- throw transformedError;
398
- },
399
- pagingMethod: 'OFFSET',
400
- transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
401
- })({ cursorWithEmptyFilterAndSort: true });
402
- }
403
- /**
404
- * Retrieves a list of up to 100 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination), [filtering & sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
405
- * @public
406
- * @documentationMaturity preview
407
- * @permissionScope Read Events - all read permissions
408
- * @permissionScope Manage Bookings Services and Settings
409
- * @permissionScope Manage Events - all permissions
410
- * @permissionScope Read Events
411
- * @permissionScope Manage Guest List
412
- * @permissionScope Manage Events
413
- * @applicableIdentity APP
414
- * @applicableIdentity MEMBER
415
- * @applicableIdentity VISITOR
416
- */
417
- export function listEvents(options) {
418
- var _a, _b, _c;
419
- return __awaiter(this, arguments, void 0, function* () {
420
- const requestTransformation = {
421
- offset: '$[0].offset',
422
- limit: '$[0].limit',
423
- fieldset: '$[0].fieldset',
424
- status: '$[0].status',
425
- slug: '$[0].slug',
426
- facet: '$[0].facet',
427
- userId: '$[0].userId',
428
- sort: '$[0].sort',
429
- categoryFilter: '$[0].categoryFilter',
430
- includeDrafts: '$[0].includeDrafts',
431
- recurrenceStatus: '$[0].recurrenceStatus',
432
- recurringGroupId: '$[0].recurringGroupId',
433
- };
434
- const responseTransformation = '$';
435
- // @ts-ignore
436
- const { httpClient, sideEffects } = arguments[1];
437
- const { toAmbassadorRequest } = serializer({
438
- rootSchema: _listEventsRequest,
439
- depSchemas: {},
440
- fqdnTransformation: {
441
- paths: [],
442
- transformation: _fromVeloEntity,
443
- },
444
- customTransformation: requestTransformation,
445
- });
446
- const { fromJSON } = serializer({
447
- rootSchema: _listEventsResponse,
448
- depSchemas: { _event, _location },
449
- fqdnTransformation: {
450
- paths: [...['Array#events']],
451
- transformation: _toVeloEntity,
452
- },
453
- customTransformation: responseTransformation,
454
- });
455
- const payload = toAmbassadorRequest([options]);
456
- const reqOpts = ambassadorWixEventsV1Event.listEvents(payload);
457
- __log(`"ListEvents" sending request with: ${__inspect(reqOpts)}`);
458
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
459
- try {
460
- const result = yield httpClient.request(reqOpts);
461
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
462
- return fromJSON(result.data);
463
- }
464
- catch (err) {
465
- const transformedError = transformError(err, requestTransformation, [
466
- 'options',
467
- ]);
468
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
469
- throw transformedError;
470
- }
471
- });
472
- }
473
- /**
474
- * Retrieves a list of up to 100 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination) and category_id.
475
- * Events are sorted by the sort index defined by CategoryManagement.
476
- * @param categoryId - Category ID
477
- * @public
478
- * @documentationMaturity preview
479
- * @requiredField categoryId
480
- * @permissionScope Read Events - all read permissions
481
- * @permissionScope Manage Bookings Services and Settings
482
- * @permissionScope Manage Events - all permissions
483
- * @permissionScope Read Events
484
- * @permissionScope Manage Guest List
485
- * @permissionScope Manage Events
486
- * @applicableIdentity APP
487
- * @applicableIdentity MEMBER
488
- * @applicableIdentity VISITOR
489
- */
490
- export function listCategoryEvents(categoryId, options) {
491
- var _a, _b, _c;
492
- return __awaiter(this, arguments, void 0, function* () {
493
- const requestTransformation = {
494
- categoryId: '$[0]',
495
- paging: '$[1].paging',
496
- fieldset: '$[1].fieldset',
497
- };
498
- const responseTransformation = '$';
499
- // @ts-ignore
500
- const { httpClient, sideEffects } = arguments[2];
501
- const { toAmbassadorRequest } = serializer({
502
- rootSchema: _listCategoryEventsRequest,
503
- depSchemas: {},
504
- fqdnTransformation: {
505
- paths: [],
506
- transformation: _fromVeloEntity,
507
- },
508
- customTransformation: requestTransformation,
509
- });
510
- const { fromJSON } = serializer({
511
- rootSchema: _listCategoryEventsResponse,
512
- depSchemas: { _event, _location },
513
- fqdnTransformation: {
514
- paths: [...['Array#events']],
515
- transformation: _toVeloEntity,
516
- },
517
- customTransformation: responseTransformation,
518
- });
519
- const payload = toAmbassadorRequest([categoryId, options]);
520
- const reqOpts = ambassadorWixEventsV1Event.listCategoryEvents(payload);
521
- __log(`"ListCategoryEvents" sending request with: ${__inspect(reqOpts)}`);
522
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
523
- try {
524
- const result = yield httpClient.request(reqOpts);
525
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
526
- return fromJSON(result.data);
527
- }
528
- catch (err) {
529
- const transformedError = transformError(err, requestTransformation, [
530
- 'categoryId',
531
- 'options',
532
- ]);
533
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
534
- throw transformedError;
535
- }
536
- });
537
- }
538
- /**
539
- * Retrieves an event by ID or URL slug.
540
- * @public
541
- * @documentationMaturity preview
542
- * @permissionScope Read Events - all read permissions
543
- * @permissionScope Manage Bookings Services and Settings
544
- * @permissionScope Manage Events - all permissions
545
- * @permissionScope Read Events
546
- * @permissionScope Manage Guest List
547
- * @permissionScope Manage Events
548
- * @applicableIdentity APP
549
- * @applicableIdentity MEMBER
550
- * @applicableIdentity VISITOR
551
- * @returns Event.
552
- */
553
- export function getEvent(options) {
554
- var _a, _b, _c;
555
- return __awaiter(this, arguments, void 0, function* () {
556
- const requestTransformation = {
557
- id: '$[0]._id',
558
- slug: '$[0].slug',
559
- fieldset: '$[0].fieldset',
560
- };
561
- const responseTransformation = '$.event';
562
- // @ts-ignore
563
- const { httpClient, sideEffects } = arguments[1];
564
- const { toAmbassadorRequest } = serializer({
565
- rootSchema: _getEventRequest,
566
- depSchemas: {},
567
- fqdnTransformation: {
568
- paths: [],
569
- transformation: _fromVeloEntity,
570
- },
571
- customTransformation: requestTransformation,
572
- });
573
- const { fromJSON } = serializer({
574
- rootSchema: _getEventResponse,
575
- depSchemas: { _event, _location },
576
- fqdnTransformation: {
577
- paths: [...['event']],
578
- transformation: _toVeloEntity,
579
- },
580
- customTransformation: responseTransformation,
581
- });
582
- const payload = toAmbassadorRequest([options]);
583
- const reqOpts = ambassadorWixEventsV1Event.getEvent(payload);
584
- __log(`"GetEvent" sending request with: ${__inspect(reqOpts)}`);
585
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
586
- try {
587
- const result = yield httpClient.request(reqOpts);
588
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
589
- return fromJSON(result.data);
590
- }
591
- catch (err) {
592
- const transformedError = transformError(err, requestTransformation, [
593
- 'options',
594
- ]);
595
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
596
- throw transformedError;
597
- }
598
- });
599
- }
600
- /**
601
- * Finds an event by ID or URL slug. In contrast to Get Event endpoint which returns not found error,
602
- * Find Event returns empty response when an event is not found.
603
- * @public
604
- * @documentationMaturity preview
605
- * @permissionScope Read Events - all read permissions
606
- * @permissionScope Manage Bookings Services and Settings
607
- * @permissionScope Manage Events - all permissions
608
- * @permissionScope Read Events
609
- * @permissionScope Manage Guest List
610
- * @permissionScope Manage Events
611
- * @applicableIdentity APP
612
- * @applicableIdentity MEMBER
613
- * @applicableIdentity VISITOR
614
- */
615
- export function findEvent(options) {
616
- var _a, _b, _c;
617
- return __awaiter(this, arguments, void 0, function* () {
618
- const requestTransformation = {
619
- id: '$[0]._id',
620
- slug: '$[0].slug',
621
- fieldset: '$[0].fieldset',
622
- };
623
- const responseTransformation = '$';
624
- // @ts-ignore
625
- const { httpClient, sideEffects } = arguments[1];
626
- const { toAmbassadorRequest } = serializer({
627
- rootSchema: _findEventRequest,
628
- depSchemas: {},
629
- fqdnTransformation: {
630
- paths: [],
631
- transformation: _fromVeloEntity,
632
- },
633
- customTransformation: requestTransformation,
634
- });
635
- const { fromJSON } = serializer({
636
- rootSchema: _findEventResponse,
637
- depSchemas: { _event, _location },
638
- fqdnTransformation: {
639
- paths: [...['event']],
640
- transformation: _toVeloEntity,
641
- },
642
- customTransformation: responseTransformation,
643
- });
644
- const payload = toAmbassadorRequest([options]);
645
- const reqOpts = ambassadorWixEventsV1Event.findEvent(payload);
646
- __log(`"FindEvent" sending request with: ${__inspect(reqOpts)}`);
647
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
648
- try {
649
- const result = yield httpClient.request(reqOpts);
650
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
651
- return fromJSON(result.data);
652
- }
653
- catch (err) {
654
- const transformedError = transformError(err, requestTransformation, [
655
- 'options',
656
- ]);
657
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
658
- throw transformedError;
659
- }
660
- });
661
- }
662
- /**
663
- * Creates a new event, with a default registration form in the given language.
664
- * Default registration form includes first name, last name, and email inputs.
665
- * To learn more about registration form and customize it, see [Registration Form](https://dev.wix.com/api/rest/wix-events/wix-events/registration-form/about-the-registration-form-api).
666
- * The event is automatically configured to send daily summary reports of new registrations to site business email.
667
- * RegistrationConfig.initialType is required - allowed value when creating is RSVP or TICKETS.
668
- * @param event - Event data.
669
- * @public
670
- * @documentationMaturity preview
671
- * @requiredField event
672
- * @requiredField event.location
673
- * @requiredField event.scheduleConfig
674
- * @requiredField event.title
675
- * @permissionScope Manage Events - all permissions
676
- * @permissionScope Manage Events
677
- * @applicableIdentity APP
678
- * @returns Created event.
679
- */
680
- export function createEventV2(event, options) {
681
- var _a, _b, _c;
682
- return __awaiter(this, arguments, void 0, function* () {
683
- const requestTransformation = {
684
- event: '$[0]',
685
- language: '$[1].language',
686
- draft: '$[1].draft',
687
- };
688
- const responseTransformation = '$.event';
689
- // @ts-ignore
690
- const { httpClient, sideEffects } = arguments[2];
691
- const { toAmbassadorRequest } = serializer({
692
- rootSchema: _createEventV2Request,
693
- depSchemas: { _eventData, _location },
694
- fqdnTransformation: {
695
- paths: [],
696
- transformation: _fromVeloEntity,
697
- },
698
- customTransformation: requestTransformation,
699
- });
700
- const { fromJSON } = serializer({
701
- rootSchema: _createEventV2Response,
702
- depSchemas: { _event, _location },
703
- fqdnTransformation: {
704
- paths: [...['event']],
705
- transformation: _toVeloEntity,
706
- },
707
- customTransformation: responseTransformation,
708
- });
709
- const payload = toAmbassadorRequest([event, options]);
710
- const reqOpts = ambassadorWixEventsV1Event.createEventV2(payload);
711
- __log(`"CreateEventV2" sending request with: ${__inspect(reqOpts)}`);
712
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
713
- try {
714
- const result = yield httpClient.request(reqOpts);
715
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
716
- return fromJSON(result.data);
717
- }
718
- catch (err) {
719
- const transformedError = transformError(err, requestTransformation, [
720
- 'event',
721
- 'options',
722
- ]);
723
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
724
- throw transformedError;
725
- }
726
- });
727
- }
728
- /**
729
- * Copies an event, including its registration form, notifications and tickets configuration - scheduled two weeks from the original event.
730
- * Multilingual translations are also copied to the new event.
731
- *
732
- * When an event with same title already exists, appends (1), (2), ... to it. For example, copying an event titled "My Event" creates "My Event (1)".
733
- * Very long event titles are cropped: "Daily stand-up ev... (2)".
734
- * @param eventId - Event ID.
735
- * @public
736
- * @documentationMaturity preview
737
- * @requiredField eventId
738
- * @permissionScope Manage Events - all permissions
739
- * @permissionScope Manage Events
740
- * @applicableIdentity APP
741
- */
742
- export function copy(eventId, options) {
743
- var _a, _b, _c;
744
- return __awaiter(this, arguments, void 0, function* () {
745
- const requestTransformation = { eventId: '$[0]', draft: '$[1].draft' };
746
- const responseTransformation = '$';
747
- // @ts-ignore
748
- const { httpClient, sideEffects } = arguments[2];
749
- const { toAmbassadorRequest } = serializer({
750
- rootSchema: _copyEventRequest,
751
- depSchemas: {},
752
- fqdnTransformation: {
753
- paths: [],
754
- transformation: _fromVeloEntity,
755
- },
756
- customTransformation: requestTransformation,
757
- });
758
- const { fromJSON } = serializer({
759
- rootSchema: _copyEventResponse,
760
- depSchemas: { _event, _location },
761
- fqdnTransformation: {
762
- paths: [...['event']],
763
- transformation: _toVeloEntity,
764
- },
765
- customTransformation: responseTransformation,
766
- });
767
- const payload = toAmbassadorRequest([eventId, options]);
768
- const reqOpts = ambassadorWixEventsV1Event.copy(payload);
769
- __log(`"Copy" sending request with: ${__inspect(reqOpts)}`);
770
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
771
- try {
772
- const result = yield httpClient.request(reqOpts);
773
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
774
- return fromJSON(result.data);
775
- }
776
- catch (err) {
777
- const transformedError = transformError(err, requestTransformation, [
778
- 'eventId',
779
- 'options',
780
- ]);
781
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
782
- throw transformedError;
783
- }
784
- });
785
- }
786
- /**
787
- * Copies an event, including its registration form, notifications and tickets configuration - scheduled two weeks from the original event.
788
- * Multilingual translations are also copied to the new event.
789
- * Supports partial update of the original event fields. See [Partial Updates](https://dev.wix.com/api/rest/wix-events/wix-events/partial-updates) for more information.
790
- *
791
- * When an event with same title already exists, appends (1), (2), ... to it. For example, copying an event titled "My Event" creates "My Event (1)".
792
- * Very long event titles are cropped: "Daily stand-up ev... (2)".
793
- * @param _id - Event ID.
794
- * @public
795
- * @documentationMaturity preview
796
- * @requiredField _id
797
- * @permissionScope Manage Events - all permissions
798
- * @permissionScope Manage Events
799
- * @applicableIdentity APP
800
- */
801
- export function copyEventV2(_id, options) {
802
- var _a, _b, _c;
803
- return __awaiter(this, arguments, void 0, function* () {
804
- const requestTransformation = {
805
- id: '$[0]',
806
- event: '$[1].event',
807
- draft: '$[1].draft',
808
- };
809
- const responseTransformation = '$';
810
- // @ts-ignore
811
- const { httpClient, sideEffects } = arguments[2];
812
- const { toAmbassadorRequest } = serializer({
813
- rootSchema: _copyEventV2Request,
814
- depSchemas: { _eventData, _location },
815
- fqdnTransformation: {
816
- paths: [],
817
- transformation: _fromVeloEntity,
818
- },
819
- customTransformation: requestTransformation,
820
- });
821
- const { fromJSON } = serializer({
822
- rootSchema: _copyEventV2Response,
823
- depSchemas: { _event, _location },
824
- fqdnTransformation: {
825
- paths: [...['event']],
826
- transformation: _toVeloEntity,
827
- },
828
- customTransformation: responseTransformation,
829
- });
830
- const payload = toAmbassadorRequest([_id, options]);
831
- const reqOpts = ambassadorWixEventsV1Event.copyEventV2(payload);
832
- __log(`"CopyEventV2" sending request with: ${__inspect(reqOpts)}`);
833
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
834
- try {
835
- const result = yield httpClient.request(reqOpts);
836
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
837
- return fromJSON(result.data);
838
- }
839
- catch (err) {
840
- const transformedError = transformError(err, requestTransformation, [
841
- '_id',
842
- 'options',
843
- ]);
844
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
845
- throw transformedError;
846
- }
847
- });
848
- }
849
- /**
850
- * Updates an event's parameters. See [Partial Updates](https://dev.wix.com/api/rest/wix-events/wix-events/partial-updates) for more information.
851
- * @param _id - Event ID.
852
- * @public
853
- * @documentationMaturity preview
854
- * @requiredField _id
855
- * @permissionScope Manage Events - all permissions
856
- * @permissionScope Manage Events
857
- * @applicableIdentity APP
858
- * @returns Updated event.
859
- */
860
- export function updateEvent(_id, options) {
861
- var _a, _b, _c;
862
- return __awaiter(this, arguments, void 0, function* () {
863
- const requestTransformation = {
864
- id: '$[0]',
865
- event: '$[1].event',
866
- language: '$[1].language',
867
- };
868
- const responseTransformation = '$.event';
869
- // @ts-ignore
870
- const { httpClient, sideEffects } = arguments[2];
871
- const { toAmbassadorRequest } = serializer({
872
- rootSchema: _updateEventRequest,
873
- depSchemas: { _eventData, _location },
874
- fqdnTransformation: {
875
- paths: [],
876
- transformation: _fromVeloEntity,
877
- },
878
- customTransformation: requestTransformation,
879
- });
880
- const { fromJSON } = serializer({
881
- rootSchema: _updateEventResponse,
882
- depSchemas: { _event, _location },
883
- fqdnTransformation: {
884
- paths: [...['event']],
885
- transformation: _toVeloEntity,
886
- },
887
- customTransformation: responseTransformation,
888
- });
889
- const payload = toAmbassadorRequest([_id, options]);
890
- const reqOpts = ambassadorWixEventsV1Event.updateEvent(payload);
891
- __log(`"UpdateEvent" sending request with: ${__inspect(reqOpts)}`);
892
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
893
- try {
894
- const result = yield httpClient.request(reqOpts);
895
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
896
- return fromJSON(result.data);
897
- }
898
- catch (err) {
899
- const transformedError = transformError(err, requestTransformation, [
900
- '_id',
901
- 'options',
902
- ]);
903
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
904
- throw transformedError;
905
- }
906
- });
907
- }
908
- /**
909
- * Publishes draft event so that it becomes available to site visitors.
910
- * If recurring events are set, category with state RECURRING_EVENT will be created.
911
- * All recurring events will be assigned to this category.
912
- * @param _id - Event ID.
913
- * @public
914
- * @documentationMaturity preview
915
- * @requiredField _id
916
- * @permissionScope Manage Events - all permissions
917
- * @permissionScope Manage Events
918
- * @applicableIdentity APP
919
- */
920
- export function publishDraftEvent(_id) {
921
- var _a, _b, _c;
922
- return __awaiter(this, arguments, void 0, function* () {
923
- const requestTransformation = { id: '$[0]' };
924
- const responseTransformation = '$';
925
- // @ts-ignore
926
- const { httpClient, sideEffects } = arguments[1];
927
- const { toAmbassadorRequest } = serializer({
928
- rootSchema: _publishDraftEventRequest,
929
- depSchemas: {},
930
- fqdnTransformation: {
931
- paths: [],
932
- transformation: _fromVeloEntity,
933
- },
934
- customTransformation: requestTransformation,
935
- });
936
- const { fromJSON } = serializer({
937
- rootSchema: _publishDraftEventResponse,
938
- depSchemas: { _event, _location },
939
- fqdnTransformation: {
940
- paths: [...['event']],
941
- transformation: _toVeloEntity,
942
- },
943
- customTransformation: responseTransformation,
944
- });
945
- const payload = toAmbassadorRequest([_id]);
946
- const reqOpts = ambassadorWixEventsV1Event.publishDraftEvent(payload);
947
- __log(`"PublishDraftEvent" sending request with: ${__inspect(reqOpts)}`);
948
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
949
- try {
950
- const result = yield httpClient.request(reqOpts);
951
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
952
- return fromJSON(result.data);
953
- }
954
- catch (err) {
955
- const transformedError = transformError(err, requestTransformation, [
956
- '_id',
957
- ]);
958
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
959
- throw transformedError;
960
- }
961
- });
962
- }
963
- /**
964
- * Cancels an event and closes registration.
965
- * If event cancellation notifications are enabled, canceling an event automatically sends cancellation emails and/or push notifications to registered guests.
966
- * @param _id - Event ID.
967
- * @public
968
- * @documentationMaturity preview
969
- * @requiredField _id
970
- * @permissionScope Manage Events - all permissions
971
- * @permissionScope Manage Events
972
- * @applicableIdentity APP
973
- */
974
- export function cancelEvent(_id) {
975
- var _a, _b, _c;
976
- return __awaiter(this, arguments, void 0, function* () {
977
- const requestTransformation = { id: '$[0]' };
978
- const responseTransformation = '$';
979
- // @ts-ignore
980
- const { httpClient, sideEffects } = arguments[1];
981
- const { toAmbassadorRequest } = serializer({
982
- rootSchema: _cancelEventRequest,
983
- depSchemas: {},
984
- fqdnTransformation: {
985
- paths: [],
986
- transformation: _fromVeloEntity,
987
- },
988
- customTransformation: requestTransformation,
989
- });
990
- const { fromJSON } = serializer({
991
- rootSchema: _cancelEventResponse,
992
- depSchemas: { _event, _location },
993
- fqdnTransformation: {
994
- paths: [...['event']],
995
- transformation: _toVeloEntity,
996
- },
997
- customTransformation: responseTransformation,
998
- });
999
- const payload = toAmbassadorRequest([_id]);
1000
- const reqOpts = ambassadorWixEventsV1Event.cancelEvent(payload);
1001
- __log(`"CancelEvent" sending request with: ${__inspect(reqOpts)}`);
1002
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
1003
- try {
1004
- const result = yield httpClient.request(reqOpts);
1005
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
1006
- return fromJSON(result.data);
1007
- }
1008
- catch (err) {
1009
- const transformedError = transformError(err, requestTransformation, [
1010
- '_id',
1011
- ]);
1012
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
1013
- throw transformedError;
1014
- }
1015
- });
1016
- }
1017
- /**
1018
- * Cancels events by filter.
1019
- * If event cancellation notifications are enabled, canceling an event automatically sends cancellation emails and/or push notifications to registered guests.
1020
- * @param filter - Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
1021
- * @public
1022
- * @documentationMaturity preview
1023
- * @requiredField filter
1024
- * @permissionScope Manage Events - all permissions
1025
- * @permissionScope Manage Events
1026
- * @applicableIdentity APP
1027
- */
1028
- export function bulkCancelEvents(filter) {
1029
- var _a, _b, _c;
1030
- return __awaiter(this, arguments, void 0, function* () {
1031
- const requestTransformation = { filter: '$[0]' };
1032
- const responseTransformation = '$';
1033
- // @ts-ignore
1034
- const { httpClient, sideEffects } = arguments[1];
1035
- const { toAmbassadorRequest } = serializer({
1036
- rootSchema: _bulkCancelEventsRequest,
1037
- depSchemas: {},
1038
- fqdnTransformation: {
1039
- paths: [],
1040
- transformation: _fromVeloEntity,
1041
- },
1042
- customTransformation: requestTransformation,
1043
- });
1044
- const { fromJSON } = serializer({
1045
- rootSchema: _bulkCancelEventsResponse,
1046
- depSchemas: {},
1047
- fqdnTransformation: {
1048
- paths: [],
1049
- transformation: _toVeloEntity,
1050
- },
1051
- customTransformation: responseTransformation,
1052
- });
1053
- const payload = toAmbassadorRequest([filter]);
1054
- const reqOpts = ambassadorWixEventsV1Event.bulkCancelEvents(payload);
1055
- __log(`"BulkCancelEvents" sending request with: ${__inspect(reqOpts)}`);
1056
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
1057
- try {
1058
- const result = yield httpClient.request(reqOpts);
1059
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
1060
- }
1061
- catch (err) {
1062
- const transformedError = transformError(err, requestTransformation, [
1063
- 'filter',
1064
- ]);
1065
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
1066
- throw transformedError;
1067
- }
1068
- });
1069
- }
1070
- /**
1071
- * Deletes an event.
1072
- * Deleted events are not returned via API. The only way to retrieve them is via GDPR access request.
1073
- * @param _id - Event ID.
1074
- * @public
1075
- * @documentationMaturity preview
1076
- * @requiredField _id
1077
- * @permissionScope Manage Events - all permissions
1078
- * @permissionScope Manage Events
1079
- * @applicableIdentity APP
1080
- */
1081
- export function deleteEvent(_id) {
1082
- var _a, _b, _c;
1083
- return __awaiter(this, arguments, void 0, function* () {
1084
- const requestTransformation = { id: '$[0]' };
1085
- const responseTransformation = '$';
1086
- // @ts-ignore
1087
- const { httpClient, sideEffects } = arguments[1];
1088
- const { toAmbassadorRequest } = serializer({
1089
- rootSchema: _deleteEventRequest,
1090
- depSchemas: {},
1091
- fqdnTransformation: {
1092
- paths: [],
1093
- transformation: _fromVeloEntity,
1094
- },
1095
- customTransformation: requestTransformation,
1096
- });
1097
- const { fromJSON } = serializer({
1098
- rootSchema: _deleteEventResponse,
1099
- depSchemas: {},
1100
- fqdnTransformation: {
1101
- paths: [],
1102
- transformation: _toVeloEntity,
1103
- },
1104
- customTransformation: responseTransformation,
1105
- });
1106
- const payload = toAmbassadorRequest([_id]);
1107
- const reqOpts = ambassadorWixEventsV1Event.deleteEvent(payload);
1108
- __log(`"DeleteEvent" sending request with: ${__inspect(reqOpts)}`);
1109
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
1110
- try {
1111
- const result = yield httpClient.request(reqOpts);
1112
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
1113
- return fromJSON(result.data);
1114
- }
1115
- catch (err) {
1116
- const transformedError = transformError(err, requestTransformation, [
1117
- '_id',
1118
- ]);
1119
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
1120
- throw transformedError;
1121
- }
1122
- });
1123
- }
1124
- /**
1125
- * Deletes events by filter.
1126
- * Deleted events are not returned via API. The only way to retrieve them is via GDPR access request.
1127
- * @param filter - Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
1128
- * @public
1129
- * @documentationMaturity preview
1130
- * @requiredField filter
1131
- * @permissionScope Manage Events - all permissions
1132
- * @permissionScope Manage Events
1133
- * @applicableIdentity APP
1134
- */
1135
- export function bulkDeleteEvents(filter) {
1136
- var _a, _b, _c;
1137
- return __awaiter(this, arguments, void 0, function* () {
1138
- const requestTransformation = { filter: '$[0]' };
1139
- const responseTransformation = '$';
1140
- // @ts-ignore
1141
- const { httpClient, sideEffects } = arguments[1];
1142
- const { toAmbassadorRequest } = serializer({
1143
- rootSchema: _bulkDeleteEventsRequest,
1144
- depSchemas: {},
1145
- fqdnTransformation: {
1146
- paths: [],
1147
- transformation: _fromVeloEntity,
1148
- },
1149
- customTransformation: requestTransformation,
1150
- });
1151
- const { fromJSON } = serializer({
1152
- rootSchema: _bulkDeleteEventsResponse,
1153
- depSchemas: {},
1154
- fqdnTransformation: {
1155
- paths: [],
1156
- transformation: _toVeloEntity,
1157
- },
1158
- customTransformation: responseTransformation,
1159
- });
1160
- const payload = toAmbassadorRequest([filter]);
1161
- const reqOpts = ambassadorWixEventsV1Event.bulkDeleteEvents(payload);
1162
- __log(`"BulkDeleteEvents" sending request with: ${__inspect(reqOpts)}`);
1163
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
1164
- try {
1165
- const result = yield httpClient.request(reqOpts);
1166
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
1167
- }
1168
- catch (err) {
1169
- const transformedError = transformError(err, requestTransformation, [
1170
- 'filter',
1171
- ]);
1172
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
1173
- throw transformedError;
1174
- }
1175
- });
1176
- }
1177
- //# sourceMappingURL=events-v1-event.universal.js.map