@wix/events 1.0.146 → 1.0.148

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 (257) hide show
  1. package/build/cjs/index.d.ts +7 -1
  2. package/build/cjs/index.js +8 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +7 -1
  5. package/build/cjs/index.typings.js +8 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +7 -1
  8. package/build/cjs/meta.js +8 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/events-guests-v1-guest.http.d.ts +23 -0
  11. package/build/cjs/src/events-guests-v1-guest.http.js +116 -0
  12. package/build/cjs/src/events-guests-v1-guest.http.js.map +1 -0
  13. package/build/cjs/src/events-guests-v1-guest.meta.d.ts +13 -0
  14. package/build/cjs/src/events-guests-v1-guest.meta.js +47 -0
  15. package/build/cjs/src/events-guests-v1-guest.meta.js.map +1 -0
  16. package/build/cjs/src/events-guests-v1-guest.public.d.ts +7 -0
  17. package/build/cjs/src/events-guests-v1-guest.public.js +24 -0
  18. package/build/cjs/src/events-guests-v1-guest.public.js.map +1 -0
  19. package/build/cjs/src/events-guests-v1-guest.types.d.ts +867 -0
  20. package/build/cjs/src/events-guests-v1-guest.types.js +105 -0
  21. package/build/cjs/src/events-guests-v1-guest.types.js.map +1 -0
  22. package/build/cjs/src/events-guests-v1-guest.universal.d.ts +931 -0
  23. package/build/cjs/src/events-guests-v1-guest.universal.js +241 -0
  24. package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -0
  25. package/build/cjs/src/events-v1-order-checkout.http.d.ts +89 -0
  26. package/build/cjs/src/events-v1-order-checkout.http.js +1073 -0
  27. package/build/cjs/src/events-v1-order-checkout.http.js.map +1 -0
  28. package/build/cjs/src/events-v1-order-checkout.meta.d.ts +26 -0
  29. package/build/cjs/src/events-v1-order-checkout.meta.js +180 -0
  30. package/build/cjs/src/events-v1-order-checkout.meta.js.map +1 -0
  31. package/build/cjs/src/events-v1-order-checkout.public.d.ts +15 -0
  32. package/build/cjs/src/events-v1-order-checkout.public.js +69 -0
  33. package/build/cjs/src/events-v1-order-checkout.public.js.map +1 -0
  34. package/build/cjs/src/events-v1-order-checkout.types.d.ts +3626 -0
  35. package/build/cjs/src/events-v1-order-checkout.types.js +145 -0
  36. package/build/cjs/src/events-v1-order-checkout.types.js.map +1 -0
  37. package/build/cjs/src/events-v1-order-checkout.universal.d.ts +3645 -0
  38. package/build/cjs/src/events-v1-order-checkout.universal.js +824 -0
  39. package/build/cjs/src/events-v1-order-checkout.universal.js.map +1 -0
  40. package/build/cjs/src/events-v1-order-orders.http.d.ts +121 -0
  41. package/build/cjs/src/events-v1-order-orders.http.js +1105 -0
  42. package/build/cjs/src/events-v1-order-orders.http.js.map +1 -0
  43. package/build/cjs/src/events-v1-order-orders.meta.d.ts +28 -0
  44. package/build/cjs/src/events-v1-order-orders.meta.js +142 -0
  45. package/build/cjs/src/events-v1-order-orders.meta.js.map +1 -0
  46. package/build/cjs/src/events-v1-order-orders.public.d.ts +220 -0
  47. package/build/cjs/src/events-v1-order-orders.public.js +57 -0
  48. package/build/cjs/src/events-v1-order-orders.public.js.map +1 -0
  49. package/build/cjs/src/events-v1-order-orders.types.d.ts +3626 -0
  50. package/build/cjs/src/events-v1-order-orders.types.js +145 -0
  51. package/build/cjs/src/events-v1-order-orders.types.js.map +1 -0
  52. package/build/cjs/src/events-v1-order-orders.universal.d.ts +3615 -0
  53. package/build/cjs/src/events-v1-order-orders.universal.js +679 -0
  54. package/build/cjs/src/events-v1-order-orders.universal.js.map +1 -0
  55. package/build/cjs/src/events-v1-ticket-definition.http.d.ts +50 -0
  56. package/build/cjs/src/events-v1-ticket-definition.http.js +413 -0
  57. package/build/cjs/src/events-v1-ticket-definition.http.js.map +1 -0
  58. package/build/cjs/src/events-v1-ticket-definition.meta.d.ts +23 -0
  59. package/build/cjs/src/{events-v3-ticket-definition.meta.js → events-v1-ticket-definition.meta.js} +42 -42
  60. package/build/cjs/src/events-v1-ticket-definition.meta.js.map +1 -0
  61. package/build/cjs/src/events-v1-ticket-definition.public.d.ts +61 -0
  62. package/build/cjs/src/events-v1-ticket-definition.public.js +57 -0
  63. package/build/cjs/src/events-v1-ticket-definition.public.js.map +1 -0
  64. package/build/cjs/src/events-v1-ticket-definition.types.d.ts +725 -0
  65. package/build/cjs/src/events-v1-ticket-definition.types.js +63 -0
  66. package/build/cjs/src/events-v1-ticket-definition.types.js.map +1 -0
  67. package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +960 -0
  68. package/build/cjs/src/events-v1-ticket-definition.universal.js +618 -0
  69. package/build/cjs/src/events-v1-ticket-definition.universal.js.map +1 -0
  70. package/build/cjs/src/events-v1-ticket.http.d.ts +44 -0
  71. package/build/cjs/src/events-v1-ticket.http.js +570 -0
  72. package/build/cjs/src/events-v1-ticket.http.js.map +1 -0
  73. package/build/cjs/src/events-v1-ticket.meta.d.ts +28 -0
  74. package/build/cjs/src/events-v1-ticket.meta.js +142 -0
  75. package/build/cjs/src/events-v1-ticket.meta.js.map +1 -0
  76. package/build/cjs/src/events-v1-ticket.public.d.ts +45 -0
  77. package/build/cjs/src/events-v1-ticket.public.js +48 -0
  78. package/build/cjs/src/events-v1-ticket.public.js.map +1 -0
  79. package/build/cjs/src/events-v1-ticket.types.d.ts +791 -0
  80. package/build/cjs/src/events-v1-ticket.types.js +76 -0
  81. package/build/cjs/src/events-v1-ticket.types.js.map +1 -0
  82. package/build/cjs/src/events-v1-ticket.universal.d.ts +892 -0
  83. package/build/cjs/src/events-v1-ticket.universal.js +621 -0
  84. package/build/cjs/src/events-v1-ticket.universal.js.map +1 -0
  85. package/build/cjs/src/events-v2-policy.http.d.ts +80 -0
  86. package/build/cjs/src/events-v2-policy.http.js +308 -0
  87. package/build/cjs/src/events-v2-policy.http.js.map +1 -0
  88. package/build/cjs/src/events-v2-policy.meta.d.ts +24 -0
  89. package/build/cjs/src/events-v2-policy.meta.js +142 -0
  90. package/build/cjs/src/events-v2-policy.meta.js.map +1 -0
  91. package/build/cjs/src/events-v2-policy.public.d.ts +25 -0
  92. package/build/cjs/src/events-v2-policy.public.js +48 -0
  93. package/build/cjs/src/events-v2-policy.public.js.map +1 -0
  94. package/build/cjs/src/events-v2-policy.types.d.ts +472 -0
  95. package/build/cjs/src/events-v2-policy.types.js +56 -0
  96. package/build/cjs/src/events-v2-policy.types.js.map +1 -0
  97. package/build/cjs/src/events-v2-policy.universal.d.ts +721 -0
  98. package/build/cjs/src/events-v2-policy.universal.js +539 -0
  99. package/build/cjs/src/events-v2-policy.universal.js.map +1 -0
  100. package/build/cjs/src/events-v3-event.http.d.ts +69 -0
  101. package/build/cjs/src/events-v3-event.http.js +661 -0
  102. package/build/cjs/src/events-v3-event.http.js.map +1 -0
  103. package/build/cjs/src/events-v3-event.meta.d.ts +39 -0
  104. package/build/cjs/src/events-v3-event.meta.js +275 -0
  105. package/build/cjs/src/events-v3-event.meta.js.map +1 -0
  106. package/build/cjs/src/events-v3-event.public.d.ts +566 -0
  107. package/build/cjs/src/events-v3-event.public.js +106 -0
  108. package/build/cjs/src/events-v3-event.public.js.map +1 -0
  109. package/build/cjs/src/events-v3-event.types.d.ts +3678 -0
  110. package/build/cjs/src/events-v3-event.types.js +261 -0
  111. package/build/cjs/src/events-v3-event.types.js.map +1 -0
  112. package/build/cjs/src/events-v3-event.universal.d.ts +3846 -0
  113. package/build/cjs/src/events-v3-event.universal.js +1165 -0
  114. package/build/cjs/src/events-v3-event.universal.js.map +1 -0
  115. package/build/es/index.d.ts +7 -1
  116. package/build/es/index.js +7 -1
  117. package/build/es/index.js.map +1 -1
  118. package/build/es/index.typings.d.ts +7 -1
  119. package/build/es/index.typings.js +7 -1
  120. package/build/es/index.typings.js.map +1 -1
  121. package/build/es/meta.d.ts +7 -1
  122. package/build/es/meta.js +7 -1
  123. package/build/es/meta.js.map +1 -1
  124. package/build/es/src/events-guests-v1-guest.http.d.ts +23 -0
  125. package/build/es/src/events-guests-v1-guest.http.js +112 -0
  126. package/build/es/src/events-guests-v1-guest.http.js.map +1 -0
  127. package/build/es/src/events-guests-v1-guest.meta.d.ts +13 -0
  128. package/build/es/src/events-guests-v1-guest.meta.js +20 -0
  129. package/build/es/src/events-guests-v1-guest.meta.js.map +1 -0
  130. package/build/es/src/events-guests-v1-guest.public.d.ts +7 -0
  131. package/build/es/src/events-guests-v1-guest.public.js +9 -0
  132. package/build/es/src/events-guests-v1-guest.public.js.map +1 -0
  133. package/build/es/src/events-guests-v1-guest.types.d.ts +867 -0
  134. package/build/es/src/events-guests-v1-guest.types.js +102 -0
  135. package/build/es/src/events-guests-v1-guest.types.js.map +1 -0
  136. package/build/es/src/events-guests-v1-guest.universal.d.ts +931 -0
  137. package/build/es/src/events-guests-v1-guest.universal.js +214 -0
  138. package/build/es/src/events-guests-v1-guest.universal.js.map +1 -0
  139. package/build/es/src/events-v1-order-checkout.http.d.ts +89 -0
  140. package/build/es/src/events-v1-order-checkout.http.js +1056 -0
  141. package/build/es/src/events-v1-order-checkout.http.js.map +1 -0
  142. package/build/es/src/events-v1-order-checkout.meta.d.ts +26 -0
  143. package/build/es/src/events-v1-order-checkout.meta.js +146 -0
  144. package/build/es/src/events-v1-order-checkout.meta.js.map +1 -0
  145. package/build/es/src/events-v1-order-checkout.public.d.ts +15 -0
  146. package/build/es/src/events-v1-order-checkout.public.js +44 -0
  147. package/build/es/src/events-v1-order-checkout.public.js.map +1 -0
  148. package/build/es/src/events-v1-order-checkout.types.d.ts +3626 -0
  149. package/build/es/src/events-v1-order-checkout.types.js +142 -0
  150. package/build/es/src/events-v1-order-checkout.types.js.map +1 -0
  151. package/build/es/src/events-v1-order-checkout.universal.d.ts +3645 -0
  152. package/build/es/src/events-v1-order-checkout.universal.js +790 -0
  153. package/build/es/src/events-v1-order-checkout.universal.js.map +1 -0
  154. package/build/es/src/events-v1-order-orders.http.d.ts +121 -0
  155. package/build/es/src/events-v1-order-orders.http.js +1088 -0
  156. package/build/es/src/events-v1-order-orders.http.js.map +1 -0
  157. package/build/es/src/events-v1-order-orders.meta.d.ts +28 -0
  158. package/build/es/src/events-v1-order-orders.meta.js +110 -0
  159. package/build/es/src/events-v1-order-orders.meta.js.map +1 -0
  160. package/build/es/src/events-v1-order-orders.public.d.ts +220 -0
  161. package/build/es/src/events-v1-order-orders.public.js +34 -0
  162. package/build/es/src/events-v1-order-orders.public.js.map +1 -0
  163. package/build/es/src/events-v1-order-orders.types.d.ts +3626 -0
  164. package/build/es/src/events-v1-order-orders.types.js +142 -0
  165. package/build/es/src/events-v1-order-orders.types.js.map +1 -0
  166. package/build/es/src/events-v1-order-orders.universal.d.ts +3615 -0
  167. package/build/es/src/events-v1-order-orders.universal.js +647 -0
  168. package/build/es/src/events-v1-order-orders.universal.js.map +1 -0
  169. package/build/es/src/events-v1-ticket-definition.http.d.ts +50 -0
  170. package/build/es/src/events-v1-ticket-definition.http.js +403 -0
  171. package/build/es/src/events-v1-ticket-definition.http.js.map +1 -0
  172. package/build/es/src/events-v1-ticket-definition.meta.d.ts +23 -0
  173. package/build/es/src/{events-v3-ticket-definition.meta.js → events-v1-ticket-definition.meta.js} +35 -35
  174. package/build/es/src/events-v1-ticket-definition.meta.js.map +1 -0
  175. package/build/es/src/events-v1-ticket-definition.public.d.ts +61 -0
  176. package/build/es/src/events-v1-ticket-definition.public.js +39 -0
  177. package/build/es/src/events-v1-ticket-definition.public.js.map +1 -0
  178. package/build/es/src/events-v1-ticket-definition.types.d.ts +725 -0
  179. package/build/es/src/events-v1-ticket-definition.types.js +60 -0
  180. package/build/es/src/events-v1-ticket-definition.types.js.map +1 -0
  181. package/build/es/src/events-v1-ticket-definition.universal.d.ts +960 -0
  182. package/build/es/src/events-v1-ticket-definition.universal.js +585 -0
  183. package/build/es/src/events-v1-ticket-definition.universal.js.map +1 -0
  184. package/build/es/src/events-v1-ticket.http.d.ts +44 -0
  185. package/build/es/src/events-v1-ticket.http.js +561 -0
  186. package/build/es/src/events-v1-ticket.http.js.map +1 -0
  187. package/build/es/src/events-v1-ticket.meta.d.ts +28 -0
  188. package/build/es/src/events-v1-ticket.meta.js +110 -0
  189. package/build/es/src/events-v1-ticket.meta.js.map +1 -0
  190. package/build/es/src/events-v1-ticket.public.d.ts +45 -0
  191. package/build/es/src/events-v1-ticket.public.js +34 -0
  192. package/build/es/src/events-v1-ticket.public.js.map +1 -0
  193. package/build/es/src/events-v1-ticket.types.d.ts +791 -0
  194. package/build/es/src/events-v1-ticket.types.js +73 -0
  195. package/build/es/src/events-v1-ticket.types.js.map +1 -0
  196. package/build/es/src/events-v1-ticket.universal.d.ts +892 -0
  197. package/build/es/src/events-v1-ticket.universal.js +589 -0
  198. package/build/es/src/events-v1-ticket.universal.js.map +1 -0
  199. package/build/es/src/events-v2-policy.http.d.ts +80 -0
  200. package/build/es/src/events-v2-policy.http.js +299 -0
  201. package/build/es/src/events-v2-policy.http.js.map +1 -0
  202. package/build/es/src/events-v2-policy.meta.d.ts +24 -0
  203. package/build/es/src/events-v2-policy.meta.js +110 -0
  204. package/build/es/src/events-v2-policy.meta.js.map +1 -0
  205. package/build/es/src/events-v2-policy.public.d.ts +25 -0
  206. package/build/es/src/events-v2-policy.public.js +34 -0
  207. package/build/es/src/events-v2-policy.public.js.map +1 -0
  208. package/build/es/src/events-v2-policy.types.d.ts +472 -0
  209. package/build/es/src/events-v2-policy.types.js +53 -0
  210. package/build/es/src/events-v2-policy.types.js.map +1 -0
  211. package/build/es/src/events-v2-policy.universal.d.ts +721 -0
  212. package/build/es/src/events-v2-policy.universal.js +507 -0
  213. package/build/es/src/events-v2-policy.universal.js.map +1 -0
  214. package/build/es/src/events-v3-event.http.d.ts +69 -0
  215. package/build/es/src/events-v3-event.http.js +645 -0
  216. package/build/es/src/events-v3-event.http.js.map +1 -0
  217. package/build/es/src/events-v3-event.meta.d.ts +39 -0
  218. package/build/es/src/events-v3-event.meta.js +236 -0
  219. package/build/es/src/events-v3-event.meta.js.map +1 -0
  220. package/build/es/src/events-v3-event.public.d.ts +566 -0
  221. package/build/es/src/events-v3-event.public.js +69 -0
  222. package/build/es/src/events-v3-event.public.js.map +1 -0
  223. package/build/es/src/events-v3-event.types.d.ts +3678 -0
  224. package/build/es/src/events-v3-event.types.js +258 -0
  225. package/build/es/src/events-v3-event.types.js.map +1 -0
  226. package/build/es/src/events-v3-event.universal.d.ts +3846 -0
  227. package/build/es/src/events-v3-event.universal.js +1126 -0
  228. package/build/es/src/events-v3-event.universal.js.map +1 -0
  229. package/package.json +2 -2
  230. package/build/cjs/src/events-v3-ticket-definition.http.d.ts +0 -33
  231. package/build/cjs/src/events-v3-ticket-definition.http.js +0 -271
  232. package/build/cjs/src/events-v3-ticket-definition.http.js.map +0 -1
  233. package/build/cjs/src/events-v3-ticket-definition.meta.d.ts +0 -25
  234. package/build/cjs/src/events-v3-ticket-definition.meta.js.map +0 -1
  235. package/build/cjs/src/events-v3-ticket-definition.public.d.ts +0 -98
  236. package/build/cjs/src/events-v3-ticket-definition.public.js +0 -63
  237. package/build/cjs/src/events-v3-ticket-definition.public.js.map +0 -1
  238. package/build/cjs/src/events-v3-ticket-definition.types.d.ts +0 -1265
  239. package/build/cjs/src/events-v3-ticket-definition.types.js +0 -195
  240. package/build/cjs/src/events-v3-ticket-definition.types.js.map +0 -1
  241. package/build/cjs/src/events-v3-ticket-definition.universal.d.ts +0 -1449
  242. package/build/cjs/src/events-v3-ticket-definition.universal.js +0 -698
  243. package/build/cjs/src/events-v3-ticket-definition.universal.js.map +0 -1
  244. package/build/es/src/events-v3-ticket-definition.http.d.ts +0 -33
  245. package/build/es/src/events-v3-ticket-definition.http.js +0 -261
  246. package/build/es/src/events-v3-ticket-definition.http.js.map +0 -1
  247. package/build/es/src/events-v3-ticket-definition.meta.d.ts +0 -25
  248. package/build/es/src/events-v3-ticket-definition.meta.js.map +0 -1
  249. package/build/es/src/events-v3-ticket-definition.public.d.ts +0 -98
  250. package/build/es/src/events-v3-ticket-definition.public.js +0 -39
  251. package/build/es/src/events-v3-ticket-definition.public.js.map +0 -1
  252. package/build/es/src/events-v3-ticket-definition.types.d.ts +0 -1265
  253. package/build/es/src/events-v3-ticket-definition.types.js +0 -192
  254. package/build/es/src/events-v3-ticket-definition.types.js.map +0 -1
  255. package/build/es/src/events-v3-ticket-definition.universal.d.ts +0 -1449
  256. package/build/es/src/events-v3-ticket-definition.universal.js +0 -665
  257. package/build/es/src/events-v3-ticket-definition.universal.js.map +0 -1
