@wix/bookings 1.0.310 → 1.0.312

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 (233) hide show
  1. package/build/cjs/index.d.ts +5 -3
  2. package/build/cjs/index.js +6 -4
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +5 -3
  5. package/build/cjs/index.typings.js +6 -4
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +5 -3
  8. package/build/cjs/meta.js +6 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/bookings-availability-v1-slot-availability.http.js +12 -10
  11. package/build/cjs/src/bookings-availability-v1-slot-availability.http.js.map +1 -1
  12. package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +9 -9
  13. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +14 -9
  14. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +15 -4
  15. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  16. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.http.d.ts +223 -0
  17. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.http.js +504 -0
  18. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.http.js.map +1 -0
  19. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.meta.d.ts +14 -0
  20. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.meta.js +66 -0
  21. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.meta.js.map +1 -0
  22. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.public.d.ts +9 -0
  23. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.public.js +20 -0
  24. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.public.js.map +1 -0
  25. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.types.d.ts +805 -0
  26. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.types.js +14 -0
  27. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.types.js.map +1 -0
  28. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.universal.d.ts +1106 -0
  29. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js +366 -0
  30. package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js.map +1 -0
  31. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +223 -0
  32. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js +436 -0
  33. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  34. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +805 -0
  35. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js +14 -0
  36. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  37. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +223 -0
  38. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +504 -0
  39. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -0
  40. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +14 -0
  41. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +66 -0
  42. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +1 -0
  43. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +9 -0
  44. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +20 -0
  45. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -0
  46. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +805 -0
  47. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +14 -0
  48. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -0
  49. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +1083 -0
  50. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +354 -0
  51. package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -0
  52. package/build/cjs/src/bookings-calendar-v1-session.http.js +85 -80
  53. package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
  54. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +2 -4
  55. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
  56. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +2 -4
  57. package/build/cjs/src/bookings-calendar-v1-session.universal.js +11 -8
  58. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  59. package/build/cjs/src/bookings-calendar-v2-external-calendar.http.js +30 -98
  60. package/build/cjs/src/bookings-calendar-v2-external-calendar.http.js.map +1 -1
  61. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +67 -31
  62. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  63. package/build/cjs/src/bookings-calendar-v2-session-view.http.js +10 -13
  64. package/build/cjs/src/bookings-calendar-v2-session-view.http.js.map +1 -1
  65. package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +2 -0
  66. package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +2 -0
  67. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +6 -1
  68. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  69. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js +20 -64
  70. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
  71. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +33 -1
  72. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +6 -7
  73. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  74. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +8 -8
  75. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +40 -24
  76. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  77. package/build/cjs/src/bookings-reader-v2-extended-booking.http.js +27 -30
  78. package/build/cjs/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
  79. package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +11 -6
  80. package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
  81. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +11 -6
  82. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +10 -4
  83. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  84. package/build/cjs/src/bookings-services-v2-service.http.js +192 -161
  85. package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
  86. package/build/cjs/src/bookings-services-v2-service.public.d.ts +2 -2
  87. package/build/cjs/src/bookings-services-v2-service.public.js +10 -1
  88. package/build/cjs/src/bookings-services-v2-service.public.js.map +1 -1
  89. package/build/cjs/src/bookings-services-v2-service.types.d.ts +624 -40
  90. package/build/cjs/src/bookings-services-v2-service.types.js +66 -4
  91. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  92. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +658 -57
  93. package/build/cjs/src/bookings-services-v2-service.universal.js +92 -19
  94. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  95. package/build/cjs/src/bookings-v2-attendance.http.js +8 -37
  96. package/build/cjs/src/bookings-v2-attendance.http.js.map +1 -1
  97. package/build/cjs/src/bookings-v2-attendance.types.d.ts +1 -1
  98. package/build/cjs/src/bookings-v2-attendance.universal.d.ts +1 -3
  99. package/build/cjs/src/bookings-v2-attendance.universal.js +19 -12
  100. package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
  101. package/build/cjs/src/bookings-v2-booking.http.d.ts +3 -5
  102. package/build/cjs/src/bookings-v2-booking.http.js +234 -155
  103. package/build/cjs/src/bookings-v2-booking.http.js.map +1 -1
  104. package/build/cjs/src/bookings-v2-booking.public.d.ts +1 -1
  105. package/build/cjs/src/bookings-v2-booking.types.d.ts +28 -8
  106. package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
  107. package/build/cjs/src/bookings-v2-booking.universal.d.ts +31 -13
  108. package/build/cjs/src/bookings-v2-booking.universal.js +104 -49
  109. package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
  110. package/build/cjs/src/bookings-v2-price-info.http.js +48 -40
  111. package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
  112. package/build/cjs/src/bookings-v2-price-info.types.d.ts +7 -1
  113. package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
  114. package/build/cjs/src/bookings-v2-price-info.universal.d.ts +5 -1
  115. package/build/cjs/src/bookings-v2-price-info.universal.js +11 -6
  116. package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
  117. package/build/es/index.d.ts +5 -3
  118. package/build/es/index.js +5 -3
  119. package/build/es/index.js.map +1 -1
  120. package/build/es/index.typings.d.ts +5 -3
  121. package/build/es/index.typings.js +5 -3
  122. package/build/es/index.typings.js.map +1 -1
  123. package/build/es/meta.d.ts +5 -3
  124. package/build/es/meta.js +5 -3
  125. package/build/es/meta.js.map +1 -1
  126. package/build/es/src/bookings-availability-v1-slot-availability.http.js +12 -10
  127. package/build/es/src/bookings-availability-v1-slot-availability.http.js.map +1 -1
  128. package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +9 -9
  129. package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +14 -9
  130. package/build/es/src/bookings-availability-v1-slot-availability.universal.js +16 -5
  131. package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  132. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.http.d.ts +223 -0
  133. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.http.js +497 -0
  134. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.http.js.map +1 -0
  135. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.meta.d.ts +14 -0
  136. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.meta.js +38 -0
  137. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.meta.js.map +1 -0
  138. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.public.d.ts +9 -0
  139. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.public.js +14 -0
  140. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.public.js.map +1 -0
  141. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.types.d.ts +805 -0
  142. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.types.js +11 -0
  143. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.types.js.map +1 -0
  144. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.universal.d.ts +1106 -0
  145. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js +338 -0
  146. package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js.map +1 -0
  147. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +223 -0
  148. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js +429 -0
  149. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  150. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +805 -0
  151. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js +11 -0
  152. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  153. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +223 -0
  154. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +497 -0
  155. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -0
  156. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +14 -0
  157. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +38 -0
  158. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +1 -0
  159. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +9 -0
  160. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +14 -0
  161. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -0
  162. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +805 -0
  163. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +11 -0
  164. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -0
  165. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +1083 -0
  166. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +326 -0
  167. package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -0
  168. package/build/es/src/bookings-calendar-v1-session.http.js +85 -80
  169. package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
  170. package/build/es/src/bookings-calendar-v1-session.types.d.ts +2 -4
  171. package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
  172. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +2 -4
  173. package/build/es/src/bookings-calendar-v1-session.universal.js +11 -8
  174. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  175. package/build/es/src/bookings-calendar-v2-external-calendar.http.js +30 -98
  176. package/build/es/src/bookings-calendar-v2-external-calendar.http.js.map +1 -1
  177. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +68 -32
  178. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  179. package/build/es/src/bookings-calendar-v2-session-view.http.js +10 -13
  180. package/build/es/src/bookings-calendar-v2-session-view.http.js.map +1 -1
  181. package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +2 -0
  182. package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +2 -0
  183. package/build/es/src/bookings-calendar-v2-session-view.universal.js +7 -2
  184. package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  185. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js +20 -64
  186. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
  187. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +33 -1
  188. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +6 -7
  189. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  190. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +8 -8
  191. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +40 -24
  192. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  193. package/build/es/src/bookings-reader-v2-extended-booking.http.js +27 -30
  194. package/build/es/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
  195. package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +11 -6
  196. package/build/es/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
  197. package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +11 -6
  198. package/build/es/src/bookings-reader-v2-extended-booking.universal.js +11 -5
  199. package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  200. package/build/es/src/bookings-services-v2-service.http.js +192 -161
  201. package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
  202. package/build/es/src/bookings-services-v2-service.public.d.ts +2 -2
  203. package/build/es/src/bookings-services-v2-service.public.js +1 -1
  204. package/build/es/src/bookings-services-v2-service.public.js.map +1 -1
  205. package/build/es/src/bookings-services-v2-service.types.d.ts +624 -40
  206. package/build/es/src/bookings-services-v2-service.types.js +65 -3
  207. package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
  208. package/build/es/src/bookings-services-v2-service.universal.d.ts +658 -57
  209. package/build/es/src/bookings-services-v2-service.universal.js +91 -18
  210. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  211. package/build/es/src/bookings-v2-attendance.http.js +8 -37
  212. package/build/es/src/bookings-v2-attendance.http.js.map +1 -1
  213. package/build/es/src/bookings-v2-attendance.types.d.ts +1 -1
  214. package/build/es/src/bookings-v2-attendance.universal.d.ts +1 -3
  215. package/build/es/src/bookings-v2-attendance.universal.js +19 -12
  216. package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
  217. package/build/es/src/bookings-v2-booking.http.d.ts +3 -5
  218. package/build/es/src/bookings-v2-booking.http.js +234 -155
  219. package/build/es/src/bookings-v2-booking.http.js.map +1 -1
  220. package/build/es/src/bookings-v2-booking.public.d.ts +1 -1
  221. package/build/es/src/bookings-v2-booking.types.d.ts +28 -8
  222. package/build/es/src/bookings-v2-booking.types.js.map +1 -1
  223. package/build/es/src/bookings-v2-booking.universal.d.ts +31 -13
  224. package/build/es/src/bookings-v2-booking.universal.js +105 -50
  225. package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
  226. package/build/es/src/bookings-v2-price-info.http.js +48 -40
  227. package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
  228. package/build/es/src/bookings-v2-price-info.types.d.ts +7 -1
  229. package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
  230. package/build/es/src/bookings-v2-price-info.universal.d.ts +5 -1
  231. package/build/es/src/bookings-v2-price-info.universal.js +12 -7
  232. package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
  233. package/package.json +3 -3
