@actschurch/ccms-sdk 0.0.19 → 0.0.20

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 (495) hide show
  1. package/dist/core/HttpClient.js +2 -2
  2. package/dist/core/HttpClient.js.map +1 -1
  3. package/dist/models/bookings/BookableResource.d.ts +61 -0
  4. package/dist/models/bookings/BookableResource.d.ts.map +1 -0
  5. package/dist/models/bookings/BookableResource.js +2 -0
  6. package/dist/models/bookings/BookableResource.js.map +1 -0
  7. package/dist/models/bookings/BookableResourceBlockout.d.ts +29 -0
  8. package/dist/models/bookings/BookableResourceBlockout.d.ts.map +1 -0
  9. package/dist/models/bookings/BookableResourceBlockout.js +2 -0
  10. package/dist/models/bookings/BookableResourceBlockout.js.map +1 -0
  11. package/dist/models/bookings/BookableResourceBlockoutType.d.ts +25 -0
  12. package/dist/models/bookings/BookableResourceBlockoutType.d.ts.map +1 -0
  13. package/dist/models/bookings/BookableResourceBlockoutType.js +2 -0
  14. package/dist/models/bookings/BookableResourceBlockoutType.js.map +1 -0
  15. package/dist/models/bookings/BookableResourceImage.d.ts +25 -0
  16. package/dist/models/bookings/BookableResourceImage.d.ts.map +1 -0
  17. package/dist/models/bookings/BookableResourceImage.js +2 -0
  18. package/dist/models/bookings/BookableResourceImage.js.map +1 -0
  19. package/dist/models/bookings/BookableResourceStatus.d.ts +25 -0
  20. package/dist/models/bookings/BookableResourceStatus.d.ts.map +1 -0
  21. package/dist/models/bookings/BookableResourceStatus.js +2 -0
  22. package/dist/models/bookings/BookableResourceStatus.js.map +1 -0
  23. package/dist/models/bookings/BookableResourceType.d.ts +25 -0
  24. package/dist/models/bookings/BookableResourceType.d.ts.map +1 -0
  25. package/dist/models/bookings/BookableResourceType.js +2 -0
  26. package/dist/models/bookings/BookableResourceType.js.map +1 -0
  27. package/dist/models/bookings/Booking.d.ts +69 -0
  28. package/dist/models/bookings/Booking.d.ts.map +1 -0
  29. package/dist/models/bookings/Booking.js +2 -0
  30. package/dist/models/bookings/Booking.js.map +1 -0
  31. package/dist/models/bookings/BookingAccessory.d.ts +23 -0
  32. package/dist/models/bookings/BookingAccessory.d.ts.map +1 -0
  33. package/dist/models/bookings/BookingAccessory.js +2 -0
  34. package/dist/models/bookings/BookingAccessory.js.map +1 -0
  35. package/dist/models/bookings/BookingLog.d.ts +49 -0
  36. package/dist/models/bookings/BookingLog.d.ts.map +1 -0
  37. package/dist/models/bookings/BookingLog.js +2 -0
  38. package/dist/models/bookings/BookingLog.js.map +1 -0
  39. package/dist/models/bookings/BookingLogMedia.d.ts +27 -0
  40. package/dist/models/bookings/BookingLogMedia.d.ts.map +1 -0
  41. package/dist/models/bookings/BookingLogMedia.js +2 -0
  42. package/dist/models/bookings/BookingLogMedia.js.map +1 -0
  43. package/dist/models/bookings/BookingNotificationQueue.d.ts +31 -0
  44. package/dist/models/bookings/BookingNotificationQueue.d.ts.map +1 -0
  45. package/dist/models/bookings/BookingNotificationQueue.js +2 -0
  46. package/dist/models/bookings/BookingNotificationQueue.js.map +1 -0
  47. package/dist/models/bookings/BookingSetting.d.ts +45 -0
  48. package/dist/models/bookings/BookingSetting.d.ts.map +1 -0
  49. package/dist/models/bookings/BookingSetting.js +2 -0
  50. package/dist/models/bookings/BookingSetting.js.map +1 -0
  51. package/dist/models/bookings/BookingStatus.d.ts +27 -0
  52. package/dist/models/bookings/BookingStatus.d.ts.map +1 -0
  53. package/dist/models/bookings/BookingStatus.js +2 -0
  54. package/dist/models/bookings/BookingStatus.js.map +1 -0
  55. package/dist/models/bookings/BookingStatusHistory.d.ts +29 -0
  56. package/dist/models/bookings/BookingStatusHistory.d.ts.map +1 -0
  57. package/dist/models/bookings/BookingStatusHistory.js +2 -0
  58. package/dist/models/bookings/BookingStatusHistory.js.map +1 -0
  59. package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.d.ts +18 -0
  60. package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.d.ts.map +1 -0
  61. package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.js +18 -0
  62. package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.js.map +1 -0
  63. package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.d.ts +20 -0
  64. package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.d.ts.map +1 -0
  65. package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.js +20 -0
  66. package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.js.map +1 -0
  67. package/dist/models/bookings/CacheKeys/BookingCacheKeys.d.ts +24 -0
  68. package/dist/models/bookings/CacheKeys/BookingCacheKeys.d.ts.map +1 -0
  69. package/dist/models/bookings/CacheKeys/BookingCacheKeys.js +24 -0
  70. package/dist/models/bookings/CacheKeys/BookingCacheKeys.js.map +1 -0
  71. package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.d.ts +18 -0
  72. package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.d.ts.map +1 -0
  73. package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.js +18 -0
  74. package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.js.map +1 -0
  75. package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.d.ts +18 -0
  76. package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.d.ts.map +1 -0
  77. package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.js +18 -0
  78. package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.js.map +1 -0
  79. package/dist/models/bookings/CacheKeys/index.d.ts +9 -0
  80. package/dist/models/bookings/CacheKeys/index.d.ts.map +1 -0
  81. package/dist/models/bookings/CacheKeys/index.js +9 -0
  82. package/dist/models/bookings/CacheKeys/index.js.map +1 -0
  83. package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.d.ts +48 -0
  84. package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.d.ts.map +1 -0
  85. package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.js +2 -0
  86. package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.js.map +1 -0
  87. package/dist/models/bookings/ModelView/BookableResourceModelView.d.ts +80 -0
  88. package/dist/models/bookings/ModelView/BookableResourceModelView.d.ts.map +1 -0
  89. package/dist/models/bookings/ModelView/BookableResourceModelView.js +2 -0
  90. package/dist/models/bookings/ModelView/BookableResourceModelView.js.map +1 -0
  91. package/dist/models/bookings/ModelView/BookingApprovalRequest.d.ts +14 -0
  92. package/dist/models/bookings/ModelView/BookingApprovalRequest.d.ts.map +1 -0
  93. package/dist/models/bookings/ModelView/BookingApprovalRequest.js +2 -0
  94. package/dist/models/bookings/ModelView/BookingApprovalRequest.js.map +1 -0
  95. package/dist/models/bookings/ModelView/BookingCalendarEvent.d.ts +36 -0
  96. package/dist/models/bookings/ModelView/BookingCalendarEvent.d.ts.map +1 -0
  97. package/dist/models/bookings/ModelView/BookingCalendarEvent.js +2 -0
  98. package/dist/models/bookings/ModelView/BookingCalendarEvent.js.map +1 -0
  99. package/dist/models/bookings/ModelView/BookingDashboardStats.d.ts +43 -0
  100. package/dist/models/bookings/ModelView/BookingDashboardStats.d.ts.map +1 -0
  101. package/dist/models/bookings/ModelView/BookingDashboardStats.js +2 -0
  102. package/dist/models/bookings/ModelView/BookingDashboardStats.js.map +1 -0
  103. package/dist/models/bookings/ModelView/BookingDetailModelView.d.ts +146 -0
  104. package/dist/models/bookings/ModelView/BookingDetailModelView.d.ts.map +1 -0
  105. package/dist/models/bookings/ModelView/BookingDetailModelView.js +2 -0
  106. package/dist/models/bookings/ModelView/BookingDetailModelView.js.map +1 -0
  107. package/dist/models/bookings/ModelView/BookingFilterModel.d.ts +36 -0
  108. package/dist/models/bookings/ModelView/BookingFilterModel.d.ts.map +1 -0
  109. package/dist/models/bookings/ModelView/BookingFilterModel.js +2 -0
  110. package/dist/models/bookings/ModelView/BookingFilterModel.js.map +1 -0
  111. package/dist/models/bookings/ModelView/BookingLogModelView.d.ts +76 -0
  112. package/dist/models/bookings/ModelView/BookingLogModelView.d.ts.map +1 -0
  113. package/dist/models/bookings/ModelView/BookingLogModelView.js +2 -0
  114. package/dist/models/bookings/ModelView/BookingLogModelView.js.map +1 -0
  115. package/dist/models/bookings/ModelView/BookingModelView.d.ts +107 -0
  116. package/dist/models/bookings/ModelView/BookingModelView.d.ts.map +1 -0
  117. package/dist/models/bookings/ModelView/BookingModelView.js +2 -0
  118. package/dist/models/bookings/ModelView/BookingModelView.js.map +1 -0
  119. package/dist/models/bookings/ModelView/CreateBookingLogRequest.d.ts +38 -0
  120. package/dist/models/bookings/ModelView/CreateBookingLogRequest.d.ts.map +1 -0
  121. package/dist/models/bookings/ModelView/CreateBookingLogRequest.js +2 -0
  122. package/dist/models/bookings/ModelView/CreateBookingLogRequest.js.map +1 -0
  123. package/dist/models/bookings/ModelView/CreateBookingRequest.d.ts +38 -0
  124. package/dist/models/bookings/ModelView/CreateBookingRequest.d.ts.map +1 -0
  125. package/dist/models/bookings/ModelView/CreateBookingRequest.js +2 -0
  126. package/dist/models/bookings/ModelView/CreateBookingRequest.js.map +1 -0
  127. package/dist/models/bookings/ModelView/ResourceAvailabilityResult.d.ts +52 -0
  128. package/dist/models/bookings/ModelView/ResourceAvailabilityResult.d.ts.map +1 -0
  129. package/dist/models/bookings/ModelView/ResourceAvailabilityResult.js +2 -0
  130. package/dist/models/bookings/ModelView/ResourceAvailabilityResult.js.map +1 -0
  131. package/dist/models/bookings/ModelView/index.d.ts +16 -0
  132. package/dist/models/bookings/ModelView/index.d.ts.map +1 -0
  133. package/dist/models/bookings/ModelView/index.js +16 -0
  134. package/dist/models/bookings/ModelView/index.js.map +1 -0
  135. package/dist/models/bookings/index.d.ts +20 -0
  136. package/dist/models/bookings/index.d.ts.map +1 -0
  137. package/dist/models/bookings/index.js +23 -0
  138. package/dist/models/bookings/index.js.map +1 -0
  139. package/dist/models/index.d.ts +1 -1
  140. package/dist/models/index.d.ts.map +1 -1
  141. package/dist/models/index.js +2 -2
  142. package/dist/models/index.js.map +1 -1
  143. package/dist/models/orders/ModelView/OrderModelView.d.ts +5 -0
  144. package/dist/models/orders/ModelView/OrderModelView.d.ts.map +1 -1
  145. package/dist/models/procurement/ModelView/RequestCommentModelView.d.ts +18 -0
  146. package/dist/models/procurement/ModelView/RequestCommentModelView.d.ts.map +1 -0
  147. package/dist/models/procurement/ModelView/RequestCommentModelView.js +2 -0
  148. package/dist/models/procurement/ModelView/RequestCommentModelView.js.map +1 -0
  149. package/dist/models/procurement/ModelView/index.d.ts +1 -0
  150. package/dist/models/procurement/ModelView/index.d.ts.map +1 -1
  151. package/dist/models/procurement/ModelView/index.js +1 -0
  152. package/dist/models/procurement/ModelView/index.js.map +1 -1
  153. package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.d.ts +11 -0
  154. package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.d.ts.map +1 -0
  155. package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.js +10 -0
  156. package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.js.map +1 -0
  157. package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.d.ts +12 -0
  158. package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.d.ts.map +1 -0
  159. package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.js +11 -0
  160. package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.js.map +1 -0
  161. package/dist/models/procurements/CacheKeys/index.d.ts +2 -2
  162. package/dist/models/procurements/CacheKeys/index.d.ts.map +1 -1
  163. package/dist/models/procurements/CacheKeys/index.js +2 -2
  164. package/dist/models/procurements/CacheKeys/index.js.map +1 -1
  165. package/dist/models/procurements/ItemCategory.d.ts +30 -0
  166. package/dist/models/procurements/ItemCategory.d.ts.map +1 -0
  167. package/dist/models/procurements/ItemCategory.js +2 -0
  168. package/dist/models/procurements/ItemCategory.js.map +1 -0
  169. package/dist/models/procurements/ProcurementItem.d.ts +54 -0
  170. package/dist/models/procurements/ProcurementItem.d.ts.map +1 -0
  171. package/dist/models/procurements/ProcurementItem.js +2 -0
  172. package/dist/models/procurements/ProcurementItem.js.map +1 -0
  173. package/dist/models/procurements/RequestPurchaseOrder.d.ts +1 -1
  174. package/dist/models/procurements/index.d.ts +2 -0
  175. package/dist/models/procurements/index.d.ts.map +1 -1
  176. package/dist/models/procurements/index.js +2 -0
  177. package/dist/models/procurements/index.js.map +1 -1
  178. package/dist/models/suppliers/Supplier.d.ts +1 -0
  179. package/dist/models/suppliers/Supplier.d.ts.map +1 -1
  180. package/dist/models/suppliers/SupplierNote.d.ts +13 -0
  181. package/dist/models/suppliers/SupplierNote.d.ts.map +1 -0
  182. package/dist/models/suppliers/SupplierNote.js +2 -0
  183. package/dist/models/suppliers/SupplierNote.js.map +1 -0
  184. package/dist/models/suppliers/index.d.ts +1 -1
  185. package/dist/models/suppliers/index.d.ts.map +1 -1
  186. package/dist/models/suppliers/index.js +1 -1
  187. package/dist/models/suppliers/index.js.map +1 -1
  188. package/dist/react/CCMSProvider.d.ts.map +1 -1
  189. package/dist/react/CCMSProvider.js +5 -0
  190. package/dist/react/CCMSProvider.js.map +1 -1
  191. package/dist/react/hooks/services/index.d.ts +1 -0
  192. package/dist/react/hooks/services/index.d.ts.map +1 -1
  193. package/dist/react/hooks/services/index.js +2 -0
  194. package/dist/react/hooks/services/index.js.map +1 -1
  195. package/dist/react/hooks/services/useBookingsServices.d.ts +55 -0
  196. package/dist/react/hooks/services/useBookingsServices.d.ts.map +1 -0
  197. package/dist/react/hooks/services/useBookingsServices.js +83 -0
  198. package/dist/react/hooks/services/useBookingsServices.js.map +1 -0
  199. package/dist/react/hooks/services/useProcurementsServices.d.ts +9 -13
  200. package/dist/react/hooks/services/useProcurementsServices.d.ts.map +1 -1
  201. package/dist/react/hooks/services/useProcurementsServices.js +12 -18
  202. package/dist/react/hooks/services/useProcurementsServices.js.map +1 -1
  203. package/dist/react/hooks/services/useSupplierServices.d.ts +19 -7
  204. package/dist/react/hooks/services/useSupplierServices.d.ts.map +1 -1
  205. package/dist/react/hooks/services/useSupplierServices.js +26 -8
  206. package/dist/react/hooks/services/useSupplierServices.js.map +1 -1
  207. package/dist/react/hooks/useCCMS.d.ts +2 -0
  208. package/dist/react/hooks/useCCMS.d.ts.map +1 -1
  209. package/dist/react/hooks/useCCMS.js.map +1 -1
  210. package/dist/services/bookings/BookableResourceBlockoutService.d.ts +40 -0
  211. package/dist/services/bookings/BookableResourceBlockoutService.d.ts.map +1 -0
  212. package/dist/services/bookings/BookableResourceBlockoutService.js +56 -0
  213. package/dist/services/bookings/BookableResourceBlockoutService.js.map +1 -0
  214. package/dist/services/bookings/BookableResourceBlockoutTypeService.d.ts +17 -0
  215. package/dist/services/bookings/BookableResourceBlockoutTypeService.d.ts.map +1 -0
  216. package/dist/services/bookings/BookableResourceBlockoutTypeService.js +20 -0
  217. package/dist/services/bookings/BookableResourceBlockoutTypeService.js.map +1 -0
  218. package/dist/services/bookings/BookableResourceImageService.d.ts +30 -0
  219. package/dist/services/bookings/BookableResourceImageService.d.ts.map +1 -0
  220. package/dist/services/bookings/BookableResourceImageService.js +39 -0
  221. package/dist/services/bookings/BookableResourceImageService.js.map +1 -0
  222. package/dist/services/bookings/BookableResourceService.d.ts +104 -0
  223. package/dist/services/bookings/BookableResourceService.d.ts.map +1 -0
  224. package/dist/services/bookings/BookableResourceService.js +166 -0
  225. package/dist/services/bookings/BookableResourceService.js.map +1 -0
  226. package/dist/services/bookings/BookableResourceStatusService.d.ts +17 -0
  227. package/dist/services/bookings/BookableResourceStatusService.d.ts.map +1 -0
  228. package/dist/services/bookings/BookableResourceStatusService.js +20 -0
  229. package/dist/services/bookings/BookableResourceStatusService.js.map +1 -0
  230. package/dist/services/bookings/BookableResourceTypeService.d.ts +17 -0
  231. package/dist/services/bookings/BookableResourceTypeService.d.ts.map +1 -0
  232. package/dist/services/bookings/BookableResourceTypeService.js +20 -0
  233. package/dist/services/bookings/BookableResourceTypeService.js.map +1 -0
  234. package/dist/services/bookings/BookingAccessoryService.d.ts +30 -0
  235. package/dist/services/bookings/BookingAccessoryService.d.ts.map +1 -0
  236. package/dist/services/bookings/BookingAccessoryService.js +39 -0
  237. package/dist/services/bookings/BookingAccessoryService.js.map +1 -0
  238. package/dist/services/bookings/BookingLogService.d.ts +56 -0
  239. package/dist/services/bookings/BookingLogService.d.ts.map +1 -0
  240. package/dist/services/bookings/BookingLogService.js +85 -0
  241. package/dist/services/bookings/BookingLogService.js.map +1 -0
  242. package/dist/services/bookings/BookingService.d.ts +214 -0
  243. package/dist/services/bookings/BookingService.d.ts.map +1 -0
  244. package/dist/services/bookings/BookingService.js +351 -0
  245. package/dist/services/bookings/BookingService.js.map +1 -0
  246. package/dist/services/bookings/BookingSettingService.d.ts +30 -0
  247. package/dist/services/bookings/BookingSettingService.d.ts.map +1 -0
  248. package/dist/services/bookings/BookingSettingService.js +42 -0
  249. package/dist/services/bookings/BookingSettingService.js.map +1 -0
  250. package/dist/services/bookings/BookingStatusService.d.ts +17 -0
  251. package/dist/services/bookings/BookingStatusService.d.ts.map +1 -0
  252. package/dist/services/bookings/BookingStatusService.js +20 -0
  253. package/dist/services/bookings/BookingStatusService.js.map +1 -0
  254. package/dist/services/bookings/index.d.ts +63 -0
  255. package/dist/services/bookings/index.d.ts.map +1 -0
  256. package/dist/services/bookings/index.js +50 -0
  257. package/dist/services/bookings/index.js.map +1 -0
  258. package/dist/services/departments/DepartmentService.d.ts.map +1 -1
  259. package/dist/services/departments/DepartmentService.js +1 -1
  260. package/dist/services/departments/DepartmentService.js.map +1 -1
  261. package/dist/services/index.d.ts +1 -0
  262. package/dist/services/index.d.ts.map +1 -1
  263. package/dist/services/index.js +2 -0
  264. package/dist/services/index.js.map +1 -1
  265. package/dist/services/procurements/AuditLogService.d.ts +2 -0
  266. package/dist/services/procurements/AuditLogService.d.ts.map +1 -1
  267. package/dist/services/procurements/AuditLogService.js +4 -0
  268. package/dist/services/procurements/AuditLogService.js.map +1 -1
  269. package/dist/services/procurements/ItemCategoryService.d.ts +21 -0
  270. package/dist/services/procurements/ItemCategoryService.d.ts.map +1 -0
  271. package/dist/services/procurements/ItemCategoryService.js +24 -0
  272. package/dist/services/procurements/ItemCategoryService.js.map +1 -0
  273. package/dist/services/procurements/ProcurementItemService.d.ts +33 -0
  274. package/dist/services/procurements/ProcurementItemService.d.ts.map +1 -0
  275. package/dist/services/procurements/ProcurementItemService.js +46 -0
  276. package/dist/services/procurements/ProcurementItemService.js.map +1 -0
  277. package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts +3 -0
  278. package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts.map +1 -1
  279. package/dist/services/procurements/ProcurementRoleAssignmentService.js +8 -0
  280. package/dist/services/procurements/ProcurementRoleAssignmentService.js.map +1 -1
  281. package/dist/services/procurements/RequestAttachmentService.d.ts +2 -0
  282. package/dist/services/procurements/RequestAttachmentService.d.ts.map +1 -1
  283. package/dist/services/procurements/RequestAttachmentService.js +4 -0
  284. package/dist/services/procurements/RequestAttachmentService.js.map +1 -1
  285. package/dist/services/procurements/RequestCommentService.d.ts +2 -0
  286. package/dist/services/procurements/RequestCommentService.d.ts.map +1 -1
  287. package/dist/services/procurements/RequestCommentService.js +4 -0
  288. package/dist/services/procurements/RequestCommentService.js.map +1 -1
  289. package/dist/services/procurements/index.d.ts +6 -9
  290. package/dist/services/procurements/index.d.ts.map +1 -1
  291. package/dist/services/procurements/index.js +6 -9
  292. package/dist/services/procurements/index.js.map +1 -1
  293. package/dist/services/suppliers/IndustryService.d.ts +19 -0
  294. package/dist/services/suppliers/IndustryService.d.ts.map +1 -0
  295. package/dist/services/suppliers/IndustryService.js +22 -0
  296. package/dist/services/suppliers/IndustryService.js.map +1 -0
  297. package/dist/services/suppliers/SubscriptionStatusService.d.ts +16 -0
  298. package/dist/services/suppliers/SubscriptionStatusService.d.ts.map +1 -0
  299. package/dist/services/suppliers/SubscriptionStatusService.js +19 -0
  300. package/dist/services/suppliers/SubscriptionStatusService.js.map +1 -0
  301. package/dist/services/suppliers/SubscriptionTypeService.d.ts +16 -0
  302. package/dist/services/suppliers/SubscriptionTypeService.d.ts.map +1 -0
  303. package/dist/services/suppliers/SubscriptionTypeService.js +19 -0
  304. package/dist/services/suppliers/SubscriptionTypeService.js.map +1 -0
  305. package/dist/services/suppliers/SupplierAccountService.d.ts +32 -0
  306. package/dist/services/suppliers/SupplierAccountService.d.ts.map +1 -0
  307. package/dist/services/suppliers/SupplierAccountService.js +42 -0
  308. package/dist/services/suppliers/SupplierAccountService.js.map +1 -0
  309. package/dist/services/suppliers/SupplierContactService.d.ts +5 -5
  310. package/dist/services/suppliers/SupplierContactService.d.ts.map +1 -1
  311. package/dist/services/suppliers/SupplierContactService.js +1 -1
  312. package/dist/services/suppliers/SupplierContactService.js.map +1 -1
  313. package/dist/services/suppliers/SupplierNoteService.d.ts +5 -5
  314. package/dist/services/suppliers/SupplierNoteService.d.ts.map +1 -1
  315. package/dist/services/suppliers/SupplierNoteService.js +1 -1
  316. package/dist/services/suppliers/SupplierNoteService.js.map +1 -1
  317. package/dist/services/suppliers/SupplierService.d.ts +13 -13
  318. package/dist/services/suppliers/SupplierService.d.ts.map +1 -1
  319. package/dist/services/suppliers/SupplierService.js +10 -10
  320. package/dist/services/suppliers/SupplierService.js.map +1 -1
  321. package/dist/services/suppliers/SupplierSubscriptionService.d.ts +24 -0
  322. package/dist/services/suppliers/SupplierSubscriptionService.d.ts.map +1 -0
  323. package/dist/services/suppliers/SupplierSubscriptionService.js +34 -0
  324. package/dist/services/suppliers/SupplierSubscriptionService.js.map +1 -0
  325. package/dist/services/suppliers/index.d.ts +15 -6
  326. package/dist/services/suppliers/index.d.ts.map +1 -1
  327. package/dist/services/suppliers/index.js +15 -6
  328. package/dist/services/suppliers/index.js.map +1 -1
  329. package/dist/services/types.d.ts +2 -0
  330. package/dist/services/types.d.ts.map +1 -1
  331. package/package.json +1 -1
  332. package/dist/models/integrations/sageone/Companies/Company.d.ts +0 -12
  333. package/dist/models/integrations/sageone/Companies/Company.d.ts.map +0 -1
  334. package/dist/models/integrations/sageone/Companies/Company.js +0 -6
  335. package/dist/models/integrations/sageone/Companies/Company.js.map +0 -1
  336. package/dist/models/integrations/sageone/Companies/CompanyEntityType.d.ts +0 -9
  337. package/dist/models/integrations/sageone/Companies/CompanyEntityType.d.ts.map +0 -1
  338. package/dist/models/integrations/sageone/Companies/CompanyEntityType.js +0 -6
  339. package/dist/models/integrations/sageone/Companies/CompanyEntityType.js.map +0 -1
  340. package/dist/models/integrations/sageone/Companies/CompanyNote.d.ts +0 -12
  341. package/dist/models/integrations/sageone/Companies/CompanyNote.d.ts.map +0 -1
  342. package/dist/models/integrations/sageone/Companies/CompanyNote.js +0 -6
  343. package/dist/models/integrations/sageone/Companies/CompanyNote.js.map +0 -1
  344. package/dist/models/integrations/sageone/Companies/index.d.ts +0 -8
  345. package/dist/models/integrations/sageone/Companies/index.d.ts.map +0 -1
  346. package/dist/models/integrations/sageone/Companies/index.js +0 -8
  347. package/dist/models/integrations/sageone/Companies/index.js.map +0 -1
  348. package/dist/models/integrations/sageone/Items/Account.d.ts +0 -24
  349. package/dist/models/integrations/sageone/Items/Account.d.ts.map +0 -1
  350. package/dist/models/integrations/sageone/Items/Account.js +0 -6
  351. package/dist/models/integrations/sageone/Items/Account.js.map +0 -1
  352. package/dist/models/integrations/sageone/Items/AccountCategory.d.ts +0 -13
  353. package/dist/models/integrations/sageone/Items/AccountCategory.d.ts.map +0 -1
  354. package/dist/models/integrations/sageone/Items/AccountCategory.js +0 -6
  355. package/dist/models/integrations/sageone/Items/AccountCategory.js.map +0 -1
  356. package/dist/models/integrations/sageone/Items/AdditionalItemPrice.d.ts +0 -12
  357. package/dist/models/integrations/sageone/Items/AdditionalItemPrice.d.ts.map +0 -1
  358. package/dist/models/integrations/sageone/Items/AdditionalItemPrice.js +0 -6
  359. package/dist/models/integrations/sageone/Items/AdditionalItemPrice.js.map +0 -1
  360. package/dist/models/integrations/sageone/Items/Item.d.ts +0 -69
  361. package/dist/models/integrations/sageone/Items/Item.d.ts.map +0 -1
  362. package/dist/models/integrations/sageone/Items/Item.js +0 -6
  363. package/dist/models/integrations/sageone/Items/Item.js.map +0 -1
  364. package/dist/models/integrations/sageone/Items/ItemAdjustment.d.ts +0 -17
  365. package/dist/models/integrations/sageone/Items/ItemAdjustment.d.ts.map +0 -1
  366. package/dist/models/integrations/sageone/Items/ItemAdjustment.js +0 -6
  367. package/dist/models/integrations/sageone/Items/ItemAdjustment.js.map +0 -1
  368. package/dist/models/integrations/sageone/Items/ItemAttachment.d.ts +0 -11
  369. package/dist/models/integrations/sageone/Items/ItemAttachment.d.ts.map +0 -1
  370. package/dist/models/integrations/sageone/Items/ItemAttachment.js +0 -6
  371. package/dist/models/integrations/sageone/Items/ItemAttachment.js.map +0 -1
  372. package/dist/models/integrations/sageone/Items/ItemCategory.d.ts +0 -11
  373. package/dist/models/integrations/sageone/Items/ItemCategory.d.ts.map +0 -1
  374. package/dist/models/integrations/sageone/Items/ItemCategory.js +0 -6
  375. package/dist/models/integrations/sageone/Items/ItemCategory.js.map +0 -1
  376. package/dist/models/integrations/sageone/Items/ItemNote.d.ts +0 -18
  377. package/dist/models/integrations/sageone/Items/ItemNote.d.ts.map +0 -1
  378. package/dist/models/integrations/sageone/Items/ItemNote.js +0 -6
  379. package/dist/models/integrations/sageone/Items/ItemNote.js.map +0 -1
  380. package/dist/models/integrations/sageone/Items/ItemReportGroup.d.ts +0 -15
  381. package/dist/models/integrations/sageone/Items/ItemReportGroup.d.ts.map +0 -1
  382. package/dist/models/integrations/sageone/Items/ItemReportGroup.js +0 -6
  383. package/dist/models/integrations/sageone/Items/ItemReportGroup.js.map +0 -1
  384. package/dist/models/integrations/sageone/Items/TaxType.d.ts +0 -18
  385. package/dist/models/integrations/sageone/Items/TaxType.d.ts.map +0 -1
  386. package/dist/models/integrations/sageone/Items/TaxType.js +0 -6
  387. package/dist/models/integrations/sageone/Items/TaxType.js.map +0 -1
  388. package/dist/models/integrations/sageone/Items/index.d.ts +0 -15
  389. package/dist/models/integrations/sageone/Items/index.d.ts.map +0 -1
  390. package/dist/models/integrations/sageone/Items/index.js +0 -15
  391. package/dist/models/integrations/sageone/Items/index.js.map +0 -1
  392. package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.d.ts +0 -11
  393. package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.d.ts.map +0 -1
  394. package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.js +0 -6
  395. package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.js.map +0 -1
  396. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.d.ts +0 -17
  397. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.d.ts.map +0 -1
  398. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.js +0 -6
  399. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.js.map +0 -1
  400. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.d.ts +0 -12
  401. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.d.ts.map +0 -1
  402. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.js +0 -6
  403. package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.js.map +0 -1
  404. package/dist/models/integrations/sageone/PurchaseOrders/index.d.ts +0 -8
  405. package/dist/models/integrations/sageone/PurchaseOrders/index.d.ts.map +0 -1
  406. package/dist/models/integrations/sageone/PurchaseOrders/index.js +0 -8
  407. package/dist/models/integrations/sageone/PurchaseOrders/index.js.map +0 -1
  408. package/dist/models/integrations/sageone/SageOneApiConfig.d.ts +0 -15
  409. package/dist/models/integrations/sageone/SageOneApiConfig.d.ts.map +0 -1
  410. package/dist/models/integrations/sageone/SageOneApiConfig.js +0 -6
  411. package/dist/models/integrations/sageone/SageOneApiConfig.js.map +0 -1
  412. package/dist/models/integrations/sageone/SageOneResponse.d.ts +0 -10
  413. package/dist/models/integrations/sageone/SageOneResponse.d.ts.map +0 -1
  414. package/dist/models/integrations/sageone/SageOneResponse.js +0 -6
  415. package/dist/models/integrations/sageone/SageOneResponse.js.map +0 -1
  416. package/dist/models/integrations/sageone/Suppliers/Supplier.d.ts +0 -54
  417. package/dist/models/integrations/sageone/Suppliers/Supplier.d.ts.map +0 -1
  418. package/dist/models/integrations/sageone/Suppliers/Supplier.js +0 -6
  419. package/dist/models/integrations/sageone/Suppliers/Supplier.js.map +0 -1
  420. package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.d.ts +0 -18
  421. package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.d.ts.map +0 -1
  422. package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.js +0 -6
  423. package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.js.map +0 -1
  424. package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.d.ts +0 -17
  425. package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.d.ts.map +0 -1
  426. package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.js +0 -6
  427. package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.js.map +0 -1
  428. package/dist/models/integrations/sageone/Suppliers/SupplierCategory.d.ts +0 -11
  429. package/dist/models/integrations/sageone/Suppliers/SupplierCategory.d.ts.map +0 -1
  430. package/dist/models/integrations/sageone/Suppliers/SupplierCategory.js +0 -6
  431. package/dist/models/integrations/sageone/Suppliers/SupplierCategory.js.map +0 -1
  432. package/dist/models/integrations/sageone/Suppliers/SupplierNote.d.ts +0 -18
  433. package/dist/models/integrations/sageone/Suppliers/SupplierNote.d.ts.map +0 -1
  434. package/dist/models/integrations/sageone/Suppliers/SupplierNote.js +0 -6
  435. package/dist/models/integrations/sageone/Suppliers/SupplierNote.js.map +0 -1
  436. package/dist/models/integrations/sageone/Suppliers/index.d.ts +0 -8
  437. package/dist/models/integrations/sageone/Suppliers/index.d.ts.map +0 -1
  438. package/dist/models/integrations/sageone/Suppliers/index.js +0 -8
  439. package/dist/models/integrations/sageone/Suppliers/index.js.map +0 -1
  440. package/dist/models/integrations/sageone/index.d.ts +0 -11
  441. package/dist/models/integrations/sageone/index.d.ts.map +0 -1
  442. package/dist/models/integrations/sageone/index.js +0 -13
  443. package/dist/models/integrations/sageone/index.js.map +0 -1
  444. package/dist/models/procurements/CacheKeys/SageItemCacheKeys.d.ts +0 -11
  445. package/dist/models/procurements/CacheKeys/SageItemCacheKeys.d.ts.map +0 -1
  446. package/dist/models/procurements/CacheKeys/SageItemCacheKeys.js +0 -10
  447. package/dist/models/procurements/CacheKeys/SageItemCacheKeys.js.map +0 -1
  448. package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.d.ts +0 -11
  449. package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.d.ts.map +0 -1
  450. package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.js +0 -10
  451. package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.js.map +0 -1
  452. package/dist/models/suppliers/SageOne/SageOneSupplier.d.ts +0 -54
  453. package/dist/models/suppliers/SageOne/SageOneSupplier.d.ts.map +0 -1
  454. package/dist/models/suppliers/SageOne/SageOneSupplier.js +0 -6
  455. package/dist/models/suppliers/SageOne/SageOneSupplier.js.map +0 -1
  456. package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.d.ts +0 -17
  457. package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.d.ts.map +0 -1
  458. package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.js +0 -6
  459. package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.js.map +0 -1
  460. package/dist/models/suppliers/SageOne/SageOneSupplierCategory.d.ts +0 -11
  461. package/dist/models/suppliers/SageOne/SageOneSupplierCategory.d.ts.map +0 -1
  462. package/dist/models/suppliers/SageOne/SageOneSupplierCategory.js +0 -6
  463. package/dist/models/suppliers/SageOne/SageOneSupplierCategory.js.map +0 -1
  464. package/dist/models/suppliers/SageOne/SageOneSupplierContact.d.ts +0 -18
  465. package/dist/models/suppliers/SageOne/SageOneSupplierContact.d.ts.map +0 -1
  466. package/dist/models/suppliers/SageOne/SageOneSupplierContact.js +0 -6
  467. package/dist/models/suppliers/SageOne/SageOneSupplierContact.js.map +0 -1
  468. package/dist/models/suppliers/SageOne/SageOneSupplierNote.d.ts +0 -18
  469. package/dist/models/suppliers/SageOne/SageOneSupplierNote.d.ts.map +0 -1
  470. package/dist/models/suppliers/SageOne/SageOneSupplierNote.js +0 -6
  471. package/dist/models/suppliers/SageOne/SageOneSupplierNote.js.map +0 -1
  472. package/dist/models/suppliers/SageOne/index.d.ts +0 -10
  473. package/dist/models/suppliers/SageOne/index.d.ts.map +0 -1
  474. package/dist/models/suppliers/SageOne/index.js +0 -10
  475. package/dist/models/suppliers/SageOne/index.js.map +0 -1
  476. package/dist/services/procurements/SageCompanyService.d.ts +0 -92
  477. package/dist/services/procurements/SageCompanyService.d.ts.map +0 -1
  478. package/dist/services/procurements/SageCompanyService.js +0 -139
  479. package/dist/services/procurements/SageCompanyService.js.map +0 -1
  480. package/dist/services/procurements/SageItemService.d.ts +0 -214
  481. package/dist/services/procurements/SageItemService.d.ts.map +0 -1
  482. package/dist/services/procurements/SageItemService.js +0 -348
  483. package/dist/services/procurements/SageItemService.js.map +0 -1
  484. package/dist/services/procurements/SagePurchaseOrderService.d.ts +0 -103
  485. package/dist/services/procurements/SagePurchaseOrderService.d.ts.map +0 -1
  486. package/dist/services/procurements/SagePurchaseOrderService.js +0 -164
  487. package/dist/services/procurements/SagePurchaseOrderService.js.map +0 -1
  488. package/dist/services/suppliers/SupplierBankDetailService.d.ts +0 -32
  489. package/dist/services/suppliers/SupplierBankDetailService.d.ts.map +0 -1
  490. package/dist/services/suppliers/SupplierBankDetailService.js +0 -42
  491. package/dist/services/suppliers/SupplierBankDetailService.js.map +0 -1
  492. package/dist/services/suppliers/SupplierCategoryService.d.ts +0 -19
  493. package/dist/services/suppliers/SupplierCategoryService.d.ts.map +0 -1
  494. package/dist/services/suppliers/SupplierCategoryService.js +0 -22
  495. package/dist/services/suppliers/SupplierCategoryService.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingAccessoryService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookingAccessoryService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAI5C;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,uBAAuB,CAAC,oBAAoB;YAChF,QAAQ,EAAE,uBAAuB,CAAC,SAAS;YAC3C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,4DAA4D;IAE5D;;;;OAIG;IACH,KAAK,CAAC,aAAa,CAAC,UAAkB;QACpC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACzD,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,gBAAgB,CAAC,UAAkB;QACjC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,UAAU,EAAE,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAqB,GAAG,CAAC,CAAC;IAChD,CAAC;;AA/BuB,4CAAoB,GAAG,oBAAoB,CAAC;AAC5C,iCAAS,GAAG,yBAAyB,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * BookingLogService
