@platform-modules/civil-aviation-authority 2.3.12 → 2.3.14

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 (54) hide show
  1. package/.env +14 -9
  2. package/dist/data-source.js +31 -1
  3. package/dist/index.d.ts +35 -8
  4. package/dist/index.js +59 -9
  5. package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
  6. package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
  7. package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
  8. package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
  9. package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
  10. package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
  11. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
  12. package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
  13. package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
  14. package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
  15. package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
  16. package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
  17. package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
  18. package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
  19. package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
  20. package/dist/models/AssignTasksEmpChatModel.js +77 -0
  21. package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
  22. package/dist/models/AssignTasksEmpRequestModel.js +100 -0
  23. package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
  24. package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
  25. package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
  26. package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
  27. package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
  28. package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
  29. package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
  30. package/dist/models/TrainingRoomBookingChatModel.js +89 -0
  31. package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
  32. package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
  33. package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
  34. package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
  35. package/dist/models/Workflows.d.ts +0 -9
  36. package/package.json +1 -1
  37. package/src/data-source.ts +31 -1
  38. package/src/index.ts +35 -8
  39. package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
  40. package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
  41. package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
  42. package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
  43. package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
  44. package/src/models/AssignTasksEmpApprovalModel.ts +84 -0
  45. package/src/models/AssignTasksEmpAttachmentModel.ts +52 -0
  46. package/src/models/AssignTasksEmpChatModel.ts +65 -0
  47. package/src/models/AssignTasksEmpRequestModel.ts +90 -0
  48. package/src/models/AssignTasksEmpWorkflowModel.ts +63 -0
  49. package/src/models/HrServiceRequestModel.ts +167 -167
  50. package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
  51. package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
  52. package/src/models/TrainingRoomBookingChatModel.ts +76 -0
  53. package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
  54. package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
