@platform-modules/civil-aviation-authority 2.3.195 → 2.3.201
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 +9 -17
- package/dist/data-source.js +30 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +17 -0
- package/dist/models/ContractServiceRequestModel.d.ts +23 -0
- package/dist/models/ContractServiceRequestModel.js +102 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/ImportExportMaterialApprovalModel.d.ts +23 -0
- package/dist/models/ImportExportMaterialApprovalModel.js +101 -0
- package/dist/models/ImportExportMaterialAttachmentModel.d.ts +12 -0
- package/dist/models/ImportExportMaterialAttachmentModel.js +64 -0
- package/dist/models/ImportExportMaterialChatModel.d.ts +28 -0
- package/dist/models/ImportExportMaterialChatModel.js +86 -0
- package/dist/models/ImportExportMaterialRequestModel.d.ts +33 -0
- package/dist/models/ImportExportMaterialRequestModel.js +118 -0
- package/dist/models/ImportExportMaterialWorkflowModel.d.ts +18 -0
- package/dist/models/ImportExportMaterialWorkflowModel.js +80 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.d.ts +23 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.js +101 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.d.ts +12 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.js +64 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.js +86 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.js +108 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.d.ts +18 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.js +80 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.d.ts +23 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.js +101 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.d.ts +12 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.js +64 -0
- package/dist/models/WorkingHoursExtensionChatModel.d.ts +28 -0
- package/dist/models/WorkingHoursExtensionChatModel.js +86 -0
- package/dist/models/WorkingHoursExtensionRequestModel.d.ts +25 -0
- package/dist/models/WorkingHoursExtensionRequestModel.js +96 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.d.ts +18 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.js +80 -0
- package/package.json +24 -24
- package/src/data-source.ts +30 -0
- package/src/index.ts +18 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/ContractServiceRequestModel.ts +68 -0
- 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/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -0
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -0
- package/src/models/ImportExportMaterialChatModel.ts +61 -0
- package/src/models/ImportExportMaterialRequestModel.ts +85 -0
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -0
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -0
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -0
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -0
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -0
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -0
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -0
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -0
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -0
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -0
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/ImportExportMaterialModels.d.ts +0 -92
- package/dist/models/ImportExportMaterialModels.js +0 -307
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/SecurityAccessApprovalModel.d.ts +0 -23
- package/dist/models/SecurityAccessApprovalModel.js +0 -82
- package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAccessAttachmentModel.js +0 -56
- package/dist/models/SecurityAccessChatModel.d.ts +0 -12
- package/dist/models/SecurityAccessChatModel.js +0 -56
- package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
- package/dist/models/SecurityAccessRequestModel.js +0 -80
- package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
- package/dist/models/SecurityAccessWorkflowModel.js +0 -84
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
- package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
- package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
- package/dist/models/WorkingHoursExtensionModels.js +0 -295
|
@@ -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,56 +1,56 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { SkillCategory } from "./SkillsEnhancementRequestModel";
|
|
4
|
-
|
|
5
|
-
@Entity({ name: "user_skills" })
|
|
6
|
-
export class UserSkill extends BaseModel {
|
|
7
|
-
@Column({ type: "integer", nullable: false })
|
|
8
|
-
user_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
11
|
-
skill_name: string;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "enum", enum: SkillCategory, nullable: true })
|
|
14
|
-
skill_category: SkillCategory | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
17
|
-
issuing_authority: string | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "date", nullable: true })
|
|
20
|
-
completion_date: Date | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "text", nullable: true })
|
|
23
|
-
skill_summary: string | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "integer", nullable: true })
|
|
26
|
-
source_request_id: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
29
|
-
source_request_type: string | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
32
|
-
is_active: boolean;
|
|
33
|
-
|
|
34
|
-
constructor(
|
|
35
|
-
user_id: number,
|
|
36
|
-
skill_name: string,
|
|
37
|
-
skill_category?: SkillCategory | null,
|
|
38
|
-
issuing_authority?: string | null,
|
|
39
|
-
completion_date?: Date | null,
|
|
40
|
-
skill_summary?: string | null,
|
|
41
|
-
source_request_id?: number | null,
|
|
42
|
-
source_request_type?: string | null,
|
|
43
|
-
is_active?: boolean
|
|
44
|
-
) {
|
|
45
|
-
super();
|
|
46
|
-
this.user_id = user_id;
|
|
47
|
-
this.skill_name = skill_name;
|
|
48
|
-
this.skill_category = skill_category || null;
|
|
49
|
-
this.issuing_authority = issuing_authority || null;
|
|
50
|
-
this.completion_date = completion_date || null;
|
|
51
|
-
this.skill_summary = skill_summary || null;
|
|
52
|
-
this.source_request_id = source_request_id || null;
|
|
53
|
-
this.source_request_type = source_request_type || null;
|
|
54
|
-
this.is_active = is_active !== undefined ? is_active : true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { SkillCategory } from "./SkillsEnhancementRequestModel";
|
|
4
|
+
|
|
5
|
+
@Entity({ name: "user_skills" })
|
|
6
|
+
export class UserSkill extends BaseModel {
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
user_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
11
|
+
skill_name: string;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "enum", enum: SkillCategory, nullable: true })
|
|
14
|
+
skill_category: SkillCategory | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
17
|
+
issuing_authority: string | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "date", nullable: true })
|
|
20
|
+
completion_date: Date | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "text", nullable: true })
|
|
23
|
+
skill_summary: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
source_request_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
29
|
+
source_request_type: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
32
|
+
is_active: boolean;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
user_id: number,
|
|
36
|
+
skill_name: string,
|
|
37
|
+
skill_category?: SkillCategory | null,
|
|
38
|
+
issuing_authority?: string | null,
|
|
39
|
+
completion_date?: Date | null,
|
|
40
|
+
skill_summary?: string | null,
|
|
41
|
+
source_request_id?: number | null,
|
|
42
|
+
source_request_type?: string | null,
|
|
43
|
+
is_active?: boolean
|
|
44
|
+
) {
|
|
45
|
+
super();
|
|
46
|
+
this.user_id = user_id;
|
|
47
|
+
this.skill_name = skill_name;
|
|
48
|
+
this.skill_category = skill_category || null;
|
|
49
|
+
this.issuing_authority = issuing_authority || null;
|
|
50
|
+
this.completion_date = completion_date || null;
|
|
51
|
+
this.skill_summary = skill_summary || null;
|
|
52
|
+
this.source_request_id = source_request_id || null;
|
|
53
|
+
this.source_request_type = source_request_type || null;
|
|
54
|
+
this.is_active = is_active !== undefined ? is_active : true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum WorkingHoursExtensionApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "working_hours_extension_approvals" })
|
|
12
|
+
export class WorkingHoursExtensionApproval extends BaseModel {
|
|
13
|
+
@Column({ type: "integer", 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: "integer", nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "varchar", length: 500, nullable: true, default: "" })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
type: "enum",
|
|
48
|
+
enum: WorkingHoursExtensionApprovalStatus,
|
|
49
|
+
default: WorkingHoursExtensionApprovalStatus.PENDING,
|
|
50
|
+
nullable: false
|
|
51
|
+
})
|
|
52
|
+
approval_status: WorkingHoursExtensionApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
|
|
57
|
+
constructor(
|
|
58
|
+
request_id: number,
|
|
59
|
+
approver_role_id: number,
|
|
60
|
+
level: number,
|
|
61
|
+
comment: string,
|
|
62
|
+
approval_status: WorkingHoursExtensionApprovalStatus,
|
|
63
|
+
service_id?: number,
|
|
64
|
+
sub_service_id?: number,
|
|
65
|
+
department_id?: number | null,
|
|
66
|
+
section_id?: number | null,
|
|
67
|
+
approver_user_id?: number | null,
|
|
68
|
+
delegate_user_id?: number | null,
|
|
69
|
+
approved_by?: number | null,
|
|
70
|
+
is_allowed?: boolean
|
|
71
|
+
) {
|
|
72
|
+
super();
|
|
73
|
+
this.request_id = request_id;
|
|
74
|
+
this.service_id = service_id ?? null;
|
|
75
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
76
|
+
this.level = level;
|
|
77
|
+
this.approver_role_id = approver_role_id;
|
|
78
|
+
this.department_id = department_id ?? null;
|
|
79
|
+
this.section_id = section_id ?? null;
|
|
80
|
+
this.approver_user_id = approver_user_id ?? null;
|
|
81
|
+
this.delegate_user_id = delegate_user_id ?? null;
|
|
82
|
+
this.approved_by = approved_by ?? null;
|
|
83
|
+
this.comment = comment;
|
|
84
|
+
this.approval_status = approval_status;
|
|
85
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "working_hours_extension_attachments" })
|
|
5
|
+
export class WorkingHoursExtensionAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "bigint", nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
|
|
30
|
+
constructor(
|
|
31
|
+
request_id: number,
|
|
32
|
+
file_url: string,
|
|
33
|
+
service_id?: number,
|
|
34
|
+
sub_service_id?: number,
|
|
35
|
+
file_name?: string,
|
|
36
|
+
file_type?: string,
|
|
37
|
+
file_size?: number,
|
|
38
|
+
chat_id?: number
|
|
39
|
+
) {
|
|
40
|
+
super();
|
|
41
|
+
this.request_id = request_id;
|
|
42
|
+
this.service_id = service_id ?? null;
|
|
43
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
44
|
+
this.file_url = file_url;
|
|
45
|
+
this.file_name = file_name ?? "";
|
|
46
|
+
this.file_type = file_type ?? "";
|
|
47
|
+
this.file_size = file_size ?? null;
|
|
48
|
+
this.chat_id = chat_id ?? null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum WorkingHoursExtensionMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum WorkingHoursExtensionChatStatus {
|
|
13
|
+
Pending = "Pending",
|
|
14
|
+
Received = "Received",
|
|
15
|
+
Approved = "Approved",
|
|
16
|
+
Rejected = "Rejected",
|
|
17
|
+
InProgress = "In Progress"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Entity({ name: "working_hours_extension_chats" })
|
|
21
|
+
export class WorkingHoursExtensionChat extends BaseModel {
|
|
22
|
+
@Column({ type: "int", nullable: false })
|
|
23
|
+
request_id: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: false })
|
|
26
|
+
service_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "int", nullable: false })
|
|
29
|
+
sub_service_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "int", nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "text", nullable: false })
|
|
35
|
+
message: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "int", nullable: true })
|
|
38
|
+
approver_role_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
41
|
+
status: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
type: "enum",
|
|
45
|
+
enum: WorkingHoursExtensionMessageType,
|
|
46
|
+
default: WorkingHoursExtensionMessageType.TEXT,
|
|
47
|
+
nullable: false,
|
|
48
|
+
name: "message_type"
|
|
49
|
+
})
|
|
50
|
+
messageType: WorkingHoursExtensionMessageType;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
53
|
+
is_internal: boolean;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "int", nullable: false })
|
|
56
|
+
created_by: number;
|
|
57
|
+
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
}
|
|
61
|
+
}
|