@bondsports/types 2.2.284-team-b → 2.2.284

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 (422) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/accounting/entities/index.d.ts +2 -0
  3. package/dist/types/accounting/entities/index.js +19 -0
  4. package/dist/types/accounting/entities/index.js.map +1 -0
  5. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.d.ts +9 -0
  6. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.js +8 -0
  7. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.js.map +1 -0
  8. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.d.ts +14 -0
  9. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.js +8 -0
  10. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.js.map +1 -0
  11. package/dist/types/accounting/index.d.ts +2 -0
  12. package/dist/types/accounting/index.js +19 -0
  13. package/dist/types/accounting/index.js.map +1 -0
  14. package/dist/types/accounting/types/enums/accounting.enums.d.ts +14 -0
  15. package/dist/types/accounting/types/enums/accounting.enums.js +20 -0
  16. package/dist/types/accounting/types/enums/accounting.enums.js.map +1 -0
  17. package/dist/types/accounting/types/enums/index.d.ts +1 -0
  18. package/dist/types/{membership/interfaces → accounting/types/enums}/index.js +1 -1
  19. package/dist/types/accounting/types/enums/index.js.map +1 -0
  20. package/dist/types/accounting/types/index.js.map +1 -0
  21. package/dist/types/address/dto/address.dto.d.ts +9 -0
  22. package/dist/types/address/dto/address.dto.js +7 -0
  23. package/dist/types/address/dto/address.dto.js.map +1 -0
  24. package/dist/types/address/dto/index.d.ts +1 -0
  25. package/dist/types/address/dto/index.js +18 -0
  26. package/dist/types/address/dto/index.js.map +1 -0
  27. package/dist/types/{entity → address/entities}/Address.d.ts +1 -1
  28. package/dist/types/{entity → address/entities}/Address.js +1 -1
  29. package/dist/types/address/entities/Address.js.map +1 -0
  30. package/dist/types/address/entities/index.d.ts +1 -0
  31. package/dist/types/address/entities/index.js +18 -0
  32. package/dist/types/address/entities/index.js.map +1 -0
  33. package/dist/types/address/index.d.ts +2 -0
  34. package/dist/types/address/index.js +2 -0
  35. package/dist/types/address/index.js.map +1 -1
  36. package/dist/types/cart/dto/cart.dto.d.ts +65 -2
  37. package/dist/types/cart/dto/cart.dto.js +28 -1
  38. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  39. package/dist/types/cart/entities/cart-item.entity.d.ts +8 -0
  40. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  41. package/dist/types/cart/entities/cart.entity.d.ts +1 -1
  42. package/dist/types/cart/entities/cart.entity.js.map +1 -1
  43. package/dist/types/cart/types/classes/cart.classes.d.ts +9 -0
  44. package/dist/types/cart/types/classes/cart.classes.js +7 -0
  45. package/dist/types/cart/types/classes/cart.classes.js.map +1 -0
  46. package/dist/types/cart/types/classes/index.d.ts +1 -0
  47. package/dist/types/cart/types/classes/index.js +18 -0
  48. package/dist/types/cart/types/classes/index.js.map +1 -0
  49. package/dist/types/cart/types/index.d.ts +1 -0
  50. package/dist/types/cart/types/index.js +1 -0
  51. package/dist/types/cart/types/index.js.map +1 -1
  52. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +63 -1
  53. package/dist/types/customers/dto/customer-response.dto.d.ts +5 -0
  54. package/dist/types/customers/dto/customer-response.dto.js +4 -1
  55. package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
  56. package/dist/types/customers/dto/full-customer.dto.d.ts +1 -1
  57. package/dist/types/customers/dto/full-customer.dto.js.map +1 -1
  58. package/dist/types/customers/types/consts/customers.consts.d.ts +1 -0
  59. package/dist/types/customers/types/consts/customers.consts.js +5 -2
  60. package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
  61. package/dist/types/customers/types/interfaces.d.ts +10 -1
  62. package/dist/types/dto/activityTimes.dto.d.ts +10 -0
  63. package/dist/types/dto/activityTimes.dto.js +4 -1
  64. package/dist/types/dto/activityTimes.dto.js.map +1 -1
  65. package/dist/types/dto/events.dto.d.ts +4 -2
  66. package/dist/types/dto/events.dto.js.map +1 -1
  67. package/dist/types/dto/facilities.dto.d.ts +2 -9
  68. package/dist/types/dto/facilities.dto.js +1 -4
  69. package/dist/types/dto/facilities.dto.js.map +1 -1
  70. package/dist/types/dto/general.dto.d.ts +11 -5
  71. package/dist/types/dto/general.dto.js +4 -2
  72. package/dist/types/dto/general.dto.js.map +1 -1
  73. package/dist/types/dto/groupsDivisions.dto.d.ts +15 -2
  74. package/dist/types/dto/groupsDivisions.dto.js +6 -3
  75. package/dist/types/dto/groupsDivisions.dto.js.map +1 -1
  76. package/dist/types/dto/membership.dto.d.ts +17 -1
  77. package/dist/types/dto/membership.dto.js.map +1 -1
  78. package/dist/types/dto/product-user.d.ts +10 -0
  79. package/dist/types/dto/product-user.js +7 -1
  80. package/dist/types/dto/product-user.js.map +1 -1
  81. package/dist/types/dto/product-variants.dto.d.ts +2 -14
  82. package/dist/types/dto/product-variants.dto.js +2 -5
  83. package/dist/types/dto/product-variants.dto.js.map +1 -1
  84. package/dist/types/dto/userPaymentMethod.dto.d.ts +4 -0
  85. package/dist/types/dto/userPaymentMethod.dto.js +4 -1
  86. package/dist/types/dto/userPaymentMethod.dto.js.map +1 -1
  87. package/dist/types/employees/dto/employee.dto.d.ts +21 -5
  88. package/dist/types/employees/dto/employee.dto.js +8 -1
  89. package/dist/types/employees/dto/employee.dto.js.map +1 -1
  90. package/dist/types/employees/types/consts/index.d.ts +3 -0
  91. package/dist/types/employees/types/consts/index.js +25 -0
  92. package/dist/types/employees/types/consts/index.js.map +1 -0
  93. package/dist/types/employees/types/index.d.ts +1 -0
  94. package/dist/types/employees/types/index.js +1 -0
  95. package/dist/types/employees/types/index.js.map +1 -1
  96. package/dist/types/entity/ActivityTimes.d.ts +4 -3
  97. package/dist/types/entity/ActivityTimes.js.map +1 -1
  98. package/dist/types/entity/Customer.d.ts +3 -1
  99. package/dist/types/entity/Customer.js.map +1 -1
  100. package/dist/types/entity/EventAttendees.d.ts +6 -6
  101. package/dist/types/entity/EventAttendees.js.map +1 -1
  102. package/dist/types/entity/EventHistory.d.ts +1 -1
  103. package/dist/types/entity/EventHistory.js.map +1 -1
  104. package/dist/types/entity/Facility.d.ts +1 -1
  105. package/dist/types/entity/LineItems.d.ts +3 -0
  106. package/dist/types/entity/LineItems.js.map +1 -1
  107. package/dist/types/entity/MembershipMember.d.ts +11 -0
  108. package/dist/types/entity/MembershipMember.js.map +1 -1
  109. package/dist/types/entity/PackageV1.d.ts +2 -0
  110. package/dist/types/entity/PackageV1.js.map +1 -1
  111. package/dist/types/entity/index.d.ts +0 -2
  112. package/dist/types/entity/index.js +0 -2
  113. package/dist/types/entity/index.js.map +1 -1
  114. package/dist/types/facilities/index.d.ts +1 -0
  115. package/dist/types/facilities/index.js +18 -0
  116. package/dist/types/facilities/index.js.map +1 -0
  117. package/dist/types/facilities/types/facilities.types.d.ts +4 -0
  118. package/dist/types/facilities/types/facilities.types.js +3 -0
  119. package/dist/types/facilities/types/facilities.types.js.map +1 -0
  120. package/dist/types/facilities/types/index.d.ts +1 -0
  121. package/dist/types/facilities/types/index.js +18 -0
  122. package/dist/types/facilities/types/index.js.map +1 -0
  123. package/dist/types/import/dto/reservation.dto.js.map +1 -1
  124. package/dist/types/index.d.ts +3 -0
  125. package/dist/types/index.js +3 -0
  126. package/dist/types/index.js.map +1 -1
  127. package/dist/types/invoice/dto/invoice.dto.d.ts +19 -0
  128. package/dist/types/invoice/dto/invoice.dto.js +5 -1
  129. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  130. package/dist/types/invoice/types/consts/invoice.consts.d.ts +10 -0
  131. package/dist/types/invoice/types/consts/invoice.consts.js +10 -1
  132. package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
  133. package/dist/types/invoice/types/interfaces/index.d.ts +1 -0
  134. package/dist/types/invoice/types/interfaces/index.js +1 -0
  135. package/dist/types/invoice/types/interfaces/index.js.map +1 -1
  136. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +5 -1
  137. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  138. package/dist/types/invoice/types/interfaces/line-item.interfaces.d.ts +7 -0
  139. package/dist/types/invoice/types/interfaces/line-item.interfaces.js +3 -0
  140. package/dist/types/invoice/types/interfaces/line-item.interfaces.js.map +1 -0
  141. package/dist/types/membership/dto/expendedMembership.dto.d.ts +15 -0
  142. package/dist/types/membership/dto/expendedMembership.dto.js +7 -0
  143. package/dist/types/membership/dto/expendedMembership.dto.js.map +1 -0
  144. package/dist/types/membership/dto/index.d.ts +2 -0
  145. package/dist/types/membership/dto/index.js +19 -0
  146. package/dist/types/membership/dto/index.js.map +1 -0
  147. package/dist/types/membership/dto/membershipMember.dto.d.ts +103 -0
  148. package/dist/types/membership/dto/membershipMember.dto.js +45 -0
  149. package/dist/types/membership/dto/membershipMember.dto.js.map +1 -0
  150. package/dist/types/membership/entities/MembershipMemberRenewal.d.ts +9 -0
  151. package/dist/types/membership/entities/MembershipMemberRenewal.js.map +1 -1
  152. package/dist/types/membership/index.d.ts +2 -1
  153. package/dist/types/membership/index.js +2 -1
  154. package/dist/types/membership/index.js.map +1 -1
  155. package/dist/types/membership/types/index.d.ts +5 -0
  156. package/dist/types/membership/types/index.js +22 -0
  157. package/dist/types/membership/types/index.js.map +1 -0
  158. package/dist/types/membership/{interfaces → types}/membership.interfaces.d.ts +19 -0
  159. package/dist/types/membership/types/membership.interfaces.js.map +1 -0
  160. package/dist/types/membership/types/membership.member.classes.d.ts +14 -0
  161. package/dist/types/membership/types/membership.member.classes.js +7 -0
  162. package/dist/types/membership/types/membership.member.classes.js.map +1 -0
  163. package/dist/types/membership/types/membership.member.consts.d.ts +3 -0
  164. package/dist/types/membership/types/membership.member.consts.js +8 -0
  165. package/dist/types/membership/types/membership.member.consts.js.map +1 -0
  166. package/dist/types/membership/types/membership.members.interfaces.d.ts +86 -0
  167. package/dist/types/membership/types/membership.members.interfaces.js +3 -0
  168. package/dist/types/membership/types/membership.members.interfaces.js.map +1 -0
  169. package/dist/types/membership/types/membership.members.types.d.ts +4 -0
  170. package/dist/types/membership/types/membership.members.types.js +3 -0
  171. package/dist/types/membership/types/membership.members.types.js.map +1 -0
  172. package/dist/types/notifications/dto/index.d.ts +1 -0
  173. package/dist/types/notifications/dto/index.js +1 -0
  174. package/dist/types/notifications/dto/index.js.map +1 -1
  175. package/dist/types/notifications/dto/notification.create.dto.d.ts +6 -6
  176. package/dist/types/notifications/dto/notification.create.dto.js +6 -6
  177. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
  178. package/dist/types/notifications/dto/notification.response.dto.d.ts +3 -3
  179. package/dist/types/notifications/dto/notification.response.dto.js.map +1 -1
  180. package/dist/types/notifications/dto/types/enums/index.js.map +1 -0
  181. package/dist/types/notifications/dto/types/enums/notification.enums.d.ts +2 -0
  182. package/dist/types/notifications/dto/types/enums/notification.enums.js +8 -0
  183. package/dist/types/notifications/dto/types/enums/notification.enums.js.map +1 -0
  184. package/dist/types/notifications/dto/types/index.d.ts +1 -0
  185. package/dist/types/notifications/dto/types/index.js +18 -0
  186. package/dist/types/notifications/dto/types/index.js.map +1 -0
  187. package/dist/types/notifications/index.d.ts +0 -1
  188. package/dist/types/notifications/index.js +0 -1
  189. package/dist/types/notifications/index.js.map +1 -1
  190. package/dist/types/online-rentals/index.d.ts +1 -0
  191. package/dist/types/online-rentals/index.js +18 -0
  192. package/dist/types/online-rentals/index.js.map +1 -0
  193. package/dist/types/online-rentals/types/index.d.ts +2 -0
  194. package/dist/types/online-rentals/types/index.js +19 -0
  195. package/dist/types/online-rentals/types/index.js.map +1 -0
  196. package/dist/types/online-rentals/types/online-rentals.classes.d.ts +21 -0
  197. package/dist/types/online-rentals/types/online-rentals.classes.js +10 -0
  198. package/dist/types/online-rentals/types/online-rentals.classes.js.map +1 -0
  199. package/dist/types/online-rentals/types/online-rentals.dto.d.ts +61 -0
  200. package/dist/types/online-rentals/types/online-rentals.dto.js +36 -0
  201. package/dist/types/online-rentals/types/online-rentals.dto.js.map +1 -0
  202. package/dist/types/organization/entities/Organization.d.ts +1 -1
  203. package/dist/types/organization/interfaces/index.d.ts +1 -0
  204. package/dist/types/organization/interfaces/index.js +1 -0
  205. package/dist/types/organization/interfaces/index.js.map +1 -1
  206. package/dist/types/organization/interfaces/reason.interfaces.d.ts +6 -0
  207. package/dist/types/organization/interfaces/reason.interfaces.js +3 -0
  208. package/dist/types/organization/interfaces/reason.interfaces.js.map +1 -0
  209. package/dist/types/payment/dto/payment-method.dto.d.ts +12 -3
  210. package/dist/types/payment/dto/payment-method.dto.js +4 -1
  211. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  212. package/dist/types/payment/dto/payment-plan.dto.d.ts +6 -4
  213. package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
  214. package/dist/types/payment/entities/PaymentFailures.d.ts +1 -0
  215. package/dist/types/payment/entities/PaymentFailures.js.map +1 -1
  216. package/dist/types/payment/entities/ProductPaymentPlan.d.ts +3 -2
  217. package/dist/types/payment/entities/ProductPaymentPlan.js.map +1 -1
  218. package/dist/types/payment/types/consts/payment.consts.d.ts +1 -0
  219. package/dist/types/payment/types/consts/payment.consts.js +5 -1
  220. package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
  221. package/dist/types/payment/types/enums/payment-plan.enums.d.ts +0 -7
  222. package/dist/types/payment/types/enums/payment-plan.enums.js +1 -9
  223. package/dist/types/payment/types/enums/payment-plan.enums.js.map +1 -1
  224. package/dist/types/payment/types/enums/payment.enums.d.ts +4 -2
  225. package/dist/types/payment/types/enums/payment.enums.js +2 -0
  226. package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
  227. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +1 -1
  228. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +16 -0
  229. package/dist/types/pricing/dto/price.dto.d.ts +3 -1
  230. package/dist/types/pricing/dto/price.dto.js.map +1 -1
  231. package/dist/types/pricing/dto/pricing.dto.d.ts +2 -2
  232. package/dist/types/pricing/entities/Price.d.ts +3 -2
  233. package/dist/types/pricing/entities/Price.js.map +1 -1
  234. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +2 -0
  235. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  236. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +2 -0
  237. package/dist/types/programs/dto/program.dto.d.ts +5 -2
  238. package/dist/types/programs/dto/program.dto.js +4 -1
  239. package/dist/types/programs/dto/program.dto.js.map +1 -1
  240. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +2 -0
  241. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  242. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +4 -2
  243. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  244. package/dist/types/programs-seasons/types/classes/index.d.ts +1 -0
  245. package/dist/types/programs-seasons/types/classes/index.js +18 -0
  246. package/dist/types/programs-seasons/types/classes/index.js.map +1 -0
  247. package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +6 -0
  248. package/dist/types/programs-seasons/types/classes/program-season.classes.js +7 -0
  249. package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -0
  250. package/dist/types/programs-seasons/types/enums/index.d.ts +1 -0
  251. package/dist/types/programs-seasons/types/enums/index.js +18 -0
  252. package/dist/types/programs-seasons/types/enums/index.js.map +1 -0
  253. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +9 -0
  254. package/dist/types/programs-seasons/types/enums/program-season.enums.js +15 -0
  255. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -0
  256. package/dist/types/programs-seasons/types/index.d.ts +2 -0
  257. package/dist/types/programs-seasons/types/index.js +2 -0
  258. package/dist/types/programs-seasons/types/index.js.map +1 -1
  259. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +11 -0
  260. package/dist/types/punch-pass/dto/punch-pass.dto.js +5 -1
  261. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  262. package/dist/types/purchase/dto/purchase.dto.d.ts +4 -0
  263. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  264. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +5 -3
  265. package/dist/types/reservations/dto/addon.dto.d.ts +21 -8
  266. package/dist/types/reservations/dto/addon.dto.js +9 -2
  267. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  268. package/dist/types/reservations/dto/maintenance.dto.d.ts +2 -1
  269. package/dist/types/reservations/dto/maintenance.dto.js.map +1 -1
  270. package/dist/types/reservations/dto/reservation.dto.d.ts +171 -24
  271. package/dist/types/reservations/dto/reservation.dto.js +86 -7
  272. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  273. package/dist/types/reservations/dto/segment.dto.d.ts +5 -4
  274. package/dist/types/reservations/dto/segment.dto.js.map +1 -1
  275. package/dist/types/reservations/dto/series.dto.d.ts +7 -4
  276. package/dist/types/reservations/dto/series.dto.js.map +1 -1
  277. package/dist/types/reservations/dto/slot.dto.d.ts +106 -26
  278. package/dist/types/reservations/dto/slot.dto.js +25 -7
  279. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  280. package/dist/types/reservations/dto/v1.reservation.dto.d.ts +1 -0
  281. package/dist/types/reservations/dto/v1.reservation.dto.js.map +1 -1
  282. package/dist/types/reservations/entities/SlotToResource.d.ts +4 -0
  283. package/dist/types/reservations/entities/SlotToResource.js.map +1 -1
  284. package/dist/types/reservations/entities/addon.entity.d.ts +1 -0
  285. package/dist/types/reservations/entities/addon.entity.js.map +1 -1
  286. package/dist/types/reservations/entities/reservation.entity.d.ts +6 -7
  287. package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
  288. package/dist/types/reservations/entities/slot.entity.d.ts +10 -3
  289. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  290. package/dist/types/reservations/types/classes/addon.classes.d.ts +22 -0
  291. package/dist/types/reservations/types/classes/addon.classes.js +7 -0
  292. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -0
  293. package/dist/types/reservations/types/classes/index.d.ts +7 -0
  294. package/dist/types/reservations/types/classes/index.js +24 -0
  295. package/dist/types/reservations/types/classes/index.js.map +1 -0
  296. package/dist/types/reservations/types/classes/maintenance.classes.d.ts +8 -0
  297. package/dist/types/reservations/types/classes/maintenance.classes.js +7 -0
  298. package/dist/types/reservations/types/classes/maintenance.classes.js.map +1 -0
  299. package/dist/types/reservations/types/classes/product.classes.d.ts +16 -0
  300. package/dist/types/reservations/types/classes/product.classes.js +10 -0
  301. package/dist/types/reservations/types/classes/product.classes.js.map +1 -0
  302. package/dist/types/reservations/types/classes/reservation.classes.d.ts +58 -0
  303. package/dist/types/reservations/types/classes/reservation.classes.js +10 -0
  304. package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -0
  305. package/dist/types/reservations/types/classes/segment.classes.d.ts +32 -0
  306. package/dist/types/reservations/types/classes/segment.classes.js +10 -0
  307. package/dist/types/reservations/types/classes/segment.classes.js.map +1 -0
  308. package/dist/types/reservations/types/classes/series.classes.d.ts +27 -0
  309. package/dist/types/reservations/types/classes/series.classes.js +7 -0
  310. package/dist/types/reservations/types/classes/series.classes.js.map +1 -0
  311. package/dist/types/reservations/types/classes/slot.classes.d.ts +69 -0
  312. package/dist/types/reservations/types/classes/slot.classes.js +11 -0
  313. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -0
  314. package/dist/types/reservations/types/consts/index.d.ts +1 -0
  315. package/dist/types/reservations/types/consts/index.js +1 -0
  316. package/dist/types/reservations/types/consts/index.js.map +1 -1
  317. package/dist/types/reservations/types/consts/reservation.consts.d.ts +12 -1
  318. package/dist/types/reservations/types/consts/reservation.consts.js +18 -1
  319. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  320. package/dist/types/reservations/types/consts/slot.consts.d.ts +1 -0
  321. package/dist/types/reservations/types/consts/slot.consts.js +5 -0
  322. package/dist/types/reservations/types/consts/slot.consts.js.map +1 -0
  323. package/dist/types/reservations/types/enums/reservation.enums.d.ts +2 -1
  324. package/dist/types/reservations/types/enums/reservation.enums.js +1 -0
  325. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  326. package/dist/types/reservations/types/index.d.ts +1 -0
  327. package/dist/types/reservations/types/index.js +1 -0
  328. package/dist/types/reservations/types/index.js.map +1 -1
  329. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +18 -2
  330. package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
  331. package/dist/types/reservations/types/interfaces/index.js +2 -0
  332. package/dist/types/reservations/types/interfaces/index.js.map +1 -1
  333. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +160 -19
  334. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  335. package/dist/types/reservations/types/interfaces/segment.interfaces.d.ts +29 -0
  336. package/dist/types/reservations/types/interfaces/segment.interfaces.js +3 -0
  337. package/dist/types/reservations/types/interfaces/segment.interfaces.js.map +1 -0
  338. package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +32 -0
  339. package/dist/types/reservations/types/interfaces/series.interfaces.js +3 -0
  340. package/dist/types/reservations/types/interfaces/series.interfaces.js.map +1 -0
  341. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +61 -24
  342. package/dist/types/reservations/types/interfaces/slot.interfaces.js +4 -0
  343. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  344. package/dist/types/reservations/types/reservation.types.d.ts +23 -11
  345. package/dist/types/resources/dto/instructor.dto.d.ts +1 -1
  346. package/dist/types/resources/dto/instructor.dto.js.map +1 -1
  347. package/dist/types/resources/dto/space.dto.d.ts +1 -0
  348. package/dist/types/resources/dto/space.dto.js.map +1 -1
  349. package/dist/types/resources/entities/Instructor.d.ts +2 -2
  350. package/dist/types/resources/entities/Instructor.js.map +1 -1
  351. package/dist/types/resources/entities/Space.d.ts +1 -1
  352. package/dist/types/resources/entities/Space.js.map +1 -1
  353. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
  354. package/dist/types/roles/dto/permission-group.dto.d.ts +4 -0
  355. package/dist/types/roles/dto/permission-group.dto.js +8 -1
  356. package/dist/types/roles/dto/permission-group.dto.js.map +1 -1
  357. package/dist/types/roles/dto/role.dto.d.ts +27 -12
  358. package/dist/types/roles/dto/role.dto.js +23 -5
  359. package/dist/types/roles/dto/role.dto.js.map +1 -1
  360. package/dist/types/roles/entities/Role.d.ts +3 -2
  361. package/dist/types/roles/entities/Role.js.map +1 -1
  362. package/dist/types/roles/entities/index.d.ts +6 -0
  363. package/dist/types/roles/entities/index.js +10 -0
  364. package/dist/types/roles/entities/index.js.map +1 -1
  365. package/dist/types/roles/types/index.d.ts +1 -0
  366. package/dist/types/roles/types/index.js +1 -0
  367. package/dist/types/roles/types/index.js.map +1 -1
  368. package/dist/types/roles/types/role.consts.d.ts +1 -0
  369. package/dist/types/roles/types/role.consts.js +6 -0
  370. package/dist/types/roles/types/role.consts.js.map +1 -0
  371. package/dist/types/roles/types/role.enums.d.ts +13 -2
  372. package/dist/types/roles/types/role.enums.js +13 -1
  373. package/dist/types/roles/types/role.enums.js.map +1 -1
  374. package/dist/types/services/enums.service.d.ts +23 -2
  375. package/dist/types/services/enums.service.js +27 -3
  376. package/dist/types/services/enums.service.js.map +1 -1
  377. package/dist/types/services/interfaces.service.d.ts +15 -3
  378. package/dist/types/services/interfaces.service.js.map +1 -1
  379. package/dist/types/shifts/entities/shift.entity.d.ts +1 -1
  380. package/dist/types/user/dto/user-settings.dto.d.ts +1 -1
  381. package/dist/types/user/dto/user.dto.d.ts +1 -1
  382. package/dist/types/user/dto/user.dto.js.map +1 -1
  383. package/dist/types/user/entities/User.d.ts +3 -1
  384. package/dist/types/user/entities/User.js.map +1 -1
  385. package/dist/types/user/types/user.interfaces.d.ts +15 -0
  386. package/dist/types/user-identification/dto/user-identifier.dto.d.ts +3 -0
  387. package/dist/types/user-identification/dto/user-identifier.dto.js +7 -1
  388. package/dist/types/user-identification/dto/user-identifier.dto.js.map +1 -1
  389. package/dist/types/user-identification/entities/UserIdentifier.d.ts +2 -0
  390. package/dist/types/user-identification/entities/UserIdentifier.js.map +1 -1
  391. package/dist/types/util/models/interfaces/general.interfaces.d.ts +2 -1
  392. package/dist/types/webflow/dto/index.d.ts +1 -0
  393. package/dist/types/webflow/dto/index.js +18 -0
  394. package/dist/types/webflow/dto/index.js.map +1 -0
  395. package/dist/types/webflow/dto/webflowProgram.dto.d.ts +14 -0
  396. package/dist/types/webflow/dto/webflowProgram.dto.js +7 -0
  397. package/dist/types/webflow/dto/webflowProgram.dto.js.map +1 -0
  398. package/dist/types/{entity → webflow/entities}/WebflowOrganizationConfiguration.d.ts +1 -1
  399. package/dist/types/{entity → webflow/entities}/WebflowOrganizationConfiguration.js +1 -1
  400. package/dist/types/webflow/entities/WebflowOrganizationConfiguration.js.map +1 -0
  401. package/dist/types/webflow/entities/index.d.ts +1 -0
  402. package/dist/types/webflow/entities/index.js +18 -0
  403. package/dist/types/webflow/entities/index.js.map +1 -0
  404. package/dist/types/webflow/index.d.ts +2 -0
  405. package/dist/types/webflow/index.js +2 -0
  406. package/dist/types/webflow/index.js.map +1 -1
  407. package/package.json +1 -1
  408. package/dist/types/entity/Address.js.map +0 -1
  409. package/dist/types/entity/WebflowOrganizationConfiguration.js.map +0 -1
  410. package/dist/types/membership/interfaces/index.d.ts +0 -1
  411. package/dist/types/membership/interfaces/index.js.map +0 -1
  412. package/dist/types/membership/interfaces/membership.interfaces.js.map +0 -1
  413. package/dist/types/notifications/types/enums/index.js.map +0 -1
  414. package/dist/types/notifications/types/enums/notification.enums.d.ts +0 -30
  415. package/dist/types/notifications/types/enums/notification.enums.js +0 -41
  416. package/dist/types/notifications/types/enums/notification.enums.js.map +0 -1
  417. package/dist/types/notifications/types/index.js.map +0 -1
  418. /package/dist/types/{notifications → accounting}/types/index.d.ts +0 -0
  419. /package/dist/types/{notifications → accounting}/types/index.js +0 -0
  420. /package/dist/types/membership/{interfaces → types}/membership.interfaces.js +0 -0
  421. /package/dist/types/notifications/{types → dto/types}/enums/index.d.ts +0 -0
  422. /package/dist/types/notifications/{types → dto/types}/enums/index.js +0 -0
