@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.
- package/dist/core/HttpClient.js +2 -2
- package/dist/core/HttpClient.js.map +1 -1
- package/dist/models/bookings/BookableResource.d.ts +61 -0
- package/dist/models/bookings/BookableResource.d.ts.map +1 -0
- package/dist/models/bookings/BookableResource.js +2 -0
- package/dist/models/bookings/BookableResource.js.map +1 -0
- package/dist/models/bookings/BookableResourceBlockout.d.ts +29 -0
- package/dist/models/bookings/BookableResourceBlockout.d.ts.map +1 -0
- package/dist/models/bookings/BookableResourceBlockout.js +2 -0
- package/dist/models/bookings/BookableResourceBlockout.js.map +1 -0
- package/dist/models/bookings/BookableResourceBlockoutType.d.ts +25 -0
- package/dist/models/bookings/BookableResourceBlockoutType.d.ts.map +1 -0
- package/dist/models/bookings/BookableResourceBlockoutType.js +2 -0
- package/dist/models/bookings/BookableResourceBlockoutType.js.map +1 -0
- package/dist/models/bookings/BookableResourceImage.d.ts +25 -0
- package/dist/models/bookings/BookableResourceImage.d.ts.map +1 -0
- package/dist/models/bookings/BookableResourceImage.js +2 -0
- package/dist/models/bookings/BookableResourceImage.js.map +1 -0
- package/dist/models/bookings/BookableResourceStatus.d.ts +25 -0
- package/dist/models/bookings/BookableResourceStatus.d.ts.map +1 -0
- package/dist/models/bookings/BookableResourceStatus.js +2 -0
- package/dist/models/bookings/BookableResourceStatus.js.map +1 -0
- package/dist/models/bookings/BookableResourceType.d.ts +25 -0
- package/dist/models/bookings/BookableResourceType.d.ts.map +1 -0
- package/dist/models/bookings/BookableResourceType.js +2 -0
- package/dist/models/bookings/BookableResourceType.js.map +1 -0
- package/dist/models/bookings/Booking.d.ts +69 -0
- package/dist/models/bookings/Booking.d.ts.map +1 -0
- package/dist/models/bookings/Booking.js +2 -0
- package/dist/models/bookings/Booking.js.map +1 -0
- package/dist/models/bookings/BookingAccessory.d.ts +23 -0
- package/dist/models/bookings/BookingAccessory.d.ts.map +1 -0
- package/dist/models/bookings/BookingAccessory.js +2 -0
- package/dist/models/bookings/BookingAccessory.js.map +1 -0
- package/dist/models/bookings/BookingLog.d.ts +49 -0
- package/dist/models/bookings/BookingLog.d.ts.map +1 -0
- package/dist/models/bookings/BookingLog.js +2 -0
- package/dist/models/bookings/BookingLog.js.map +1 -0
- package/dist/models/bookings/BookingLogMedia.d.ts +27 -0
- package/dist/models/bookings/BookingLogMedia.d.ts.map +1 -0
- package/dist/models/bookings/BookingLogMedia.js +2 -0
- package/dist/models/bookings/BookingLogMedia.js.map +1 -0
- package/dist/models/bookings/BookingNotificationQueue.d.ts +31 -0
- package/dist/models/bookings/BookingNotificationQueue.d.ts.map +1 -0
- package/dist/models/bookings/BookingNotificationQueue.js +2 -0
- package/dist/models/bookings/BookingNotificationQueue.js.map +1 -0
- package/dist/models/bookings/BookingSetting.d.ts +45 -0
- package/dist/models/bookings/BookingSetting.d.ts.map +1 -0
- package/dist/models/bookings/BookingSetting.js +2 -0
- package/dist/models/bookings/BookingSetting.js.map +1 -0
- package/dist/models/bookings/BookingStatus.d.ts +27 -0
- package/dist/models/bookings/BookingStatus.d.ts.map +1 -0
- package/dist/models/bookings/BookingStatus.js +2 -0
- package/dist/models/bookings/BookingStatus.js.map +1 -0
- package/dist/models/bookings/BookingStatusHistory.d.ts +29 -0
- package/dist/models/bookings/BookingStatusHistory.d.ts.map +1 -0
- package/dist/models/bookings/BookingStatusHistory.js +2 -0
- package/dist/models/bookings/BookingStatusHistory.js.map +1 -0
- package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.d.ts +18 -0
- package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.js +18 -0
- package/dist/models/bookings/CacheKeys/BookableResourceBlockoutCacheKeys.js.map +1 -0
- package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.d.ts +20 -0
- package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.js +20 -0
- package/dist/models/bookings/CacheKeys/BookableResourceCacheKeys.js.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingCacheKeys.d.ts +24 -0
- package/dist/models/bookings/CacheKeys/BookingCacheKeys.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingCacheKeys.js +24 -0
- package/dist/models/bookings/CacheKeys/BookingCacheKeys.js.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.d.ts +18 -0
- package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.js +18 -0
- package/dist/models/bookings/CacheKeys/BookingLogCacheKeys.js.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.d.ts +18 -0
- package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.js +18 -0
- package/dist/models/bookings/CacheKeys/BookingSettingCacheKeys.js.map +1 -0
- package/dist/models/bookings/CacheKeys/index.d.ts +9 -0
- package/dist/models/bookings/CacheKeys/index.d.ts.map +1 -0
- package/dist/models/bookings/CacheKeys/index.js +9 -0
- package/dist/models/bookings/CacheKeys/index.js.map +1 -0
- package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.d.ts +48 -0
- package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.js +2 -0
- package/dist/models/bookings/ModelView/BookableResourceBlockoutModelView.js.map +1 -0
- package/dist/models/bookings/ModelView/BookableResourceModelView.d.ts +80 -0
- package/dist/models/bookings/ModelView/BookableResourceModelView.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookableResourceModelView.js +2 -0
- package/dist/models/bookings/ModelView/BookableResourceModelView.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingApprovalRequest.d.ts +14 -0
- package/dist/models/bookings/ModelView/BookingApprovalRequest.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingApprovalRequest.js +2 -0
- package/dist/models/bookings/ModelView/BookingApprovalRequest.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingCalendarEvent.d.ts +36 -0
- package/dist/models/bookings/ModelView/BookingCalendarEvent.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingCalendarEvent.js +2 -0
- package/dist/models/bookings/ModelView/BookingCalendarEvent.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingDashboardStats.d.ts +43 -0
- package/dist/models/bookings/ModelView/BookingDashboardStats.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingDashboardStats.js +2 -0
- package/dist/models/bookings/ModelView/BookingDashboardStats.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingDetailModelView.d.ts +146 -0
- package/dist/models/bookings/ModelView/BookingDetailModelView.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingDetailModelView.js +2 -0
- package/dist/models/bookings/ModelView/BookingDetailModelView.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingFilterModel.d.ts +36 -0
- package/dist/models/bookings/ModelView/BookingFilterModel.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingFilterModel.js +2 -0
- package/dist/models/bookings/ModelView/BookingFilterModel.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingLogModelView.d.ts +76 -0
- package/dist/models/bookings/ModelView/BookingLogModelView.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingLogModelView.js +2 -0
- package/dist/models/bookings/ModelView/BookingLogModelView.js.map +1 -0
- package/dist/models/bookings/ModelView/BookingModelView.d.ts +107 -0
- package/dist/models/bookings/ModelView/BookingModelView.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/BookingModelView.js +2 -0
- package/dist/models/bookings/ModelView/BookingModelView.js.map +1 -0
- package/dist/models/bookings/ModelView/CreateBookingLogRequest.d.ts +38 -0
- package/dist/models/bookings/ModelView/CreateBookingLogRequest.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/CreateBookingLogRequest.js +2 -0
- package/dist/models/bookings/ModelView/CreateBookingLogRequest.js.map +1 -0
- package/dist/models/bookings/ModelView/CreateBookingRequest.d.ts +38 -0
- package/dist/models/bookings/ModelView/CreateBookingRequest.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/CreateBookingRequest.js +2 -0
- package/dist/models/bookings/ModelView/CreateBookingRequest.js.map +1 -0
- package/dist/models/bookings/ModelView/ResourceAvailabilityResult.d.ts +52 -0
- package/dist/models/bookings/ModelView/ResourceAvailabilityResult.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/ResourceAvailabilityResult.js +2 -0
- package/dist/models/bookings/ModelView/ResourceAvailabilityResult.js.map +1 -0
- package/dist/models/bookings/ModelView/index.d.ts +16 -0
- package/dist/models/bookings/ModelView/index.d.ts.map +1 -0
- package/dist/models/bookings/ModelView/index.js +16 -0
- package/dist/models/bookings/ModelView/index.js.map +1 -0
- package/dist/models/bookings/index.d.ts +20 -0
- package/dist/models/bookings/index.d.ts.map +1 -0
- package/dist/models/bookings/index.js +23 -0
- package/dist/models/bookings/index.js.map +1 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/orders/ModelView/OrderModelView.d.ts +5 -0
- package/dist/models/orders/ModelView/OrderModelView.d.ts.map +1 -1
- package/dist/models/procurement/ModelView/RequestCommentModelView.d.ts +18 -0
- package/dist/models/procurement/ModelView/RequestCommentModelView.d.ts.map +1 -0
- package/dist/models/procurement/ModelView/RequestCommentModelView.js +2 -0
- package/dist/models/procurement/ModelView/RequestCommentModelView.js.map +1 -0
- package/dist/models/procurement/ModelView/index.d.ts +1 -0
- package/dist/models/procurement/ModelView/index.d.ts.map +1 -1
- package/dist/models/procurement/ModelView/index.js +1 -0
- package/dist/models/procurement/ModelView/index.js.map +1 -1
- package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.d.ts +11 -0
- package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.d.ts.map +1 -0
- package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.js +10 -0
- package/dist/models/procurements/CacheKeys/ItemCategoryCacheKeys.js.map +1 -0
- package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.d.ts +12 -0
- package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.d.ts.map +1 -0
- package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.js +11 -0
- package/dist/models/procurements/CacheKeys/ProcurementItemCacheKeys.js.map +1 -0
- package/dist/models/procurements/CacheKeys/index.d.ts +2 -2
- package/dist/models/procurements/CacheKeys/index.d.ts.map +1 -1
- package/dist/models/procurements/CacheKeys/index.js +2 -2
- package/dist/models/procurements/CacheKeys/index.js.map +1 -1
- package/dist/models/procurements/ItemCategory.d.ts +30 -0
- package/dist/models/procurements/ItemCategory.d.ts.map +1 -0
- package/dist/models/procurements/ItemCategory.js +2 -0
- package/dist/models/procurements/ItemCategory.js.map +1 -0
- package/dist/models/procurements/ProcurementItem.d.ts +54 -0
- package/dist/models/procurements/ProcurementItem.d.ts.map +1 -0
- package/dist/models/procurements/ProcurementItem.js +2 -0
- package/dist/models/procurements/ProcurementItem.js.map +1 -0
- package/dist/models/procurements/RequestPurchaseOrder.d.ts +1 -1
- package/dist/models/procurements/index.d.ts +2 -0
- package/dist/models/procurements/index.d.ts.map +1 -1
- package/dist/models/procurements/index.js +2 -0
- package/dist/models/procurements/index.js.map +1 -1
- package/dist/models/suppliers/Supplier.d.ts +1 -0
- package/dist/models/suppliers/Supplier.d.ts.map +1 -1
- package/dist/models/suppliers/SupplierNote.d.ts +13 -0
- package/dist/models/suppliers/SupplierNote.d.ts.map +1 -0
- package/dist/models/suppliers/SupplierNote.js +2 -0
- package/dist/models/suppliers/SupplierNote.js.map +1 -0
- package/dist/models/suppliers/index.d.ts +1 -1
- package/dist/models/suppliers/index.d.ts.map +1 -1
- package/dist/models/suppliers/index.js +1 -1
- package/dist/models/suppliers/index.js.map +1 -1
- package/dist/react/CCMSProvider.d.ts.map +1 -1
- package/dist/react/CCMSProvider.js +5 -0
- package/dist/react/CCMSProvider.js.map +1 -1
- package/dist/react/hooks/services/index.d.ts +1 -0
- package/dist/react/hooks/services/index.d.ts.map +1 -1
- package/dist/react/hooks/services/index.js +2 -0
- package/dist/react/hooks/services/index.js.map +1 -1
- package/dist/react/hooks/services/useBookingsServices.d.ts +55 -0
- package/dist/react/hooks/services/useBookingsServices.d.ts.map +1 -0
- package/dist/react/hooks/services/useBookingsServices.js +83 -0
- package/dist/react/hooks/services/useBookingsServices.js.map +1 -0
- package/dist/react/hooks/services/useProcurementsServices.d.ts +9 -13
- package/dist/react/hooks/services/useProcurementsServices.d.ts.map +1 -1
- package/dist/react/hooks/services/useProcurementsServices.js +12 -18
- package/dist/react/hooks/services/useProcurementsServices.js.map +1 -1
- package/dist/react/hooks/services/useSupplierServices.d.ts +19 -7
- package/dist/react/hooks/services/useSupplierServices.d.ts.map +1 -1
- package/dist/react/hooks/services/useSupplierServices.js +26 -8
- package/dist/react/hooks/services/useSupplierServices.js.map +1 -1
- package/dist/react/hooks/useCCMS.d.ts +2 -0
- package/dist/react/hooks/useCCMS.d.ts.map +1 -1
- package/dist/react/hooks/useCCMS.js.map +1 -1
- package/dist/services/bookings/BookableResourceBlockoutService.d.ts +40 -0
- package/dist/services/bookings/BookableResourceBlockoutService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceBlockoutService.js +56 -0
- package/dist/services/bookings/BookableResourceBlockoutService.js.map +1 -0
- package/dist/services/bookings/BookableResourceBlockoutTypeService.d.ts +17 -0
- package/dist/services/bookings/BookableResourceBlockoutTypeService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceBlockoutTypeService.js +20 -0
- package/dist/services/bookings/BookableResourceBlockoutTypeService.js.map +1 -0
- package/dist/services/bookings/BookableResourceImageService.d.ts +30 -0
- package/dist/services/bookings/BookableResourceImageService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceImageService.js +39 -0
- package/dist/services/bookings/BookableResourceImageService.js.map +1 -0
- package/dist/services/bookings/BookableResourceService.d.ts +104 -0
- package/dist/services/bookings/BookableResourceService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceService.js +166 -0
- package/dist/services/bookings/BookableResourceService.js.map +1 -0
- package/dist/services/bookings/BookableResourceStatusService.d.ts +17 -0
- package/dist/services/bookings/BookableResourceStatusService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceStatusService.js +20 -0
- package/dist/services/bookings/BookableResourceStatusService.js.map +1 -0
- package/dist/services/bookings/BookableResourceTypeService.d.ts +17 -0
- package/dist/services/bookings/BookableResourceTypeService.d.ts.map +1 -0
- package/dist/services/bookings/BookableResourceTypeService.js +20 -0
- package/dist/services/bookings/BookableResourceTypeService.js.map +1 -0
- package/dist/services/bookings/BookingAccessoryService.d.ts +30 -0
- package/dist/services/bookings/BookingAccessoryService.d.ts.map +1 -0
- package/dist/services/bookings/BookingAccessoryService.js +39 -0
- package/dist/services/bookings/BookingAccessoryService.js.map +1 -0
- package/dist/services/bookings/BookingLogService.d.ts +56 -0
- package/dist/services/bookings/BookingLogService.d.ts.map +1 -0
- package/dist/services/bookings/BookingLogService.js +85 -0
- package/dist/services/bookings/BookingLogService.js.map +1 -0
- package/dist/services/bookings/BookingService.d.ts +214 -0
- package/dist/services/bookings/BookingService.d.ts.map +1 -0
- package/dist/services/bookings/BookingService.js +351 -0
- package/dist/services/bookings/BookingService.js.map +1 -0
- package/dist/services/bookings/BookingSettingService.d.ts +30 -0
- package/dist/services/bookings/BookingSettingService.d.ts.map +1 -0
- package/dist/services/bookings/BookingSettingService.js +42 -0
- package/dist/services/bookings/BookingSettingService.js.map +1 -0
- package/dist/services/bookings/BookingStatusService.d.ts +17 -0
- package/dist/services/bookings/BookingStatusService.d.ts.map +1 -0
- package/dist/services/bookings/BookingStatusService.js +20 -0
- package/dist/services/bookings/BookingStatusService.js.map +1 -0
- package/dist/services/bookings/index.d.ts +63 -0
- package/dist/services/bookings/index.d.ts.map +1 -0
- package/dist/services/bookings/index.js +50 -0
- package/dist/services/bookings/index.js.map +1 -0
- package/dist/services/departments/DepartmentService.d.ts.map +1 -1
- package/dist/services/departments/DepartmentService.js +1 -1
- package/dist/services/departments/DepartmentService.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/procurements/AuditLogService.d.ts +2 -0
- package/dist/services/procurements/AuditLogService.d.ts.map +1 -1
- package/dist/services/procurements/AuditLogService.js +4 -0
- package/dist/services/procurements/AuditLogService.js.map +1 -1
- package/dist/services/procurements/ItemCategoryService.d.ts +21 -0
- package/dist/services/procurements/ItemCategoryService.d.ts.map +1 -0
- package/dist/services/procurements/ItemCategoryService.js +24 -0
- package/dist/services/procurements/ItemCategoryService.js.map +1 -0
- package/dist/services/procurements/ProcurementItemService.d.ts +33 -0
- package/dist/services/procurements/ProcurementItemService.d.ts.map +1 -0
- package/dist/services/procurements/ProcurementItemService.js +46 -0
- package/dist/services/procurements/ProcurementItemService.js.map +1 -0
- package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts +3 -0
- package/dist/services/procurements/ProcurementRoleAssignmentService.d.ts.map +1 -1
- package/dist/services/procurements/ProcurementRoleAssignmentService.js +8 -0
- package/dist/services/procurements/ProcurementRoleAssignmentService.js.map +1 -1
- package/dist/services/procurements/RequestAttachmentService.d.ts +2 -0
- package/dist/services/procurements/RequestAttachmentService.d.ts.map +1 -1
- package/dist/services/procurements/RequestAttachmentService.js +4 -0
- package/dist/services/procurements/RequestAttachmentService.js.map +1 -1
- package/dist/services/procurements/RequestCommentService.d.ts +2 -0
- package/dist/services/procurements/RequestCommentService.d.ts.map +1 -1
- package/dist/services/procurements/RequestCommentService.js +4 -0
- package/dist/services/procurements/RequestCommentService.js.map +1 -1
- package/dist/services/procurements/index.d.ts +6 -9
- package/dist/services/procurements/index.d.ts.map +1 -1
- package/dist/services/procurements/index.js +6 -9
- package/dist/services/procurements/index.js.map +1 -1
- package/dist/services/suppliers/IndustryService.d.ts +19 -0
- package/dist/services/suppliers/IndustryService.d.ts.map +1 -0
- package/dist/services/suppliers/IndustryService.js +22 -0
- package/dist/services/suppliers/IndustryService.js.map +1 -0
- package/dist/services/suppliers/SubscriptionStatusService.d.ts +16 -0
- package/dist/services/suppliers/SubscriptionStatusService.d.ts.map +1 -0
- package/dist/services/suppliers/SubscriptionStatusService.js +19 -0
- package/dist/services/suppliers/SubscriptionStatusService.js.map +1 -0
- package/dist/services/suppliers/SubscriptionTypeService.d.ts +16 -0
- package/dist/services/suppliers/SubscriptionTypeService.d.ts.map +1 -0
- package/dist/services/suppliers/SubscriptionTypeService.js +19 -0
- package/dist/services/suppliers/SubscriptionTypeService.js.map +1 -0
- package/dist/services/suppliers/SupplierAccountService.d.ts +32 -0
- package/dist/services/suppliers/SupplierAccountService.d.ts.map +1 -0
- package/dist/services/suppliers/SupplierAccountService.js +42 -0
- package/dist/services/suppliers/SupplierAccountService.js.map +1 -0
- package/dist/services/suppliers/SupplierContactService.d.ts +5 -5
- package/dist/services/suppliers/SupplierContactService.d.ts.map +1 -1
- package/dist/services/suppliers/SupplierContactService.js +1 -1
- package/dist/services/suppliers/SupplierContactService.js.map +1 -1
- package/dist/services/suppliers/SupplierNoteService.d.ts +5 -5
- package/dist/services/suppliers/SupplierNoteService.d.ts.map +1 -1
- package/dist/services/suppliers/SupplierNoteService.js +1 -1
- package/dist/services/suppliers/SupplierNoteService.js.map +1 -1
- package/dist/services/suppliers/SupplierService.d.ts +13 -13
- package/dist/services/suppliers/SupplierService.d.ts.map +1 -1
- package/dist/services/suppliers/SupplierService.js +10 -10
- package/dist/services/suppliers/SupplierService.js.map +1 -1
- package/dist/services/suppliers/SupplierSubscriptionService.d.ts +24 -0
- package/dist/services/suppliers/SupplierSubscriptionService.d.ts.map +1 -0
- package/dist/services/suppliers/SupplierSubscriptionService.js +34 -0
- package/dist/services/suppliers/SupplierSubscriptionService.js.map +1 -0
- package/dist/services/suppliers/index.d.ts +15 -6
- package/dist/services/suppliers/index.d.ts.map +1 -1
- package/dist/services/suppliers/index.js +15 -6
- package/dist/services/suppliers/index.js.map +1 -1
- package/dist/services/types.d.ts +2 -0
- package/dist/services/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/models/integrations/sageone/Companies/Company.d.ts +0 -12
- package/dist/models/integrations/sageone/Companies/Company.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Companies/Company.js +0 -6
- package/dist/models/integrations/sageone/Companies/Company.js.map +0 -1
- package/dist/models/integrations/sageone/Companies/CompanyEntityType.d.ts +0 -9
- package/dist/models/integrations/sageone/Companies/CompanyEntityType.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Companies/CompanyEntityType.js +0 -6
- package/dist/models/integrations/sageone/Companies/CompanyEntityType.js.map +0 -1
- package/dist/models/integrations/sageone/Companies/CompanyNote.d.ts +0 -12
- package/dist/models/integrations/sageone/Companies/CompanyNote.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Companies/CompanyNote.js +0 -6
- package/dist/models/integrations/sageone/Companies/CompanyNote.js.map +0 -1
- package/dist/models/integrations/sageone/Companies/index.d.ts +0 -8
- package/dist/models/integrations/sageone/Companies/index.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Companies/index.js +0 -8
- package/dist/models/integrations/sageone/Companies/index.js.map +0 -1
- package/dist/models/integrations/sageone/Items/Account.d.ts +0 -24
- package/dist/models/integrations/sageone/Items/Account.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/Account.js +0 -6
- package/dist/models/integrations/sageone/Items/Account.js.map +0 -1
- package/dist/models/integrations/sageone/Items/AccountCategory.d.ts +0 -13
- package/dist/models/integrations/sageone/Items/AccountCategory.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/AccountCategory.js +0 -6
- package/dist/models/integrations/sageone/Items/AccountCategory.js.map +0 -1
- package/dist/models/integrations/sageone/Items/AdditionalItemPrice.d.ts +0 -12
- package/dist/models/integrations/sageone/Items/AdditionalItemPrice.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/AdditionalItemPrice.js +0 -6
- package/dist/models/integrations/sageone/Items/AdditionalItemPrice.js.map +0 -1
- package/dist/models/integrations/sageone/Items/Item.d.ts +0 -69
- package/dist/models/integrations/sageone/Items/Item.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/Item.js +0 -6
- package/dist/models/integrations/sageone/Items/Item.js.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemAdjustment.d.ts +0 -17
- package/dist/models/integrations/sageone/Items/ItemAdjustment.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemAdjustment.js +0 -6
- package/dist/models/integrations/sageone/Items/ItemAdjustment.js.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemAttachment.d.ts +0 -11
- package/dist/models/integrations/sageone/Items/ItemAttachment.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemAttachment.js +0 -6
- package/dist/models/integrations/sageone/Items/ItemAttachment.js.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemCategory.d.ts +0 -11
- package/dist/models/integrations/sageone/Items/ItemCategory.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemCategory.js +0 -6
- package/dist/models/integrations/sageone/Items/ItemCategory.js.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemNote.d.ts +0 -18
- package/dist/models/integrations/sageone/Items/ItemNote.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemNote.js +0 -6
- package/dist/models/integrations/sageone/Items/ItemNote.js.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemReportGroup.d.ts +0 -15
- package/dist/models/integrations/sageone/Items/ItemReportGroup.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/ItemReportGroup.js +0 -6
- package/dist/models/integrations/sageone/Items/ItemReportGroup.js.map +0 -1
- package/dist/models/integrations/sageone/Items/TaxType.d.ts +0 -18
- package/dist/models/integrations/sageone/Items/TaxType.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/TaxType.js +0 -6
- package/dist/models/integrations/sageone/Items/TaxType.js.map +0 -1
- package/dist/models/integrations/sageone/Items/index.d.ts +0 -15
- package/dist/models/integrations/sageone/Items/index.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Items/index.js +0 -15
- package/dist/models/integrations/sageone/Items/index.js.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.d.ts +0 -11
- package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.d.ts.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.js +0 -6
- package/dist/models/integrations/sageone/PurchaseOrders/EmailPurchaseOrder.js.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.d.ts +0 -17
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.d.ts.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.js +0 -6
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrder.js.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.d.ts +0 -12
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.d.ts.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.js +0 -6
- package/dist/models/integrations/sageone/PurchaseOrders/PurchaseOrderLine.js.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/index.d.ts +0 -8
- package/dist/models/integrations/sageone/PurchaseOrders/index.d.ts.map +0 -1
- package/dist/models/integrations/sageone/PurchaseOrders/index.js +0 -8
- package/dist/models/integrations/sageone/PurchaseOrders/index.js.map +0 -1
- package/dist/models/integrations/sageone/SageOneApiConfig.d.ts +0 -15
- package/dist/models/integrations/sageone/SageOneApiConfig.d.ts.map +0 -1
- package/dist/models/integrations/sageone/SageOneApiConfig.js +0 -6
- package/dist/models/integrations/sageone/SageOneApiConfig.js.map +0 -1
- package/dist/models/integrations/sageone/SageOneResponse.d.ts +0 -10
- package/dist/models/integrations/sageone/SageOneResponse.d.ts.map +0 -1
- package/dist/models/integrations/sageone/SageOneResponse.js +0 -6
- package/dist/models/integrations/sageone/SageOneResponse.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/Supplier.d.ts +0 -54
- package/dist/models/integrations/sageone/Suppliers/Supplier.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/Supplier.js +0 -6
- package/dist/models/integrations/sageone/Suppliers/Supplier.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.d.ts +0 -18
- package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.js +0 -6
- package/dist/models/integrations/sageone/Suppliers/SupplierAdditionalContactDetail.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.d.ts +0 -17
- package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.js +0 -6
- package/dist/models/integrations/sageone/Suppliers/SupplierBankDetail.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierCategory.d.ts +0 -11
- package/dist/models/integrations/sageone/Suppliers/SupplierCategory.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierCategory.js +0 -6
- package/dist/models/integrations/sageone/Suppliers/SupplierCategory.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierNote.d.ts +0 -18
- package/dist/models/integrations/sageone/Suppliers/SupplierNote.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/SupplierNote.js +0 -6
- package/dist/models/integrations/sageone/Suppliers/SupplierNote.js.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/index.d.ts +0 -8
- package/dist/models/integrations/sageone/Suppliers/index.d.ts.map +0 -1
- package/dist/models/integrations/sageone/Suppliers/index.js +0 -8
- package/dist/models/integrations/sageone/Suppliers/index.js.map +0 -1
- package/dist/models/integrations/sageone/index.d.ts +0 -11
- package/dist/models/integrations/sageone/index.d.ts.map +0 -1
- package/dist/models/integrations/sageone/index.js +0 -13
- package/dist/models/integrations/sageone/index.js.map +0 -1
- package/dist/models/procurements/CacheKeys/SageItemCacheKeys.d.ts +0 -11
- package/dist/models/procurements/CacheKeys/SageItemCacheKeys.d.ts.map +0 -1
- package/dist/models/procurements/CacheKeys/SageItemCacheKeys.js +0 -10
- package/dist/models/procurements/CacheKeys/SageItemCacheKeys.js.map +0 -1
- package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.d.ts +0 -11
- package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.d.ts.map +0 -1
- package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.js +0 -10
- package/dist/models/procurements/CacheKeys/SagePurchaseOrderCacheKeys.js.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplier.d.ts +0 -54
- package/dist/models/suppliers/SageOne/SageOneSupplier.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplier.js +0 -6
- package/dist/models/suppliers/SageOne/SageOneSupplier.js.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.d.ts +0 -17
- package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.js +0 -6
- package/dist/models/suppliers/SageOne/SageOneSupplierBankDetail.js.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierCategory.d.ts +0 -11
- package/dist/models/suppliers/SageOne/SageOneSupplierCategory.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierCategory.js +0 -6
- package/dist/models/suppliers/SageOne/SageOneSupplierCategory.js.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierContact.d.ts +0 -18
- package/dist/models/suppliers/SageOne/SageOneSupplierContact.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierContact.js +0 -6
- package/dist/models/suppliers/SageOne/SageOneSupplierContact.js.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierNote.d.ts +0 -18
- package/dist/models/suppliers/SageOne/SageOneSupplierNote.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/SageOneSupplierNote.js +0 -6
- package/dist/models/suppliers/SageOne/SageOneSupplierNote.js.map +0 -1
- package/dist/models/suppliers/SageOne/index.d.ts +0 -10
- package/dist/models/suppliers/SageOne/index.d.ts.map +0 -1
- package/dist/models/suppliers/SageOne/index.js +0 -10
- package/dist/models/suppliers/SageOne/index.js.map +0 -1
- package/dist/services/procurements/SageCompanyService.d.ts +0 -92
- package/dist/services/procurements/SageCompanyService.d.ts.map +0 -1
- package/dist/services/procurements/SageCompanyService.js +0 -139
- package/dist/services/procurements/SageCompanyService.js.map +0 -1
- package/dist/services/procurements/SageItemService.d.ts +0 -214
- package/dist/services/procurements/SageItemService.d.ts.map +0 -1
- package/dist/services/procurements/SageItemService.js +0 -348
- package/dist/services/procurements/SageItemService.js.map +0 -1
- package/dist/services/procurements/SagePurchaseOrderService.d.ts +0 -103
- package/dist/services/procurements/SagePurchaseOrderService.d.ts.map +0 -1
- package/dist/services/procurements/SagePurchaseOrderService.js +0 -164
- package/dist/services/procurements/SagePurchaseOrderService.js.map +0 -1
- package/dist/services/suppliers/SupplierBankDetailService.d.ts +0 -32
- package/dist/services/suppliers/SupplierBankDetailService.d.ts.map +0 -1
- package/dist/services/suppliers/SupplierBankDetailService.js +0 -42
- package/dist/services/suppliers/SupplierBankDetailService.js.map +0 -1
- package/dist/services/suppliers/SupplierCategoryService.d.ts +0 -19
- package/dist/services/suppliers/SupplierCategoryService.d.ts.map +0 -1
- package/dist/services/suppliers/SupplierCategoryService.js +0 -22
- package/dist/services/suppliers/SupplierCategoryService.js.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceBlockoutService
|
|
3
|
+
* Service for managing bookable resource blockout periods
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource blockout CRUD operations with resource-specific and active queries
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceBlockoutService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceBlockoutService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceBlockoutService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// ==================== GET BY RESOURCE ====================
|
|
18
|
+
/**
|
|
19
|
+
* Get all blockout periods for a specific bookable resource
|
|
20
|
+
* @param resourceId - The bookable resource ID
|
|
21
|
+
* @returns Array of bookable resource blockouts
|
|
22
|
+
*/
|
|
23
|
+
async getByResource(resourceId) {
|
|
24
|
+
const response = await this.getByResourceRaw(resourceId);
|
|
25
|
+
return response.data ?? [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all blockout periods for a specific bookable resource with full response
|
|
29
|
+
* @param resourceId - The bookable resource ID
|
|
30
|
+
* @returns ResponseData with array of bookable resource blockouts
|
|
31
|
+
*/
|
|
32
|
+
getByResourceRaw(resourceId) {
|
|
33
|
+
const url = this.buildUrl(`by-resource/${resourceId}`);
|
|
34
|
+
return this.http.get(url);
|
|
35
|
+
}
|
|
36
|
+
// ==================== GET ACTIVE ====================
|
|
37
|
+
/**
|
|
38
|
+
* Get all currently active blockout periods
|
|
39
|
+
* @returns Array of active bookable resource blockouts
|
|
40
|
+
*/
|
|
41
|
+
async getActive() {
|
|
42
|
+
const response = await this.getActiveRaw();
|
|
43
|
+
return response.data ?? [];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get all currently active blockout periods with full response
|
|
47
|
+
* @returns ResponseData with array of active bookable resource blockouts
|
|
48
|
+
*/
|
|
49
|
+
getActiveRaw() {
|
|
50
|
+
const url = this.buildUrl('active');
|
|
51
|
+
return this.http.get(url);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
BookableResourceBlockoutService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
55
|
+
BookableResourceBlockoutService.BASE_PATH = 'api/bookable-resource-blockouts';
|
|
56
|
+
//# sourceMappingURL=BookableResourceBlockoutService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceBlockoutService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceBlockoutService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,WAIpD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,+BAA+B,CAAC,oBAAoB;YACxF,QAAQ,EAAE,+BAA+B,CAAC,SAAS;YACnD,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,CAA6B,GAAG,CAAC,CAAC;IACxD,CAAC;IAED,uDAAuD;IAEvD;;;OAGG;IACH,KAAK,CAAC,SAAS;QACb,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC3C,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA6B,GAAG,CAAC,CAAC;IACxD,CAAC;;AAnDuB,oDAAoB,GAAG,oBAAoB,CAAC;AAC5C,yCAAS,GAAG,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceBlockoutTypeService
|
|
3
|
+
* Service for managing bookable resource blockout types
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
import type { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import type { ServiceConfig } from '../types';
|
|
8
|
+
import type { BookableResourceBlockoutType } from '../../models/bookings';
|
|
9
|
+
/**
|
|
10
|
+
* Service for bookable resource blockout type CRUD operations
|
|
11
|
+
*/
|
|
12
|
+
export declare class BookableResourceBlockoutTypeService extends CrudService<BookableResourceBlockoutType, Partial<BookableResourceBlockoutType>, Partial<BookableResourceBlockoutType>> {
|
|
13
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
14
|
+
private static readonly BASE_PATH;
|
|
15
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=BookableResourceBlockoutTypeService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceBlockoutTypeService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceBlockoutTypeService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,WAAW,CAClE,4BAA4B,EAC5B,OAAO,CAAC,4BAA4B,CAAC,EACrC,OAAO,CAAC,4BAA4B,CAAC,CACtC;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA0C;gBAE/D,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;CAOrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceBlockoutTypeService
|
|
3
|
+
* Service for managing bookable resource blockout types
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource blockout type CRUD operations
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceBlockoutTypeService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceBlockoutTypeService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceBlockoutTypeService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
BookableResourceBlockoutTypeService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
19
|
+
BookableResourceBlockoutTypeService.BASE_PATH = 'api/bookable-resource-blockout-types';
|
|
20
|
+
//# sourceMappingURL=BookableResourceBlockoutTypeService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceBlockoutTypeService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceBlockoutTypeService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD;;GAEG;AACH,MAAM,OAAO,mCAAoC,SAAQ,WAIxD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,mCAAmC,CAAC,oBAAoB;YAC5F,QAAQ,EAAE,mCAAmC,CAAC,SAAS;YACvD,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;;AATuB,wDAAoB,GAAG,oBAAoB,CAAC;AAC5C,6CAAS,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceImageService
|
|
3
|
+
* Service for managing bookable resource images
|
|
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 { BookableResourceImage } from '../../models/bookings';
|
|
10
|
+
/**
|
|
11
|
+
* Service for bookable resource image CRUD operations with resource-specific queries
|
|
12
|
+
*/
|
|
13
|
+
export declare class BookableResourceImageService extends CrudService<BookableResourceImage, Partial<BookableResourceImage>, Partial<BookableResourceImage>> {
|
|
14
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
15
|
+
private static readonly BASE_PATH;
|
|
16
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
17
|
+
/**
|
|
18
|
+
* Get all images for a specific bookable resource
|
|
19
|
+
* @param resourceId - The bookable resource ID
|
|
20
|
+
* @returns Array of bookable resource images
|
|
21
|
+
*/
|
|
22
|
+
getByResource(resourceId: number): Promise<BookableResourceImage[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all images for a specific bookable resource with full response
|
|
25
|
+
* @param resourceId - The bookable resource ID
|
|
26
|
+
* @returns ResponseData with array of bookable resource images
|
|
27
|
+
*/
|
|
28
|
+
getByResourceRaw(resourceId: number): Promise<ResponseData<BookableResourceImage[]>>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=BookableResourceImageService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceImageService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceImageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;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,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,WAAW,CAC3D,qBAAqB,EACrB,OAAO,CAAC,qBAAqB,CAAC,EAC9B,OAAO,CAAC,qBAAqB,CAAC,CAC/B;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAkC;gBAEvD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;;OAIG;IACG,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAKzE;;;;OAIG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC,CAAC;CAIrF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceImageService
|
|
3
|
+
* Service for managing bookable resource images
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource image CRUD operations with resource-specific queries
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceImageService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceImageService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceImageService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// ==================== GET BY RESOURCE ====================
|
|
18
|
+
/**
|
|
19
|
+
* Get all images for a specific bookable resource
|
|
20
|
+
* @param resourceId - The bookable resource ID
|
|
21
|
+
* @returns Array of bookable resource images
|
|
22
|
+
*/
|
|
23
|
+
async getByResource(resourceId) {
|
|
24
|
+
const response = await this.getByResourceRaw(resourceId);
|
|
25
|
+
return response.data ?? [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all images for a specific bookable resource with full response
|
|
29
|
+
* @param resourceId - The bookable resource ID
|
|
30
|
+
* @returns ResponseData with array of bookable resource images
|
|
31
|
+
*/
|
|
32
|
+
getByResourceRaw(resourceId) {
|
|
33
|
+
const url = this.buildUrl(`by-resource/${resourceId}`);
|
|
34
|
+
return this.http.get(url);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
BookableResourceImageService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
38
|
+
BookableResourceImageService.BASE_PATH = 'api/bookable-resource-images';
|
|
39
|
+
//# sourceMappingURL=BookableResourceImageService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceImageService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceImageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD;;GAEG;AACH,MAAM,OAAO,4BAA6B,SAAQ,WAIjD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,4BAA4B,CAAC,oBAAoB;YACrF,QAAQ,EAAE,4BAA4B,CAAC,SAAS;YAChD,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,CAA0B,GAAG,CAAC,CAAC;IACrD,CAAC;;AA/BuB,iDAAoB,GAAG,oBAAoB,CAAC;AAC5C,sCAAS,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceService
|
|
3
|
+
* Service for managing bookable resources with availability checking 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 { BookableResource, ResourceAvailabilityResult, BookableResourceModelView } from '../../models/bookings';
|
|
10
|
+
/**
|
|
11
|
+
* Service for bookable resource CRUD operations with availability and view endpoints
|
|
12
|
+
*/
|
|
13
|
+
export declare class BookableResourceService extends CrudService<BookableResource> {
|
|
14
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
15
|
+
private static readonly BASE_PATH;
|
|
16
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
17
|
+
/**
|
|
18
|
+
* Get all bookable resources by type
|
|
19
|
+
* @param typeId - The resource type ID
|
|
20
|
+
* @returns Array of bookable resources matching the type
|
|
21
|
+
*/
|
|
22
|
+
getByType(typeId: number): Promise<BookableResource[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all bookable resources by type with full response
|
|
25
|
+
* @param typeId - The resource type ID
|
|
26
|
+
* @returns ResponseData with array of bookable resources
|
|
27
|
+
*/
|
|
28
|
+
getByTypeRaw(typeId: number): Promise<ResponseData<BookableResource[]>>;
|
|
29
|
+
/**
|
|
30
|
+
* Get all bookable resources by location
|
|
31
|
+
* @param locationId - The location ID
|
|
32
|
+
* @returns Array of bookable resources at the location
|
|
33
|
+
*/
|
|
34
|
+
getByLocation(locationId: number): Promise<BookableResource[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Get all bookable resources by location with full response
|
|
37
|
+
* @param locationId - The location ID
|
|
38
|
+
* @returns ResponseData with array of bookable resources
|
|
39
|
+
*/
|
|
40
|
+
getByLocationRaw(locationId: number): Promise<ResponseData<BookableResource[]>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get all active bookable resources
|
|
43
|
+
* @returns Array of active bookable resources
|
|
44
|
+
*/
|
|
45
|
+
getActive(): Promise<BookableResource[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Get all active bookable resources with full response
|
|
48
|
+
* @returns ResponseData with array of active bookable resources
|
|
49
|
+
*/
|
|
50
|
+
getActiveRaw(): Promise<ResponseData<BookableResource[]>>;
|
|
51
|
+
/**
|
|
52
|
+
* Check availability of a bookable resource for a given time range
|
|
53
|
+
* @param resourceId - The resource ID
|
|
54
|
+
* @param startDateTime - Start date/time as epoch timestamp
|
|
55
|
+
* @param endDateTime - End date/time as epoch timestamp
|
|
56
|
+
* @returns Resource availability result
|
|
57
|
+
*/
|
|
58
|
+
checkAvailability(resourceId: number, startDateTime: number, endDateTime: number): Promise<ResourceAvailabilityResult>;
|
|
59
|
+
/**
|
|
60
|
+
* Check availability of a bookable resource for a given time range with full response
|
|
61
|
+
* @param resourceId - The resource ID
|
|
62
|
+
* @param startDateTime - Start date/time as epoch timestamp
|
|
63
|
+
* @param endDateTime - End date/time as epoch timestamp
|
|
64
|
+
* @returns ResponseData with resource availability result
|
|
65
|
+
*/
|
|
66
|
+
checkAvailabilityRaw(resourceId: number, startDateTime: number, endDateTime: number): Promise<ResponseData<ResourceAvailabilityResult>>;
|
|
67
|
+
/**
|
|
68
|
+
* Change the status of a bookable resource
|
|
69
|
+
* @param resourceId - The resource ID
|
|
70
|
+
* @param statusId - The new status ID
|
|
71
|
+
* @returns Updated bookable resource
|
|
72
|
+
*/
|
|
73
|
+
changeStatus(resourceId: number, statusId: number): Promise<BookableResource>;
|
|
74
|
+
/**
|
|
75
|
+
* Change the status of a bookable resource with full response
|
|
76
|
+
* @param resourceId - The resource ID
|
|
77
|
+
* @param statusId - The new status ID
|
|
78
|
+
* @returns ResponseData with updated bookable resource
|
|
79
|
+
*/
|
|
80
|
+
changeStatusRaw(resourceId: number, statusId: number): Promise<ResponseData<BookableResource>>;
|
|
81
|
+
/**
|
|
82
|
+
* Get bookable resource view by ID
|
|
83
|
+
* @param id - The resource ID
|
|
84
|
+
* @returns Bookable resource model view
|
|
85
|
+
*/
|
|
86
|
+
getView(id: number): Promise<BookableResourceModelView>;
|
|
87
|
+
/**
|
|
88
|
+
* Get bookable resource view by ID with full response
|
|
89
|
+
* @param id - The resource ID
|
|
90
|
+
* @returns ResponseData with bookable resource model view
|
|
91
|
+
*/
|
|
92
|
+
getViewRaw(id: number): Promise<ResponseData<BookableResourceModelView>>;
|
|
93
|
+
/**
|
|
94
|
+
* Get all bookable resource list views
|
|
95
|
+
* @returns Array of bookable resource model views
|
|
96
|
+
*/
|
|
97
|
+
getListView(): Promise<BookableResourceModelView[]>;
|
|
98
|
+
/**
|
|
99
|
+
* Get all bookable resource list views with full response
|
|
100
|
+
* @returns ResponseData with array of bookable resource model views
|
|
101
|
+
*/
|
|
102
|
+
getListViewRaw(): Promise<ResponseData<BookableResourceModelView[]>>;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=BookableResourceService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceService.ts"],"names":[],"mappings":"AAAA;;;GAGG;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,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAW,CAAC,gBAAgB,CAAC;IACxE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA4B;gBAEjD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;;OAIG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAK5D;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAOvE;;;;OAIG;IACG,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAKpE;;;;OAIG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAO/E;;;OAGG;IACG,SAAS,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAK9C;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAOzD;;;;;;OAMG;IACG,iBAAiB,CACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,0BAA0B,CAAC;IAQtC;;;;;;OAMG;IACH,oBAAoB,CAClB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAAC;IAUpD;;;;;OAKG;IACG,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAQnF;;;;;OAKG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAO9F;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAQ7D;;;;OAIG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;IAKxE;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAKzD;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC,yBAAyB,EAAE,CAAC,CAAC;CAIrE"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceService
|
|
3
|
+
* Service for managing bookable resources with availability checking and view endpoints
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource CRUD operations with availability and view endpoints
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// ==================== GET BY TYPE ====================
|
|
18
|
+
/**
|
|
19
|
+
* Get all bookable resources by type
|
|
20
|
+
* @param typeId - The resource type ID
|
|
21
|
+
* @returns Array of bookable resources matching the type
|
|
22
|
+
*/
|
|
23
|
+
async getByType(typeId) {
|
|
24
|
+
const response = await this.getByTypeRaw(typeId);
|
|
25
|
+
return response.data ?? [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all bookable resources by type with full response
|
|
29
|
+
* @param typeId - The resource type ID
|
|
30
|
+
* @returns ResponseData with array of bookable resources
|
|
31
|
+
*/
|
|
32
|
+
getByTypeRaw(typeId) {
|
|
33
|
+
const url = this.buildUrl(`by-type/${typeId}`);
|
|
34
|
+
return this.http.get(url);
|
|
35
|
+
}
|
|
36
|
+
// ==================== GET BY LOCATION ====================
|
|
37
|
+
/**
|
|
38
|
+
* Get all bookable resources by location
|
|
39
|
+
* @param locationId - The location ID
|
|
40
|
+
* @returns Array of bookable resources at the location
|
|
41
|
+
*/
|
|
42
|
+
async getByLocation(locationId) {
|
|
43
|
+
const response = await this.getByLocationRaw(locationId);
|
|
44
|
+
return response.data ?? [];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get all bookable resources by location with full response
|
|
48
|
+
* @param locationId - The location ID
|
|
49
|
+
* @returns ResponseData with array of bookable resources
|
|
50
|
+
*/
|
|
51
|
+
getByLocationRaw(locationId) {
|
|
52
|
+
const url = this.buildUrl(`by-location/${locationId}`);
|
|
53
|
+
return this.http.get(url);
|
|
54
|
+
}
|
|
55
|
+
// ==================== GET ACTIVE ====================
|
|
56
|
+
/**
|
|
57
|
+
* Get all active bookable resources
|
|
58
|
+
* @returns Array of active bookable resources
|
|
59
|
+
*/
|
|
60
|
+
async getActive() {
|
|
61
|
+
const response = await this.getActiveRaw();
|
|
62
|
+
return response.data ?? [];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get all active bookable resources with full response
|
|
66
|
+
* @returns ResponseData with array of active bookable resources
|
|
67
|
+
*/
|
|
68
|
+
getActiveRaw() {
|
|
69
|
+
const url = this.buildUrl('active');
|
|
70
|
+
return this.http.get(url);
|
|
71
|
+
}
|
|
72
|
+
// ==================== CHECK AVAILABILITY ====================
|
|
73
|
+
/**
|
|
74
|
+
* Check availability of a bookable resource for a given time range
|
|
75
|
+
* @param resourceId - The resource ID
|
|
76
|
+
* @param startDateTime - Start date/time as epoch timestamp
|
|
77
|
+
* @param endDateTime - End date/time as epoch timestamp
|
|
78
|
+
* @returns Resource availability result
|
|
79
|
+
*/
|
|
80
|
+
async checkAvailability(resourceId, startDateTime, endDateTime) {
|
|
81
|
+
const response = await this.checkAvailabilityRaw(resourceId, startDateTime, endDateTime);
|
|
82
|
+
if (!response.data) {
|
|
83
|
+
throw new Error(`Failed to check availability for resource ${resourceId}`);
|
|
84
|
+
}
|
|
85
|
+
return response.data;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check availability of a bookable resource for a given time range with full response
|
|
89
|
+
* @param resourceId - The resource ID
|
|
90
|
+
* @param startDateTime - Start date/time as epoch timestamp
|
|
91
|
+
* @param endDateTime - End date/time as epoch timestamp
|
|
92
|
+
* @returns ResponseData with resource availability result
|
|
93
|
+
*/
|
|
94
|
+
checkAvailabilityRaw(resourceId, startDateTime, endDateTime) {
|
|
95
|
+
const url = this.buildUrlWithParams(`${resourceId}/availability`, {
|
|
96
|
+
start: startDateTime,
|
|
97
|
+
end: endDateTime,
|
|
98
|
+
});
|
|
99
|
+
return this.http.get(url);
|
|
100
|
+
}
|
|
101
|
+
// ==================== CHANGE STATUS ====================
|
|
102
|
+
/**
|
|
103
|
+
* Change the status of a bookable resource
|
|
104
|
+
* @param resourceId - The resource ID
|
|
105
|
+
* @param statusId - The new status ID
|
|
106
|
+
* @returns Updated bookable resource
|
|
107
|
+
*/
|
|
108
|
+
async changeStatus(resourceId, statusId) {
|
|
109
|
+
const response = await this.changeStatusRaw(resourceId, statusId);
|
|
110
|
+
if (!response.data) {
|
|
111
|
+
throw new Error(`Failed to change status for resource ${resourceId}`);
|
|
112
|
+
}
|
|
113
|
+
return response.data;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Change the status of a bookable resource with full response
|
|
117
|
+
* @param resourceId - The resource ID
|
|
118
|
+
* @param statusId - The new status ID
|
|
119
|
+
* @returns ResponseData with updated bookable resource
|
|
120
|
+
*/
|
|
121
|
+
changeStatusRaw(resourceId, statusId) {
|
|
122
|
+
const url = this.buildUrl(`${resourceId}/status`);
|
|
123
|
+
return this.http.put(url, { statusId });
|
|
124
|
+
}
|
|
125
|
+
// ==================== VIEW ENDPOINTS ====================
|
|
126
|
+
/**
|
|
127
|
+
* Get bookable resource view by ID
|
|
128
|
+
* @param id - The resource ID
|
|
129
|
+
* @returns Bookable resource model view
|
|
130
|
+
*/
|
|
131
|
+
async getView(id) {
|
|
132
|
+
const response = await this.getViewRaw(id);
|
|
133
|
+
if (!response.data) {
|
|
134
|
+
throw new Error(`Bookable resource view with ID ${id} not found`);
|
|
135
|
+
}
|
|
136
|
+
return response.data;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get bookable resource view by ID with full response
|
|
140
|
+
* @param id - The resource ID
|
|
141
|
+
* @returns ResponseData with bookable resource model view
|
|
142
|
+
*/
|
|
143
|
+
getViewRaw(id) {
|
|
144
|
+
const url = this.buildUrl(`view/${id}`);
|
|
145
|
+
return this.http.get(url);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Get all bookable resource list views
|
|
149
|
+
* @returns Array of bookable resource model views
|
|
150
|
+
*/
|
|
151
|
+
async getListView() {
|
|
152
|
+
const response = await this.getListViewRaw();
|
|
153
|
+
return response.data ?? [];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Get all bookable resource list views with full response
|
|
157
|
+
* @returns ResponseData with array of bookable resource model views
|
|
158
|
+
*/
|
|
159
|
+
getListViewRaw() {
|
|
160
|
+
const url = this.buildUrl('list-view');
|
|
161
|
+
return this.http.get(url);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
BookableResourceService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
165
|
+
BookableResourceService.BASE_PATH = 'api/bookable-resources';
|
|
166
|
+
//# sourceMappingURL=BookableResourceService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceService.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceStatusService
|
|
3
|
+
* Service for managing bookable resource statuses
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
import type { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import type { ServiceConfig } from '../types';
|
|
8
|
+
import type { BookableResourceStatus } from '../../models/bookings';
|
|
9
|
+
/**
|
|
10
|
+
* Service for bookable resource status CRUD operations
|
|
11
|
+
*/
|
|
12
|
+
export declare class BookableResourceStatusService extends CrudService<BookableResourceStatus, Partial<BookableResourceStatus>, Partial<BookableResourceStatus>> {
|
|
13
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
14
|
+
private static readonly BASE_PATH;
|
|
15
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=BookableResourceStatusService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceStatusService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceStatusService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,WAAW,CAC5D,sBAAsB,EACtB,OAAO,CAAC,sBAAsB,CAAC,EAC/B,OAAO,CAAC,sBAAsB,CAAC,CAChC;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAoC;gBAEzD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;CAOrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceStatusService
|
|
3
|
+
* Service for managing bookable resource statuses
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource status CRUD operations
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceStatusService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceStatusService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceStatusService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
BookableResourceStatusService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
19
|
+
BookableResourceStatusService.BASE_PATH = 'api/bookable-resource-statuses';
|
|
20
|
+
//# sourceMappingURL=BookableResourceStatusService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceStatusService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceStatusService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,WAIlD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,6BAA6B,CAAC,oBAAoB;YACtF,QAAQ,EAAE,6BAA6B,CAAC,SAAS;YACjD,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;;AATuB,kDAAoB,GAAG,oBAAoB,CAAC;AAC5C,uCAAS,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceTypeService
|
|
3
|
+
* Service for managing bookable resource types
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
import type { HttpClient } from '../../core/HttpClient';
|
|
7
|
+
import type { ServiceConfig } from '../types';
|
|
8
|
+
import type { BookableResourceType } from '../../models/bookings';
|
|
9
|
+
/**
|
|
10
|
+
* Service for bookable resource type CRUD operations
|
|
11
|
+
*/
|
|
12
|
+
export declare class BookableResourceTypeService extends CrudService<BookableResourceType, Partial<BookableResourceType>, Partial<BookableResourceType>> {
|
|
13
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
14
|
+
private static readonly BASE_PATH;
|
|
15
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=BookableResourceTypeService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceTypeService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceTypeService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW,CAC1D,oBAAoB,EACpB,OAAO,CAAC,oBAAoB,CAAC,EAC7B,OAAO,CAAC,oBAAoB,CAAC,CAC9B;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAiC;gBAEtD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;CAOrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookableResourceTypeService
|
|
3
|
+
* Service for managing bookable resource types
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for bookable resource type CRUD operations
|
|
8
|
+
*/
|
|
9
|
+
export class BookableResourceTypeService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookableResourceTypeService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookableResourceTypeService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
BookableResourceTypeService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
19
|
+
BookableResourceTypeService.BASE_PATH = 'api/bookable-resource-types';
|
|
20
|
+
//# sourceMappingURL=BookableResourceTypeService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookableResourceTypeService.js","sourceRoot":"","sources":["../../../src/services/bookings/BookableResourceTypeService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAIhD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,2BAA2B,CAAC,oBAAoB;YACpF,QAAQ,EAAE,2BAA2B,CAAC,SAAS;YAC/C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;;AATuB,gDAAoB,GAAG,oBAAoB,CAAC;AAC5C,qCAAS,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookingAccessoryService
|
|
3
|
+
* Service for managing booking accessories
|
|
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 { BookingAccessory } from '../../models/bookings';
|
|
10
|
+
/**
|
|
11
|
+
* Service for booking accessory CRUD operations with resource-specific queries
|
|
12
|
+
*/
|
|
13
|
+
export declare class BookingAccessoryService extends CrudService<BookingAccessory, Partial<BookingAccessory>, Partial<BookingAccessory>> {
|
|
14
|
+
private static readonly DEFAULT_SERVICE_PATH;
|
|
15
|
+
private static readonly BASE_PATH;
|
|
16
|
+
constructor(http: HttpClient, config?: ServiceConfig);
|
|
17
|
+
/**
|
|
18
|
+
* Get all accessories for a specific bookable resource
|
|
19
|
+
* @param resourceId - The bookable resource ID
|
|
20
|
+
* @returns Array of booking accessories
|
|
21
|
+
*/
|
|
22
|
+
getByResource(resourceId: number): Promise<BookingAccessory[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all accessories for a specific bookable resource with full response
|
|
25
|
+
* @param resourceId - The bookable resource ID
|
|
26
|
+
* @returns ResponseData with array of booking accessories
|
|
27
|
+
*/
|
|
28
|
+
getByResourceRaw(resourceId: number): Promise<ResponseData<BookingAccessory[]>>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=BookingAccessoryService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookingAccessoryService.d.ts","sourceRoot":"","sources":["../../../src/services/bookings/BookingAccessoryService.ts"],"names":[],"mappings":"AAAA;;;GAGG;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,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAW,CACtD,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,EACzB,OAAO,CAAC,gBAAgB,CAAC,CAC1B;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IACpE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA6B;gBAElD,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAUpD;;;;OAIG;IACG,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAKpE;;;;OAIG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC,CAAC;CAIhF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BookingAccessoryService
|
|
3
|
+
* Service for managing booking accessories
|
|
4
|
+
*/
|
|
5
|
+
import { CrudService } from '../base/CrudService';
|
|
6
|
+
/**
|
|
7
|
+
* Service for booking accessory CRUD operations with resource-specific queries
|
|
8
|
+
*/
|
|
9
|
+
export class BookingAccessoryService extends CrudService {
|
|
10
|
+
constructor(http, config) {
|
|
11
|
+
super(http, {
|
|
12
|
+
servicePath: config?.servicePath ?? BookingAccessoryService.DEFAULT_SERVICE_PATH,
|
|
13
|
+
basePath: BookingAccessoryService.BASE_PATH,
|
|
14
|
+
endpoints: config?.endpoints,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// ==================== GET BY RESOURCE ====================
|
|
18
|
+
/**
|
|
19
|
+
* Get all accessories for a specific bookable resource
|
|
20
|
+
* @param resourceId - The bookable resource ID
|
|
21
|
+
* @returns Array of booking accessories
|
|
22
|
+
*/
|
|
23
|
+
async getByResource(resourceId) {
|
|
24
|
+
const response = await this.getByResourceRaw(resourceId);
|
|
25
|
+
return response.data ?? [];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all accessories for a specific bookable resource with full response
|
|
29
|
+
* @param resourceId - The bookable resource ID
|
|
30
|
+
* @returns ResponseData with array of booking accessories
|
|
31
|
+
*/
|
|
32
|
+
getByResourceRaw(resourceId) {
|
|
33
|
+
const url = this.buildUrl(`by-resource/${resourceId}`);
|
|
34
|
+
return this.http.get(url);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
BookingAccessoryService.DEFAULT_SERVICE_PATH = 'booking-management';
|
|
38
|
+
BookingAccessoryService.BASE_PATH = 'api/booking-accessories';
|
|
39
|
+
//# sourceMappingURL=BookingAccessoryService.js.map
|