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

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