@platform-modules/civil-aviation-authority 2.3.93 → 2.3.94

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 (308) hide show
  1. package/dist/data-source.d.ts +4 -0
  2. package/dist/data-source.js +288 -0
  3. package/dist/helpers/utils/enum.d.ts +75 -0
  4. package/dist/helpers/utils/enum.js +53 -0
  5. package/dist/index.d.ts +226 -0
  6. package/dist/index.js +342 -0
  7. package/dist/models/AccessCardApprovalModel.d.ts +23 -0
  8. package/dist/models/AccessCardApprovalModel.js +101 -0
  9. package/dist/models/AccessCardAttachmentModel.d.ts +12 -0
  10. package/dist/models/AccessCardAttachmentModel.js +64 -0
  11. package/dist/models/AccessCardChatModel.d.ts +20 -0
  12. package/dist/models/AccessCardChatModel.js +78 -0
  13. package/dist/models/AccessCardRequestModel.d.ts +43 -0
  14. package/dist/models/AccessCardRequestModel.js +148 -0
  15. package/dist/models/AccessCardWorkflowModel.d.ts +18 -0
  16. package/dist/models/AccessCardWorkflowModel.js +80 -0
  17. package/dist/models/AirportEntryPermitApprovalModel.d.ts +25 -0
  18. package/dist/models/AirportEntryPermitApprovalModel.js +102 -0
  19. package/dist/models/AirportEntryPermitAttachmentModel.d.ts +14 -0
  20. package/dist/models/AirportEntryPermitAttachmentModel.js +74 -0
  21. package/dist/models/AirportEntryPermitChatModel.d.ts +20 -0
  22. package/dist/models/AirportEntryPermitChatModel.js +78 -0
  23. package/dist/models/AirportEntryPermitModel.d.ts +93 -0
  24. package/dist/models/AirportEntryPermitModel.js +267 -0
  25. package/dist/models/AirportEntryPermitWorkflowModel.d.ts +18 -0
  26. package/dist/models/AirportEntryPermitWorkflowModel.js +75 -0
  27. package/dist/models/AnnualIncrementRequestModel.d.ts +31 -0
  28. package/dist/models/AnnualIncrementRequestModel.js +128 -0
  29. package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
  30. package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
  31. package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
  32. package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
  33. package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
  34. package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
  35. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
  36. package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
  37. package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
  38. package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
  39. package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
  40. package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
  41. package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
  42. package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
  43. package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
  44. package/dist/models/AssignTasksEmpChatModel.js +77 -0
  45. package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
  46. package/dist/models/AssignTasksEmpRequestModel.js +100 -0
  47. package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
  48. package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
  49. package/dist/models/BaseModel.d.ts +14 -0
  50. package/dist/models/BaseModel.js +66 -0
  51. package/dist/models/CAAServices.d.ts +8 -0
  52. package/dist/models/CAAServices.js +44 -0
  53. package/dist/models/CAASubServices.d.ts +11 -0
  54. package/dist/models/CAASubServices.js +55 -0
  55. package/dist/models/CashAllowanceLeaveRequestModel.d.ts +33 -0
  56. package/dist/models/CashAllowanceLeaveRequestModel.js +138 -0
  57. package/dist/models/CityMasterModel.d.ts +8 -0
  58. package/dist/models/CityMasterModel.js +41 -0
  59. package/dist/models/CountryMasterModel.d.ts +11 -0
  60. package/dist/models/CountryMasterModel.js +55 -0
  61. package/dist/models/DelegateSettingsModel.d.ts +9 -0
  62. package/dist/models/DelegateSettingsModel.js +50 -0
  63. package/dist/models/DepartmentDocumentOwnerModel.d.ts +10 -0
  64. package/dist/models/DepartmentDocumentOwnerModel.js +44 -0
  65. package/dist/models/DepartmentsModel.d.ts +7 -0
  66. package/dist/models/DepartmentsModel.js +39 -0
  67. package/dist/models/DirectorateModel.d.ts +7 -0
  68. package/dist/models/DirectorateModel.js +39 -0
  69. package/dist/models/DocumentAuditLogModel.d.ts +13 -0
  70. package/dist/models/DocumentAuditLogModel.js +60 -0
  71. package/dist/models/DocumentFolderModel.d.ts +14 -0
  72. package/dist/models/DocumentFolderModel.js +60 -0
  73. package/dist/models/DocumentModel.d.ts +25 -0
  74. package/dist/models/DocumentModel.js +96 -0
  75. package/dist/models/DocumentPermissionModel.d.ts +11 -0
  76. package/dist/models/DocumentPermissionModel.js +52 -0
  77. package/dist/models/DocumentTypeModel.d.ts +8 -0
  78. package/dist/models/DocumentTypeModel.js +37 -0
  79. package/dist/models/DutyMissionAirTicketDetailsModel.d.ts +20 -0
  80. package/dist/models/DutyMissionAirTicketDetailsModel.js +100 -0
  81. package/dist/models/DutyMissionApprovalModel.d.ts +23 -0
  82. package/dist/models/DutyMissionApprovalModel.js +96 -0
  83. package/dist/models/DutyMissionAttachmentModel.d.ts +12 -0
  84. package/dist/models/DutyMissionAttachmentModel.js +64 -0
  85. package/dist/models/DutyMissionChatModel.d.ts +19 -0
  86. package/dist/models/DutyMissionChatModel.js +77 -0
  87. package/dist/models/DutyMissionEmployeeDetailsModel.d.ts +17 -0
  88. package/dist/models/DutyMissionEmployeeDetailsModel.js +85 -0
  89. package/dist/models/DutyMissionRequestModel.d.ts +68 -0
  90. package/dist/models/DutyMissionRequestModel.js +257 -0
  91. package/dist/models/DutyMissionWorkflowModel.d.ts +18 -0
  92. package/dist/models/DutyMissionWorkflowModel.js +76 -0
  93. package/dist/models/FinancialGradeModel.d.ts +12 -0
  94. package/dist/models/FinancialGradeModel.js +52 -0
  95. package/dist/models/GroupModel.d.ts +16 -0
  96. package/dist/models/GroupModel.js +44 -0
  97. package/dist/models/GroupNamesModel.d.ts +6 -0
  98. package/dist/models/GroupNamesModel.js +34 -0
  99. package/dist/models/HotelApprovalModel.d.ts +23 -0
  100. package/dist/models/HotelApprovalModel.js +96 -0
  101. package/dist/models/HotelAttachedModel.d.ts +14 -0
  102. package/dist/models/HotelAttachedModel.js +74 -0
  103. package/dist/models/HotelChatModel.d.ts +20 -0
  104. package/dist/models/HotelChatModel.js +78 -0
  105. package/dist/models/HotelWorkFlowModel.d.ts +17 -0
  106. package/dist/models/HotelWorkFlowModel.js +71 -0
  107. package/dist/models/HotelreservationModel.d.ts +46 -0
  108. package/dist/models/HotelreservationModel.js +182 -0
  109. package/dist/models/HrServiceApprovalModel.d.ts +27 -0
  110. package/dist/models/HrServiceApprovalModel.js +117 -0
  111. package/dist/models/HrServiceAttachmentModel.d.ts +13 -0
  112. package/dist/models/HrServiceAttachmentModel.js +69 -0
  113. package/dist/models/HrServiceChatModel.d.ts +28 -0
  114. package/dist/models/HrServiceChatModel.js +96 -0
  115. package/dist/models/HrServiceRequestModel.d.ts +46 -0
  116. package/dist/models/HrServiceRequestModel.js +205 -0
  117. package/dist/models/HrServiceWorkflowModel.d.ts +19 -0
  118. package/dist/models/HrServiceWorkflowModel.js +81 -0
  119. package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +35 -0
  120. package/dist/models/HumanResourceAnnualPlanningRequestModel.js +121 -0
  121. package/dist/models/HumanResourceAnnualPlanningTaskModel.d.ts +25 -0
  122. package/dist/models/HumanResourceAnnualPlanningTaskModel.js +83 -0
  123. package/dist/models/ITHelpDeskModel.d.ts +33 -0
  124. package/dist/models/ITHelpDeskModel.js +136 -0
  125. package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
  126. package/dist/models/ITRequestAttachmentModel.js +81 -0
  127. package/dist/models/ITRequestChatModel.d.ts +16 -0
  128. package/dist/models/ITRequestChatModel.js +76 -0
  129. package/dist/models/ItApprovalsModel.d.ts +24 -0
  130. package/dist/models/ItApprovalsModel.js +97 -0
  131. package/dist/models/ItWorkflowModel.d.ts +19 -0
  132. package/dist/models/ItWorkflowModel.js +81 -0
  133. package/dist/models/JobTransferRequestModel.d.ts +32 -0
  134. package/dist/models/JobTransferRequestModel.js +132 -0
  135. package/dist/models/LocationModel.d.ts +12 -0
  136. package/dist/models/LocationModel.js +62 -0
  137. package/dist/models/LogisticsApprovalModel.d.ts +23 -0
  138. package/dist/models/LogisticsApprovalModel.js +96 -0
  139. package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
  140. package/dist/models/LogisticsAttachmentModel.js +64 -0
  141. package/dist/models/LogisticsChatModel.d.ts +20 -0
  142. package/dist/models/LogisticsChatModel.js +78 -0
  143. package/dist/models/LogisticsForeignVehicleModel.d.ts +51 -0
  144. package/dist/models/LogisticsForeignVehicleModel.js +199 -0
  145. package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
  146. package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
  147. package/dist/models/LogisticsModel.d.ts +66 -0
  148. package/dist/models/LogisticsModel.js +237 -0
  149. package/dist/models/LogisticsVehicleMaintenanceApprovalModel.d.ts +23 -0
  150. package/dist/models/LogisticsVehicleMaintenanceApprovalModel.js +96 -0
  151. package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.d.ts +12 -0
  152. package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.js +64 -0
  153. package/dist/models/LogisticsVehicleMaintenanceChatModel.d.ts +20 -0
  154. package/dist/models/LogisticsVehicleMaintenanceChatModel.js +78 -0
  155. package/dist/models/LogisticsVehicleMaintenanceRequestModel.d.ts +28 -0
  156. package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +109 -0
  157. package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.d.ts +18 -0
  158. package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.js +76 -0
  159. package/dist/models/LogisticsWorkflowModel.d.ts +18 -0
  160. package/dist/models/LogisticsWorkflowModel.js +76 -0
  161. package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.d.ts +9 -0
  162. package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.js +49 -0
  163. package/dist/models/NationalityMasterModel.d.ts +10 -0
  164. package/dist/models/NationalityMasterModel.js +51 -0
  165. package/dist/models/NewResourceRequestModel.d.ts +32 -0
  166. package/dist/models/NewResourceRequestModel.js +133 -0
  167. package/dist/models/NotificationModel.d.ts +23 -0
  168. package/dist/models/NotificationModel.js +92 -0
  169. package/dist/models/PerformanceCyclePeriodModel.d.ts +7 -0
  170. package/dist/models/PerformanceCyclePeriodModel.js +40 -0
  171. package/dist/models/PerformanceGoalMasterModel.d.ts +8 -0
  172. package/dist/models/PerformanceGoalMasterModel.js +45 -0
  173. package/dist/models/PerformanceManagementRequestModel.d.ts +34 -0
  174. package/dist/models/PerformanceManagementRequestModel.js +128 -0
  175. package/dist/models/PortalFeedbackModel.d.ts +8 -0
  176. package/dist/models/PortalFeedbackModel.js +44 -0
  177. package/dist/models/PositionModel.d.ts +6 -0
  178. package/dist/models/PositionModel.js +34 -0
  179. package/dist/models/PromotionRequestModel.d.ts +32 -0
  180. package/dist/models/PromotionRequestModel.js +133 -0
  181. package/dist/models/RequestForCoverageApprovalModel.d.ts +26 -0
  182. package/dist/models/RequestForCoverageApprovalModel.js +108 -0
  183. package/dist/models/RequestForCoverageAttachmentModel.d.ts +13 -0
  184. package/dist/models/RequestForCoverageAttachmentModel.js +69 -0
  185. package/dist/models/RequestForCoverageChatModel.d.ts +26 -0
  186. package/dist/models/RequestForCoverageChatModel.js +89 -0
  187. package/dist/models/RequestForCoverageRequestModel.d.ts +49 -0
  188. package/dist/models/RequestForCoverageRequestModel.js +208 -0
  189. package/dist/models/RequestForCoverageWorkflowModel.d.ts +19 -0
  190. package/dist/models/RequestForCoverageWorkflowModel.js +81 -0
  191. package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +23 -0
  192. package/dist/models/ResidentialUnitRentalApprovalModel.js +88 -0
  193. package/dist/models/ResidentialUnitRentalAttachmentModel.d.ts +12 -0
  194. package/dist/models/ResidentialUnitRentalAttachmentModel.js +56 -0
  195. package/dist/models/ResidentialUnitRentalChatModel.d.ts +18 -0
  196. package/dist/models/ResidentialUnitRentalChatModel.js +60 -0
  197. package/dist/models/ResidentialUnitRentalRequestModel.d.ts +48 -0
  198. package/dist/models/ResidentialUnitRentalRequestModel.js +123 -0
  199. package/dist/models/ResidentialUnitRentalWorkflowModel.d.ts +25 -0
  200. package/dist/models/ResidentialUnitRentalWorkflowModel.js +88 -0
  201. package/dist/models/SecondmentRequestModel.d.ts +44 -0
  202. package/dist/models/SecondmentRequestModel.js +194 -0
  203. package/dist/models/SectionModel.d.ts +8 -0
  204. package/dist/models/SectionModel.js +44 -0
  205. package/dist/models/SecurityAwarenessApprovalModel.d.ts +24 -0
  206. package/dist/models/SecurityAwarenessApprovalModel.js +101 -0
  207. package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
  208. package/dist/models/SecurityAwarenessAttachmentModel.js +64 -0
  209. package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
  210. package/dist/models/SecurityAwarenessChatModel.js +78 -0
  211. package/dist/models/SecurityAwarenessRequestModel.d.ts +30 -0
  212. package/dist/models/SecurityAwarenessRequestModel.js +122 -0
  213. package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
  214. package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
  215. package/dist/models/SecurityThreatApprovalModel.d.ts +25 -0
  216. package/dist/models/SecurityThreatApprovalModel.js +102 -0
  217. package/dist/models/SecurityThreatAttachmentModel.d.ts +12 -0
  218. package/dist/models/SecurityThreatAttachmentModel.js +64 -0
  219. package/dist/models/SecurityThreatChatModel.d.ts +20 -0
  220. package/dist/models/SecurityThreatChatModel.js +78 -0
  221. package/dist/models/SecurityThreatRequestModel.d.ts +38 -0
  222. package/dist/models/SecurityThreatRequestModel.js +140 -0
  223. package/dist/models/SecurityThreatWorkflowModel.d.ts +18 -0
  224. package/dist/models/SecurityThreatWorkflowModel.js +76 -0
  225. package/dist/models/ServiceTransferRequestModel.d.ts +46 -0
  226. package/dist/models/ServiceTransferRequestModel.js +173 -0
  227. package/dist/models/ServiceTypeModel.d.ts +20 -0
  228. package/dist/models/ServiceTypeModel.js +88 -0
  229. package/dist/models/ServicesNotificationConfigModel.d.ts +15 -0
  230. package/dist/models/ServicesNotificationConfigModel.js +69 -0
  231. package/dist/models/ShiftAllowanceRequestModel.d.ts +39 -0
  232. package/dist/models/ShiftAllowanceRequestModel.js +150 -0
  233. package/dist/models/SkillsEnhancementRequestModel.d.ts +39 -0
  234. package/dist/models/SkillsEnhancementRequestModel.js +133 -0
  235. package/dist/models/StudyLeaveApprovalModel.d.ts +25 -0
  236. package/dist/models/StudyLeaveApprovalModel.js +107 -0
  237. package/dist/models/StudyLeaveAttachmentModel.d.ts +13 -0
  238. package/dist/models/StudyLeaveAttachmentModel.js +69 -0
  239. package/dist/models/StudyLeaveChatModel.d.ts +26 -0
  240. package/dist/models/StudyLeaveChatModel.js +89 -0
  241. package/dist/models/StudyLeaveRequestModel.d.ts +29 -0
  242. package/dist/models/StudyLeaveRequestModel.js +128 -0
  243. package/dist/models/StudyLeaveWorkflowModel.d.ts +19 -0
  244. package/dist/models/StudyLeaveWorkflowModel.js +81 -0
  245. package/dist/models/TemporaryAssignmentRequestModel.d.ts +51 -0
  246. package/dist/models/TemporaryAssignmentRequestModel.js +218 -0
  247. package/dist/models/TrainingApprovalModel.d.ts +25 -0
  248. package/dist/models/TrainingApprovalModel.js +107 -0
  249. package/dist/models/TrainingAttachmentModel.d.ts +13 -0
  250. package/dist/models/TrainingAttachmentModel.js +69 -0
  251. package/dist/models/TrainingChatModel.d.ts +20 -0
  252. package/dist/models/TrainingChatModel.js +82 -0
  253. package/dist/models/TrainingRequestModel.d.ts +43 -0
  254. package/dist/models/TrainingRequestModel.js +161 -0
  255. package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
  256. package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
  257. package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
  258. package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
  259. package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
  260. package/dist/models/TrainingRoomBookingChatModel.js +89 -0
  261. package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
  262. package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
  263. package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
  264. package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
  265. package/dist/models/TrainingRoomNotificationConfigModel.d.ts +11 -0
  266. package/dist/models/TrainingRoomNotificationConfigModel.js +44 -0
  267. package/dist/models/TrainingWorkflowModel.d.ts +19 -0
  268. package/dist/models/TrainingWorkflowModel.js +81 -0
  269. package/dist/models/VpnApprovalModel.d.ts +22 -0
  270. package/dist/models/VpnApprovalModel.js +91 -0
  271. package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
  272. package/dist/models/VpnRequestAttachmentModel.js +59 -0
  273. package/dist/models/VpnRequestChatModel.d.ts +26 -0
  274. package/dist/models/VpnRequestChatModel.js +86 -0
  275. package/dist/models/VpnRequestModel.d.ts +72 -0
  276. package/dist/models/VpnRequestModel.js +183 -0
  277. package/dist/models/VpnWorkflowModel.d.ts +17 -0
  278. package/dist/models/VpnWorkflowModel.js +71 -0
  279. package/dist/models/WorkflowDefinitions.d.ts +16 -0
  280. package/dist/models/WorkflowDefinitions.js +86 -0
  281. package/dist/models/WorkflowHierarchy.d.ts +17 -0
  282. package/dist/models/WorkflowHierarchy.js +86 -0
  283. package/dist/models/WorkflowTask.d.ts +13 -0
  284. package/dist/models/WorkflowTask.js +78 -0
  285. package/dist/models/WorkflowTaskNames.d.ts +17 -0
  286. package/dist/models/WorkflowTaskNames.js +63 -0
  287. package/dist/models/contactInfoModel.d.ts +18 -0
  288. package/dist/models/contactInfoModel.js +80 -0
  289. package/dist/models/feedbackModel.d.ts +16 -0
  290. package/dist/models/feedbackModel.js +61 -0
  291. package/dist/models/importantLinksModel.d.ts +6 -0
  292. package/dist/models/importantLinksModel.js +34 -0
  293. package/dist/models/role.d.ts +16 -0
  294. package/dist/models/role.js +44 -0
  295. package/dist/models/roleRightsModel.d.ts +13 -0
  296. package/dist/models/roleRightsModel.js +45 -0
  297. package/dist/models/serviceBookmarksModel.d.ts +6 -0
  298. package/dist/models/serviceBookmarksModel.js +34 -0
  299. package/dist/models/user-sessions.d.ts +18 -0
  300. package/dist/models/user-sessions.js +54 -0
  301. package/dist/models/user.d.ts +47 -0
  302. package/dist/models/user.js +238 -0
  303. package/dist/models/userRolesModel.d.ts +19 -0
  304. package/dist/models/userRolesModel.js +59 -0
  305. package/dist/scripts.d.ts +1 -0
  306. package/dist/scripts.js +11 -0
  307. package/package.json +2 -2
  308. package/.env +0 -14
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingRoomBookingRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let TrainingRoomBookingRequestAttachment = class TrainingRoomBookingRequestAttachment extends BaseModel_1.BaseModel {
16
+ constructor(request_id, uploaded_by, file_url, service_id, sub_service_id, file_name, file_type, file_size, description) {
17
+ super();
18
+ this.request_id = request_id;
19
+ this.service_id = service_id || null;
20
+ this.sub_service_id = sub_service_id || null;
21
+ this.uploaded_by = uploaded_by;
22
+ this.file_url = file_url;
23
+ this.file_name = file_name || "";
24
+ this.file_type = file_type || "";
25
+ this.file_size = file_size || null;
26
+ this.description = description || "";
27
+ }
28
+ };
29
+ exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment;
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
32
+ __metadata("design:type", Number)
33
+ ], TrainingRoomBookingRequestAttachment.prototype, "request_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], TrainingRoomBookingRequestAttachment.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], TrainingRoomBookingRequestAttachment.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], TrainingRoomBookingRequestAttachment.prototype, "uploaded_by", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_url", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
52
+ __metadata("design:type", String)
53
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_name", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
56
+ __metadata("design:type", String)
57
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_type", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "bigint", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_size", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
64
+ __metadata("design:type", String)
65
+ ], TrainingRoomBookingRequestAttachment.prototype, "description", void 0);
66
+ exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment = __decorate([
67
+ (0, typeorm_1.Entity)({ name: "training_room_booking_request_attachments" }),
68
+ __metadata("design:paramtypes", [Number, Number, String, Object, Object, String, String, Number, String])
69
+ ], TrainingRoomBookingRequestAttachment);
@@ -0,0 +1,26 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare enum TrainingRoomBookingChatStatus {
10
+ PENDING = "Pending",
11
+ APPROVED = "Approved",
12
+ REJECTED = "Rejected",
13
+ IN_PROGRESS = "In Progress"
14
+ }
15
+ export declare class TrainingRoomBookingRequestChat extends BaseModel {
16
+ request_id: number;
17
+ service_id: number | null;
18
+ sub_service_id: number | null;
19
+ user_id: number;
20
+ message: string;
21
+ approver_role_id: number | null;
22
+ messageType: TrainingRoomBookingMessageType;
23
+ is_internal: boolean;
24
+ status: string;
25
+ constructor(request_id: number, user_id: number, message: string, service_id?: number | null, sub_service_id?: number | null, messageType?: TrainingRoomBookingMessageType, is_internal?: boolean, status?: string, approver_role_id?: number);
26
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingRoomBookingMessageType;
16
+ (function (TrainingRoomBookingMessageType) {
17
+ TrainingRoomBookingMessageType["TEXT"] = "text";
18
+ TrainingRoomBookingMessageType["IMAGE"] = "image";
19
+ TrainingRoomBookingMessageType["VIDEO"] = "video";
20
+ TrainingRoomBookingMessageType["FILE"] = "file";
21
+ TrainingRoomBookingMessageType["LINK"] = "link";
22
+ })(TrainingRoomBookingMessageType || (exports.TrainingRoomBookingMessageType = TrainingRoomBookingMessageType = {}));
23
+ var TrainingRoomBookingChatStatus;
24
+ (function (TrainingRoomBookingChatStatus) {
25
+ TrainingRoomBookingChatStatus["PENDING"] = "Pending";
26
+ TrainingRoomBookingChatStatus["APPROVED"] = "Approved";
27
+ TrainingRoomBookingChatStatus["REJECTED"] = "Rejected";
28
+ TrainingRoomBookingChatStatus["IN_PROGRESS"] = "In Progress";
29
+ })(TrainingRoomBookingChatStatus || (exports.TrainingRoomBookingChatStatus = TrainingRoomBookingChatStatus = {}));
30
+ let TrainingRoomBookingRequestChat = class TrainingRoomBookingRequestChat extends BaseModel_1.BaseModel {
31
+ constructor(request_id, user_id, message, service_id, sub_service_id, messageType, is_internal, status, approver_role_id) {
32
+ super();
33
+ this.request_id = request_id;
34
+ this.service_id = service_id || null;
35
+ this.sub_service_id = sub_service_id || null;
36
+ this.user_id = user_id;
37
+ this.message = message;
38
+ this.messageType = messageType || TrainingRoomBookingMessageType.TEXT;
39
+ this.is_internal = is_internal || false;
40
+ this.status = status || 'Pending';
41
+ this.approver_role_id = approver_role_id || null;
42
+ }
43
+ };
44
+ exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat;
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
47
+ __metadata("design:type", Number)
48
+ ], TrainingRoomBookingRequestChat.prototype, "request_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], TrainingRoomBookingRequestChat.prototype, "service_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], TrainingRoomBookingRequestChat.prototype, "sub_service_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
59
+ __metadata("design:type", Number)
60
+ ], TrainingRoomBookingRequestChat.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
63
+ __metadata("design:type", String)
64
+ ], TrainingRoomBookingRequestChat.prototype, "message", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], TrainingRoomBookingRequestChat.prototype, "approver_role_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: "enum",
72
+ enum: TrainingRoomBookingMessageType,
73
+ default: TrainingRoomBookingMessageType.TEXT,
74
+ nullable: false
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], TrainingRoomBookingRequestChat.prototype, "messageType", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "boolean", default: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], TrainingRoomBookingRequestChat.prototype, "is_internal", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
84
+ __metadata("design:type", String)
85
+ ], TrainingRoomBookingRequestChat.prototype, "status", void 0);
86
+ exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat = __decorate([
87
+ (0, typeorm_1.Entity)({ name: "training_room_booking_request_chat" }),
88
+ __metadata("design:paramtypes", [Number, Number, String, Object, Object, String, Boolean, String, Number])
89
+ ], TrainingRoomBookingRequestChat);
@@ -0,0 +1,38 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingRequestStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ COMPLETED = "Completed",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected"
8
+ }
9
+ export declare enum TrainingRoomBookingRoomType {
10
+ CLASSROOM_1 = "Classroom 1",
11
+ CLASSROOM_2 = "Classroom 2",
12
+ CLASSROOM_3 = "Classroom 3",
13
+ CLASSROOM_4 = "Classroom 4",
14
+ TRAINING_CENTRE_HALL = "Training Centre Hall"
15
+ }
16
+ export declare class TrainingRoomBookingRequest extends BaseModel {
17
+ req_user_department_id: number | null;
18
+ req_user_section_id: number | null;
19
+ req_user_position_id: number | null;
20
+ service_id: number | null;
21
+ sub_service_id: number | null;
22
+ user_id: number;
23
+ purpose_of_training: string;
24
+ date_of_event: Date;
25
+ start_time: string;
26
+ end_time: string;
27
+ room_type: TrainingRoomBookingRoomType;
28
+ network_support_required: boolean;
29
+ meals_required: boolean;
30
+ number_of_attendees: number;
31
+ remarks: string | null;
32
+ status: TrainingRoomBookingRequestStatus;
33
+ reviewer_user_id: number | null;
34
+ assigned_to_user_id: number | null;
35
+ assigned_at: Date | null;
36
+ workflow_execution_id: string | null;
37
+ constructor(user_id: number, purpose_of_training: string, date_of_event: Date, start_time: string, end_time: string, room_type: TrainingRoomBookingRoomType, number_of_attendees: number, network_support_required?: boolean, meals_required?: boolean, status?: TrainingRoomBookingRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
38
+ }
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingRoomBookingRequest = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingRoomBookingRequestStatus;
16
+ (function (TrainingRoomBookingRequestStatus) {
17
+ TrainingRoomBookingRequestStatus["PENDING"] = "Pending";
18
+ TrainingRoomBookingRequestStatus["IN_PROGRESS"] = "In Progress";
19
+ TrainingRoomBookingRequestStatus["COMPLETED"] = "Completed";
20
+ TrainingRoomBookingRequestStatus["APPROVED"] = "Approved";
21
+ TrainingRoomBookingRequestStatus["REJECTED"] = "Rejected";
22
+ })(TrainingRoomBookingRequestStatus || (exports.TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus = {}));
23
+ var TrainingRoomBookingRoomType;
24
+ (function (TrainingRoomBookingRoomType) {
25
+ TrainingRoomBookingRoomType["CLASSROOM_1"] = "Classroom 1";
26
+ TrainingRoomBookingRoomType["CLASSROOM_2"] = "Classroom 2";
27
+ TrainingRoomBookingRoomType["CLASSROOM_3"] = "Classroom 3";
28
+ TrainingRoomBookingRoomType["CLASSROOM_4"] = "Classroom 4";
29
+ TrainingRoomBookingRoomType["TRAINING_CENTRE_HALL"] = "Training Centre Hall";
30
+ })(TrainingRoomBookingRoomType || (exports.TrainingRoomBookingRoomType = TrainingRoomBookingRoomType = {}));
31
+ let TrainingRoomBookingRequest = class TrainingRoomBookingRequest extends BaseModel_1.BaseModel {
32
+ constructor(user_id, purpose_of_training, date_of_event, start_time, end_time, room_type, number_of_attendees, network_support_required = false, meals_required = false, status = TrainingRoomBookingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
33
+ super();
34
+ this.user_id = user_id;
35
+ this.purpose_of_training = purpose_of_training;
36
+ this.date_of_event = date_of_event;
37
+ this.start_time = start_time;
38
+ this.end_time = end_time;
39
+ this.room_type = room_type;
40
+ this.number_of_attendees = number_of_attendees;
41
+ this.network_support_required = network_support_required;
42
+ this.meals_required = meals_required;
43
+ this.status = status;
44
+ this.service_id = service_id || null;
45
+ this.sub_service_id = sub_service_id || null;
46
+ this.req_user_department_id = req_user_department_id || null;
47
+ this.req_user_section_id = req_user_section_id || null;
48
+ this.req_user_position_id = req_user_position_id || null;
49
+ this.remarks = remarks || null;
50
+ this.reviewer_user_id = reviewer_user_id || null;
51
+ this.assigned_to_user_id = assigned_to_user_id || null;
52
+ this.assigned_at = assigned_at || null;
53
+ this.workflow_execution_id = workflow_execution_id || null;
54
+ }
55
+ };
56
+ exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest;
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], TrainingRoomBookingRequest.prototype, "req_user_department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], TrainingRoomBookingRequest.prototype, "req_user_section_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], TrainingRoomBookingRequest.prototype, "req_user_position_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], TrainingRoomBookingRequest.prototype, "service_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], TrainingRoomBookingRequest.prototype, "sub_service_id", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
79
+ __metadata("design:type", Number)
80
+ ], TrainingRoomBookingRequest.prototype, "user_id", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
83
+ __metadata("design:type", String)
84
+ ], TrainingRoomBookingRequest.prototype, "purpose_of_training", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
87
+ __metadata("design:type", Date)
88
+ ], TrainingRoomBookingRequest.prototype, "date_of_event", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ type: "time", nullable: false }),
91
+ __metadata("design:type", String)
92
+ ], TrainingRoomBookingRequest.prototype, "start_time", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ type: "time", nullable: false }),
95
+ __metadata("design:type", String)
96
+ ], TrainingRoomBookingRequest.prototype, "end_time", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)({
99
+ type: "enum",
100
+ enum: TrainingRoomBookingRoomType,
101
+ nullable: false
102
+ }),
103
+ __metadata("design:type", String)
104
+ ], TrainingRoomBookingRequest.prototype, "room_type", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
107
+ __metadata("design:type", Boolean)
108
+ ], TrainingRoomBookingRequest.prototype, "network_support_required", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
111
+ __metadata("design:type", Boolean)
112
+ ], TrainingRoomBookingRequest.prototype, "meals_required", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
115
+ __metadata("design:type", Number)
116
+ ], TrainingRoomBookingRequest.prototype, "number_of_attendees", void 0);
117
+ __decorate([
118
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
119
+ __metadata("design:type", Object)
120
+ ], TrainingRoomBookingRequest.prototype, "remarks", void 0);
121
+ __decorate([
122
+ (0, typeorm_1.Column)({
123
+ type: "enum",
124
+ enum: TrainingRoomBookingRequestStatus,
125
+ default: TrainingRoomBookingRequestStatus.PENDING,
126
+ nullable: false
127
+ }),
128
+ __metadata("design:type", String)
129
+ ], TrainingRoomBookingRequest.prototype, "status", void 0);
130
+ __decorate([
131
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
132
+ __metadata("design:type", Object)
133
+ ], TrainingRoomBookingRequest.prototype, "reviewer_user_id", void 0);
134
+ __decorate([
135
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
136
+ __metadata("design:type", Object)
137
+ ], TrainingRoomBookingRequest.prototype, "assigned_to_user_id", void 0);
138
+ __decorate([
139
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
140
+ __metadata("design:type", Object)
141
+ ], TrainingRoomBookingRequest.prototype, "assigned_at", void 0);
142
+ __decorate([
143
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
144
+ __metadata("design:type", Object)
145
+ ], TrainingRoomBookingRequest.prototype, "workflow_execution_id", void 0);
146
+ exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest = __decorate([
147
+ (0, typeorm_1.Entity)({ name: "training_room_booking_requests" }),
148
+ __metadata("design:paramtypes", [Number, String, Date, String, String, String, Number, Boolean, Boolean, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
149
+ ], TrainingRoomBookingRequest);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class TrainingRoomBookingWorkFlow extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ order: number | null;
13
+ content: string;
14
+ approver_role_id: number | null;
15
+ approver_user_id: number | null;
16
+ approved_by: number | null;
17
+ status: TrainingRoomBookingWorkFlowStatus;
18
+ constructor(request_id: number, content: string, status: TrainingRoomBookingWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
19
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingRoomBookingWorkFlow = exports.TrainingRoomBookingWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingRoomBookingWorkFlowStatus;
16
+ (function (TrainingRoomBookingWorkFlowStatus) {
17
+ TrainingRoomBookingWorkFlowStatus["COMPLETED"] = "Completed";
18
+ TrainingRoomBookingWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ TrainingRoomBookingWorkFlowStatus["PENDING"] = "Pending";
20
+ TrainingRoomBookingWorkFlowStatus["REJECTED"] = "Rejected";
21
+ })(TrainingRoomBookingWorkFlowStatus || (exports.TrainingRoomBookingWorkFlowStatus = TrainingRoomBookingWorkFlowStatus = {}));
22
+ let TrainingRoomBookingWorkFlow = class TrainingRoomBookingWorkFlow extends BaseModel_1.BaseModel {
23
+ constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
24
+ super();
25
+ this.request_id = request_id;
26
+ this.service_id = service_id || null;
27
+ this.sub_service_id = sub_service_id || null;
28
+ this.content = content;
29
+ this.status = status;
30
+ this.order = order || null;
31
+ this.approver_role_id = approver_role_id || null;
32
+ this.approver_user_id = approver_user_id || null;
33
+ this.approved_by = approved_by || null;
34
+ }
35
+ };
36
+ exports.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "int", nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], TrainingRoomBookingWorkFlow.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], TrainingRoomBookingWorkFlow.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], TrainingRoomBookingWorkFlow.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], TrainingRoomBookingWorkFlow.prototype, "order", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], TrainingRoomBookingWorkFlow.prototype, "content", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], TrainingRoomBookingWorkFlow.prototype, "approver_role_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], TrainingRoomBookingWorkFlow.prototype, "approver_user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], TrainingRoomBookingWorkFlow.prototype, "approved_by", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: "enum",
72
+ enum: TrainingRoomBookingWorkFlowStatus,
73
+ default: TrainingRoomBookingWorkFlowStatus.PENDING,
74
+ nullable: false
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], TrainingRoomBookingWorkFlow.prototype, "status", void 0);
78
+ exports.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow = __decorate([
79
+ (0, typeorm_1.Entity)({ name: "training_room_booking_workflows" }),
80
+ __metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
81
+ ], TrainingRoomBookingWorkFlow);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum NotificationFrequency {
3
+ YEARLY = "yearly",
4
+ SIX_MONTHS_BEFORE = "6_months_before"
5
+ }
6
+ export declare class TrainingRoomNotificationConfig extends BaseModel {
7
+ department_id: number;
8
+ section_id: number | null;
9
+ is_active: boolean;
10
+ constructor(department_id: number, section_id?: number | null, is_active?: boolean);
11
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingRoomNotificationConfig = exports.NotificationFrequency = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var NotificationFrequency;
16
+ (function (NotificationFrequency) {
17
+ NotificationFrequency["YEARLY"] = "yearly";
18
+ NotificationFrequency["SIX_MONTHS_BEFORE"] = "6_months_before";
19
+ })(NotificationFrequency || (exports.NotificationFrequency = NotificationFrequency = {}));
20
+ let TrainingRoomNotificationConfig = class TrainingRoomNotificationConfig extends BaseModel_1.BaseModel {
21
+ constructor(department_id, section_id = null, is_active = true) {
22
+ super();
23
+ this.department_id = department_id;
24
+ this.section_id = section_id;
25
+ this.is_active = is_active;
26
+ }
27
+ };
28
+ exports.TrainingRoomNotificationConfig = TrainingRoomNotificationConfig;
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], TrainingRoomNotificationConfig.prototype, "department_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], TrainingRoomNotificationConfig.prototype, "section_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "boolean", nullable: false, default: true }),
39
+ __metadata("design:type", Boolean)
40
+ ], TrainingRoomNotificationConfig.prototype, "is_active", void 0);
41
+ exports.TrainingRoomNotificationConfig = TrainingRoomNotificationConfig = __decorate([
42
+ (0, typeorm_1.Entity)({ name: "training_room_notification_configs" }),
43
+ __metadata("design:paramtypes", [Number, Object, Boolean])
44
+ ], TrainingRoomNotificationConfig);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class TrainingWorkFlow extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ order: number | null;
13
+ content: string;
14
+ approver_role_id: number | null;
15
+ approver_user_id: number | null;
16
+ approved_by: number | null;
17
+ status: TrainingWorkFlowStatus;
18
+ constructor(request_id: number, content: string, status: TrainingWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
19
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TrainingWorkFlow = exports.TrainingWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingWorkFlowStatus;
16
+ (function (TrainingWorkFlowStatus) {
17
+ TrainingWorkFlowStatus["COMPLETED"] = "Completed";
18
+ TrainingWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ TrainingWorkFlowStatus["PENDING"] = "Pending";
20
+ TrainingWorkFlowStatus["REJECTED"] = "Rejected";
21
+ })(TrainingWorkFlowStatus || (exports.TrainingWorkFlowStatus = TrainingWorkFlowStatus = {}));
22
+ let TrainingWorkFlow = class TrainingWorkFlow extends BaseModel_1.BaseModel {
23
+ constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
24
+ super();
25
+ this.request_id = request_id;
26
+ this.service_id = service_id || null;
27
+ this.sub_service_id = sub_service_id || null;
28
+ this.content = content;
29
+ this.status = status;
30
+ this.order = order || null;
31
+ this.approver_role_id = approver_role_id || null;
32
+ this.approver_user_id = approver_user_id || null;
33
+ this.approved_by = approved_by || null;
34
+ }
35
+ };
36
+ exports.TrainingWorkFlow = TrainingWorkFlow;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "int", nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], TrainingWorkFlow.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], TrainingWorkFlow.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], TrainingWorkFlow.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], TrainingWorkFlow.prototype, "order", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], TrainingWorkFlow.prototype, "content", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], TrainingWorkFlow.prototype, "approver_role_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], TrainingWorkFlow.prototype, "approver_user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], TrainingWorkFlow.prototype, "approved_by", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: "enum",
72
+ enum: TrainingWorkFlowStatus,
73
+ default: TrainingWorkFlowStatus.PENDING,
74
+ nullable: false
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], TrainingWorkFlow.prototype, "status", void 0);
78
+ exports.TrainingWorkFlow = TrainingWorkFlow = __decorate([
79
+ (0, typeorm_1.Entity)({ name: "training_workflows" }),
80
+ __metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
81
+ ], TrainingWorkFlow);
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum VpnApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected",
7
+ ASSIGNED = "Assigned"
8
+ }
9
+ export declare class VpnApprovalDetails extends BaseModel {
10
+ request_id: number;
11
+ level: number;
12
+ approver_user_id: number | null;
13
+ approver_role_id: number | null;
14
+ department_id: number | null;
15
+ section_id: number | null;
16
+ approved_by: number | null;
17
+ comment: string;
18
+ approval_status: VpnApprovalStatus;
19
+ is_manager: boolean;
20
+ is_allowed: boolean;
21
+ constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, is_manager?: boolean);
22
+ }