@platform-modules/civil-aviation-authority 2.3.141 → 2.3.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +17 -9
- package/dist/data-source.js +10 -10
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -5
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/LegalComplaintApprovalModel.d.ts +24 -0
- package/dist/models/LegalComplaintApprovalModel.js +89 -0
- package/dist/models/LegalComplaintAttachmentModel.d.ts +15 -0
- package/dist/models/LegalComplaintAttachmentModel.js +60 -0
- package/dist/models/LegalComplaintChatModel.d.ts +17 -0
- package/dist/models/LegalComplaintChatModel.js +68 -0
- package/dist/models/LegalComplaintRequestModel.d.ts +30 -0
- package/dist/models/LegalComplaintRequestModel.js +99 -0
- package/dist/models/LegalComplaintWorkflowModel.d.ts +25 -0
- package/dist/models/LegalComplaintWorkflowModel.js +88 -0
- package/dist/models/LegalConsultationApprovalModel.d.ts +3 -1
- package/dist/models/LegalConsultationApprovalModel.js +2 -0
- package/dist/models/LegalConsultationRequestModel.d.ts +0 -2
- package/dist/models/LegalConsultationRequestModel.js +0 -4
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +327 -327
- package/src/index.ts +357 -355
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalComplaintApprovalModel.ts +61 -0
- package/src/models/LegalComplaintAttachmentModel.ts +39 -0
- package/src/models/LegalComplaintChatModel.ts +43 -0
- package/src/models/LegalComplaintRequestModel.ts +70 -0
- package/src/models/LegalComplaintWorkflowModel.ts +59 -0
- package/src/models/LegalConsultationApprovalModel.ts +2 -0
- package/src/models/LegalConsultationRequestModel.ts +0 -4
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/ScholarshipApprovalModel.d.ts +0 -22
- package/dist/models/ScholarshipApprovalModel.js +0 -84
- package/dist/models/ScholarshipAttachmentModel.d.ts +0 -12
- package/dist/models/ScholarshipAttachmentModel.js +0 -56
- package/dist/models/ScholarshipChatModel.d.ts +0 -18
- package/dist/models/ScholarshipChatModel.js +0 -65
- package/dist/models/ScholarshipRequestModel.d.ts +0 -30
- package/dist/models/ScholarshipRequestModel.js +0 -94
- package/dist/models/ScholarshipWorkflowModel.d.ts +0 -19
- package/dist/models/ScholarshipWorkflowModel.js +0 -66
- package/src/models/ScholarshipApprovalModel.ts +0 -56
- package/src/models/ScholarshipAttachmentModel.ts +0 -32
- package/src/models/ScholarshipChatModel.ts +0 -42
- package/src/models/ScholarshipRequestModel.ts +0 -64
- package/src/models/ScholarshipWorkflowModel.ts +0 -42
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum StudyLeaveRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
COMPLETED = "Completed",
|
|
8
|
-
APPROVED = "Approved",
|
|
9
|
-
REJECTED = "Rejected"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Entity({ name: "study_leave_requests" })
|
|
13
|
-
export class StudyLeaveRequest extends BaseModel {
|
|
14
|
-
@Column({ type: "integer", nullable: true })
|
|
15
|
-
req_user_department_id: number | null;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "integer", nullable: true })
|
|
18
|
-
req_user_section_id: number | null;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "integer", nullable: true })
|
|
21
|
-
req_user_position_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: "integer", nullable: true })
|
|
24
|
-
service_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "integer", nullable: true })
|
|
27
|
-
sub_service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "integer", nullable: false })
|
|
30
|
-
user_id: number;
|
|
31
|
-
|
|
32
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
33
|
-
course_name: string;
|
|
34
|
-
|
|
35
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
36
|
-
institute_name: string;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
39
|
-
duration_of_course: string | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: "date", nullable: false })
|
|
42
|
-
course_start_date: Date;
|
|
43
|
-
|
|
44
|
-
@Column({ type: "date", nullable: false })
|
|
45
|
-
course_end_date: Date;
|
|
46
|
-
|
|
47
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
48
|
-
location: string;
|
|
49
|
-
|
|
50
|
-
@Column({ type: "text", nullable: false })
|
|
51
|
-
description: string;
|
|
52
|
-
|
|
53
|
-
@Column({
|
|
54
|
-
type: "enum",
|
|
55
|
-
enum: StudyLeaveRequestStatus,
|
|
56
|
-
default: StudyLeaveRequestStatus.PENDING,
|
|
57
|
-
nullable: false
|
|
58
|
-
})
|
|
59
|
-
status: StudyLeaveRequestStatus;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "integer", nullable: true })
|
|
62
|
-
reviewer_user_id: number | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "integer", nullable: true })
|
|
65
|
-
assigned_to_user_id: number | null;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "timestamp", nullable: true })
|
|
68
|
-
assigned_at: Date | null;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
71
|
-
workflow_execution_id: string | null;
|
|
72
|
-
|
|
73
|
-
@Column({ type: "boolean", default: false, nullable: true })
|
|
74
|
-
already_submitted_in_ministry_of_education_system: boolean | null;
|
|
75
|
-
|
|
76
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
77
|
-
area_name: string | null;
|
|
78
|
-
|
|
79
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
80
|
-
country_name: string | null;
|
|
81
|
-
|
|
82
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
83
|
-
qualification_required: string | null;
|
|
84
|
-
|
|
85
|
-
@Column({ type: "boolean", default: false, nullable: true })
|
|
86
|
-
have_you_ever_received_authority: boolean | null;
|
|
87
|
-
|
|
88
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
89
|
-
scholarship: string | null;
|
|
90
|
-
|
|
91
|
-
constructor(
|
|
92
|
-
user_id: number,
|
|
93
|
-
course_name: string,
|
|
94
|
-
institute_name: string,
|
|
95
|
-
course_start_date: Date,
|
|
96
|
-
course_end_date: Date,
|
|
97
|
-
location: string,
|
|
98
|
-
description: string,
|
|
99
|
-
status: StudyLeaveRequestStatus = StudyLeaveRequestStatus.PENDING,
|
|
100
|
-
service_id?: number | null,
|
|
101
|
-
sub_service_id?: number | null,
|
|
102
|
-
req_user_department_id?: number | null,
|
|
103
|
-
req_user_section_id?: number | null,
|
|
104
|
-
req_user_position_id?: number | null,
|
|
105
|
-
duration_of_course?: string | null,
|
|
106
|
-
reviewer_user_id?: number | null,
|
|
107
|
-
assigned_to_user_id?: number | null,
|
|
108
|
-
assigned_at?: Date | null,
|
|
109
|
-
workflow_execution_id?: string | null,
|
|
110
|
-
already_submitted_in_ministry_of_education_system?: boolean | null,
|
|
111
|
-
area_name?: string | null,
|
|
112
|
-
country_name?: string | null,
|
|
113
|
-
qualification_required?: string | null,
|
|
114
|
-
have_you_ever_received_authority?: boolean | null,
|
|
115
|
-
scholarship?: string | null
|
|
116
|
-
) {
|
|
117
|
-
super();
|
|
118
|
-
this.user_id = user_id;
|
|
119
|
-
this.course_name = course_name;
|
|
120
|
-
this.institute_name = institute_name;
|
|
121
|
-
this.course_start_date = course_start_date;
|
|
122
|
-
this.course_end_date = course_end_date;
|
|
123
|
-
this.location = location;
|
|
124
|
-
this.description = description;
|
|
125
|
-
this.status = status;
|
|
126
|
-
this.service_id = service_id || null;
|
|
127
|
-
this.sub_service_id = sub_service_id || null;
|
|
128
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
129
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
130
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
131
|
-
this.duration_of_course = duration_of_course || null;
|
|
132
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
133
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
134
|
-
this.assigned_at = assigned_at || null;
|
|
135
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
136
|
-
this.already_submitted_in_ministry_of_education_system = already_submitted_in_ministry_of_education_system ?? null;
|
|
137
|
-
this.area_name = area_name ?? null;
|
|
138
|
-
this.country_name = country_name ?? null;
|
|
139
|
-
this.qualification_required = qualification_required ?? null;
|
|
140
|
-
this.have_you_ever_received_authority = have_you_ever_received_authority ?? null;
|
|
141
|
-
this.scholarship = scholarship ?? null;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum StudyLeaveRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
COMPLETED = "Completed",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "study_leave_requests" })
|
|
13
|
+
export class StudyLeaveRequest extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: true })
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
req_user_section_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
req_user_position_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: true })
|
|
24
|
+
service_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
sub_service_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: false })
|
|
30
|
+
user_id: number;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
33
|
+
course_name: string;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
36
|
+
institute_name: string;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
39
|
+
duration_of_course: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "date", nullable: false })
|
|
42
|
+
course_start_date: Date;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "date", nullable: false })
|
|
45
|
+
course_end_date: Date;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
48
|
+
location: string;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "text", nullable: false })
|
|
51
|
+
description: string;
|
|
52
|
+
|
|
53
|
+
@Column({
|
|
54
|
+
type: "enum",
|
|
55
|
+
enum: StudyLeaveRequestStatus,
|
|
56
|
+
default: StudyLeaveRequestStatus.PENDING,
|
|
57
|
+
nullable: false
|
|
58
|
+
})
|
|
59
|
+
status: StudyLeaveRequestStatus;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "integer", nullable: true })
|
|
62
|
+
reviewer_user_id: number | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "integer", nullable: true })
|
|
65
|
+
assigned_to_user_id: number | null;
|
|
66
|
+
|
|
67
|
+
@Column({ type: "timestamp", nullable: true })
|
|
68
|
+
assigned_at: Date | null;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
71
|
+
workflow_execution_id: string | null;
|
|
72
|
+
|
|
73
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
74
|
+
already_submitted_in_ministry_of_education_system: boolean | null;
|
|
75
|
+
|
|
76
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
77
|
+
area_name: string | null;
|
|
78
|
+
|
|
79
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
80
|
+
country_name: string | null;
|
|
81
|
+
|
|
82
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
83
|
+
qualification_required: string | null;
|
|
84
|
+
|
|
85
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
86
|
+
have_you_ever_received_authority: boolean | null;
|
|
87
|
+
|
|
88
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
89
|
+
scholarship: string | null;
|
|
90
|
+
|
|
91
|
+
constructor(
|
|
92
|
+
user_id: number,
|
|
93
|
+
course_name: string,
|
|
94
|
+
institute_name: string,
|
|
95
|
+
course_start_date: Date,
|
|
96
|
+
course_end_date: Date,
|
|
97
|
+
location: string,
|
|
98
|
+
description: string,
|
|
99
|
+
status: StudyLeaveRequestStatus = StudyLeaveRequestStatus.PENDING,
|
|
100
|
+
service_id?: number | null,
|
|
101
|
+
sub_service_id?: number | null,
|
|
102
|
+
req_user_department_id?: number | null,
|
|
103
|
+
req_user_section_id?: number | null,
|
|
104
|
+
req_user_position_id?: number | null,
|
|
105
|
+
duration_of_course?: string | null,
|
|
106
|
+
reviewer_user_id?: number | null,
|
|
107
|
+
assigned_to_user_id?: number | null,
|
|
108
|
+
assigned_at?: Date | null,
|
|
109
|
+
workflow_execution_id?: string | null,
|
|
110
|
+
already_submitted_in_ministry_of_education_system?: boolean | null,
|
|
111
|
+
area_name?: string | null,
|
|
112
|
+
country_name?: string | null,
|
|
113
|
+
qualification_required?: string | null,
|
|
114
|
+
have_you_ever_received_authority?: boolean | null,
|
|
115
|
+
scholarship?: string | null
|
|
116
|
+
) {
|
|
117
|
+
super();
|
|
118
|
+
this.user_id = user_id;
|
|
119
|
+
this.course_name = course_name;
|
|
120
|
+
this.institute_name = institute_name;
|
|
121
|
+
this.course_start_date = course_start_date;
|
|
122
|
+
this.course_end_date = course_end_date;
|
|
123
|
+
this.location = location;
|
|
124
|
+
this.description = description;
|
|
125
|
+
this.status = status;
|
|
126
|
+
this.service_id = service_id || null;
|
|
127
|
+
this.sub_service_id = sub_service_id || null;
|
|
128
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
129
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
130
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
131
|
+
this.duration_of_course = duration_of_course || null;
|
|
132
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
133
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
134
|
+
this.assigned_at = assigned_at || null;
|
|
135
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
136
|
+
this.already_submitted_in_ministry_of_education_system = already_submitted_in_ministry_of_education_system ?? null;
|
|
137
|
+
this.area_name = area_name ?? null;
|
|
138
|
+
this.country_name = country_name ?? null;
|
|
139
|
+
this.qualification_required = qualification_required ?? null;
|
|
140
|
+
this.have_you_ever_received_authority = have_you_ever_received_authority ?? null;
|
|
141
|
+
this.scholarship = scholarship ?? null;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -1,142 +1,142 @@
|
|
|
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
|
-
TRAINING_ROOMS_A = "Training Rooms (A1, A2)",
|
|
14
|
-
TRAINING_ROOMS_B = "Training Rooms (B1, B2)",
|
|
15
|
-
TRAINING_ROOMS_C = "Training Rooms (C1, C2)",
|
|
16
|
-
TRAINING_ROOMS_D = "Training Rooms (D1, D2)",
|
|
17
|
-
LECTURE_HALL = "Lecture Hall",
|
|
18
|
-
LABORATORY = "Laboratory"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@Entity({ name: "training_room_booking_requests" })
|
|
22
|
-
export class TrainingRoomBookingRequest extends BaseModel {
|
|
23
|
-
@Column({ type: "integer", nullable: true })
|
|
24
|
-
req_user_department_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "integer", nullable: true })
|
|
27
|
-
req_user_section_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "integer", nullable: true })
|
|
30
|
-
req_user_position_id: number | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: "integer", nullable: true })
|
|
33
|
-
service_id: number | null;
|
|
34
|
-
|
|
35
|
-
@Column({ type: "integer", nullable: true })
|
|
36
|
-
sub_service_id: number | null;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "integer", nullable: false })
|
|
39
|
-
user_id: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: "text", nullable: false })
|
|
42
|
-
purpose_of_training: string;
|
|
43
|
-
|
|
44
|
-
@Column({ type: "date", nullable: false })
|
|
45
|
-
date_of_event: Date;
|
|
46
|
-
|
|
47
|
-
@Column({ type: "time", nullable: false })
|
|
48
|
-
start_time: string;
|
|
49
|
-
|
|
50
|
-
@Column({ type: "time", nullable: false })
|
|
51
|
-
end_time: string;
|
|
52
|
-
|
|
53
|
-
@Column({
|
|
54
|
-
type: "enum",
|
|
55
|
-
enum: TrainingRoomBookingRoomType,
|
|
56
|
-
nullable: false
|
|
57
|
-
})
|
|
58
|
-
room_type: TrainingRoomBookingRoomType;
|
|
59
|
-
|
|
60
|
-
@Column({ type: "boolean", default: false, nullable: false })
|
|
61
|
-
network_support_required: boolean;
|
|
62
|
-
|
|
63
|
-
@Column({ type: "boolean", default: false, nullable: false })
|
|
64
|
-
meals_required: boolean;
|
|
65
|
-
|
|
66
|
-
@Column({ type: "integer", nullable: false })
|
|
67
|
-
number_of_attendees: number;
|
|
68
|
-
|
|
69
|
-
@Column({ type: "json", nullable: true })
|
|
70
|
-
name_of_participants: string[] | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: "text", nullable: true })
|
|
73
|
-
remarks: string | null;
|
|
74
|
-
|
|
75
|
-
@Column({
|
|
76
|
-
type: "enum",
|
|
77
|
-
enum: TrainingRoomBookingRequestStatus,
|
|
78
|
-
default: TrainingRoomBookingRequestStatus.PENDING,
|
|
79
|
-
nullable: false
|
|
80
|
-
})
|
|
81
|
-
status: TrainingRoomBookingRequestStatus;
|
|
82
|
-
|
|
83
|
-
@Column({ type: "integer", nullable: true })
|
|
84
|
-
reviewer_user_id: number | null;
|
|
85
|
-
|
|
86
|
-
@Column({ type: "integer", nullable: true })
|
|
87
|
-
assigned_to_user_id: number | null;
|
|
88
|
-
|
|
89
|
-
@Column({ type: "timestamp", nullable: true })
|
|
90
|
-
assigned_at: Date | null;
|
|
91
|
-
|
|
92
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
93
|
-
workflow_execution_id: string | null;
|
|
94
|
-
|
|
95
|
-
constructor(
|
|
96
|
-
user_id: number,
|
|
97
|
-
purpose_of_training: string,
|
|
98
|
-
date_of_event: Date,
|
|
99
|
-
start_time: string,
|
|
100
|
-
end_time: string,
|
|
101
|
-
room_type: TrainingRoomBookingRoomType,
|
|
102
|
-
number_of_attendees: number,
|
|
103
|
-
network_support_required: boolean = false,
|
|
104
|
-
meals_required: boolean = false,
|
|
105
|
-
status: TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus.PENDING,
|
|
106
|
-
service_id?: number | null,
|
|
107
|
-
sub_service_id?: number | null,
|
|
108
|
-
req_user_department_id?: number | null,
|
|
109
|
-
req_user_section_id?: number | null,
|
|
110
|
-
req_user_position_id?: number | null,
|
|
111
|
-
name_of_participants?: string[] | null,
|
|
112
|
-
remarks?: string | null,
|
|
113
|
-
reviewer_user_id?: number | null,
|
|
114
|
-
assigned_to_user_id?: number | null,
|
|
115
|
-
assigned_at?: Date | null,
|
|
116
|
-
workflow_execution_id?: string | null
|
|
117
|
-
) {
|
|
118
|
-
super();
|
|
119
|
-
this.user_id = user_id;
|
|
120
|
-
this.purpose_of_training = purpose_of_training;
|
|
121
|
-
this.date_of_event = date_of_event;
|
|
122
|
-
this.start_time = start_time;
|
|
123
|
-
this.end_time = end_time;
|
|
124
|
-
this.room_type = room_type;
|
|
125
|
-
this.number_of_attendees = number_of_attendees;
|
|
126
|
-
this.network_support_required = network_support_required;
|
|
127
|
-
this.meals_required = meals_required;
|
|
128
|
-
this.status = status;
|
|
129
|
-
this.service_id = service_id || null;
|
|
130
|
-
this.sub_service_id = sub_service_id || null;
|
|
131
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
132
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
133
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
134
|
-
this.name_of_participants = name_of_participants ?? null;
|
|
135
|
-
this.remarks = remarks || null;
|
|
136
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
137
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
138
|
-
this.assigned_at = assigned_at || null;
|
|
139
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
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
|
+
TRAINING_ROOMS_A = "Training Rooms (A1, A2)",
|
|
14
|
+
TRAINING_ROOMS_B = "Training Rooms (B1, B2)",
|
|
15
|
+
TRAINING_ROOMS_C = "Training Rooms (C1, C2)",
|
|
16
|
+
TRAINING_ROOMS_D = "Training Rooms (D1, D2)",
|
|
17
|
+
LECTURE_HALL = "Lecture Hall",
|
|
18
|
+
LABORATORY = "Laboratory"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: "training_room_booking_requests" })
|
|
22
|
+
export class TrainingRoomBookingRequest extends BaseModel {
|
|
23
|
+
@Column({ type: "integer", nullable: true })
|
|
24
|
+
req_user_department_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
req_user_section_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: true })
|
|
30
|
+
req_user_position_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
service_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
sub_service_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: false })
|
|
39
|
+
user_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "text", nullable: false })
|
|
42
|
+
purpose_of_training: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "date", nullable: false })
|
|
45
|
+
date_of_event: Date;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "time", nullable: false })
|
|
48
|
+
start_time: string;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "time", nullable: false })
|
|
51
|
+
end_time: string;
|
|
52
|
+
|
|
53
|
+
@Column({
|
|
54
|
+
type: "enum",
|
|
55
|
+
enum: TrainingRoomBookingRoomType,
|
|
56
|
+
nullable: false
|
|
57
|
+
})
|
|
58
|
+
room_type: TrainingRoomBookingRoomType;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
61
|
+
network_support_required: boolean;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
64
|
+
meals_required: boolean;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "integer", nullable: false })
|
|
67
|
+
number_of_attendees: number;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "json", nullable: true })
|
|
70
|
+
name_of_participants: string[] | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "text", nullable: true })
|
|
73
|
+
remarks: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({
|
|
76
|
+
type: "enum",
|
|
77
|
+
enum: TrainingRoomBookingRequestStatus,
|
|
78
|
+
default: TrainingRoomBookingRequestStatus.PENDING,
|
|
79
|
+
nullable: false
|
|
80
|
+
})
|
|
81
|
+
status: TrainingRoomBookingRequestStatus;
|
|
82
|
+
|
|
83
|
+
@Column({ type: "integer", nullable: true })
|
|
84
|
+
reviewer_user_id: number | null;
|
|
85
|
+
|
|
86
|
+
@Column({ type: "integer", nullable: true })
|
|
87
|
+
assigned_to_user_id: number | null;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "timestamp", nullable: true })
|
|
90
|
+
assigned_at: Date | null;
|
|
91
|
+
|
|
92
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
93
|
+
workflow_execution_id: string | null;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
user_id: number,
|
|
97
|
+
purpose_of_training: string,
|
|
98
|
+
date_of_event: Date,
|
|
99
|
+
start_time: string,
|
|
100
|
+
end_time: string,
|
|
101
|
+
room_type: TrainingRoomBookingRoomType,
|
|
102
|
+
number_of_attendees: number,
|
|
103
|
+
network_support_required: boolean = false,
|
|
104
|
+
meals_required: boolean = false,
|
|
105
|
+
status: TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus.PENDING,
|
|
106
|
+
service_id?: number | null,
|
|
107
|
+
sub_service_id?: number | null,
|
|
108
|
+
req_user_department_id?: number | null,
|
|
109
|
+
req_user_section_id?: number | null,
|
|
110
|
+
req_user_position_id?: number | null,
|
|
111
|
+
name_of_participants?: string[] | null,
|
|
112
|
+
remarks?: string | null,
|
|
113
|
+
reviewer_user_id?: number | null,
|
|
114
|
+
assigned_to_user_id?: number | null,
|
|
115
|
+
assigned_at?: Date | null,
|
|
116
|
+
workflow_execution_id?: string | null
|
|
117
|
+
) {
|
|
118
|
+
super();
|
|
119
|
+
this.user_id = user_id;
|
|
120
|
+
this.purpose_of_training = purpose_of_training;
|
|
121
|
+
this.date_of_event = date_of_event;
|
|
122
|
+
this.start_time = start_time;
|
|
123
|
+
this.end_time = end_time;
|
|
124
|
+
this.room_type = room_type;
|
|
125
|
+
this.number_of_attendees = number_of_attendees;
|
|
126
|
+
this.network_support_required = network_support_required;
|
|
127
|
+
this.meals_required = meals_required;
|
|
128
|
+
this.status = status;
|
|
129
|
+
this.service_id = service_id || null;
|
|
130
|
+
this.sub_service_id = sub_service_id || null;
|
|
131
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
132
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
133
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
134
|
+
this.name_of_participants = name_of_participants ?? null;
|
|
135
|
+
this.remarks = remarks || null;
|
|
136
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
137
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
138
|
+
this.assigned_at = assigned_at || null;
|
|
139
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum NotificationFrequency {
|
|
5
|
-
YEARLY = "yearly",
|
|
6
|
-
SIX_MONTHS_BEFORE = "6_months_before"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: "training_room_notification_configs" })
|
|
10
|
-
export class TrainingRoomNotificationConfig extends BaseModel {
|
|
11
|
-
@Column({ type: "integer", nullable: false })
|
|
12
|
-
department_id: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "integer", nullable: true })
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
department_id: number,
|
|
22
|
-
section_id: number | null = null,
|
|
23
|
-
is_active: boolean = true
|
|
24
|
-
) {
|
|
25
|
-
super();
|
|
26
|
-
this.department_id = department_id;
|
|
27
|
-
this.section_id = section_id;
|
|
28
|
-
this.is_active = is_active;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum NotificationFrequency {
|
|
5
|
+
YEARLY = "yearly",
|
|
6
|
+
SIX_MONTHS_BEFORE = "6_months_before"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@Entity({ name: "training_room_notification_configs" })
|
|
10
|
+
export class TrainingRoomNotificationConfig extends BaseModel {
|
|
11
|
+
@Column({ type: "integer", nullable: false })
|
|
12
|
+
department_id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "integer", nullable: true })
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
department_id: number,
|
|
22
|
+
section_id: number | null = null,
|
|
23
|
+
is_active: boolean = true
|
|
24
|
+
) {
|
|
25
|
+
super();
|
|
26
|
+
this.department_id = department_id;
|
|
27
|
+
this.section_id = section_id;
|
|
28
|
+
this.is_active = is_active;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ScholarshipApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class ScholarshipApprovalDetails extends BaseModel {
|
|
9
|
-
request_id: number;
|
|
10
|
-
service_id: number | null;
|
|
11
|
-
sub_service_id: number | null;
|
|
12
|
-
level: number;
|
|
13
|
-
approver_role_id: number | null;
|
|
14
|
-
department_id: number | null;
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
approver_user_id: number | null;
|
|
17
|
-
delegate_user_id: number | null;
|
|
18
|
-
approved_by: number | null;
|
|
19
|
-
comment: string;
|
|
20
|
-
approval_status: ScholarshipApprovalStatus;
|
|
21
|
-
is_allowed: boolean;
|
|
22
|
-
}
|