@@ -0,0 +1,136 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum TrainingRoomBookingRequestStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ COMPLETED = "Completed",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ export enum TrainingRoomBookingRoomType {
13
+ CLASSROOM_1 = "Classroom 1",
14
+ CLASSROOM_2 = "Classroom 2",
15
+ CLASSROOM_3 = "Classroom 3",
16
+ CLASSROOM_4 = "Classroom 4",
17
+ TRAINING_CENTRE_HALL = "Training Centre Hall"
18
+ }
19
+
20
+ @Entity({ name: "training_room_booking_requests" })
21
+ export class TrainingRoomBookingRequest extends BaseModel {
22
+ @Column({ type: "integer", nullable: true })
23
+ req_user_department_id: number | null;
24
+
25
+ @Column({ type: "integer", nullable: true })
26
+ req_user_section_id: number | null;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ req_user_position_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ service_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: true })
35
+ sub_service_id: number | null;
36
+
37
+ @Column({ type: "integer", nullable: false })
38
+ user_id: number;
39
+
40
+ @Column({ type: "text", nullable: false })
41
+ purpose_of_training: string;
42
+
43
+ @Column({ type: "date", nullable: false })
44
+ date_of_event: Date;
45
+
46
+ @Column({ type: "time", nullable: false })
47
+ start_time: string;
48
+
49
+ @Column({ type: "time", nullable: false })
50
+ end_time: string;
51
+
52
+ @Column({
53
+ type: "enum",
54
+ enum: TrainingRoomBookingRoomType,
55
+ nullable: false
56
+ })
57
+ room_type: TrainingRoomBookingRoomType;
58
+
59
+ @Column({ type: "boolean", default: false, nullable: false })
60
+ network_support_required: boolean;
61
+
62
+ @Column({ type: "boolean", default: false, nullable: false })
63
+ meals_required: boolean;
64
+
65
+ @Column({ type: "integer", nullable: false })
66
+ number_of_attendees: number;
67
+
68
+ @Column({ type: "text", nullable: true })
69
+ remarks: string | null;
70
+
71
+ @Column({
72
+ type: "enum",
73
+ enum: TrainingRoomBookingRequestStatus,
74
+ default: TrainingRoomBookingRequestStatus.PENDING,
75
+ nullable: false
76
+ })
77
+ status: TrainingRoomBookingRequestStatus;
78
+
79
+ @Column({ type: "integer", nullable: true })
80
+ reviewer_user_id: number | null;
81
+
82
+ @Column({ type: "integer", nullable: true })
83
+ assigned_to_user_id: number | null;
84
+
85
+ @Column({ type: "timestamp", nullable: true })
86
+ assigned_at: Date | null;
87
+
88
+ @Column({ type: "varchar", length: 255, nullable: true })
89
+ workflow_execution_id: string | null;
90
+
91
+ constructor(
92
+ user_id: number,
93
+ purpose_of_training: string,
94
+ date_of_event: Date,
95
+ start_time: string,
96
+ end_time: string,
97
+ room_type: TrainingRoomBookingRoomType,
98
+ number_of_attendees: number,
99
+ network_support_required: boolean = false,
100
+ meals_required: boolean = false,
101
+ status: TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus.PENDING,
102
+ service_id?: number | null,
103
+ sub_service_id?: number | null,
104
+ req_user_department_id?: number | null,
105
+ req_user_section_id?: number | null,
106
+ req_user_position_id?: number | null,
107
+ remarks?: string | null,
108
+ reviewer_user_id?: number | null,
109
+ assigned_to_user_id?: number | null,
110
+ assigned_at?: Date | null,
111
+ workflow_execution_id?: string | null
112
+ ) {
113
+ super();
114
+ this.user_id = user_id;
115
+ this.purpose_of_training = purpose_of_training;
116
+ this.date_of_event = date_of_event;
117
+ this.start_time = start_time;
118
+ this.end_time = end_time;
119
+ this.room_type = room_type;
120
+ this.number_of_attendees = number_of_attendees;
121
+ this.network_support_required = network_support_required;
122
+ this.meals_required = meals_required;
123
+ this.status = status;
124
+ this.service_id = service_id || null;
125
+ this.sub_service_id = sub_service_id || null;
126
+ this.req_user_department_id = req_user_department_id || null;
127
+ this.req_user_section_id = req_user_section_id || null;
128
+ this.req_user_position_id = req_user_position_id || null;
129
+ this.remarks = remarks || null;
130
+ this.reviewer_user_id = reviewer_user_id || null;
131
+ this.assigned_to_user_id = assigned_to_user_id || null;
132
+ this.assigned_at = assigned_at || null;
133
+ this.workflow_execution_id = workflow_execution_id || null;
134
+ }
135
+ }
136
+
@@ -0,0 +1,68 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum TrainingRoomBookingWorkFlowStatus {
5
+ COMPLETED = "Completed",
6
+ NOT_YET_STARTED = "Not Yet Started",
7
+ PENDING = "Pending",
8
+ REJECTED = "Rejected"
9
+ }
10
+
11
+ @Entity({ name: "training_room_booking_workflows" })
12
+ export class TrainingRoomBookingWorkFlow extends BaseModel {
13
+ @Column({ type: "int", nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: "integer", nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: "integer", nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: "int", nullable: true })
23
+ order: number | null;
24
+
25
+ @Column({ type: "varchar", length: 255, nullable: false })
26
+ content: string;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ approver_role_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ approver_user_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: true })
35
+ approved_by: number | null;
36
+
37
+ @Column({
38
+ type: "enum",
39
+ enum: TrainingRoomBookingWorkFlowStatus,
40
+ default: TrainingRoomBookingWorkFlowStatus.PENDING,
41
+ nullable: false
42
+ })
43
+ status: TrainingRoomBookingWorkFlowStatus;
44
+
45
+ constructor(
46
+ request_id: number,
47
+ content: string,
48
+ status: TrainingRoomBookingWorkFlowStatus,
49
+ service_id?: number | null,
50
+ sub_service_id?: number | null,
51
+ order?: number,
52
+ approver_role_id?: number | null,
53
+ approver_user_id?: number | null,
54
+ approved_by?: number | null
55
+ ) {
56
+ super();
57
+ this.request_id = request_id;
58
+ this.service_id = service_id || null;
59
+ this.sub_service_id = sub_service_id || null;
60
+ this.content = content;
61
+ this.status = status;
62
+ this.order = order || null;
63
+ this.approver_role_id = approver_role_id || null;
64
+ this.approver_user_id = approver_user_id || null;
65
+ this.approved_by = approved_by || null;
66
+ }
67
+ }
68
+