3
+ * Service for managing booking logs with media uploads and view endpoints
4
+ */
5
+ import { CrudService } from '../base/CrudService';
6
+ import type { HttpClient } from '../../core/HttpClient';
7
+ import type { ResponseData } from '../../models/common';
8
+ import type { ServiceConfig } from '../types';
9
+ import type { BookingLog, CreateBookingLogRequest, BookingLogMedia, BookingLogModelView } from '../../models/bookings';
10
+ /**
11
+ * Service for booking log CRUD operations with media upload and view endpoints
12
+ */
13
+ export declare class BookingLogService extends CrudService<BookingLog, CreateBookingLogRequest> {
14
+ private static readonly DEFAULT_SERVICE_PATH;
15
+ private static readonly BASE_PATH;
16
+ constructor(http: HttpClient, config?: ServiceConfig);
17
+ /**
18
+ * Get all logs for a specific booking
19
+ * @param bookingId - The booking ID
20
+ * @returns Array of booking logs
21
+ */
22
+ getByBooking(bookingId: number): Promise<BookingLog[]>;
23
+ /**
24
+ * Get all logs for a specific booking with full response
25
+ * @param bookingId - The booking ID
26
+ * @returns ResponseData with array of booking logs
27
+ */
28
+ getByBookingRaw(bookingId: number): Promise<ResponseData<BookingLog[]>>;
29
+ /**
30
+ * Upload media attachment to a booking log
31
+ * @param logId - The booking log ID
32
+ * @param formData - FormData containing the media file
33
+ * @returns The created booking log media record
34
+ */
35
+ uploadMedia(logId: number, formData: FormData): Promise<BookingLogMedia>;
36
+ /**
37
+ * Upload media attachment to a booking log with full response
38
+ * @param logId - The booking log ID
39
+ * @param formData - FormData containing the media file
40
+ * @returns ResponseData with the created booking log media record
41
+ */
42
+ uploadMediaRaw(logId: number, formData: FormData): Promise<ResponseData<BookingLogMedia>>;
43
+ /**
44
+ * Get booking log view by ID (enriched with related data)
45
+ * @param id - The booking log ID
46
+ * @returns Booking log model view
47
+ */
48
+ getLogView(id: number): Promise<BookingLogModelView>;
49
+ /**
50
+ * Get booking log view by ID with full response
51
+ * @param id - The booking log ID
52
+ * @returns ResponseData with booking log model view
53
+ */
54
+ getLogViewRaw(id: number): Promise<ResponseData<BookingLogModelView>>;
55
+ }
56
+ //# sourceMappingURL=BookingLogService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingLogService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookingLogService.ts"],"names":[],"mappings":"AAAA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
+ * BookingLogService
3
+ * Service for managing booking logs with media uploads and view endpoints
4
+ */
5
+ import { CrudService } from '../base/CrudService';
6
+ /**
7
+ * Service for booking log CRUD operations with media upload and view endpoints
8
+ */
9
+ export class BookingLogService extends CrudService {
10
+ constructor(http, config) {
11
+ super(http, {
12
+ servicePath: config?.servicePath ?? BookingLogService.DEFAULT_SERVICE_PATH,
13
+ basePath: BookingLogService.BASE_PATH,
14
+ endpoints: config?.endpoints,
15
+ });
16
+ }
17
+ // ==================== GET BY BOOKING ====================
18
+ /**
19
+ * Get all logs for a specific booking
20
+ * @param bookingId - The booking ID
21
+ * @returns Array of booking logs
22
+ */
23
+ async getByBooking(bookingId) {
24
+ const response = await this.getByBookingRaw(bookingId);
25
+ return response.data ?? [];
26
+ }
27
+ /**
28
+ * Get all logs for a specific booking with full response
29
+ * @param bookingId - The booking ID
30
+ * @returns ResponseData with array of booking logs
31
+ */
32
+ getByBookingRaw(bookingId) {
33
+ const url = this.buildUrl(`by-booking/${bookingId}`);
34
+ return this.http.get(url);
35
+ }
36
+ // ==================== MEDIA UPLOAD ====================
37
+ /**
38
+ * Upload media attachment to a booking log
39
+ * @param logId - The booking log ID
40
+ * @param formData - FormData containing the media file
41
+ * @returns The created booking log media record
42
+ */
43
+ async uploadMedia(logId, formData) {
44
+ const response = await this.uploadMediaRaw(logId, formData);
45
+ if (!response.data) {
46
+ throw new Error(`Failed to upload media for booking log ${logId}`);
47
+ }
48
+ return response.data;
49
+ }
50
+ /**
51
+ * Upload media attachment to a booking log with full response
52
+ * @param logId - The booking log ID
53
+ * @param formData - FormData containing the media file
54
+ * @returns ResponseData with the created booking log media record
55
+ */
56
+ uploadMediaRaw(logId, formData) {
57
+ const url = this.buildUrl(`${logId}/media`);
58
+ return this.http.postFormData(url, formData);
59
+ }
60
+ // ==================== VIEW ENDPOINTS ====================
61
+ /**
62
+ * Get booking log view by ID (enriched with related data)
63
+ * @param id - The booking log ID
64
+ * @returns Booking log model view
65
+ */
66
+ async getLogView(id) {
67
+ const response = await this.getLogViewRaw(id);
68
+ if (!response.data) {
69
+ throw new Error(`Booking log view with ID ${id} not found`);
70
+ }
71
+ return response.data;
72
+ }
73
+ /**
74
+ * Get booking log view by ID with full response
75
+ * @param id - The booking log ID
76
+ * @returns ResponseData with booking log model view
77
+ */
78
+ getLogViewRaw(id) {
79
+ const url = this.buildUrl(`view/${id}`);
80
+ return this.http.get(url);
81
+ }
82
+ }
83
+ BookingLogService.DEFAULT_SERVICE_PATH = 'booking-management';
84
+ BookingLogService.BASE_PATH = 'api/booking-logs';
85
+ //# sourceMappingURL=BookingLogService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingLogService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookingLogService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWlD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAgD;IAIrF,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,iBAAiB,CAAC,oBAAoB;YAC1E,QAAQ,EAAE,iBAAiB,CAAC,SAAS;YACrC,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,2DAA2D;IAE3D;;;;OAIG;IACH,KAAK,CAAC,YAAY,CAAC,SAAiB;QAClC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACvD,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,SAAiB;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,SAAS,EAAE,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAe,GAAG,CAAC,CAAC;IAC1C,CAA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compliance tracking, dashboard stats, calendar events, and view endpoints
5
+ */
6
+ import { CrudService } from '../base/CrudService';
7
+ import type { HttpClient } from '../../core/HttpClient';
8
+ import type { ResponseData } from '../../models/common';
9
+ import type { ServiceConfig } from '../types';
10
+ import type { Booking, CreateBookingRequest, BookingApprovalRequest, BookingDashboardStats, BookingCalendarEvent, BookingModelView, BookingDetailModelView } from '../../models/bookings';
11
+ /**
12
+ * Service for booking CRUD operations with approval workflows, status transitions,
13
+ * compliance management, dashboard analytics, and calendar integration
14
+ */
15
+ export declare class BookingService extends CrudService<Booking, CreateBookingRequest> {
16
+ private static readonly DEFAULT_SERVICE_PATH;
17
+ private static readonly BASE_PATH;
18
+ constructor(http: HttpClient, config?: ServiceConfig);
19
+ /**
20
+ * Get all bookings for the current authenticated user
21
+ * @returns Array of the current user's bookings
22
+ */
23
+ getMyBookings(): Promise<Booking[]>;
24
+ /**
25
+ * Get all bookings for the current authenticated user with full response
26
+ * @returns ResponseData with array of bookings
27
+ */
28
+ getMyBookingsRaw(): Promise<ResponseData<Booking[]>>;
29
+ /**
30
+ * Get all bookings across all users (admin)
31
+ * @returns Array of all bookings
32
+ */
33
+ getAllBookings(): Promise<Booking[]>;
34
+ /**
35
+ * Get all bookings across all users with full response
36
+ * @returns ResponseData with array of all bookings
37
+ */
38
+ getAllBookingsRaw(): Promise<ResponseData<Booking[]>>;
39
+ /**
40
+ * Get all currently active bookings
41
+ * @returns Array of active bookings
42
+ */
43
+ getActive(): Promise<Booking[]>;
44
+ /**
45
+ * Get all currently active bookings with full response
46
+ * @returns ResponseData with array of active bookings
47
+ */
48
+ getActiveRaw(): Promise<ResponseData<Booking[]>>;
49
+ /**
50
+ * Get all pending bookings awaiting approval
51
+ * @returns Array of pending bookings
52
+ */
53
+ getPending(): Promise<Booking[]>;
54
+ /**
55
+ * Get all pending bookings awaiting approval with full response
56
+ * @returns ResponseData with array of pending bookings
57
+ */
58
+ getPendingRaw(): Promise<ResponseData<Booking[]>>;
59
+ /**
60
+ * Get all overdue bookings (past end time, not completed/returned)
61
+ * @returns Array of overdue bookings
62
+ */
63
+ getOverdue(): Promise<Booking[]>;
64
+ /**
65
+ * Get all overdue bookings with full response
66
+ * @returns ResponseData with array of overdue bookings
67
+ */
68
+ getOverdueRaw(): Promise<ResponseData<Booking[]>>;
69
+ /**
70
+ * Approve a pending booking
71
+ * @param bookingId - The booking ID to approve
72
+ * @param request - Approval request with optional notes
73
+ * @returns Updated booking
74
+ */
75
+ approve(bookingId: number, request: BookingApprovalRequest): Promise<Booking>;
76
+ /**
77
+ * Approve a pending booking with full response
78
+ * @param bookingId - The booking ID to approve
79
+ * @param request - Approval request with optional notes
80
+ * @returns ResponseData with updated booking
81
+ */
82
+ approveRaw(bookingId: number, request: BookingApprovalRequest): Promise<ResponseData<Booking>>;
83
+ /**
84
+ * Reject a pending booking
85
+ * @param bookingId - The booking ID to reject
86
+ * @param request - Rejection request with reason
87
+ * @returns Updated booking
88
+ */
89
+ reject(bookingId: number, request: BookingApprovalRequest): Promise<Booking>;
90
+ /**
91
+ * Reject a pending booking with full response
92
+ * @param bookingId - The booking ID to reject
93
+ * @param request - Rejection request with reason
94
+ * @returns ResponseData with updated booking
95
+ */
96
+ rejectRaw(bookingId: number, request: BookingApprovalRequest): Promise<ResponseData<Booking>>;
97
+ /**
98
+ * Start a booking (mark as in-progress)
99
+ * @param bookingId - The booking ID to start
100
+ * @returns Updated booking
101
+ */
102
+ start(bookingId: number): Promise<Booking>;
103
+ /**
104
+ * Start a booking with full response
105
+ * @param bookingId - The booking ID to start
106
+ * @returns ResponseData with updated booking
107
+ */
108
+ startRaw(bookingId: number): Promise<ResponseData<Booking>>;
109
+ /**
110
+ * Complete a booking (mark as completed/returned)
111
+ * @param bookingId - The booking ID to complete
112
+ * @returns Updated booking
113
+ */
114
+ complete(bookingId: number): Promise<Booking>;
115
+ /**
116
+ * Complete a booking with full response
117
+ * @param bookingId - The booking ID to complete
118
+ * @returns ResponseData with updated booking
119
+ */
120
+ completeRaw(bookingId: number): Promise<ResponseData<Booking>>;
121
+ /**
122
+ * Cancel a booking
123
+ * @param bookingId - The booking ID to cancel
124
+ * @returns Updated booking
125
+ */
126
+ cancel(bookingId: number): Promise<Booking>;
127
+ /**
128
+ * Cancel a booking with full response
129
+ * @param bookingId - The booking ID to cancel
130
+ * @returns ResponseData with updated booking
131
+ */
132
+ cancelRaw(bookingId: number): Promise<ResponseData<Booking>>;
133
+ /**
134
+ * Get list of non-compliant user IDs (users with overdue/policy-violating bookings)
135
+ * @returns Array of user ID strings
136
+ */
137
+ getNonCompliantUsers(): Promise<string[]>;
138
+ /**
139
+ * Get list of non-compliant user IDs with full response
140
+ * @returns ResponseData with array of user ID strings
141
+ */
142
+ getNonCompliantUsersRaw(): Promise<ResponseData<string[]>>;
143
+ /**
144
+ * Override the booking block for a non-compliant user
145
+ * @param userId - The user ID to unblock
146
+ * @returns True if the override was successful
147
+ */
148
+ overrideBlock(userId: string): Promise<boolean>;
149
+ /**
150
+ * Override the booking block for a non-compliant user with full response
151
+ * @param userId - The user ID to unblock
152
+ * @returns ResponseData with boolean result
153
+ */
154
+ overrideBlockRaw(userId: string): Promise<ResponseData<boolean>>;
155
+ /**
156
+ * Get booking dashboard statistics
157
+ * @returns Dashboard statistics for bookings
158
+ */
159
+ getDashboardStats(): Promise<BookingDashboardStats>;
160
+ /**
161
+ * Get booking dashboard statistics with full response
162
+ * @returns ResponseData with dashboard statistics
163
+ */
164
+ getDashboardStatsRaw(): Promise<ResponseData<BookingDashboardStats>>;
165
+ /**
166
+ * Get booking calendar events for a date range
167
+ * @param startDate - Optional start date as epoch timestamp
168
+ * @param endDate - Optional end date as epoch timestamp
169
+ * @returns Array of booking calendar events
170
+ */
171
+ getCalendarEvents(startDate?: number, endDate?: number): Promise<BookingCalendarEvent[]>;
172
+ /**
173
+ * Get booking calendar events for a date range with full response
174
+ * @param startDate - Optional start date as epoch timestamp
175
+ * @param endDate - Optional end date as epoch timestamp
176
+ * @returns ResponseData with array of booking calendar events
177
+ */
178
+ getCalendarEventsRaw(startDate?: number, endDate?: number): Promise<ResponseData<BookingCalendarEvent[]>>;
179
+ /**
180
+ * Get booking view by ID
181
+ * @param id - The booking ID
182
+ * @returns Booking model view
183
+ */
184
+ getView(id: number): Promise<BookingModelView>;
185
+ /**
186
+ * Get booking view by ID with full response
187
+ * @param id - The booking ID
188
+ * @returns ResponseData with booking model view
189
+ */
190
+ getViewRaw(id: number): Promise<ResponseData<BookingModelView>>;
191
+ /**
192
+ * Get all booking list views
193
+ * @returns Array of booking model views
194
+ */
195
+ getListView(): Promise<BookingModelView[]>;
196
+ /**
197
+ * Get all booking list views with full response
198
+ * @returns ResponseData with array of booking model views
199
+ */
200
+ getListViewRaw(): Promise<ResponseData<BookingModelView[]>>;
201
+ /**
202
+ * Get booking detail view by ID (includes all related data)
203
+ * @param id - The booking ID
204
+ * @returns Booking detail model view with all related data
205
+ */
206
+ getDetailView(id: number): Promise<BookingDetailModelView>;
207
+ /**
208
+ * Get booking detail view by ID with full response
209
+ * @param id - The booking ID
210
+ * @returns ResponseData with booking detail model view
211
+ */
212
+ getDetailViewRaw(id: number): Promise<ResponseData<BookingDetailModelView>>;
213
+ }
214
+ //# sourceMappingURL=BookingService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookingService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,uBA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