@@ -0,0 +1,721 @@
1
+ export declare const __debug: {
2
+ verboseLogging: {
3
+ on: () => boolean;
4
+ off: () => boolean;
5
+ };
6
+ };
7
+ export interface Policy {
8
+ /**
9
+ * Policy ID.
10
+ * @readonly
11
+ */
12
+ _id?: string | null;
13
+ /**
14
+ * Revision number, which increments by 1 each time the policy is updated. The existing revision must be used when updating a policy to prevent conflicting changes. You'll get an error if you try to use the previous revision.
15
+ * @readonly
16
+ */
17
+ revision?: string | null;
18
+ /**
19
+ * Date and time when the policy was created.
20
+ * @readonly
21
+ */
22
+ _createdDate?: Date;
23
+ /**
24
+ * Date and time of the policy's latest update in.
25
+ * @readonly
26
+ */
27
+ _updatedDate?: Date;
28
+ /**
29
+ * Policy name that is visible in the dashboard and checkout form.
30
+ *
31
+ * Min: 1 character
32
+ *
33
+ * Max: 40 characters
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Policy body, usually containing various terms and conditions.
38
+ *
39
+ * Min: 1 character
40
+ *
41
+ * Max: 50000 characters.
42
+ *
43
+ * **Note**: You can format text using various HTML tags such as `<p>`, `<b>`, `<ul>`, etc.
44
+ */
45
+ body?: string;
46
+ /** ID of the event to which the policy belongs. */
47
+ eventId?: string;
48
+ }
49
+ export interface CreatePolicyRequest {
50
+ /** Policy info. */
51
+ policy: Policy;
52
+ }
53
+ export interface CreatePolicyResponse {
54
+ /** Created policy. */
55
+ policy?: Policy;
56
+ }
57
+ export interface UpdatePolicyRequest {
58
+ /** Policy to update. */
59
+ policy: Policy;
60
+ }
61
+ export interface UpdatePolicyResponse {
62
+ /** The updated policy. */
63
+ policy?: Policy;
64
+ }
65
+ export interface UpdatePolicySortIndexRequest {
66
+ /** Policy's ID */
67
+ policyId?: string;
68
+ /** The revision of the event policy. */
69
+ revision?: string;
70
+ /** The sort index of a policy to set. */
71
+ sortIndex?: number;
72
+ }
73
+ export interface UpdatePolicySortIndexResponse {
74
+ /** The updated event policy. */
75
+ policy?: Policy;
76
+ }
77
+ export interface DeletePolicyRequest {
78
+ /** ID of the policy to delete. */
79
+ policyId: string;
80
+ }
81
+ export interface DeletePolicyResponse {
82
+ }
83
+ export interface QueryPoliciesRequest {
84
+ /** Query options. See [API Query Langauge](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
85
+ query: QueryV2;
86
+ }
87
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
88
+ /** Pagination options. */
89
+ paging?: Paging;
90
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
91
+ cursorPaging?: CursorPaging;
92
+ /** Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }`. <br/> <br/> **Example:** <br/> `"filter" : { "id": "2224a9d1-79e6-4549-a5c5-bf7ce5aac1a5", "revision": {"$ne":"1"} }` <br/> <br/> See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/policy-v2/filter-and-sort) for more information. */
93
+ filter?: Record<string, any> | null;
94
+ /** Sort object in the following format: <br/> `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]` <br/> <br/> **Example:** <br/> `[{"fieldName":"createdDate","direction":"DESC"}]` <br/> <br/> See [supported fields](https://dev.wix.com/api/rest/wix-events/policy-v2/filter-and-sort) for more information. */
95
+ sort?: Sorting[];
96
+ }
97
+ /** @oneof */
98
+ export interface QueryV2PagingMethodOneOf {
99
+ /** Pagination options. */
100
+ paging?: Paging;
101
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
102
+ cursorPaging?: CursorPaging;
103
+ }
104
+ export interface Sorting {
105
+ /** Name of the field to sort by. */
106
+ fieldName?: string;
107
+ /** Sort order (ASC/DESC). Defaults to ASC */
108
+ order?: SortOrder;
109
+ }
110
+ export declare enum SortOrder {
111
+ ASC = "ASC",
112
+ DESC = "DESC"
113
+ }
114
+ export interface Paging {
115
+ /** Number of items to load per page. */
116
+ limit?: number | null;
117
+ /** Number of items to skip in the current sort order. */
118
+ offset?: number | null;
119
+ }
120
+ export interface CursorPaging {
121
+ /** Number of items to load per page. */
122
+ limit?: number | null;
123
+ /**
124
+ * Pointer to the next or previous page in the list of results.
125
+ * You can get the relevant cursor token
126
+ * from the `pagingMetadata` object in the previous call's response.
127
+ * Not relevant for the first request.
128
+ */
129
+ cursor?: string | null;
130
+ }
131
+ export interface QueryPoliciesResponse {
132
+ /** Event policies. */
133
+ policies?: Policy[];
134
+ /** Query result's metadata. */
135
+ metadata?: PagingMetadataV2;
136
+ }
137
+ export interface PagingMetadataV2 {
138
+ /** Number of items returned in the response. */
139
+ count?: number | null;
140
+ /** Offset that was requested. */
141
+ offset?: number | null;
142
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
143
+ total?: number | null;
144
+ /** Flag that indicates the server failed to calculate the `total` field. */
145
+ tooManyToCount?: boolean | null;
146
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
147
+ cursors?: Cursors;
148
+ }
149
+ export interface Cursors {
150
+ /** Cursor pointing to next page in the list of results. */
151
+ next?: string | null;
152
+ /** Cursor pointing to previous page in the list of results. */
153
+ prev?: string | null;
154
+ }
155
+ export interface ReorderEventPoliciesRequest extends ReorderEventPoliciesRequestReferencePolicyOneOf {
156
+ /** Move the given `policyId` before the specified policy. */
157
+ beforePolicyId?: string;
158
+ /** Move the given `policyId` after the specified policy. */
159
+ afterPolicyId?: string;
160
+ /** Event ID. */
161
+ eventId: string;
162
+ /** Event policy ID. */
163
+ policyId: string;
164
+ }
165
+ /** @oneof */
166
+ export interface ReorderEventPoliciesRequestReferencePolicyOneOf {
167
+ /** */
168
+ beforePolicyId?: string;
169
+ /** Move the given `policyId` after the specified policy. */
170
+ afterPolicyId?: string;
171
+ }
172
+ export interface ReorderEventPoliciesResponse {
173
+ /** Ordered event policies. */
174
+ policies?: Policy[];
175
+ }
176
+ export interface GetPolicyRequest {
177
+ /** Policy ID. */
178
+ policyId: string;
179
+ }
180
+ export interface GetPolicyResponse {
181
+ /** The requested policy. */
182
+ policy?: Policy;
183
+ }
184
+ export interface EventCopied {
185
+ /** Event created timestamp in ISO UTC format. */
186
+ timestamp?: Date;
187
+ /** Event ID. */
188
+ eventId?: string;
189
+ /** Event location. */
190
+ location?: Location;
191
+ /** Event schedule configuration. */
192
+ scheduleConfig?: ScheduleConfig;
193
+ /** Event title. */
194
+ title?: string;
195
+ /** Event creator user ID. */
196
+ userId?: string | null;
197
+ /** Event status. */
198
+ status?: EventStatus;
199
+ /** Instance ID. Indicates the original app instance which current event was derived from. */
200
+ derivedFromInstanceId?: string | null;
201
+ /** Event ID. Indicates the original event which current event was derived from. */
202
+ derivedFromEventId?: string | null;
203
+ /**
204
+ * Map of copied ticket definitions from original event.
205
+ * Key represents ticket def id in the original event.
206
+ * Value represents ticket def id in the newly created event.
207
+ */
208
+ ticketDefinitions?: Record<string, string>;
209
+ }
210
+ export interface Location {
211
+ /** Location name. */
212
+ name?: string | null;
213
+ /** Location map coordinates. */
214
+ coordinates?: MapCoordinates;
215
+ /** Single line address representation. */
216
+ address?: string | null;
217
+ /** Location type. */
218
+ type?: LocationType;
219
+ /**
220
+ * Full address derived from formatted single line `address`.
221
+ * When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.
222
+ * If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.
223
+ *
224
+ * Migration notes:
225
+ * - `full_address.formatted_address` is equivalent to `address`.
226
+ * - `full_address.geocode` is equivalent to `coordinates`.
227
+ */
228
+ fullAddress?: Address;
229
+ /**
230
+ * Defines event location as TBD (To Be Determined).
231
+ * When event location is not yet defined, `name` is displayed instead of location address.
232
+ * `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.
233
+ */
234
+ tbd?: boolean | null;
235
+ }
236
+ export interface MapCoordinates {
237
+ /** Latitude. */
238
+ lat?: number;
239
+ /** Longitude. */
240
+ lng?: number;
241
+ }
242
+ export declare enum LocationType {
243
+ VENUE = "VENUE",
244
+ ONLINE = "ONLINE"
245
+ }
246
+ /** Physical address */
247
+ export interface Address extends AddressStreetOneOf {
248
+ /** a break down of the street to number and street name */
249
+ streetAddress?: StreetAddress;
250
+ /** Main address line (usually street and number) as free text */
251
+ addressLine1?: string | null;
252
+ /** country code */
253
+ country?: string | null;
254
+ /** subdivision (usually state or region) code according to ISO 3166-2 */
255
+ subdivision?: string | null;
256
+ /** city name */
257
+ city?: string | null;
258
+ /** zip/postal code */
259
+ postalCode?: string | null;
260
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */
261
+ addressLine2?: string | null;
262
+ /** A string containing the human-readable address of this location */
263
+ formatted?: string | null;
264
+ /** coordinates of the physical address */
265
+ location?: AddressLocation;
266
+ }
267
+ /** @oneof */
268
+ export interface AddressStreetOneOf {
269
+ /** a break down of the street to number and street name */
270
+ streetAddress?: StreetAddress;
271
+ /** Main address line (usually street and number) as free text */
272
+ addressLine?: string | null;
273
+ }
274
+ export interface StreetAddress {
275
+ /** street number */
276
+ number?: string;
277
+ /** street name */
278
+ name?: string;
279
+ }
280
+ export interface AddressLocation {
281
+ /** address latitude coordinates */
282
+ latitude?: number | null;
283
+ /** address longitude coordinates */
284
+ longitude?: number | null;
285
+ }
286
+ export interface Subdivision {
287
+ /** subdivision short code */
288
+ code?: string;
289
+ /** subdivision full-name */
290
+ name?: string;
291
+ }
292
+ export declare enum SubdivisionType {
293
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
294
+ /** State */
295
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
296
+ /** County */
297
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
298
+ /** City/town */
299
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
300
+ /** Neighborhood/quarter */
301
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
302
+ /** Street/block */
303
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
304
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
305
+ COUNTRY = "COUNTRY"
306
+ }
307
+ export interface ScheduleConfig {
308
+ /**
309
+ * Defines event as TBD (To Be Determined) schedule.
310
+ * When event time is not yet defined, TBD message is displayed instead of event start and end times.
311
+ * `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.
312
+ */
313
+ scheduleTbd?: boolean;
314
+ /** TBD message. */
315
+ scheduleTbdMessage?: string | null;
316
+ /** Event start timestamp. */
317
+ startDate?: Date;
318
+ /** Event end timestamp. */
319
+ endDate?: Date;
320
+ /** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
321
+ timeZoneId?: string | null;
322
+ /** Whether end date is hidden in the formatted schedule. */
323
+ endDateHidden?: boolean;
324
+ /** Whether time zone is displayed in formatted schedule. */
325
+ showTimeZone?: boolean;
326
+ /** Event recurrences. */
327
+ recurrences?: Recurrences;
328
+ }
329
+ export interface Recurrences {
330
+ /** Event occurrences. */
331
+ occurrences?: Occurrence[];
332
+ /**
333
+ * Recurring event category ID.
334
+ * @readonly
335
+ */
336
+ categoryId?: string | null;
337
+ /**
338
+ * Recurrence status.
339
+ * @readonly
340
+ */
341
+ status?: Status;
342
+ }
343
+ export interface Occurrence {
344
+ /** Event start timestamp. */
345
+ startDate?: Date;
346
+ /** Event end timestamp. */
347
+ endDate?: Date;
348
+ /** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
349
+ timeZoneId?: string | null;
350
+ /** Whether time zone is displayed in formatted schedule. */
351
+ showTimeZone?: boolean;
352
+ }
353
+ export declare enum Status {
354
+ /** Event occurs only once. */
355
+ ONE_TIME = "ONE_TIME",
356
+ /** Event is recurring. */
357
+ RECURRING = "RECURRING",
358
+ /** Marks the next upcoming occurrence of the recurring event. */
359
+ RECURRING_NEXT = "RECURRING_NEXT",
360
+ /** Marks the most recent ended occurrence of the recurring event. */
361
+ RECURRING_LAST_ENDED = "RECURRING_LAST_ENDED",
362
+ /** Marks the most recent canceled occurrence of the recurring event. */
363
+ RECURRING_LAST_CANCELED = "RECURRING_LAST_CANCELED"
364
+ }
365
+ export declare enum EventStatus {
366
+ /** Event is public and scheduled to start */
367
+ SCHEDULED = "SCHEDULED",
368
+ /** Event has started */
369
+ STARTED = "STARTED",
370
+ /** Event has ended */
371
+ ENDED = "ENDED",
372
+ /** Event was canceled */
373
+ CANCELED = "CANCELED",
374
+ /** Event is not public and needs to be published */
375
+ DRAFT = "DRAFT"
376
+ }
377
+ export interface Empty {
378
+ }
379
+ export interface GetPolicyFromTrashBinRequest {
380
+ /** Policy ID. */
381
+ policyId?: string;
382
+ }
383
+ export interface GetPolicyFromTrashBinResponse {
384
+ /** The requested policy. */
385
+ policy?: Policy;
386
+ }
387
+ export interface DomainEvent extends DomainEventBodyOneOf {
388
+ createdEvent?: EntityCreatedEvent;
389
+ updatedEvent?: EntityUpdatedEvent;
390
+ deletedEvent?: EntityDeletedEvent;
391
+ actionEvent?: ActionEvent;
392
+ /**
393
+ * Unique event ID.
394
+ * Allows clients to ignore duplicate webhooks.
395
+ */
396
+ _id?: string;
397
+ /**
398
+ * Assumes actions are also always typed to an entity_type
399
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
400
+ */
401
+ entityFqdn?: string;
402
+ /**
403
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
404
+ * This is although the created/updated/deleted notion is duplication of the oneof types
405
+ * Example: created/updated/deleted/started/completed/email_opened
406
+ */
407
+ slug?: string;
408
+ /** ID of the entity associated with the event. */
409
+ entityId?: string;
410
+ /** Event timestamp. */
411
+ eventTime?: Date;
412
+ /**
413
+ * Whether the event was triggered as a result of a privacy regulation application
414
+ * (for example, GDPR).
415
+ */
416
+ triggeredByAnonymizeRequest?: boolean | null;
417
+ /** If present, indicates the action that triggered the event. */
418
+ originatedFrom?: string | null;
419
+ /**
420
+ * A sequence number defining the order of updates to the underlying entity.
421
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
422
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
423
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
424
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
425
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
426
+ */
427
+ entityEventSequence?: string | null;
428
+ }
429
+ /** @oneof */
430
+ export interface DomainEventBodyOneOf {
431
+ createdEvent?: EntityCreatedEvent;
432
+ updatedEvent?: EntityUpdatedEvent;
433
+ deletedEvent?: EntityDeletedEvent;
434
+ actionEvent?: ActionEvent;
435
+ }
436
+ export interface EntityCreatedEvent {
437
+ entityAsJson?: string;
438
+ }
439
+ export interface EntityUpdatedEvent {
440
+ /**
441
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
442
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
443
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
444
+ */
445
+ currentEntityAsJson?: string;
446
+ }
447
+ export interface EntityDeletedEvent {
448
+ /** Entity that was deleted */
449
+ deletedEntityAsJson?: string | null;
450
+ }
451
+ export interface ActionEvent {
452
+ bodyAsJson?: string;
453
+ }
454
+ export interface CreatePolicyResponseNonNullableFields {
455
+ policy?: {
456
+ name: string;
457
+ body: string;
458
+ eventId: string;
459
+ };
460
+ }
461
+ export interface UpdatePolicyResponseNonNullableFields {
462
+ policy?: {
463
+ name: string;
464
+ body: string;
465
+ eventId: string;
466
+ };
467
+ }
468
+ export interface QueryPoliciesResponseNonNullableFields {
469
+ policies: {
470
+ name: string;
471
+ body: string;
472
+ eventId: string;
473
+ }[];
474
+ }
475
+ export interface ReorderEventPoliciesResponseNonNullableFields {
476
+ policies: {
477
+ name: string;
478
+ body: string;
479
+ eventId: string;
480
+ }[];
481
+ }
482
+ export interface GetPolicyResponseNonNullableFields {
483
+ policy?: {
484
+ name: string;
485
+ body: string;
486
+ eventId: string;
487
+ };
488
+ }
489
+ /**
490
+ * Creates a policy.
491
+ *
492
+ *
493
+ * <!--
494
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
495
+ * -->
496
+ *
497
+ * The `createPolicy()` function returns a Promise that resolves to the newly-created policy.
498
+ *
499
+ * You can create up to 3 policies per event. If you try to create more than 3, you'll get the "Maximum number of policies for the event has been reached" error.
500
+ * @public
501
+ * @requiredField policy
502
+ * @requiredField policy.body
503
+ * @requiredField policy.eventId
504
+ * @requiredField policy.name
505
+ * @param policy - Policy info.
506
+ * @permissionScope Manage Events - all permissions
507
+ * @permissionScope Manage Policies
508
+ * @applicableIdentity APP
509
+ * @returns Created policy.
510
+ */
511
+ export declare function createPolicy(policy: Policy): Promise<Policy & NonNullable<CreatePolicyResponseNonNullableFields>['policy']>;
512
+ /**
513
+ * Updates a policy.
514
+ *
515
+ * <!--
516
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
517
+ * -->
518
+ *
519
+ * The `updatePolicy()` function returns a Promise that resolves to the newly-updated policy.
520
+ *
521
+ * Each time the policy is updated, `revision` increments by 1. The existing `revision` must be included when updating the policy. This ensures you're working with the latest policy and prevents unintended overwrites.
522
+ * @public
523
+ * @requiredField _id
524
+ * @requiredField policy
525
+ * @requiredField policy.body
526
+ * @requiredField policy.eventId
527
+ * @requiredField policy.name
528
+ * @requiredField policy.revision
529
+ * @param policy - Policy to update.
530
+ * @param _id - Policy ID.
531
+ * @permissionScope Manage Events - all permissions
532
+ * @permissionScope Manage Policies
533
+ * @applicableIdentity APP
534
+ * @returns The updated policy.
535
+ */
536
+ export declare function updatePolicy(_id: string | null, policy: UpdatePolicy): Promise<Policy & NonNullable<UpdatePolicyResponseNonNullableFields>['policy']>;
537
+ export interface UpdatePolicy {
538
+ /**
539
+ * Policy ID.
540
+ * @readonly
541
+ */
542
+ _id?: string | null;
543
+ /**
544
+ * Revision number, which increments by 1 each time the policy is updated. The existing revision must be used when updating a policy to prevent conflicting changes. You'll get an error if you try to use the previous revision.
545
+ * @readonly
546
+ */
547
+ revision?: string | null;
548
+ /**
549
+ * Date policy was created.
550
+ * @readonly
551
+ */
552
+ _createdDate?: Date;
553
+ /**
554
+ * Date and time of the policy's latest update in `yyyy-mm-ddThh:mm:sssZ` format.
555
+ * @readonly
556
+ */
557
+ _updatedDate?: Date;
558
+ /**
559
+ * Policy name that is visible in the dashboard and checkout form.
560
+ *
561
+ * Min: 1 character
562
+ *
563
+ * Max: 40 characters
564
+ */
565
+ name?: string;
566
+ /**
567
+ * Policy body. Here you can enter various terms and conditions.
568
+ *
569
+ * Min: 1 character
570
+ *
571
+ * Max: 50000 characters
572
+ *
573
+ * **Note**: You can format text using various HTML tags such as `<p>`, `<b>`, `<ul>`, etc.
574
+ */
575
+ body?: string;
576
+ /** ID of the event to which the policy belongs. */
577
+ eventId?: string;
578
+ }
579
+ /**
580
+ * Permanently deletes a policy.
581
+ *
582
+ *
583
+ * <!--
584
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
585
+ * -->
586
+ *
587
+ * The `deletePolicy()` function returns a Promise that resolves when the specified policy is deleted.
588
+ *
589
+ * Deleted policies are not returned by the `getPolicy()` or `queryPolicies()` functions.
590
+ * @public
591
+ * @requiredField policyId
592
+ * @param options - Options for Delete Policy function.
593
+ * @param policyId - ID of the policy to delete.
594
+ * @permissionScope Manage Events - all permissions
595
+ * @permissionScope Manage Policies
596
+ * @applicableIdentity APP
597
+ */
598
+ export declare function deletePolicy(policyId: string): Promise<void>;
599
+ /**
600
+ * Creates a query to retrieve a list of policies, given the provided paging and filter.
601
+ *
602
+ *
603
+ * The `queryPolicies()` function builds a query to retrieve a list of policies and returns a [PoliciesQueryBuilder](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder) object.
604
+ *
605
+ * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/find) function.
606
+ *
607
+ * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `PoliciesQueryBuilder.find()` returns.
608
+ *
609
+ * The query runs with the following `PoliciesQueryBuilder` defaults that you can override:
610
+ *
611
+ * [`limit`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/limit): `50`
612
+ * [`descending`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/descending): `_createdDate`
613
+ *
614
+ * The functions that are chained to `queryPolicies()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the id property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the id.
615
+ *
616
+ * The table below shows which `PoliciesQueryBuilder` functions are supported for `queryPoliciesGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.
617
+ * @public
618
+ * @permissionScope Manage Events - all permissions
619
+ * @permissionScope Read Policies
620
+ * @permissionScope Manage Policies
621
+ * @applicableIdentity APP
622
+ * @applicableIdentity MEMBER
623
+ * @applicableIdentity VISITOR
624
+ */
625
+ export declare function queryPolicies(): PoliciesQueryBuilder;
626
+ interface QueryCursorResult {
627
+ cursors: Cursors;
628
+ hasNext: () => boolean;
629
+ hasPrev: () => boolean;
630
+ length: number;
631
+ pageSize: number;
632
+ }
633
+ export interface PoliciesQueryResult extends QueryCursorResult {
634
+ items: Policy[];
635
+ query: PoliciesQueryBuilder;
636
+ next: () => Promise<PoliciesQueryResult>;
637
+ prev: () => Promise<PoliciesQueryResult>;
638
+ }
639
+ export interface PoliciesQueryBuilder {
640
+ /** @param propertyName - Property whose value is compared with `value`.
641
+ * @param value - Value to compare against.
642
+ */
643
+ eq: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
644
+ /** @param propertyName - Property whose value is compared with `value`.
645
+ * @param value - Value to compare against.
646
+ */
647
+ ne: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
648
+ /** @param propertyName - Property whose value is compared with `value`.
649
+ * @param value - Value to compare against.
650
+ */
651
+ ge: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
652
+ /** @param propertyName - Property whose value is compared with `value`.
653
+ * @param value - Value to compare against.
654
+ */
655
+ gt: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
656
+ /** @param propertyName - Property whose value is compared with `value`.
657
+ * @param value - Value to compare against.
658
+ */
659
+ le: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
660
+ /** @param propertyName - Property whose value is compared with `value`.
661
+ * @param value - Value to compare against.
662
+ */
663
+ lt: (propertyName: 'revision' | '_createdDate' | '_updatedDate', value: any) => PoliciesQueryBuilder;
664
+ in: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: any) => PoliciesQueryBuilder;
665
+ exists: (propertyName: '_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId', value: boolean) => PoliciesQueryBuilder;
666
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
667
+ ascending: (...propertyNames: Array<'_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId'>) => PoliciesQueryBuilder;
668
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
669
+ descending: (...propertyNames: Array<'_id' | 'revision' | '_createdDate' | '_updatedDate' | 'name' | 'body' | 'eventId'>) => PoliciesQueryBuilder;
670
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
671
+ limit: (limit: number) => PoliciesQueryBuilder;
672
+ /** @param cursor - A pointer to specific record */
673
+ skipTo: (cursor: string) => PoliciesQueryBuilder;
674
+ find: () => Promise<PoliciesQueryResult>;
675
+ }
676
+ /**
677
+ * Changes policy order in an event dashboard and agreement checkbox on the checkout form.
678
+ * For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. By default, the policies are arranged by the created date in descending order.
679
+ *
680
+ * > **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.
681
+ *
682
+ * <!--
683
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
684
+ * -->
685
+ *
686
+ * The `reorderEventPolicies()` function returns a Promise that resolves to the newly-reordered policy.
687
+ * @param policyId - Event policy ID.
688
+ * @param eventId - Event ID.
689
+ * @public
690
+ * @requiredField eventId
691
+ * @requiredField policyId
692
+ * @param options - Options for Reorder Event Policies function.
693
+ * @permissionScope Manage Events - all permissions
694
+ * @permissionScope Manage Policies
695
+ * @applicableIdentity APP
696
+ */
697
+ export declare function reorderEventPolicies(policyId: string, eventId: string, options?: ReorderEventPoliciesOptions): Promise<ReorderEventPoliciesResponse & ReorderEventPoliciesResponseNonNullableFields>;
698
+ export interface ReorderEventPoliciesOptions extends ReorderEventPoliciesRequestReferencePolicyOneOf {
699
+ /** Move the given `policyId` before the specified policy. */
700
+ beforePolicyId?: string;
701
+ /** Move the given `policyId` after the specified policy. */
702
+ afterPolicyId?: string;
703
+ }
704
+ /**
705
+ * Retrieves a policy by ID.
706
+ *
707
+ *
708
+ * The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID.
709
+ * @public
710
+ * @requiredField policyId
711
+ * @param policyId - Policy ID.
712
+ * @permissionScope Manage Events - all permissions
713
+ * @permissionScope Read Policies
714
+ * @permissionScope Manage Policies
715
+ * @applicableIdentity APP
716
+ * @applicableIdentity MEMBER
717
+ * @applicableIdentity VISITOR
718
+ * @returns The requested policy.
719
+ */
720
+ export declare function getPolicy(policyId: string): Promise<Policy & NonNullable<GetPolicyResponseNonNullableFields>['policy']>;
721
+ export {};