@bondsports/types 2.2.284-b-1 → 2.2.284-team-b

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 (480) hide show
  1. package/README.md +71 -71
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/address/index.d.ts +0 -2
  4. package/dist/types/address/index.js +0 -2
  5. package/dist/types/address/index.js.map +1 -1
  6. package/dist/types/cart/dto/cart.dto.d.ts +2 -65
  7. package/dist/types/cart/dto/cart.dto.js +1 -28
  8. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  9. package/dist/types/cart/entities/cart-item.entity.d.ts +0 -8
  10. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  11. package/dist/types/cart/entities/cart.entity.d.ts +1 -1
  12. package/dist/types/cart/entities/cart.entity.js.map +1 -1
  13. package/dist/types/cart/types/index.d.ts +0 -1
  14. package/dist/types/cart/types/index.js +0 -1
  15. package/dist/types/cart/types/index.js.map +1 -1
  16. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -63
  17. package/dist/types/customers/dto/customer-response.dto.d.ts +0 -5
  18. package/dist/types/customers/dto/customer-response.dto.js +1 -4
  19. package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
  20. package/dist/types/customers/dto/full-customer.dto.d.ts +1 -1
  21. package/dist/types/customers/dto/full-customer.dto.js.map +1 -1
  22. package/dist/types/customers/types/consts/customers.consts.d.ts +0 -1
  23. package/dist/types/customers/types/consts/customers.consts.js +2 -5
  24. package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
  25. package/dist/types/customers/types/interfaces.d.ts +1 -10
  26. package/dist/types/dto/activityTimes.dto.d.ts +0 -10
  27. package/dist/types/dto/activityTimes.dto.js +1 -4
  28. package/dist/types/dto/activityTimes.dto.js.map +1 -1
  29. package/dist/types/dto/application.dto.d.ts +0 -8
  30. package/dist/types/dto/application.dto.js +1 -4
  31. package/dist/types/dto/application.dto.js.map +1 -1
  32. package/dist/types/dto/events.dto.d.ts +2 -4
  33. package/dist/types/dto/events.dto.js.map +1 -1
  34. package/dist/types/dto/facilities.dto.d.ts +9 -2
  35. package/dist/types/dto/facilities.dto.js +4 -1
  36. package/dist/types/dto/facilities.dto.js.map +1 -1
  37. package/dist/types/dto/general.dto.d.ts +5 -11
  38. package/dist/types/dto/general.dto.js +2 -4
  39. package/dist/types/dto/general.dto.js.map +1 -1
  40. package/dist/types/dto/groupsDivisions.dto.d.ts +2 -15
  41. package/dist/types/dto/groupsDivisions.dto.js +3 -6
  42. package/dist/types/dto/groupsDivisions.dto.js.map +1 -1
  43. package/dist/types/dto/membership.dto.d.ts +1 -17
  44. package/dist/types/dto/membership.dto.js.map +1 -1
  45. package/dist/types/dto/product-user.d.ts +0 -10
  46. package/dist/types/dto/product-user.js +1 -7
  47. package/dist/types/dto/product-user.js.map +1 -1
  48. package/dist/types/dto/product-variants.dto.d.ts +14 -2
  49. package/dist/types/dto/product-variants.dto.js +5 -2
  50. package/dist/types/dto/product-variants.dto.js.map +1 -1
  51. package/dist/types/dto/userPaymentMethod.dto.d.ts +0 -4
  52. package/dist/types/dto/userPaymentMethod.dto.js +1 -4
  53. package/dist/types/dto/userPaymentMethod.dto.js.map +1 -1
  54. package/dist/types/employees/dto/employee.dto.d.ts +5 -21
  55. package/dist/types/employees/dto/employee.dto.js +1 -8
  56. package/dist/types/employees/dto/employee.dto.js.map +1 -1
  57. package/dist/types/employees/types/index.d.ts +0 -1
  58. package/dist/types/employees/types/index.js +0 -1
  59. package/dist/types/employees/types/index.js.map +1 -1
  60. package/dist/types/entity/ActivityTimes.d.ts +3 -4
  61. package/dist/types/entity/ActivityTimes.js.map +1 -1
  62. package/dist/types/{address/entities → entity}/Address.d.ts +1 -1
  63. package/dist/types/{address/entities → entity}/Address.js +1 -1
  64. package/dist/types/entity/Address.js.map +1 -0
  65. package/dist/types/entity/Customer.d.ts +1 -3
  66. package/dist/types/entity/Customer.js.map +1 -1
  67. package/dist/types/entity/EventAttendees.d.ts +6 -6
  68. package/dist/types/entity/EventAttendees.js.map +1 -1
  69. package/dist/types/entity/EventHistory.d.ts +1 -1
  70. package/dist/types/entity/EventHistory.js.map +1 -1
  71. package/dist/types/entity/Events.js.map +1 -1
  72. package/dist/types/entity/Facility.d.ts +1 -1
  73. package/dist/types/entity/LineItems.d.ts +0 -3
  74. package/dist/types/entity/LineItems.js.map +1 -1
  75. package/dist/types/entity/MembershipMember.d.ts +0 -11
  76. package/dist/types/entity/MembershipMember.js.map +1 -1
  77. package/dist/types/entity/PackageV1.d.ts +0 -2
  78. package/dist/types/entity/PackageV1.js.map +1 -1
  79. package/dist/types/{webflow/entities → entity}/WebflowOrganizationConfiguration.d.ts +1 -1
  80. package/dist/types/{webflow/entities → entity}/WebflowOrganizationConfiguration.js +1 -1
  81. package/dist/types/entity/WebflowOrganizationConfiguration.js.map +1 -0
  82. package/dist/types/entity/index.d.ts +2 -0
  83. package/dist/types/entity/index.js +2 -0
  84. package/dist/types/entity/index.js.map +1 -1
  85. package/dist/types/import/dto/reservation.dto.js.map +1 -1
  86. package/dist/types/index.d.ts +0 -5
  87. package/dist/types/index.js +0 -5
  88. package/dist/types/index.js.map +1 -1
  89. package/dist/types/invoice/dto/invoice.dto.d.ts +0 -19
  90. package/dist/types/invoice/dto/invoice.dto.js +1 -5
  91. package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
  92. package/dist/types/invoice/types/consts/invoice.consts.d.ts +0 -10
  93. package/dist/types/invoice/types/consts/invoice.consts.js +1 -10
  94. package/dist/types/invoice/types/consts/invoice.consts.js.map +1 -1
  95. package/dist/types/invoice/types/interfaces/index.d.ts +0 -1
  96. package/dist/types/invoice/types/interfaces/index.js +0 -1
  97. package/dist/types/invoice/types/interfaces/index.js.map +1 -1
  98. package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +1 -5
  99. package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
  100. package/dist/types/membership/entities/MembershipMemberRenewal.d.ts +0 -9
  101. package/dist/types/membership/entities/MembershipMemberRenewal.js.map +1 -1
  102. package/dist/types/membership/index.d.ts +1 -2
  103. package/dist/types/membership/index.js +1 -2
  104. package/dist/types/membership/index.js.map +1 -1
  105. package/dist/types/membership/interfaces/index.d.ts +1 -0
  106. package/dist/types/{address/dto → membership/interfaces}/index.js +1 -1
  107. package/dist/types/membership/interfaces/index.js.map +1 -0
  108. package/dist/types/membership/{types → interfaces}/membership.interfaces.d.ts +0 -19
  109. package/dist/types/membership/interfaces/membership.interfaces.js.map +1 -0
  110. package/dist/types/notifications/dto/index.d.ts +0 -1
  111. package/dist/types/notifications/dto/index.js +0 -1
  112. package/dist/types/notifications/dto/index.js.map +1 -1
  113. package/dist/types/notifications/dto/notification.create.dto.d.ts +6 -6
  114. package/dist/types/notifications/dto/notification.create.dto.js +6 -6
  115. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
  116. package/dist/types/notifications/dto/notification.response.dto.d.ts +3 -3
  117. package/dist/types/notifications/dto/notification.response.dto.js.map +1 -1
  118. package/dist/types/notifications/index.d.ts +1 -0
  119. package/dist/types/notifications/index.js +1 -0
  120. package/dist/types/notifications/index.js.map +1 -1
  121. package/dist/types/notifications/types/enums/index.js.map +1 -0
  122. package/dist/types/notifications/types/enums/notification.enums.d.ts +30 -0
  123. package/dist/types/notifications/types/enums/notification.enums.js +41 -0
  124. package/dist/types/notifications/types/enums/notification.enums.js.map +1 -0
  125. package/dist/types/notifications/types/index.js.map +1 -0
  126. package/dist/types/organization/entities/Organization.d.ts +1 -1
  127. package/dist/types/organization/interfaces/index.d.ts +0 -1
  128. package/dist/types/organization/interfaces/index.js +0 -1
  129. package/dist/types/organization/interfaces/index.js.map +1 -1
  130. package/dist/types/payment/dto/payment-method.dto.d.ts +3 -12
  131. package/dist/types/payment/dto/payment-method.dto.js +1 -4
  132. package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
  133. package/dist/types/payment/dto/payment-plan.dto.d.ts +4 -6
  134. package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
  135. package/dist/types/payment/entities/PaymentFailures.d.ts +0 -1
  136. package/dist/types/payment/entities/PaymentFailures.js.map +1 -1
  137. package/dist/types/payment/entities/ProductPaymentPlan.d.ts +2 -3
  138. package/dist/types/payment/entities/ProductPaymentPlan.js.map +1 -1
  139. package/dist/types/payment/types/consts/payment.consts.d.ts +0 -1
  140. package/dist/types/payment/types/consts/payment.consts.js +1 -5
  141. package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
  142. package/dist/types/payment/types/enums/payment-plan.enums.d.ts +7 -0
  143. package/dist/types/payment/types/enums/payment-plan.enums.js +9 -1
  144. package/dist/types/payment/types/enums/payment-plan.enums.js.map +1 -1
  145. package/dist/types/payment/types/enums/payment.enums.d.ts +2 -4
  146. package/dist/types/payment/types/enums/payment.enums.js +0 -2
  147. package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
  148. package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +1 -1
  149. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +0 -16
  150. package/dist/types/pricing/dto/price.dto.d.ts +1 -3
  151. package/dist/types/pricing/dto/price.dto.js.map +1 -1
  152. package/dist/types/pricing/dto/pricing.dto.d.ts +2 -2
  153. package/dist/types/pricing/entities/Price.d.ts +2 -3
  154. package/dist/types/pricing/entities/Price.js.map +1 -1
  155. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +0 -2
  156. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  157. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +0 -2
  158. package/dist/types/programs/dto/program.dto.d.ts +2 -5
  159. package/dist/types/programs/dto/program.dto.js +1 -4
  160. package/dist/types/programs/dto/program.dto.js.map +1 -1
  161. package/dist/types/programs-seasons/dto/index.d.ts +0 -1
  162. package/dist/types/programs-seasons/dto/index.js +0 -1
  163. package/dist/types/programs-seasons/dto/index.js.map +1 -1
  164. package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +0 -23
  165. package/dist/types/programs-seasons/dto/program-seasons.dto.js +1 -10
  166. package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
  167. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +1 -5
  168. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  169. package/dist/types/programs-seasons/types/index.d.ts +0 -2
  170. package/dist/types/programs-seasons/types/index.js +0 -2
  171. package/dist/types/programs-seasons/types/index.js.map +1 -1
  172. package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +1 -18
  173. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +0 -11
  174. package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -5
  175. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  176. package/dist/types/purchase/dto/purchase.dto.d.ts +0 -4
  177. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  178. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +3 -5
  179. package/dist/types/reservations/dto/addon.dto.d.ts +8 -21
  180. package/dist/types/reservations/dto/addon.dto.js +2 -9
  181. package/dist/types/reservations/dto/addon.dto.js.map +1 -1
  182. package/dist/types/reservations/dto/maintenance.dto.d.ts +1 -2
  183. package/dist/types/reservations/dto/maintenance.dto.js.map +1 -1
  184. package/dist/types/reservations/dto/reservation.dto.d.ts +24 -171
  185. package/dist/types/reservations/dto/reservation.dto.js +7 -86
  186. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  187. package/dist/types/reservations/dto/segment.dto.d.ts +4 -5
  188. package/dist/types/reservations/dto/segment.dto.js.map +1 -1
  189. package/dist/types/reservations/dto/series.dto.d.ts +4 -7
  190. package/dist/types/reservations/dto/series.dto.js.map +1 -1
  191. package/dist/types/reservations/dto/slot.dto.d.ts +26 -106
  192. package/dist/types/reservations/dto/slot.dto.js +7 -25
  193. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  194. package/dist/types/reservations/dto/v1.reservation.dto.d.ts +0 -1
  195. package/dist/types/reservations/dto/v1.reservation.dto.js.map +1 -1
  196. package/dist/types/reservations/entities/SlotToResource.d.ts +0 -4
  197. package/dist/types/reservations/entities/SlotToResource.js.map +1 -1
  198. package/dist/types/reservations/entities/addon.entity.d.ts +0 -1
  199. package/dist/types/reservations/entities/addon.entity.js.map +1 -1
  200. package/dist/types/reservations/entities/reservation.entity.d.ts +7 -6
  201. package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
  202. package/dist/types/reservations/entities/slot.entity.d.ts +3 -10
  203. package/dist/types/reservations/entities/slot.entity.js.map +1 -1
  204. package/dist/types/reservations/types/consts/index.d.ts +0 -1
  205. package/dist/types/reservations/types/consts/index.js +0 -1
  206. package/dist/types/reservations/types/consts/index.js.map +1 -1
  207. package/dist/types/reservations/types/consts/reservation.consts.d.ts +1 -12
  208. package/dist/types/reservations/types/consts/reservation.consts.js +1 -18
  209. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  210. package/dist/types/reservations/types/enums/reservation.enums.d.ts +1 -2
  211. package/dist/types/reservations/types/enums/reservation.enums.js +0 -1
  212. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  213. package/dist/types/reservations/types/index.d.ts +0 -1
  214. package/dist/types/reservations/types/index.js +0 -1
  215. package/dist/types/reservations/types/index.js.map +1 -1
  216. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +2 -18
  217. package/dist/types/reservations/types/interfaces/index.d.ts +0 -2
  218. package/dist/types/reservations/types/interfaces/index.js +0 -2
  219. package/dist/types/reservations/types/interfaces/index.js.map +1 -1
  220. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +19 -160
  221. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  222. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +24 -61
  223. package/dist/types/reservations/types/interfaces/slot.interfaces.js +0 -4
  224. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  225. package/dist/types/reservations/types/reservation.types.d.ts +11 -23
  226. package/dist/types/resources/dto/instructor.dto.d.ts +1 -1
  227. package/dist/types/resources/dto/instructor.dto.js.map +1 -1
  228. package/dist/types/resources/dto/space.dto.d.ts +0 -1
  229. package/dist/types/resources/dto/space.dto.js.map +1 -1
  230. package/dist/types/resources/entities/Instructor.d.ts +2 -2
  231. package/dist/types/resources/entities/Instructor.js.map +1 -1
  232. package/dist/types/resources/entities/Space.d.ts +1 -1
  233. package/dist/types/resources/entities/Space.js.map +1 -1
  234. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +0 -6
  235. package/dist/types/roles/dto/permission-group.dto.d.ts +0 -4
  236. package/dist/types/roles/dto/permission-group.dto.js +1 -8
  237. package/dist/types/roles/dto/permission-group.dto.js.map +1 -1
  238. package/dist/types/roles/dto/role.dto.d.ts +12 -27
  239. package/dist/types/roles/dto/role.dto.js +5 -23
  240. package/dist/types/roles/dto/role.dto.js.map +1 -1
  241. package/dist/types/roles/entities/Role.d.ts +2 -3
  242. package/dist/types/roles/entities/Role.js.map +1 -1
  243. package/dist/types/roles/entities/index.d.ts +0 -6
  244. package/dist/types/roles/entities/index.js +0 -10
  245. package/dist/types/roles/entities/index.js.map +1 -1
  246. package/dist/types/roles/types/index.d.ts +0 -1
  247. package/dist/types/roles/types/index.js +0 -1
  248. package/dist/types/roles/types/index.js.map +1 -1
  249. package/dist/types/roles/types/role.enums.d.ts +2 -13
  250. package/dist/types/roles/types/role.enums.js +1 -13
  251. package/dist/types/roles/types/role.enums.js.map +1 -1
  252. package/dist/types/services/enums.service.d.ts +2 -27
  253. package/dist/types/services/enums.service.js +3 -32
  254. package/dist/types/services/enums.service.js.map +1 -1
  255. package/dist/types/services/interfaces.service.d.ts +3 -21
  256. package/dist/types/services/interfaces.service.js.map +1 -1
  257. package/dist/types/shifts/entities/shift.entity.d.ts +1 -1
  258. package/dist/types/user/dto/user-settings.dto.d.ts +1 -1
  259. package/dist/types/user/dto/user.dto.d.ts +1 -1
  260. package/dist/types/user/dto/user.dto.js.map +1 -1
  261. package/dist/types/user/entities/User.d.ts +1 -3
  262. package/dist/types/user/entities/User.js.map +1 -1
  263. package/dist/types/user/types/user.interfaces.d.ts +0 -15
  264. package/dist/types/user-identification/dto/user-identifier.dto.d.ts +0 -3
  265. package/dist/types/user-identification/dto/user-identifier.dto.js +1 -7
  266. package/dist/types/user-identification/dto/user-identifier.dto.js.map +1 -1
  267. package/dist/types/user-identification/entities/UserIdentifier.d.ts +0 -2
  268. package/dist/types/user-identification/entities/UserIdentifier.js.map +1 -1
  269. package/dist/types/util/models/interfaces/general.interfaces.d.ts +1 -2
  270. package/dist/types/webflow/index.d.ts +0 -2
  271. package/dist/types/webflow/index.js +0 -2
  272. package/dist/types/webflow/index.js.map +1 -1
  273. package/package.json +54 -54
  274. package/dist/types/accounting/entities/index.d.ts +0 -2
  275. package/dist/types/accounting/entities/index.js +0 -19
  276. package/dist/types/accounting/entities/index.js.map +0 -1
  277. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.d.ts +0 -9
  278. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.js +0 -8
  279. package/dist/types/accounting/entities/revenue-recognition-milestone.entity.js.map +0 -1
  280. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.d.ts +0 -14
  281. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.js +0 -8
  282. package/dist/types/accounting/entities/revenue-recognition-schedule.entity.js.map +0 -1
  283. package/dist/types/accounting/index.d.ts +0 -2
  284. package/dist/types/accounting/index.js +0 -19
  285. package/dist/types/accounting/index.js.map +0 -1
  286. package/dist/types/accounting/types/enums/accounting.enums.d.ts +0 -14
  287. package/dist/types/accounting/types/enums/accounting.enums.js +0 -20
  288. package/dist/types/accounting/types/enums/accounting.enums.js.map +0 -1
  289. package/dist/types/accounting/types/enums/index.d.ts +0 -1
  290. package/dist/types/accounting/types/enums/index.js +0 -18
  291. package/dist/types/accounting/types/enums/index.js.map +0 -1
  292. package/dist/types/accounting/types/index.js.map +0 -1
  293. package/dist/types/address/dto/address.dto.d.ts +0 -9
  294. package/dist/types/address/dto/address.dto.js +0 -7
  295. package/dist/types/address/dto/address.dto.js.map +0 -1
  296. package/dist/types/address/dto/index.d.ts +0 -1
  297. package/dist/types/address/dto/index.js.map +0 -1
  298. package/dist/types/address/entities/Address.js.map +0 -1
  299. package/dist/types/address/entities/index.d.ts +0 -1
  300. package/dist/types/address/entities/index.js +0 -18
  301. package/dist/types/address/entities/index.js.map +0 -1
  302. package/dist/types/cart/types/classes/cart.classes.d.ts +0 -9
  303. package/dist/types/cart/types/classes/cart.classes.js +0 -7
  304. package/dist/types/cart/types/classes/cart.classes.js.map +0 -1
  305. package/dist/types/cart/types/classes/index.d.ts +0 -1
  306. package/dist/types/cart/types/classes/index.js +0 -18
  307. package/dist/types/cart/types/classes/index.js.map +0 -1
  308. package/dist/types/employees/types/consts/index.d.ts +0 -3
  309. package/dist/types/employees/types/consts/index.js +0 -25
  310. package/dist/types/employees/types/consts/index.js.map +0 -1
  311. package/dist/types/facilities/index.d.ts +0 -1
  312. package/dist/types/facilities/index.js +0 -18
  313. package/dist/types/facilities/index.js.map +0 -1
  314. package/dist/types/facilities/types/facilities.types.d.ts +0 -4
  315. package/dist/types/facilities/types/facilities.types.js +0 -3
  316. package/dist/types/facilities/types/facilities.types.js.map +0 -1
  317. package/dist/types/facilities/types/index.d.ts +0 -1
  318. package/dist/types/facilities/types/index.js +0 -18
  319. package/dist/types/facilities/types/index.js.map +0 -1
  320. package/dist/types/folders/dto/folder.dto.d.ts +0 -58
  321. package/dist/types/folders/dto/folder.dto.js +0 -34
  322. package/dist/types/folders/dto/folder.dto.js.map +0 -1
  323. package/dist/types/folders/dto/index.d.ts +0 -1
  324. package/dist/types/folders/dto/index.js +0 -18
  325. package/dist/types/folders/dto/index.js.map +0 -1
  326. package/dist/types/folders/entities/folder-content.entity.d.ts +0 -12
  327. package/dist/types/folders/entities/folder-content.entity.js +0 -14
  328. package/dist/types/folders/entities/folder-content.entity.js.map +0 -1
  329. package/dist/types/folders/entities/folder-invite.entity.d.ts +0 -8
  330. package/dist/types/folders/entities/folder-invite.entity.js +0 -8
  331. package/dist/types/folders/entities/folder-invite.entity.js.map +0 -1
  332. package/dist/types/folders/entities/folder.entity.d.ts +0 -21
  333. package/dist/types/folders/entities/folder.entity.js +0 -12
  334. package/dist/types/folders/entities/folder.entity.js.map +0 -1
  335. package/dist/types/folders/entities/index.d.ts +0 -3
  336. package/dist/types/folders/entities/index.js +0 -20
  337. package/dist/types/folders/entities/index.js.map +0 -1
  338. package/dist/types/folders/index.d.ts +0 -2
  339. package/dist/types/folders/index.js +0 -19
  340. package/dist/types/folders/index.js.map +0 -1
  341. package/dist/types/invoice/types/interfaces/line-item.interfaces.d.ts +0 -7
  342. package/dist/types/invoice/types/interfaces/line-item.interfaces.js +0 -3
  343. package/dist/types/invoice/types/interfaces/line-item.interfaces.js.map +0 -1
  344. package/dist/types/membership/dto/expendedMembership.dto.d.ts +0 -15
  345. package/dist/types/membership/dto/expendedMembership.dto.js +0 -7
  346. package/dist/types/membership/dto/expendedMembership.dto.js.map +0 -1
  347. package/dist/types/membership/dto/index.d.ts +0 -2
  348. package/dist/types/membership/dto/index.js +0 -19
  349. package/dist/types/membership/dto/index.js.map +0 -1
  350. package/dist/types/membership/dto/membershipMember.dto.d.ts +0 -103
  351. package/dist/types/membership/dto/membershipMember.dto.js +0 -45
  352. package/dist/types/membership/dto/membershipMember.dto.js.map +0 -1
  353. package/dist/types/membership/types/index.d.ts +0 -5
  354. package/dist/types/membership/types/index.js +0 -22
  355. package/dist/types/membership/types/index.js.map +0 -1
  356. package/dist/types/membership/types/membership.interfaces.js.map +0 -1
  357. package/dist/types/membership/types/membership.member.classes.d.ts +0 -14
  358. package/dist/types/membership/types/membership.member.classes.js +0 -7
  359. package/dist/types/membership/types/membership.member.classes.js.map +0 -1
  360. package/dist/types/membership/types/membership.member.consts.d.ts +0 -3
  361. package/dist/types/membership/types/membership.member.consts.js +0 -8
  362. package/dist/types/membership/types/membership.member.consts.js.map +0 -1
  363. package/dist/types/membership/types/membership.members.interfaces.d.ts +0 -86
  364. package/dist/types/membership/types/membership.members.interfaces.js +0 -3
  365. package/dist/types/membership/types/membership.members.interfaces.js.map +0 -1
  366. package/dist/types/membership/types/membership.members.types.d.ts +0 -4
  367. package/dist/types/membership/types/membership.members.types.js +0 -3
  368. package/dist/types/membership/types/membership.members.types.js.map +0 -1
  369. package/dist/types/notifications/dto/types/enums/index.js.map +0 -1
  370. package/dist/types/notifications/dto/types/enums/notification.enums.d.ts +0 -2
  371. package/dist/types/notifications/dto/types/enums/notification.enums.js +0 -8
  372. package/dist/types/notifications/dto/types/enums/notification.enums.js.map +0 -1
  373. package/dist/types/notifications/dto/types/index.d.ts +0 -1
  374. package/dist/types/notifications/dto/types/index.js +0 -18
  375. package/dist/types/notifications/dto/types/index.js.map +0 -1
  376. package/dist/types/online-rentals/index.d.ts +0 -1
  377. package/dist/types/online-rentals/index.js +0 -18
  378. package/dist/types/online-rentals/index.js.map +0 -1
  379. package/dist/types/online-rentals/types/index.d.ts +0 -2
  380. package/dist/types/online-rentals/types/index.js +0 -19
  381. package/dist/types/online-rentals/types/index.js.map +0 -1
  382. package/dist/types/online-rentals/types/online-rentals.classes.d.ts +0 -21
  383. package/dist/types/online-rentals/types/online-rentals.classes.js +0 -10
  384. package/dist/types/online-rentals/types/online-rentals.classes.js.map +0 -1
  385. package/dist/types/online-rentals/types/online-rentals.dto.d.ts +0 -61
  386. package/dist/types/online-rentals/types/online-rentals.dto.js +0 -36
  387. package/dist/types/online-rentals/types/online-rentals.dto.js.map +0 -1
  388. package/dist/types/organization/interfaces/reason.interfaces.d.ts +0 -6
  389. package/dist/types/organization/interfaces/reason.interfaces.js +0 -3
  390. package/dist/types/organization/interfaces/reason.interfaces.js.map +0 -1
  391. package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +0 -8
  392. package/dist/types/programs-seasons/dto/program-season-participant.dto.js +0 -7
  393. package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +0 -1
  394. package/dist/types/programs-seasons/types/classes/index.d.ts +0 -1
  395. package/dist/types/programs-seasons/types/classes/index.js +0 -18
  396. package/dist/types/programs-seasons/types/classes/index.js.map +0 -1
  397. package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +0 -6
  398. package/dist/types/programs-seasons/types/classes/program-season.classes.js +0 -7
  399. package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +0 -1
  400. package/dist/types/programs-seasons/types/enums/index.d.ts +0 -1
  401. package/dist/types/programs-seasons/types/enums/index.js +0 -18
  402. package/dist/types/programs-seasons/types/enums/index.js.map +0 -1
  403. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +0 -17
  404. package/dist/types/programs-seasons/types/enums/program-season.enums.js +0 -25
  405. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +0 -1
  406. package/dist/types/reservations/types/classes/addon.classes.d.ts +0 -22
  407. package/dist/types/reservations/types/classes/addon.classes.js +0 -7
  408. package/dist/types/reservations/types/classes/addon.classes.js.map +0 -1
  409. package/dist/types/reservations/types/classes/index.d.ts +0 -7
  410. package/dist/types/reservations/types/classes/index.js +0 -24
  411. package/dist/types/reservations/types/classes/index.js.map +0 -1
  412. package/dist/types/reservations/types/classes/maintenance.classes.d.ts +0 -8
  413. package/dist/types/reservations/types/classes/maintenance.classes.js +0 -7
  414. package/dist/types/reservations/types/classes/maintenance.classes.js.map +0 -1
  415. package/dist/types/reservations/types/classes/product.classes.d.ts +0 -16
  416. package/dist/types/reservations/types/classes/product.classes.js +0 -10
  417. package/dist/types/reservations/types/classes/product.classes.js.map +0 -1
  418. package/dist/types/reservations/types/classes/reservation.classes.d.ts +0 -58
  419. package/dist/types/reservations/types/classes/reservation.classes.js +0 -10
  420. package/dist/types/reservations/types/classes/reservation.classes.js.map +0 -1
  421. package/dist/types/reservations/types/classes/segment.classes.d.ts +0 -32
  422. package/dist/types/reservations/types/classes/segment.classes.js +0 -10
  423. package/dist/types/reservations/types/classes/segment.classes.js.map +0 -1
  424. package/dist/types/reservations/types/classes/series.classes.d.ts +0 -27
  425. package/dist/types/reservations/types/classes/series.classes.js +0 -7
  426. package/dist/types/reservations/types/classes/series.classes.js.map +0 -1
  427. package/dist/types/reservations/types/classes/slot.classes.d.ts +0 -69
  428. package/dist/types/reservations/types/classes/slot.classes.js +0 -11
  429. package/dist/types/reservations/types/classes/slot.classes.js.map +0 -1
  430. package/dist/types/reservations/types/consts/slot.consts.d.ts +0 -1
  431. package/dist/types/reservations/types/consts/slot.consts.js +0 -5
  432. package/dist/types/reservations/types/consts/slot.consts.js.map +0 -1
  433. package/dist/types/reservations/types/interfaces/segment.interfaces.d.ts +0 -29
  434. package/dist/types/reservations/types/interfaces/segment.interfaces.js +0 -3
  435. package/dist/types/reservations/types/interfaces/segment.interfaces.js.map +0 -1
  436. package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +0 -32
  437. package/dist/types/reservations/types/interfaces/series.interfaces.js +0 -3
  438. package/dist/types/reservations/types/interfaces/series.interfaces.js.map +0 -1
  439. package/dist/types/roles/types/role.consts.d.ts +0 -1
  440. package/dist/types/roles/types/role.consts.js +0 -6
  441. package/dist/types/roles/types/role.consts.js.map +0 -1
  442. package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +0 -22
  443. package/dist/types/session-participants/dto/get.session.participant.dto.js +0 -18
  444. package/dist/types/session-participants/dto/get.session.participant.dto.js.map +0 -1
  445. package/dist/types/session-participants/dto/index.d.ts +0 -2
  446. package/dist/types/session-participants/dto/index.js +0 -19
  447. package/dist/types/session-participants/dto/index.js.map +0 -1
  448. package/dist/types/session-participants/dto/session.participant.dto.d.ts +0 -45
  449. package/dist/types/session-participants/dto/session.participant.dto.js +0 -10
  450. package/dist/types/session-participants/dto/session.participant.dto.js.map +0 -1
  451. package/dist/types/session-participants/index.d.ts +0 -2
  452. package/dist/types/session-participants/index.js +0 -19
  453. package/dist/types/session-participants/index.js.map +0 -1
  454. package/dist/types/session-participants/types/consts.d.ts +0 -3
  455. package/dist/types/session-participants/types/consts.js +0 -7
  456. package/dist/types/session-participants/types/consts.js.map +0 -1
  457. package/dist/types/session-participants/types/enums.d.ts +0 -17
  458. package/dist/types/session-participants/types/enums.js +0 -24
  459. package/dist/types/session-participants/types/enums.js.map +0 -1
  460. package/dist/types/session-participants/types/index.d.ts +0 -3
  461. package/dist/types/session-participants/types/index.js +0 -20
  462. package/dist/types/session-participants/types/index.js.map +0 -1
  463. package/dist/types/session-participants/types/interfaces.d.ts +0 -46
  464. package/dist/types/session-participants/types/interfaces.js +0 -3
  465. package/dist/types/session-participants/types/interfaces.js.map +0 -1
  466. package/dist/types/webflow/dto/index.d.ts +0 -1
  467. package/dist/types/webflow/dto/index.js +0 -18
  468. package/dist/types/webflow/dto/index.js.map +0 -1
  469. package/dist/types/webflow/dto/webflowProgram.dto.d.ts +0 -14
  470. package/dist/types/webflow/dto/webflowProgram.dto.js +0 -7
  471. package/dist/types/webflow/dto/webflowProgram.dto.js.map +0 -1
  472. package/dist/types/webflow/entities/WebflowOrganizationConfiguration.js.map +0 -1
  473. package/dist/types/webflow/entities/index.d.ts +0 -1
  474. package/dist/types/webflow/entities/index.js +0 -18
  475. package/dist/types/webflow/entities/index.js.map +0 -1
  476. /package/dist/types/membership/{types → interfaces}/membership.interfaces.js +0 -0
  477. /package/dist/types/notifications/{dto/types → types}/enums/index.d.ts +0 -0
  478. /package/dist/types/notifications/{dto/types → types}/enums/index.js +0 -0
  479. /package/dist/types/{accounting → notifications}/types/index.d.ts +0 -0
  480. /package/dist/types/{accounting → notifications}/types/index.js +0 -0