@@ -0,0 +1,27 @@
1
+ import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum } from '../enums/reservation.enums';
2
+ import { IDraftSeries } from '../interfaces/series.interfaces';
3
+ import { Maintenance } from './maintenance.classes';
4
+ import { DraftSlot } from './slot.classes';
5
+ export declare class DraftSeries implements IDraftSeries {
6
+ id: string;
7
+ organizationId: number;
8
+ reservationId: string;
9
+ segmentId: string;
10
+ startDate: string;
11
+ startTime: string;
12
+ endDate: string;
13
+ endTime: string;
14
+ slotDurationType: DurationTypeEnum;
15
+ durationEndsAfter?: number;
16
+ durationUnit?: DurationUnitTypesEnum;
17
+ frequency: FrequencyEnum;
18
+ repeatEvery?: number;
19
+ repeatOn?: number[];
20
+ repeatEndDate?: string;
21
+ numberOccurrences?: number;
22
+ slots: DraftSlot[];
23
+ maintenance?: Maintenance[];
24
+ isEndDate?: boolean;
25
+ isOccurrence?: boolean;
26
+ addToSeriesId?: number;
27
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftSeries = void 0;
4
+ class DraftSeries {
5
+ }
6
+ exports.DraftSeries = DraftSeries;
7
+ //# sourceMappingURL=series.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CA0CvB;AA1CD,kCA0CC"}
@@ -0,0 +1,69 @@
1
+ import { Customer } from '../../../entity/Customer';
2
+ import { Facility } from '../../../entity/Facility';
3
+ import { Product } from '../../../product-pricing/entities/Product';
4
+ import { Resource } from '../../../resources/entities/Resource';
5
+ import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
6
+ import { Slot } from '../../entities/slot.entity';
7
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
8
+ import { IDraftSlot } from '../interfaces/slot.interfaces';
9
+ import { DraftAddon } from './addon.classes';
10
+ import { Maintenance } from './maintenance.classes';
11
+ import { SlotProductMetadata } from './product.classes';
12
+ export declare class DraftSlot implements IDraftSlot {
13
+ id: string;
14
+ organizationId: number;
15
+ facilityId: number;
16
+ reservationId: string;
17
+ segmentId: string;
18
+ seriesId: string;
19
+ parentSlotId?: string;
20
+ startDate: string;
21
+ startTime: string;
22
+ endDate: string;
23
+ endTime: string;
24
+ timezone: string;
25
+ spaceId: number;
26
+ space?: Resource;
27
+ instructorsIds?: number[];
28
+ instructors?: Resource[];
29
+ title: string;
30
+ creatorId: number;
31
+ creatorType: ResourceNameTypeEnum;
32
+ userCreatorId: number;
33
+ publicNotes?: string;
34
+ privateNotes?: string;
35
+ slotType: SlotTypeEnum;
36
+ sportIds: SportsEnum[];
37
+ maintenanceDurationdurationType?: DurationUnitTypesEnum;
38
+ maintenanceTiming?: MaintenanceTimingEnum;
39
+ durationValue?: number;
40
+ displayName?: string;
41
+ internalName?: string;
42
+ totalPrice?: number;
43
+ privacySetting: PrivacySettingsEnum;
44
+ slotDurationType: DurationTypeEnum;
45
+ colorCodeId: number;
46
+ occurrence: number;
47
+ productMetadata?: SlotProductMetadata;
48
+ product?: Product;
49
+ participantsNumber?: number;
50
+ participantsIds?: number[];
51
+ participants?: Customer[];
52
+ conflictsIds?: number[];
53
+ conflicts?: Slot[];
54
+ maintenanceSlots?: DraftSlot[];
55
+ maintenance?: Maintenance[];
56
+ addons?: DraftAddon[];
57
+ approvalStatus?: ReservationStatusEnum;
58
+ paymentStatus?: ReservationPaymentStatusEnum;
59
+ cartItemId?: string;
60
+ facility?: Facility;
61
+ owner?: Customer;
62
+ slotId?: number;
63
+ addToSegmentId?: number;
64
+ addToSeriesId?: number;
65
+ addToReservationId?: number;
66
+ eventId?: number;
67
+ }
68
+ export declare class EditDraftSlot extends DraftSlot {
69
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EditDraftSlot = exports.DraftSlot = void 0;
4
+ class DraftSlot {
5
+ }
6
+ exports.DraftSlot = DraftSlot;
7
+ // class used for exclusively for mappings
8
+ class EditDraftSlot extends DraftSlot {
9
+ }
10
+ exports.EditDraftSlot = EditDraftSlot;
11
+ //# sourceMappingURL=slot.classes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAoBA,MAAa,SAAS;CA4GrB;AA5GD,8BA4GC;AAED,0CAA0C;AAC1C,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C"}
@@ -1 +1,2 @@
1
1
  export * from './reservation.consts';
2
+ export * from './slot.consts';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./reservation.consts"), exports);
18
+ __exportStar(require("./slot.consts"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,gDAA8B"}
@@ -1,10 +1,13 @@
1
- import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
1
+ import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
2
  import { SlotTypeEnum } from '../enums/reservation.enums';
3
3
  export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
4
+ export declare const RESERVATION_CHUNCK_SIZE = 500;
4
5
  export declare const KEY_TTL = 172800;
5
6
  export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
6
7
  export declare const PUBLIC_NOTES_LIMIT = 500;
7
8
  export declare const PRIVATE_NOTES_LIMIT = 500;
9
+ export declare const DEFAULT_PRICE_ID = 0;
10
+ export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
8
11
  export declare const reservationStatusMapper: {
9
12
  Planned: InvoiceStatusEnum;
10
13
  Approved: InvoiceStatusEnum;
@@ -20,3 +23,11 @@ export declare const reservationTypeMapper: {
20
23
  internal: SlotTypeEnum;
21
24
  rental: SlotTypeEnum;
22
25
  };
26
+ export declare const reservationStatusToEventStatus: {
27
+ Planned: EventStatusEnum;
28
+ Approved: EventStatusEnum;
29
+ "Awaiting Admin": EventStatusEnum;
30
+ "Awaiting Customer": EventStatusEnum;
31
+ Rejected: EventStatusEnum;
32
+ Canceled: EventStatusEnum;
33
+ };
@@ -1,14 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
3
+ exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const reservation_enums_1 = require("../enums/reservation.enums");
6
6
  exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
7
+ exports.RESERVATION_CHUNCK_SIZE = 500;
7
8
  // 2 days in seconds
8
9
  exports.KEY_TTL = 172800;
9
10
  exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
10
11
  exports.PUBLIC_NOTES_LIMIT = 500;
11
12
  exports.PRIVATE_NOTES_LIMIT = 500;
13
+ exports.DEFAULT_PRICE_ID = 0;
14
+ exports.MANDATORY_DRAFT_SLOTS_FIELDS = [
15
+ 'organizationId',
16
+ 'reservationId',
17
+ 'facilitiesIds',
18
+ 'segmentsIds',
19
+ 'ids',
20
+ ];
12
21
  exports.reservationStatusMapper = {
13
22
  [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
14
23
  [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
@@ -24,4 +33,12 @@ exports.reservationTypeMapper = {
24
33
  [reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
25
34
  [reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
26
35
  };
36
+ exports.reservationStatusToEventStatus = {
37
+ [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.EventStatusEnum.DRAFT,
38
+ [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.EventStatusEnum.OPEN,
39
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.EventStatusEnum.DRAFT,
40
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.EventStatusEnum.DRAFT,
41
+ [reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
42
+ [reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
43
+ };
27
44
  //# sourceMappingURL=reservation.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC"}
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,4BAA4B,GAAa;IACrD,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,aAAa;IACb,KAAK;CACL,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC;AAEW,QAAA,8BAA8B,GAAG;IAC7C,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,+BAAe,CAAC,KAAK;IACtD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_FUTURE_HOURS_LIMIT = 5;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_FUTURE_HOURS_LIMIT = void 0;
4
+ exports.DEFAULT_FUTURE_HOURS_LIMIT = 5;
5
+ //# sourceMappingURL=slot.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/slot.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,CAAC,CAAC"}
@@ -49,7 +49,8 @@ export declare enum SlotTypeEnum {
49
49
  }
50
50
  export declare enum DurationUnitTypesEnum {
51
51
  MINUTES = "minutes",
52
- HOURS = "hours"
52
+ HOURS = "hours",
53
+ DAYS = "days"
53
54
  }
54
55
  export declare enum FrequencyEnum {
55
56
  NONE = "none",
@@ -64,6 +64,7 @@ var DurationUnitTypesEnum;
64
64
  (function (DurationUnitTypesEnum) {
65
65
  DurationUnitTypesEnum["MINUTES"] = "minutes";
66
66
  DurationUnitTypesEnum["HOURS"] = "hours";
67
+ DurationUnitTypesEnum["DAYS"] = "days";
67
68
  })(DurationUnitTypesEnum = exports.DurationUnitTypesEnum || (exports.DurationUnitTypesEnum = {}));
68
69
  var FrequencyEnum;
69
70
  (function (FrequencyEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA,+BAA+B,GAAG;IAC9C,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiB,CAAC;IACnC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACzC,CAAC;AAEF,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,0DAAiC,CAAA;IACjC,gEAAuC,CAAA;IACvC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AAChB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
1
+ {"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA,+BAA+B,GAAG;IAC9C,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiB,CAAC;IACnC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACzC,CAAC;AAEF,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,0DAAiC,CAAA;IACjC,gEAAuC,CAAA;IACvC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
@@ -1,3 +1,4 @@
1
+ export * from './classes';
1
2
  export * from './consts';
2
3
  export * from './enums';
3
4
  export * from './interfaces';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./classes"), exports);
17
18
  __exportStar(require("./consts"), exports);
18
19
  __exportStar(require("./enums"), exports);
19
20
  __exportStar(require("./interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC"}
@@ -1,15 +1,31 @@
1
1
  import { Product } from '../../../product-pricing/entities/Product';
2
+ import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
2
3
  export interface IBaseAddon {
3
4
  productId: number;
4
5
  unitPrice?: number;
5
6
  quantity?: number;
6
7
  totalPrice?: number;
8
+ }
9
+ export interface IAddon extends IBaseAddon {
10
+ id?: number;
7
11
  product?: Product;
8
12
  parentProduct?: Product;
13
+ level?: ProductPackageLevelEnum;
9
14
  displayTotalWithTax?: number;
10
15
  displayTotalPrice?: number;
11
16
  displayUnitTax?: number;
12
17
  }
13
- export interface IAddon extends IBaseAddon {
14
- id?: number;
18
+ export interface IDraftAddon extends IBaseAddon {
19
+ id: string;
20
+ parentId?: string;
21
+ parentType?: AddonParentTypeEnum;
22
+ level?: ProductPackageLevelEnum;
23
+ }
24
+ export interface ISegmentsAddons {
25
+ groupId: string;
26
+ ids: string[];
27
+ productsIds: number[];
28
+ quantity: number;
29
+ products?: Product[];
30
+ cartItemId?: string;
15
31
  }
@@ -1,3 +1,5 @@
1
1
  export * from './addon.interfaces';
2
2
  export * from './reservation.interfaces';
3
+ export * from './segment.interfaces';
4
+ export * from './series.interfaces';
3
5
  export * from './slot.interfaces';
@@ -16,5 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./addon.interfaces"), exports);
18
18
  __exportStar(require("./reservation.interfaces"), exports);
19
+ __exportStar(require("./segment.interfaces"), exports);
20
+ __exportStar(require("./series.interfaces"), exports);
19
21
  __exportStar(require("./slot.interfaces"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,oDAAkC"}
@@ -1,5 +1,6 @@
1
- import * as moment from 'moment';
2
- import { ICreateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
1
+ import { CartItem } from '../../../cart/entities/cart-item.entity';
2
+ import { Cart } from '../../../cart/entities/cart.entity';
3
+ import { ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/interfaces/cart.interfaces';
3
4
  import { PaginationQuery } from '../../../dto/general.dto';
4
5
  import { Customer } from '../../../entity/Customer';
5
6
  import { Invoice } from '../../../entity/Invoice';
@@ -10,22 +11,29 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
10
11
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
11
12
  import { Product } from '../../../product-pricing/entities/Product';
12
13
  import { Answer } from '../../../questionnaires/entities/Answer';
13
- import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
14
+ import { AddonParentTypeEnum, FinancialStepEnum, InvoiceStatusEnum, OrderByEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
14
15
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
15
16
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
16
17
  import { AddonDto } from '../../dto/addon.dto';
17
18
  import { ReservationDto } from '../../dto/reservation.dto';
18
19
  import { SegmentDto } from '../../dto/segment.dto';
19
20
  import { SeriesDto } from '../../dto/series.dto';
20
- import { SlotDto } from '../../dto/slot.dto';
21
+ import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
21
22
  import { Addon } from '../../entities/addon.entity';
22
23
  import { Reservation } from '../../entities/reservation.entity';
23
24
  import { Segment } from '../../entities/segment.entity';
24
25
  import { Series } from '../../entities/series.entity';
25
26
  import { Slot } from '../../entities/slot.entity';
26
- import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
27
+ import { DraftAddon } from '../classes/addon.classes';
28
+ import { DraftReservation } from '../classes/reservation.classes';
29
+ import { DraftSegment } from '../classes/segment.classes';
30
+ import { DraftSeries } from '../classes/series.classes';
31
+ import { DraftSlot } from '../classes/slot.classes';
32
+ import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
33
+ import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
34
+ import { IDraftSegment } from './segment.interfaces';
27
35
  import { ITimeSlot } from './slot.interfaces';
28
- export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
36
+ export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto | DraftReservation | DraftSegment | DraftSeries | DraftSlot | DraftAddon;
29
37
  export type TResource = Reservation | Segment | Series | Slot | Addon;
30
38
  export type TSlotAndType = {
31
39
  type: 'slots' | 'slot_addons';
@@ -50,22 +58,22 @@ export interface IReservationV1 {
50
58
  name?: string;
51
59
  }
52
60
  export declare class ISlotDate {
53
- startDate: moment.Moment;
54
- endDate: moment.Moment;
61
+ startDate: string;
62
+ endDate: string;
55
63
  }
56
64
  export interface IProductQuantity {
57
65
  productId: number;
58
66
  quantity?: number;
59
67
  unitPrice?: number;
60
68
  }
61
- export interface ISlotsLineItemData extends IBaseReservationItemLineItemData {
69
+ export interface ISlotsLineItem extends IBaseReservationItemLineItem {
62
70
  slotIds: number[];
63
71
  }
64
- export interface IAddonsLineItemData extends IBaseReservationItemLineItemData {
72
+ export interface IAddonsLineItem extends IBaseReservationItemLineItem {
65
73
  addonsIds: number[];
66
74
  }
67
- export type TReservationItemLineItemData = IBaseReservationItemLineItemData | ISlotsLineItemData | IAddonsLineItemData;
68
- export interface IBaseReservationItemLineItemData {
75
+ export type TReservationItemLineItem = IBaseReservationItemLineItem | ISlotsLineItem | IAddonsLineItem;
76
+ export interface IBaseReservationItemLineItem {
69
77
  id: number;
70
78
  amount: number;
71
79
  amountPaid: number;
@@ -76,13 +84,13 @@ export interface IBaseReservationItemLineItemData {
76
84
  }
77
85
  export interface IRemoveSlotsFinancialData {
78
86
  paymentMethods: IPaymentMethodToFundLeft[];
79
- lineItems: ISlotsLineItemData[];
87
+ lineItems: ISlotsLineItem[];
80
88
  nextFinancialStep: FinancialStepEnum;
81
89
  invoice: Invoice;
82
90
  }
83
91
  export interface IRemoveAddonsFinancialData {
84
92
  paymentMethods: IPaymentMethodToFundLeft[];
85
- lineItems: IAddonsLineItemData[];
93
+ lineItems: IAddonsLineItem[];
86
94
  nextFinancialStep: FinancialStepEnum;
87
95
  invoice: Invoice;
88
96
  }
@@ -191,6 +199,7 @@ export interface ISingleReservation {
191
199
  answers?: Answer[];
192
200
  series: Series[];
193
201
  segments?: Segment[];
202
+ privacySetting: PrivacySettingsEnum;
194
203
  }
195
204
  export interface IUpdateReservationResult {
196
205
  reservation: Reservation;
@@ -227,20 +236,20 @@ export interface IValidateEditReservationAddonsResult extends IValidateEditItems
227
236
  refundMetadata?: IEditAddonsRefundMetadata;
228
237
  }
229
238
  export interface IEditSlotsRefundMetadata {
230
- lineItems: ISlotsLineItemData[];
239
+ lineItems: ISlotsLineItem[];
231
240
  refundAmount: number;
232
241
  }
233
242
  export interface IEditAddonsRefundMetadata {
234
- lineItems: IAddonsLineItemData[];
243
+ lineItems: IAddonsLineItem[];
235
244
  refundAmount: number;
236
245
  }
237
246
  export interface IEditItemsRefundMetadata {
238
- lineItems: TReservationItemLineItemData[];
247
+ lineItems: TReservationItemLineItem[];
239
248
  refundAmount: number;
240
249
  }
241
250
  export interface IEditItemsData {
242
251
  invoice?: Invoice;
243
- editLineItems?: TReservationItemLineItemData[];
252
+ editLineItems?: TReservationItemLineItem[];
244
253
  newLineItems?: LineItemDto[];
245
254
  }
246
255
  export interface IEditReservationItemsResult extends IUpdateReservationResult {
@@ -274,6 +283,9 @@ export interface ICartReservationOptions extends ICreateCartOptions {
274
283
  targetGlobalPrice?: number;
275
284
  platform?: PlatformsEnum;
276
285
  shiftId?: number;
286
+ reservation?: DraftReservation;
287
+ updatePrices?: IUpdateCartPrices;
288
+ includeSpaces?: boolean;
277
289
  }
278
290
  export interface IProductItems {
279
291
  [productInfo: string]: {
@@ -286,6 +298,9 @@ export interface ISaveReservationOptions {
286
298
  slotType?: SlotTypeEnum;
287
299
  platform?: PlatformsEnum;
288
300
  shiftId?: number;
301
+ updatePrices?: IUpdateCartPrices;
302
+ draftReservation?: DraftReservation;
303
+ addToReservationId?: number;
289
304
  }
290
305
  export interface IGetDraftReservationSlotsFilter {
291
306
  segmentsIds?: string[];
@@ -297,6 +312,7 @@ export interface IGetDraftReservationSlotsFilter {
297
312
  includeConflicts?: boolean;
298
313
  startDate?: Date;
299
314
  endDate?: Date;
315
+ orderBy?: OrderByEnum;
300
316
  }
301
317
  export interface IGetDraftReservationAddonsQuery {
302
318
  addonType: AddonParentTypeEnum;
@@ -308,13 +324,138 @@ export interface IGetDraftReservationOptions {
308
324
  includeSpaces?: boolean;
309
325
  includeProducts?: boolean;
310
326
  includeParticipants?: boolean;
327
+ /**
328
+ * Always include this flag when using the reservation and then updating it
329
+ */
311
330
  includeSegments?: boolean;
331
+ /**
332
+ * Always include this flag when using the reservation and then updating it
333
+ */
312
334
  includeSlots?: boolean;
335
+ includeFacilities?: boolean;
336
+ /**
337
+ * Always include this flag when using the reservation and then updating it
338
+ */
339
+ includeMaintenanceSlots?: boolean;
340
+ includeFullReservation?: boolean;
341
+ plainReservation?: boolean;
342
+ includeConflicts?: boolean;
343
+ reservation?: DraftReservation;
313
344
  }
314
- export interface IGetDraftReservationSlotsOptions extends IPagination {
345
+ export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
346
+ slotsIds?: number[];
347
+ excludeIds?: number[];
348
+ reservationAddonsIds?: number[];
349
+ isEdit?: boolean;
350
+ combineSlots?: boolean;
351
+ skipSave?: boolean;
352
+ }
353
+ export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
315
354
  segmentsIds?: string[];
316
355
  slotsIds?: string[];
317
356
  seriesIds?: string[];
357
+ excludeProducts?: boolean;
358
+ }
359
+ export interface IExtendDraftSlotsOptions {
318
360
  includeResources?: boolean;
361
+ includeOwner?: boolean;
362
+ includeParticipants?: boolean;
363
+ includeConflicts?: boolean;
364
+ includeMaintenanceSlots?: boolean;
365
+ includeFacilities?: boolean;
366
+ }
367
+ export interface IOverrideProductsPricing {
368
+ [productInfo: string]: IProductPrice;
369
+ }
370
+ export interface IProductPrice {
371
+ productId: number;
372
+ price?: number;
373
+ }
374
+ export interface IBaseReservation {
375
+ organizationId?: number;
376
+ name: string;
377
+ reservationType: ReservationTypeEnum;
378
+ description?: string;
379
+ privacySetting?: PrivacySettingsEnum;
380
+ price?: number;
381
+ creatorId?: number;
382
+ creatorType?: ResourceNameTypeEnum;
383
+ userCreatorId?: number;
384
+ publicNotes?: string;
385
+ privateNotes?: string;
386
+ forms?: number[];
387
+ overrideProductsPrice?: IOverrideProductsPricing;
388
+ colorCodeId?: number;
389
+ customerId?: number;
390
+ }
391
+ export interface IDraftReservation extends IBaseReservation {
392
+ id: string;
393
+ conflictsCount?: number;
394
+ segments: IDraftSegment[];
395
+ addons?: IDraftAddon[];
396
+ segmentsAddons?: ISegmentsAddons[];
397
+ cartId?: number;
398
+ sportType?: SportsEnum;
399
+ approvalStatus?: ReservationStatusEnum;
400
+ paymentStatus?: ReservationPaymentStatusEnum;
401
+ migrationStatus?: ReservationMigrationStatusEnum;
402
+ startDate?: string;
403
+ startTime?: string;
404
+ endDate?: string;
405
+ endTime?: string;
406
+ }
407
+ export interface IInvoiceDraftReservationOptions {
408
+ shiftId?: number;
409
+ draftStatus?: InvoiceStatusEnum;
410
+ existingCart?: Cart;
411
+ }
412
+ export interface IUpdateDraftSlotsOptions {
413
+ overrideProducts?: boolean;
414
+ reservation?: DraftReservation;
415
+ }
416
+ export interface IDuplicateDetails {
417
+ addToReservationId: number;
418
+ approvalStatus?: ReservationStatusEnum;
419
+ paymentStatus?: ReservationPaymentStatusEnum;
420
+ invoicesIds?: number[];
421
+ }
422
+ export interface IValidateEditSlotsOptions {
423
+ updatePrices?: IUpdateCartPrices;
424
+ draftReservation?: DraftReservation;
425
+ reservation?: Reservation;
426
+ includeEditInfo?: boolean;
427
+ }
428
+ export interface IEditItems {
429
+ invoice?: Invoice;
430
+ newCartItems?: CartItem[];
431
+ editLineItems?: TReservationItemLineItem[];
432
+ }
433
+ export interface IEditSlotsFinancialDetails {
434
+ nextFinancialStep: FinancialStepEnum;
435
+ paymentMethods?: IPaymentMethodToFundLeft[];
436
+ originalInvoicePrice?: number;
437
+ updatedInvoicePrice?: number;
438
+ originalItemsPrice?: number;
439
+ updatedItemsPrice?: number;
440
+ priceChange?: number;
441
+ refundMetadata?: IEditItemsRefundMetadata;
442
+ conflicts?: ITimeSlotConflicts[];
443
+ editData?: IEditItems;
444
+ }
445
+ export interface IGetReservationOptions {
446
+ buildTree?: boolean;
447
+ extraRelations?: string[];
448
+ includeProducts?: boolean;
449
+ }
450
+ export interface IDuplicateReservationItems {
451
+ slotsIds?: number[];
452
+ reservationAddonsIds?: number[];
453
+ excludeIds?: number[];
454
+ isEdit?: boolean;
455
+ combineSlots?: boolean;
456
+ }
457
+ export interface IUpdateDraftSlotsValidationResult {
458
+ slots: DraftSlot[];
459
+ updates: UpdateDraftSlotDto[];
319
460
  }
320
461
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAmEA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAoGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}