@@ -9,11 +9,8 @@ export interface Service {
9
9
  type?: ServiceType;
10
10
  /** Order of a service within a category. */
11
11
  sortOrder?: number | null;
12
- /** Service name. */
13
12
  name?: string | null;
14
- /** Service description, such as `High-class hair styling, cuts, straightening and color.` */
15
13
  description?: string | null;
16
- /** Short service description, such as `Hair styling.` */
17
14
  tagLine?: string | null;
18
15
  /** Default maximum number of customers that can book the service. The service cannot be booked beyond this capacity. */
19
16
  defaultCapacity?: number | null;
@@ -33,9 +30,8 @@ export interface Service {
33
30
  conferencing?: Conferencing;
34
31
  /**
35
32
  * The locations this service is offered at.
36
- * Only multiple locations of type `BUSINESS` are supported. multiple locations of type `CUSTOM` or `CUSTOMER` are not supported.
33
+ * In case of multiple (more than 1) location, All locations must be of type `BUSINESS`.
37
34
  * For courses only: Currently, only 1 location is supported, for all location types.
38
- * Use `setServiceLocations` method to update the locations this service is offered at.
39
35
  */
40
36
  locations?: Location[];
41
37
  /** Policy determining under what conditions this service can be booked. For example, whether the service can only be booked up to 30 minutes before it begins. */
@@ -86,11 +82,11 @@ export interface Service {
86
82
  }
87
83
  export declare enum ServiceType {
88
84
  UNKNOWN_SERVICE_TYPE = "UNKNOWN_SERVICE_TYPE",
89
- /** The service is an appointment. */
85
+ /** Service is an appointment. */
90
86
  APPOINTMENT = "APPOINTMENT",
91
- /** The service is a class. */
87
+ /** Service is a class. */
92
88
  CLASS = "CLASS",
93
- /** The service is a course. */
89
+ /** Service is a course. */
94
90
  COURSE = "COURSE"
95
91
  }
96
92
  export interface Media {
@@ -814,6 +810,8 @@ export interface ExtendedFields {
814
810
  * The value of each key is structured according to the schema defined when the extended fields were configured.
815
811
  *
816
812
  * You can only access fields for which you have the appropriate permissions.
813
+ *
814
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
817
815
  */
818
816
  namespaces?: Record<string, Record<string, any>>;
819
817
  }
@@ -1023,8 +1021,6 @@ export interface BulkUpdateServicesRequest {
1023
1021
  export interface MaskedService {
1024
1022
  /** Service to update. [Partial updates](https://dev.wix.com/api/rest/wix-bookings/bookings/patch-endpoints-and-field-masks-in-update-requests) are supported. */
1025
1023
  service?: Service;
1026
- /** Explicit list of fields to update. */
1027
- mask?: string[];
1028
1024
  }
1029
1025
  export interface BulkUpdateServicesResponse {
1030
1026
  /** The result of each service update. */
@@ -1035,13 +1031,21 @@ export interface BulkUpdateServicesResponse {
1035
1031
  export interface DeleteServiceRequest {
1036
1032
  /** ID of the service to delete. */
1037
1033
  serviceId: string;
1038
- /** Whether to preserve future sessions with participants. Optional, default is false. */
1034
+ /**
1035
+ * Whether to preserve future sessions with participants.
1036
+ *
1037
+ * Default: `false`
1038
+ */
1039
1039
  preserveFutureSessionsWithParticipants?: boolean;
1040
1040
  /** Whether to notify participants about the change and an optional custom message. */
1041
1041
  participantNotification?: ParticipantNotification;
1042
1042
  }
1043
1043
  export interface ParticipantNotification {
1044
- /** Whether to send the message about the changes to the customer. `false` by default */
1044
+ /**
1045
+ * Whether to send the message about the changes to the customer.
1046
+ *
1047
+ * Default: `false`
1048
+ */
1045
1049
  notifyParticipants?: boolean | null;
1046
1050
  /** Custom message to send to the participants about the changes to the booking. */
1047
1051
  message?: string | null;
@@ -1050,9 +1054,12 @@ export interface DeleteServiceResponse {
1050
1054
  }
1051
1055
  export interface BulkDeleteServicesRequest {
1052
1056
  ids?: string[];
1053
- /** Whether to preserve future sessions with participants. Optional, default is false. */
1054
1057
  preserveFutureSessionsWithParticipants?: boolean;
1055
- /** Whether to notify participants about the change and an optional custom message. */
1058
+ /**
1059
+ * Whether to preserve future sessions with participants.
1060
+ *
1061
+ * Default: `false`.
1062
+ */
1056
1063
  participantNotification?: ParticipantNotification;
1057
1064
  }
1058
1065
  export interface BulkDeleteServicesResponse {
@@ -1148,16 +1155,234 @@ export interface Cursors {
1148
1155
  prev?: string | null;
1149
1156
  }
1150
1157
  export interface SearchServicesRequest {
1151
- /** The search term used to match services. */
1152
- query?: string | null;
1153
- /** Pagination, including offset, and limit. */
1154
- paging?: Paging;
1158
+ search?: CursorSearch;
1159
+ }
1160
+ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
1161
+ /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
1162
+ cursorPaging?: CursorPaging;
1163
+ /** A filter object. See documentation [here](https:// bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
1164
+ filter?: Record<string, any> | null;
1165
+ /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
1166
+ sort?: Sorting[];
1167
+ /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
1168
+ aggregations?: Aggregation[];
1169
+ /** Free text to match in searchable fields */
1170
+ search?: SearchDetails;
1171
+ }
1172
+ /** @oneof */
1173
+ export interface CursorSearchPagingMethodOneOf {
1174
+ /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */
1175
+ cursorPaging?: CursorPaging;
1176
+ }
1177
+ export interface Aggregation extends AggregationKindOneOf {
1178
+ /** Value aggregation */
1179
+ value?: ValueAggregation;
1180
+ /** Range aggregation */
1181
+ range?: RangeAggregation;
1182
+ /** Scalar aggregation */
1183
+ scalar?: ScalarAggregation;
1184
+ /** Name of the aggregation. Optional and can be used as an identifier of the requested aggregation in response. */
1185
+ name?: string | null;
1186
+ /** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
1187
+ type?: AggregationType;
1188
+ /** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
1189
+ fieldPath?: string;
1190
+ /** Group by aggregation */
1191
+ groupBy?: GroupByAggregation;
1192
+ }
1193
+ /** @oneof */
1194
+ export interface AggregationKindOneOf {
1195
+ /** Value aggregation */
1196
+ value?: ValueAggregation;
1197
+ /** Range aggregation */
1198
+ range?: RangeAggregation;
1199
+ /** Scalar aggregation */
1200
+ scalar?: ScalarAggregation;
1201
+ }
1202
+ export interface RangeBucket {
1203
+ /** Inclusive lower bound of the range. Required if to is not given. */
1204
+ from?: number | null;
1205
+ /** Exclusive upper bound of the range. Required if from is not given. */
1206
+ to?: number | null;
1207
+ }
1208
+ export declare enum SortType {
1209
+ COUNT = "COUNT",
1210
+ VALUE = "VALUE"
1211
+ }
1212
+ export declare enum SortDirection {
1213
+ DESC = "DESC",
1214
+ ASC = "ASC"
1215
+ }
1216
+ export declare enum ScalarType {
1217
+ UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
1218
+ COUNT_DISTINCT = "COUNT_DISTINCT",
1219
+ MIN = "MIN",
1220
+ MAX = "MAX",
1221
+ SUM = "SUM",
1222
+ AVG = "AVG"
1223
+ }
1224
+ export interface ValueAggregation {
1225
+ /** Sort type. Can be COUNT or VALUE. COUNT is the default. */
1226
+ sortType?: SortType;
1227
+ /** Sort direction. Can be DESC or ASC. DESC is the default. */
1228
+ sortDirection?: SortDirection;
1229
+ /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
1230
+ limit?: number | null;
1231
+ }
1232
+ export declare enum AggregationType {
1233
+ UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1234
+ VALUE = "VALUE",
1235
+ RANGE = "RANGE",
1236
+ SCALAR = "SCALAR"
1237
+ }
1238
+ export interface RangeAggregation {
1239
+ /** Range buckets */
1240
+ buckets?: RangeBucket[];
1241
+ }
1242
+ export interface ScalarAggregation {
1243
+ /** Scalar type */
1244
+ type?: ScalarType;
1245
+ }
1246
+ export interface GroupByAggregation extends GroupByAggregationKindOneOf {
1247
+ /** Value aggregation */
1248
+ value?: ValueAggregation;
1249
+ /** Name of the GroupByAggregation. Optional and can be used as an identifier of the requested aggregation in response. */
1250
+ name?: string | null;
1251
+ /** Path of the field to group by. For example, "type" */
1252
+ fieldPath?: string;
1253
+ }
1254
+ /** @oneof */
1255
+ export interface GroupByAggregationKindOneOf {
1256
+ /** Value aggregation */
1257
+ value?: ValueAggregation;
1258
+ }
1259
+ export interface SearchDetails {
1260
+ /** Boolean search mode */
1261
+ mode?: Mode;
1262
+ /** Search term or expression */
1263
+ expression?: string | null;
1264
+ /** Fields to search in. If empty - server will search in own default fields */
1265
+ fields?: string[];
1266
+ /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1267
+ fuzzy?: boolean;
1268
+ }
1269
+ export declare enum Mode {
1270
+ /** Any */
1271
+ OR = "OR",
1272
+ /** All */
1273
+ AND = "AND"
1155
1274
  }
1156
1275
  export interface SearchServicesResponse {
1157
1276
  /** The retrieved services. */
1158
1277
  services?: Service[];
1159
- /** Paging metadata, including offset and count. */
1160
- pagingMetadata?: PagingMetadataV2;
1278
+ /** Cursor paging metadata */
1279
+ pagingMetadata?: CursorPagingMetadata;
1280
+ /** Response aggregation data */
1281
+ aggregationData?: AggregationData;
1282
+ }
1283
+ export interface CursorPagingMetadata {
1284
+ /** Number of items returned in the response. */
1285
+ count?: number | null;
1286
+ /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
1287
+ cursors?: Cursors;
1288
+ /**
1289
+ * Indicates if there are more results after the current page.
1290
+ * If `true`, another page of results can be retrieved.
1291
+ * If `false`, this is the last page.
1292
+ */
1293
+ hasNext?: boolean | null;
1294
+ }
1295
+ export interface AggregationData {
1296
+ /** Key = aggregation name (as derived from search request) */
1297
+ results?: AggregationResults[];
1298
+ }
1299
+ export interface ValueAggregationResult {
1300
+ /** Value */
1301
+ value?: string;
1302
+ /** Count */
1303
+ count?: number;
1304
+ }
1305
+ export interface RangeAggregationResult {
1306
+ /** Inclusive lower bound of the range. */
1307
+ from?: number | null;
1308
+ /** Exclusive upper bound of the range. */
1309
+ to?: number | null;
1310
+ /** Count */
1311
+ count?: number;
1312
+ }
1313
+ export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1314
+ /** Value results */
1315
+ values?: ValueResults;
1316
+ /** Range results */
1317
+ ranges?: RangeResults;
1318
+ /** Scalar result */
1319
+ scalar?: ScalarResult;
1320
+ /** Name of the requested nested aggregation. */
1321
+ name?: string;
1322
+ /** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
1323
+ type?: AggregationType;
1324
+ /** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
1325
+ fieldPath?: string;
1326
+ }
1327
+ /** @oneof */
1328
+ export interface NestedAggregationResultsResultOneOf {
1329
+ /** Value results */
1330
+ values?: ValueResults;
1331
+ /** Range results */
1332
+ ranges?: RangeResults;
1333
+ /** Scalar result */
1334
+ scalar?: ScalarResult;
1335
+ }
1336
+ export interface ValueResults {
1337
+ /** Value aggregation results */
1338
+ results?: ValueAggregationResult[];
1339
+ }
1340
+ export interface RangeResults {
1341
+ /** Aggregation results */
1342
+ results?: RangeAggregationResult[];
1343
+ }
1344
+ export interface ScalarResult {
1345
+ /** Scalar type */
1346
+ type?: ScalarType;
1347
+ /** Value */
1348
+ value?: number;
1349
+ }
1350
+ export interface NestedValueAggregationResult {
1351
+ /** Value */
1352
+ value?: string;
1353
+ /** Nested results */
1354
+ nestedResults?: NestedAggregationResults;
1355
+ }
1356
+ export interface GroupByValueResults {
1357
+ /** Nested value aggregation results */
1358
+ results?: NestedValueAggregationResult[];
1359
+ }
1360
+ export interface AggregationResults extends AggregationResultsResultOneOf {
1361
+ /** Value results */
1362
+ values?: ValueResults;
1363
+ /** Range results */
1364
+ ranges?: RangeResults;
1365
+ /** Scalar result */
1366
+ scalar?: ScalarResult;
1367
+ /** Group by value results */
1368
+ groupedByValue?: GroupByValueResults;
1369
+ /** Name of the requested aggregation. */
1370
+ name?: string;
1371
+ /** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
1372
+ type?: AggregationType;
1373
+ /** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
1374
+ fieldPath?: string;
1375
+ }
1376
+ /** @oneof */
1377
+ export interface AggregationResultsResultOneOf {
1378
+ /** Value results */
1379
+ values?: ValueResults;
1380
+ /** Range results */
1381
+ ranges?: RangeResults;
1382
+ /** Scalar result */
1383
+ scalar?: ScalarResult;
1384
+ /** Group by value results */
1385
+ groupedByValue?: GroupByValueResults;
1161
1386
  }
1162
1387
  export interface QueryPoliciesRequest {
1163
1388
  /** WQL expression. */
@@ -1202,18 +1427,6 @@ export interface BookingPolicyWithServices {
1202
1427
  /** The number of services associated with the booking policy. */
1203
1428
  countOfServices?: number;
1204
1429
  }
1205
- export interface CursorPagingMetadata {
1206
- /** Number of items returned in the response. */
1207
- count?: number | null;
1208
- /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
1209
- cursors?: Cursors;
1210
- /**
1211
- * Indicates if there are more results after the current page.
1212
- * If `true`, another page of results can be retrieved.
1213
- * If `false`, this is the last page.
1214
- */
1215
- hasNext?: boolean | null;
1216
- }
1217
1430
  export interface CountServicesRequest {
1218
1431
  /** The filters for performing the count. */
1219
1432
  filter?: Record<string, any> | null;
@@ -1230,20 +1443,22 @@ export interface CategoryNotification {
1230
1443
  /** Categories are used to group multiple services together. A service must be associated with a category in order to be exposed in the Wix Bookings UI. */
1231
1444
  export interface Category {
1232
1445
  /**
1233
- * Category ID. Read-only.
1446
+ * Category ID.
1234
1447
  * @readonly
1235
1448
  */
1236
1449
  id?: string | null;
1237
1450
  /** Category name. */
1238
1451
  name?: string | null;
1239
- /** Custom properties that can be associated with the category. */
1240
- customProperties?: Record<string, string>;
1241
1452
  /**
1242
- * Category status Read-only.
1453
+ * Category status.
1454
+ * Supported values:
1455
+ * - "CREATED". The category is created.
1456
+ * - "DELETED". The category is deleted.
1457
+ * Default: "CREATED"
1243
1458
  * @readonly
1244
1459
  */
1245
1460
  status?: Status;
1246
- /** Sorting order of the category for Wix Bookings UI. */
1461
+ /** Sort order of the category in the Dashboard. */
1247
1462
  sortOrder?: number | null;
1248
1463
  }
1249
1464
  export declare enum Status {
@@ -1320,6 +1535,8 @@ export interface EntityUpdatedEvent {
1320
1535
  currentEntityAsJson?: string;
1321
1536
  }
1322
1537
  export interface EntityDeletedEvent {
1538
+ /** Entity that was deleted */
1539
+ deletedEntityAsJson?: string | null;
1323
1540
  }
1324
1541
  export interface ActionEvent {
1325
1542
  bodyAsJson?: string;
@@ -2468,6 +2685,250 @@ export declare enum BenefitNotificationEvent {
2468
2685
  Deleted = "Deleted",
2469
2686
  Created = "Created"
2470
2687
  }
2688
+ export interface UserDomainInfoChangedEvent {
2689
+ domainName?: string;
2690
+ crudType?: CrudType;
2691
+ metaSiteId?: string | null;
2692
+ changeTime?: Date;
2693
+ }
2694
+ export declare enum CrudType {
2695
+ INVALID_CRUD_TYPE = "INVALID_CRUD_TYPE",
2696
+ CREATE = "CREATE",
2697
+ UPDATE = "UPDATE",
2698
+ DELETE = "DELETE",
2699
+ /** Unfortunately this action is used by hibernate save in wix-war */
2700
+ CREATE_OR_UPDATE = "CREATE_OR_UPDATE"
2701
+ }
2702
+ export interface HtmlSitePublished {
2703
+ /** Application instance ID */
2704
+ appInstanceId?: string;
2705
+ /** Application type */
2706
+ appType?: string;
2707
+ /** Revision */
2708
+ revision?: string;
2709
+ /** MSID */
2710
+ metaSiteId?: string | null;
2711
+ /** optional branch id if publish is done from branch */
2712
+ branchId?: string | null;
2713
+ /** The site's last transactionId */
2714
+ lastTransactionId?: string | null;
2715
+ /** A list of the site's pages */
2716
+ pages?: Page[];
2717
+ /** Site's publish date */
2718
+ publishDate?: string;
2719
+ }
2720
+ export interface Page {
2721
+ /** Page's Id */
2722
+ id?: string;
2723
+ }
2724
+ /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
2725
+ export interface SitePropertiesNotification {
2726
+ /** The site ID for which this update notification applies. */
2727
+ metasiteId?: string;
2728
+ /** The actual update event. */
2729
+ event?: SitePropertiesEvent;
2730
+ /** A convenience set of mappings from the MetaSite ID to its constituent services. */
2731
+ translations?: Translation[];
2732
+ /** Context of the notification */
2733
+ changeContext?: ChangeContext;
2734
+ }
2735
+ /** The actual update event for a particular notification. */
2736
+ export interface SitePropertiesEvent {
2737
+ /** Version of the site's properties represented by this update. */
2738
+ version?: number;
2739
+ /** Updated properties. */
2740
+ properties?: Properties;
2741
+ }
2742
+ export interface Properties {
2743
+ /** Site categories. */
2744
+ categories?: Categories;
2745
+ /** Site locale. */
2746
+ locale?: Locale;
2747
+ /**
2748
+ * Site language.
2749
+ *
2750
+ * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
2751
+ */
2752
+ language?: string | null;
2753
+ /**
2754
+ * Site currency format used to bill customers.
2755
+ *
2756
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
2757
+ */
2758
+ paymentCurrency?: string | null;
2759
+ /** Timezone in `America/New_York` format. */
2760
+ timeZone?: string | null;
2761
+ /** Email address. */
2762
+ email?: string | null;
2763
+ /** Phone number. */
2764
+ phone?: string | null;
2765
+ /** Fax number. */
2766
+ fax?: string | null;
2767
+ /** Address. */
2768
+ address?: V4Address;
2769
+ /** Site display name. */
2770
+ siteDisplayName?: string | null;
2771
+ /** Business name. */
2772
+ businessName?: string | null;
2773
+ /** Path to the site's logo in Wix Media (without Wix Media base URL). */
2774
+ logo?: string | null;
2775
+ /** Site description. */
2776
+ description?: string | null;
2777
+ /**
2778
+ * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
2779
+ *
2780
+ * __Note:__ Not supported by Wix Bookings.
2781
+ */
2782
+ businessSchedule?: BusinessSchedule;
2783
+ /** Supported languages of a site and the primary language. */
2784
+ multilingual?: Multilingual;
2785
+ /** Cookie policy the site owner defined for their site (before the users interacts with/limits it). */
2786
+ consentPolicy?: ConsentPolicy;
2787
+ /**
2788
+ * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
2789
+ *
2790
+ * Site business type.
2791
+ */
2792
+ businessConfig?: string | null;
2793
+ /** External site url that uses Wix as its headless business solution */
2794
+ externalSiteUrl?: string | null;
2795
+ /** Track clicks analytics */
2796
+ trackClicksAnalytics?: boolean;
2797
+ }
2798
+ export interface Categories {
2799
+ /** Primary site category. */
2800
+ primary?: string;
2801
+ /** Secondary site category. */
2802
+ secondary?: string[];
2803
+ /** Business Term Id */
2804
+ businessTermId?: string | null;
2805
+ }
2806
+ export interface Locale {
2807
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
2808
+ languageCode?: string;
2809
+ /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
2810
+ country?: string;
2811
+ }
2812
+ export interface V4Address {
2813
+ /** Street name. */
2814
+ street?: string;
2815
+ /** City name. */
2816
+ city?: string;
2817
+ /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
2818
+ country?: string;
2819
+ /** State. */
2820
+ state?: string;
2821
+ /** Zip or postal code. */
2822
+ zip?: string;
2823
+ /** Extra information to be displayed in the address. */
2824
+ hint?: AddressHint;
2825
+ /** Whether this address represents a physical location. */
2826
+ isPhysical?: boolean;
2827
+ /** Google-formatted version of this address. */
2828
+ googleFormattedAddress?: string;
2829
+ /** Street number. */
2830
+ streetNumber?: string;
2831
+ /** Apartment number. */
2832
+ apartmentNumber?: string;
2833
+ /** Geographic coordinates of location. */
2834
+ coordinates?: GeoCoordinates;
2835
+ }
2836
+ /**
2837
+ * Extra information on displayed addresses.
2838
+ * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
2839
+ * Free text. In addition the user can state where he wants that additional description - before, after, or instead
2840
+ * the address string.
2841
+ */
2842
+ export interface AddressHint {
2843
+ /** Extra text displayed next to, or instead of, the actual address. */
2844
+ text?: string;
2845
+ /** Where the extra text should be displayed. */
2846
+ placement?: PlacementType;
2847
+ }
2848
+ /** Where the extra text should be displayed: before, after or instead of the actual address. */
2849
+ export declare enum PlacementType {
2850
+ BEFORE = "BEFORE",
2851
+ AFTER = "AFTER",
2852
+ REPLACE = "REPLACE"
2853
+ }
2854
+ /** Geocoordinates for a particular address. */
2855
+ export interface GeoCoordinates {
2856
+ /** Latitude of the location. Must be between -90 and 90. */
2857
+ latitude?: number;
2858
+ /** Longitude of the location. Must be between -180 and 180. */
2859
+ longitude?: number;
2860
+ }
2861
+ export interface Multilingual {
2862
+ /** Supported languages list. */
2863
+ supportedLanguages?: SupportedLanguage[];
2864
+ /** Whether to redirect to user language. */
2865
+ autoRedirect?: boolean;
2866
+ }
2867
+ export interface SupportedLanguage {
2868
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
2869
+ languageCode?: string;
2870
+ /** Locale. */
2871
+ locale?: Locale;
2872
+ /** Whether the supported language is the primary language for the site. */
2873
+ isPrimary?: boolean;
2874
+ /** Language icon. */
2875
+ countryCode?: string;
2876
+ /** How the language will be resolved. For internal use. */
2877
+ resolutionMethod?: ResolutionMethod;
2878
+ }
2879
+ export declare enum ResolutionMethod {
2880
+ QUERY_PARAM = "QUERY_PARAM",
2881
+ SUBDOMAIN = "SUBDOMAIN",
2882
+ SUBDIRECTORY = "SUBDIRECTORY"
2883
+ }
2884
+ export interface ConsentPolicy {
2885
+ /** Whether the site uses cookies that are essential to site operation. */
2886
+ essential?: boolean | null;
2887
+ /** Whether the site uses cookies that affect site performance and other functional measurements. */
2888
+ functional?: boolean | null;
2889
+ /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
2890
+ analytics?: boolean | null;
2891
+ /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
2892
+ advertising?: boolean | null;
2893
+ /** CCPA compliance flag. */
2894
+ dataToThirdParty?: boolean | null;
2895
+ }
2896
+ /** A single mapping from the MetaSite ID to a particular service. */
2897
+ export interface Translation {
2898
+ /** The service type. */
2899
+ serviceType?: string;
2900
+ /** The application definition ID; this only applies to services of type ThirdPartyApps. */
2901
+ appDefId?: string;
2902
+ /** The instance ID of the service. */
2903
+ instanceId?: string;
2904
+ }
2905
+ export interface ChangeContext extends ChangeContextPayloadOneOf {
2906
+ /** Properties were updated. */
2907
+ propertiesChange?: PropertiesChange;
2908
+ /** Default properties were created on site creation. */
2909
+ siteCreated?: SiteCreated;
2910
+ /** Properties were cloned on site cloning. */
2911
+ siteCloned?: SiteCloned;
2912
+ }
2913
+ /** @oneof */
2914
+ export interface ChangeContextPayloadOneOf {
2915
+ /** Properties were updated. */
2916
+ propertiesChange?: PropertiesChange;
2917
+ /** Default properties were created on site creation. */
2918
+ siteCreated?: SiteCreated;
2919
+ /** Properties were cloned on site cloning. */
2920
+ siteCloned?: SiteCloned;
2921
+ }
2922
+ export interface PropertiesChange {
2923
+ }
2924
+ export interface SiteCreated {
2925
+ /** Origin template site id. */
2926
+ originTemplateId?: string | null;
2927
+ }
2928
+ export interface SiteCloned {
2929
+ /** Origin site id. */
2930
+ originMetaSiteId?: string;
2931
+ }
2471
2932
  export interface SetServiceLocationsRequest {
2472
2933
  /** ID of the service. */
2473
2934
  serviceId?: string;
@@ -2522,9 +2983,9 @@ export interface EnablePricingPlansForServiceRequest {
2522
2983
  pricingPlanIds?: string[];
2523
2984
  }
2524
2985
  export interface EnablePricingPlansForServiceResponse {
2525
- /** IDs of the pricing plans connect to the service. */
2986
+ /** IDs of the pricing plans connected to the service. */
2526
2987
  pricingPlanIds?: string[];
2527
- /** The service after the pricing plans update */
2988
+ /** The service after the pricing plans update. */
2528
2989
  service?: Service;
2529
2990
  }
2530
2991
  export interface InvalidPricingPlan {
@@ -2540,7 +3001,7 @@ export interface DisablePricingPlansForServiceRequest {
2540
3001
  pricingPlanIds?: string[];
2541
3002
  }
2542
3003
  export interface DisablePricingPlansForServiceResponse {
2543
- /** The service after the pricing plans update */
3004
+ /** The service after the pricing plans update. */
2544
3005
  service?: Service;
2545
3006
  }
2546
3007
  export interface SetCustomSlugRequest {
@@ -2603,6 +3064,129 @@ export declare enum CloneErrors {
2603
3064
  /** Failed to clone pricing plans connected to the source service */
2604
3065
  PRICING_PLANS = "PRICING_PLANS"
2605
3066
  }
3067
+ export interface MultiServiceEnabledNotification {
3068
+ }
3069
+ export interface PlanEvent extends PlanEventEventOneOf {
3070
+ created?: PlanCreated;
3071
+ updated?: PlanUpdated;
3072
+ archived?: PlanArchived;
3073
+ }
3074
+ /** @oneof */
3075
+ export interface PlanEventEventOneOf {
3076
+ created?: PlanCreated;
3077
+ updated?: PlanUpdated;
3078
+ archived?: PlanArchived;
3079
+ }
3080
+ export interface PlanCreated {
3081
+ plan?: Plan;
3082
+ }
3083
+ export interface Plan {
3084
+ /**
3085
+ * Plan id.
3086
+ * @readonly
3087
+ */
3088
+ id?: string;
3089
+ /**
3090
+ * Id of role/group in groups and permissions for service that is provided for the plan subscriber.
3091
+ * @readonly
3092
+ */
3093
+ roleId?: string;
3094
+ details?: PlanDetails;
3095
+ paymentOptions?: PlansPaymentOptions;
3096
+ /** If true, the plan is visible. */
3097
+ visible?: boolean;
3098
+ /**
3099
+ * Indicates whether plan is archived.
3100
+ * @readonly
3101
+ */
3102
+ archived?: boolean;
3103
+ /**
3104
+ * If true, the plan is marked as primary.
3105
+ * @readonly
3106
+ */
3107
+ primary?: boolean;
3108
+ /**
3109
+ * Indicates whether plan has orders.
3110
+ * @readonly
3111
+ */
3112
+ hasOrders?: boolean;
3113
+ /**
3114
+ * Date when plan was created.
3115
+ * @readonly
3116
+ */
3117
+ dateCreated?: Date;
3118
+ /**
3119
+ * Date when plan was last updated.
3120
+ * @readonly
3121
+ */
3122
+ dateUpdated?: Date;
3123
+ slug?: string;
3124
+ /**
3125
+ * The plan is created from the templates (meaning it was created automatically with the site’s creation, not by the site owner).
3126
+ * @readonly
3127
+ */
3128
+ template?: boolean;
3129
+ /** Limits on the possible purchase */
3130
+ purchaseLimitations?: PurchaseLimitations;
3131
+ /** Member is allowed to cancel his/her plan. If no value is given it's set to true. */
3132
+ memberCanCancel?: boolean | null;
3133
+ /** Buyer can pick a later start date than the time of purchase. */
3134
+ buyerCanPickFutureStartDate?: boolean | null;
3135
+ }
3136
+ export interface PlanDetails {
3137
+ /** Plan name. */
3138
+ name?: string;
3139
+ /** Plan description. */
3140
+ description?: string;
3141
+ /** Plan ribbon allows to show additional information for the plan i.e. ‘Best deal’. */
3142
+ ribbon?: string;
3143
+ /** Plan benefits. */
3144
+ benefits?: string[];
3145
+ /** Any terms & conditions that apply to the plan. This information will be displayed on the plan’s checkout screen. */
3146
+ disclaimer?: string | null;
3147
+ clientData?: Record<string, string>;
3148
+ }
3149
+ export interface PlansPaymentOptions {
3150
+ price?: V1Money;
3151
+ /** Recurring payments are payments billed Weekly, Monthly or Yearly. False - payment is one time; true - price is deducted from UoU every week, month or year. */
3152
+ recurring?: boolean;
3153
+ validFor?: Validity;
3154
+ /** Free trial period for the plan is in days only. It’s available only for recurring plans. */
3155
+ freeTrialDays?: number | null;
3156
+ }
3157
+ export interface V1Money {
3158
+ /** Monetary amount i.e. 3.99. */
3159
+ amount?: string;
3160
+ /** Currency in ISO 4217 format i.e. USD. */
3161
+ currency?: string;
3162
+ }
3163
+ export interface Validity {
3164
+ /** If true, plan is valid until canceled. */
3165
+ forever?: boolean;
3166
+ period?: Period;
3167
+ }
3168
+ export interface Period {
3169
+ /** The amount of Days, Months, Weeks or Years. */
3170
+ amount?: number;
3171
+ unit?: PeriodUnit;
3172
+ }
3173
+ export declare enum PeriodUnit {
3174
+ MONTH = "MONTH",
3175
+ DAY = "DAY",
3176
+ WEEK = "WEEK",
3177
+ YEAR = "YEAR"
3178
+ }
3179
+ export interface PurchaseLimitations {
3180
+ /** Number of times plan can be purchased. If plan has no limits value should be NULL */
3181
+ amount?: number | null;
3182
+ }
3183
+ export interface PlanUpdated {
3184
+ plan?: Plan;
3185
+ previousPlan?: Plan;
3186
+ }
3187
+ export interface PlanArchived {
3188
+ plan?: Plan;
3189
+ }
2606
3190
  export interface CreateServiceResponseNonNullableFields {
2607
3191
  service?: {
2608
3192
  type: ServiceType;