@@ -15,5 +15,4 @@ 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);
19
18
  //# 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;AACrC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -1,13 +1,10 @@
1
- import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
1
+ import { 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;
5
4
  export declare const KEY_TTL = 172800;
6
5
  export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
7
6
  export declare const PUBLIC_NOTES_LIMIT = 500;
8
7
  export declare const PRIVATE_NOTES_LIMIT = 500;
9
- export declare const DEFAULT_PRICE_ID = 0;
10
- export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
11
8
  export declare const reservationStatusMapper: {
12
9
  Planned: InvoiceStatusEnum;
13
10
  Approved: InvoiceStatusEnum;
@@ -23,11 +20,3 @@ export declare const reservationTypeMapper: {
23
20
  internal: SlotTypeEnum;
24
21
  rental: SlotTypeEnum;
25
22
  };
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,23 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
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;
8
7
  // 2 days in seconds
9
8
  exports.KEY_TTL = 172800;
10
9
  exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
11
10
  exports.PUBLIC_NOTES_LIMIT = 500;
12
11
  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
- ];
21
12
  exports.reservationStatusMapper = {
22
13
  [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
23
14
  [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
@@ -33,12 +24,4 @@ exports.reservationTypeMapper = {
33
24
  [reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
34
25
  [reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
35
26
  };
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
- };
44
27
  //# 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,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"}
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"}
@@ -49,8 +49,7 @@ export declare enum SlotTypeEnum {
49
49
  }
50
50
  export declare enum DurationUnitTypesEnum {
51
51
  MINUTES = "minutes",
52
- HOURS = "hours",
53
- DAYS = "days"
52
+ HOURS = "hours"
54
53
  }
55
54
  export declare enum FrequencyEnum {
56
55
  NONE = "none",
@@ -64,7 +64,6 @@ var DurationUnitTypesEnum;
64
64
  (function (DurationUnitTypesEnum) {
65
65
  DurationUnitTypesEnum["MINUTES"] = "minutes";
66
66
  DurationUnitTypesEnum["HOURS"] = "hours";
67
- DurationUnitTypesEnum["DAYS"] = "days";
68
67
  })(DurationUnitTypesEnum = exports.DurationUnitTypesEnum || (exports.DurationUnitTypesEnum = {}));
69
68
  var FrequencyEnum;
70
69
  (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,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
+ {"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,4 +1,3 @@
1
- export * from './classes';
2
1
  export * from './consts';
3
2
  export * from './enums';
4
3
  export * from './interfaces';
@@ -14,7 +14,6 @@ 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);
18
17
  __exportStar(require("./consts"), exports);
19
18
  __exportStar(require("./enums"), exports);
20
19
  __exportStar(require("./interfaces"), exports);
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/reservations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC"}
@@ -1,31 +1,15 @@
1
1
  import { Product } from '../../../product-pricing/entities/Product';
2
- import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
3
2
  export interface IBaseAddon {
4
3
  productId: number;
5
4
  unitPrice?: number;
6
5
  quantity?: number;
7
6
  totalPrice?: number;
8
- }
9
- export interface IAddon extends IBaseAddon {
10
- id?: number;
11
7
  product?: Product;
12
8
  parentProduct?: Product;
13
- level?: ProductPackageLevelEnum;
14
9
  displayTotalWithTax?: number;
15
10
  displayTotalPrice?: number;
16
11
  displayUnitTax?: number;
17
12
  }
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;
13
+ export interface IAddon extends IBaseAddon {
14
+ id?: number;
31
15
  }
@@ -1,5 +1,3 @@
1
1
  export * from './addon.interfaces';
2
2
  export * from './reservation.interfaces';
3
- export * from './segment.interfaces';
4
- export * from './series.interfaces';
5
3
  export * from './slot.interfaces';
@@ -16,7 +16,5 @@ 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);
21
19
  __exportStar(require("./slot.interfaces"), exports);
22
20
  //# 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,uDAAqC;AACrC,sDAAoC;AACpC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,oDAAkC"}
@@ -1,6 +1,5 @@
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';
1
+ import * as moment from 'moment';
2
+ import { ICreateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
4
3
  import { PaginationQuery } from '../../../dto/general.dto';
5
4
  import { Customer } from '../../../entity/Customer';
6
5
  import { Invoice } from '../../../entity/Invoice';
@@ -11,29 +10,22 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
11
10
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
12
11
  import { Product } from '../../../product-pricing/entities/Product';
13
12
  import { Answer } from '../../../questionnaires/entities/Answer';
14
- import { AddonParentTypeEnum, FinancialStepEnum, InvoiceStatusEnum, OrderByEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
13
+ import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
15
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
16
15
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
17
16
  import { AddonDto } from '../../dto/addon.dto';
18
17
  import { ReservationDto } from '../../dto/reservation.dto';
19
18
  import { SegmentDto } from '../../dto/segment.dto';
20
19
  import { SeriesDto } from '../../dto/series.dto';
21
- import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
20
+ import { SlotDto } from '../../dto/slot.dto';
22
21
  import { Addon } from '../../entities/addon.entity';
23
22
  import { Reservation } from '../../entities/reservation.entity';
24
23
  import { Segment } from '../../entities/segment.entity';
25
24
  import { Series } from '../../entities/series.entity';
26
25
  import { Slot } from '../../entities/slot.entity';
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';
26
+ import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
35
27
  import { ITimeSlot } from './slot.interfaces';
36
- export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto | DraftReservation | DraftSegment | DraftSeries | DraftSlot | DraftAddon;
28
+ export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
37
29
  export type TResource = Reservation | Segment | Series | Slot | Addon;
38
30
  export type TSlotAndType = {
39
31
  type: 'slots' | 'slot_addons';
@@ -58,22 +50,22 @@ export interface IReservationV1 {
58
50
  name?: string;
59
51
  }
60
52
  export declare class ISlotDate {
61
- startDate: string;
62
- endDate: string;
53
+ startDate: moment.Moment;
54
+ endDate: moment.Moment;
63
55
  }
64
56
  export interface IProductQuantity {
65
57
  productId: number;
66
58
  quantity?: number;
67
59
  unitPrice?: number;
68
60
  }
69
- export interface ISlotsLineItem extends IBaseReservationItemLineItem {
61
+ export interface ISlotsLineItemData extends IBaseReservationItemLineItemData {
70
62
  slotIds: number[];
71
63
  }
72
- export interface IAddonsLineItem extends IBaseReservationItemLineItem {
64
+ export interface IAddonsLineItemData extends IBaseReservationItemLineItemData {
73
65
  addonsIds: number[];
74
66
  }
75
- export type TReservationItemLineItem = IBaseReservationItemLineItem | ISlotsLineItem | IAddonsLineItem;
76
- export interface IBaseReservationItemLineItem {
67
+ export type TReservationItemLineItemData = IBaseReservationItemLineItemData | ISlotsLineItemData | IAddonsLineItemData;
68
+ export interface IBaseReservationItemLineItemData {
77
69
  id: number;
78
70
  amount: number;
79
71
  amountPaid: number;
@@ -84,13 +76,13 @@ export interface IBaseReservationItemLineItem {
84
76
  }
85
77
  export interface IRemoveSlotsFinancialData {
86
78
  paymentMethods: IPaymentMethodToFundLeft[];
87
- lineItems: ISlotsLineItem[];
79
+ lineItems: ISlotsLineItemData[];
88
80
  nextFinancialStep: FinancialStepEnum;
89
81
  invoice: Invoice;
90
82
  }
91
83
  export interface IRemoveAddonsFinancialData {
92
84
  paymentMethods: IPaymentMethodToFundLeft[];
93
- lineItems: IAddonsLineItem[];
85
+ lineItems: IAddonsLineItemData[];
94
86
  nextFinancialStep: FinancialStepEnum;
95
87
  invoice: Invoice;
96
88
  }
@@ -199,7 +191,6 @@ export interface ISingleReservation {
199
191
  answers?: Answer[];
200
192
  series: Series[];
201
193
  segments?: Segment[];
202
- privacySetting: PrivacySettingsEnum;
203
194
  }
204
195
  export interface IUpdateReservationResult {
205
196
  reservation: Reservation;
@@ -236,20 +227,20 @@ export interface IValidateEditReservationAddonsResult extends IValidateEditItems
236
227
  refundMetadata?: IEditAddonsRefundMetadata;
237
228
  }
238
229
  export interface IEditSlotsRefundMetadata {
239
- lineItems: ISlotsLineItem[];
230
+ lineItems: ISlotsLineItemData[];
240
231
  refundAmount: number;
241
232
  }
242
233
  export interface IEditAddonsRefundMetadata {
243
- lineItems: IAddonsLineItem[];
234
+ lineItems: IAddonsLineItemData[];
244
235
  refundAmount: number;
245
236
  }
246
237
  export interface IEditItemsRefundMetadata {
247
- lineItems: TReservationItemLineItem[];
238
+ lineItems: TReservationItemLineItemData[];
248
239
  refundAmount: number;
249
240
  }
250
241
  export interface IEditItemsData {
251
242
  invoice?: Invoice;
252
- editLineItems?: TReservationItemLineItem[];
243
+ editLineItems?: TReservationItemLineItemData[];
253
244
  newLineItems?: LineItemDto[];
254
245
  }
255
246
  export interface IEditReservationItemsResult extends IUpdateReservationResult {
@@ -283,9 +274,6 @@ export interface ICartReservationOptions extends ICreateCartOptions {
283
274
  targetGlobalPrice?: number;
284
275
  platform?: PlatformsEnum;
285
276
  shiftId?: number;
286
- reservation?: DraftReservation;
287
- updatePrices?: IUpdateCartPrices;
288
- includeSpaces?: boolean;
289
277
  }
290
278
  export interface IProductItems {
291
279
  [productInfo: string]: {
@@ -298,9 +286,6 @@ export interface ISaveReservationOptions {
298
286
  slotType?: SlotTypeEnum;
299
287
  platform?: PlatformsEnum;
300
288
  shiftId?: number;
301
- updatePrices?: IUpdateCartPrices;
302
- draftReservation?: DraftReservation;
303
- addToReservationId?: number;
304
289
  }
305
290
  export interface IGetDraftReservationSlotsFilter {
306
291
  segmentsIds?: string[];
@@ -312,7 +297,6 @@ export interface IGetDraftReservationSlotsFilter {
312
297
  includeConflicts?: boolean;
313
298
  startDate?: Date;
314
299
  endDate?: Date;
315
- orderBy?: OrderByEnum;
316
300
  }
317
301
  export interface IGetDraftReservationAddonsQuery {
318
302
  addonType: AddonParentTypeEnum;
@@ -324,138 +308,13 @@ export interface IGetDraftReservationOptions {
324
308
  includeSpaces?: boolean;
325
309
  includeProducts?: boolean;
326
310
  includeParticipants?: boolean;
327
- /**
328
- * Always include this flag when using the reservation and then updating it
329
- */
330
311
  includeSegments?: boolean;
331
- /**
332
- * Always include this flag when using the reservation and then updating it
333
- */
334
312
  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;
344
313
  }
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 {
314
+ export interface IGetDraftReservationSlotsOptions extends IPagination {
354
315
  segmentsIds?: string[];
355
316
  slotsIds?: string[];
356
317
  seriesIds?: string[];
357
- excludeProducts?: boolean;
358
- }
359
- export interface IExtendDraftSlotsOptions {
360
318
  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[];
460
319
  }
461
320
  export {};
@@ -1 +1 @@
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"}
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,9 +1,7 @@
1
- import { ActivityTimes } from '../../../entity/ActivityTimes';
2
1
  import { Product } from '../../../product-pricing/entities/Product';
3
2
  import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
4
- import { MaintenanceDto } from '../../dto/maintenance.dto';
5
- import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
6
- import { IDraftAddon } from './addon.interfaces';
3
+ import { DraftAddonDto } from '../../dto/addon.dto';
4
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
7
5
  export interface IReservationCreatorData {
8
6
  type: ResourceNameTypeEnum;
9
7
  id: number;
@@ -32,7 +30,6 @@ export interface ISlotReservationData {
32
30
  reservationId: number;
33
31
  reservationName: string;
34
32
  date: string;
35
- endDate: string;
36
33
  startTime: string;
37
34
  endTime: string;
38
35
  notes: string;
@@ -52,28 +49,13 @@ export interface ISlotInSchedule {
52
49
  export interface ISpaceWithSlots {
53
50
  id: number;
54
51
  name: string;
55
- ordinal?: number;
56
52
  slots: ISlotReservationData[];
57
53
  }
58
54
  export interface ISlotProductMetadata {
59
55
  productId: number;
60
56
  price: number;
61
- quantity: number;
62
- priceId?: number;
63
- /**
64
- * Stores the matching fragment price making up the unit price of the slot
65
- */
66
- prices?: ISlotProductPricesMetadata[];
67
- }
68
- export interface ISlotProductPricesMetadata {
69
- priceId: number;
70
- price: number;
71
- quantity: number;
72
- activityTimes?: ActivityTimes[];
73
- totalPrice: number;
74
57
  }
75
58
  export interface ICreateSlotsOptions {
76
- id?: string;
77
59
  userCreatorId?: number;
78
60
  publicNotes?: string;
79
61
  privateNotes?: string;
@@ -82,41 +64,20 @@ export interface ICreateSlotsOptions {
82
64
  colorCodeId?: number;
83
65
  overrideProduct?: Product;
84
66
  spaceProducts?: Product[];
85
- title?: string;
86
- instructorsIds?: number[];
87
- participantsNumber?: number;
88
- participantsIds?: number[];
89
- maintenance?: MaintenanceDto[];
90
- productMetadata?: ISlotProductMetadata;
91
- slotId?: number;
92
- approvalStatus?: ReservationStatusEnum;
93
- paymentStatus?: ReservationPaymentStatusEnum;
94
67
  }
95
- export interface ITimeSlot {
96
- id?: string | number;
97
- /**
98
- */
99
- resourceId?: number;
100
- resourcesIds?: number[];
101
- startDate: string;
102
- startTime: string;
103
- endDate: string;
104
- endTime: string;
105
- parentSlotId?: string | number;
106
- }
107
- export declare class IBaseSlot {
68
+ export interface IBaseSlot {
108
69
  organizationId?: number;
109
- title: string;
110
- creatorId?: number;
111
- creatorType?: ResourceNameTypeEnum;
112
- userCreatorId?: number;
113
70
  startDate: string;
114
71
  startTime?: string;
115
72
  endDate?: string;
116
73
  endTime?: string;
117
- timezone?: string;
118
74
  spaceId: number;
119
75
  instructorsIds?: number[];
76
+ title: string;
77
+ creatorId?: number;
78
+ creatorType?: ResourceNameTypeEnum;
79
+ userCreatorId?: number;
80
+ timezone?: string;
120
81
  publicNotes?: string;
121
82
  privateNotes?: string;
122
83
  slotType: SlotTypeEnum;
@@ -129,29 +90,31 @@ export declare class IBaseSlot {
129
90
  totalPrice?: number;
130
91
  privacySetting?: PrivacySettingsEnum;
131
92
  slotDurationType: DurationTypeEnum;
132
- colorCodeId?: number;
133
93
  participantsNumber?: number;
134
- occurrence?: number;
94
+ participantsIds?: number[];
95
+ colorCodeId?: number;
96
+ conflictsIds?: number[];
97
+ product?: Product;
135
98
  productMetadata?: ISlotProductMetadata;
136
- maintenance?: MaintenanceDto[];
137
- slotId?: number;
138
99
  }
139
100
  export interface IDraftSlot extends IBaseSlot {
140
101
  id: string;
141
- facilityId: number;
142
102
  reservationId?: string;
143
103
  segmentId?: string;
144
104
  seriesId?: string;
145
105
  parentSlotId?: string;
146
- participantsIds?: number[];
147
106
  maintenanceSlots?: IDraftSlot[];
148
- conflictsIds?: number[];
149
- cartItemId?: string;
150
- addons?: IDraftAddon[];
151
- approvalStatus?: ReservationStatusEnum;
152
- paymentStatus?: ReservationPaymentStatusEnum;
107
+ addons?: DraftAddonDto[];
153
108
  }
154
- export interface IUpdateSlot extends IDraftSlot {
155
- productsIds?: number[];
156
- productId?: number;
109
+ export interface ITimeSlot {
110
+ id?: string | number;
111
+ /**
112
+ */
113
+ resourceId?: number;
114
+ resourcesIds?: number[];
115
+ startDate: string;
116
+ startTime: string;
117
+ endDate: string;
118
+ endTime: string;
119
+ parentSlotId?: string | number;
157
120
  }
@@ -1,7 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IBaseSlot = void 0;
4
- class IBaseSlot {
5
- }
6
- exports.IBaseSlot = IBaseSlot;
7
3
  //# sourceMappingURL=slot.interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AA4HA,MAAa,SAAS;CA+BrB;AA/BD,8BA+BC"}
1
+ {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":""}