@platform-modules/civil-aviation-authority 2.3.170 → 2.3.171
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/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/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/user.d.ts +1 -1
- package/dist/models/user.js +1 -1
- package/package.json +1 -1
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- 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/CyberSecurityAuditRequestModel.ts +32 -32
- 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/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/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/src/models/UserSkillModel.ts +56 -56
- package/src/models/user.ts +2 -2
- 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/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum AnnualTrainingPlanRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
COMPLETED = "Completed",
|
|
8
|
-
APPROVED = "Approved",
|
|
9
|
-
REJECTED = "Rejected"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum AnnualTrainingPlanPlace {
|
|
13
|
-
INSIDE = "Inside",
|
|
14
|
-
OUTSIDE = "Outside"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@Entity({ name: "annual_training_plan_requests" })
|
|
18
|
-
export class AnnualTrainingPlanRequest extends BaseModel {
|
|
19
|
-
@Column({ type: "integer", nullable: true })
|
|
20
|
-
req_user_department_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "integer", nullable: true })
|
|
23
|
-
req_user_section_id: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "integer", nullable: true })
|
|
26
|
-
req_user_position_id: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "integer", nullable: true })
|
|
29
|
-
service_id: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "integer", nullable: true })
|
|
32
|
-
sub_service_id: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "integer", nullable: false })
|
|
35
|
-
user_id: number;
|
|
36
|
-
|
|
37
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
38
|
-
course_name: string;
|
|
39
|
-
|
|
40
|
-
@Column({ type: "integer", nullable: false })
|
|
41
|
-
no_of_participants: number;
|
|
42
|
-
|
|
43
|
-
@Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
|
|
44
|
-
course_cost: number;
|
|
45
|
-
|
|
46
|
-
@Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
|
|
47
|
-
total_cost: number;
|
|
48
|
-
|
|
49
|
-
@Column({ type: "date", nullable: false })
|
|
50
|
-
proposed_implementation_date: Date;
|
|
51
|
-
|
|
52
|
-
@Column({ type: "text", nullable: false })
|
|
53
|
-
description: string;
|
|
54
|
-
|
|
55
|
-
@Column({
|
|
56
|
-
type: "enum",
|
|
57
|
-
enum: AnnualTrainingPlanPlace,
|
|
58
|
-
nullable: false
|
|
59
|
-
})
|
|
60
|
-
place: AnnualTrainingPlanPlace;
|
|
61
|
-
|
|
62
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
63
|
-
location: string | null;
|
|
64
|
-
|
|
65
|
-
@Column({ type: "text", nullable: false })
|
|
66
|
-
reason: string;
|
|
67
|
-
|
|
68
|
-
@Column({ type: "jsonb", nullable: true })
|
|
69
|
-
employee_list: any[] | null; // List of employees for training attendance
|
|
70
|
-
|
|
71
|
-
@Column({
|
|
72
|
-
type: "enum",
|
|
73
|
-
enum: AnnualTrainingPlanRequestStatus,
|
|
74
|
-
default: AnnualTrainingPlanRequestStatus.PENDING,
|
|
75
|
-
nullable: false
|
|
76
|
-
})
|
|
77
|
-
status: AnnualTrainingPlanRequestStatus;
|
|
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
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
92
|
-
job_competency: string | null;
|
|
93
|
-
|
|
94
|
-
@Column({ type: "jsonb", nullable: true })
|
|
95
|
-
name_of_participants: string[] | null;
|
|
96
|
-
|
|
97
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
98
|
-
directarate: string | null;
|
|
99
|
-
|
|
100
|
-
constructor(
|
|
101
|
-
user_id: number,
|
|
102
|
-
course_name: string,
|
|
103
|
-
no_of_participants: number,
|
|
104
|
-
course_cost: number,
|
|
105
|
-
total_cost: number,
|
|
106
|
-
proposed_implementation_date: Date,
|
|
107
|
-
description: string,
|
|
108
|
-
place: AnnualTrainingPlanPlace,
|
|
109
|
-
reason: string,
|
|
110
|
-
status: AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus.PENDING,
|
|
111
|
-
service_id?: number | null,
|
|
112
|
-
sub_service_id?: number | null,
|
|
113
|
-
req_user_department_id?: number | null,
|
|
114
|
-
req_user_section_id?: number | null,
|
|
115
|
-
req_user_position_id?: number | null,
|
|
116
|
-
location?: string | null,
|
|
117
|
-
employee_list?: any[] | null,
|
|
118
|
-
reviewer_user_id?: number | null,
|
|
119
|
-
assigned_to_user_id?: number | null,
|
|
120
|
-
assigned_at?: Date | null,
|
|
121
|
-
workflow_execution_id?: string | null,
|
|
122
|
-
job_competency?: string | null,
|
|
123
|
-
name_of_participants?: string[] | null,
|
|
124
|
-
directarate?: string | null
|
|
125
|
-
) {
|
|
126
|
-
super();
|
|
127
|
-
this.user_id = user_id;
|
|
128
|
-
this.course_name = course_name;
|
|
129
|
-
this.no_of_participants = no_of_participants;
|
|
130
|
-
this.course_cost = course_cost;
|
|
131
|
-
this.total_cost = total_cost;
|
|
132
|
-
this.proposed_implementation_date = proposed_implementation_date;
|
|
133
|
-
this.description = description;
|
|
134
|
-
this.place = place;
|
|
135
|
-
this.reason = reason;
|
|
136
|
-
this.status = status;
|
|
137
|
-
this.service_id = service_id || null;
|
|
138
|
-
this.sub_service_id = sub_service_id || null;
|
|
139
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
140
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
141
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
142
|
-
this.location = location || null;
|
|
143
|
-
this.employee_list = employee_list || null;
|
|
144
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
145
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
146
|
-
this.assigned_at = assigned_at || null;
|
|
147
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
148
|
-
this.job_competency = job_competency ?? null;
|
|
149
|
-
this.name_of_participants = name_of_participants ?? null;
|
|
150
|
-
this.directarate = directarate ?? null;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AnnualTrainingPlanRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
COMPLETED = "Completed",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum AnnualTrainingPlanPlace {
|
|
13
|
+
INSIDE = "Inside",
|
|
14
|
+
OUTSIDE = "Outside"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Entity({ name: "annual_training_plan_requests" })
|
|
18
|
+
export class AnnualTrainingPlanRequest extends BaseModel {
|
|
19
|
+
@Column({ type: "integer", nullable: true })
|
|
20
|
+
req_user_department_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: true })
|
|
23
|
+
req_user_section_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
req_user_position_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
service_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
sub_service_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: false })
|
|
35
|
+
user_id: number;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
38
|
+
course_name: string;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: false })
|
|
41
|
+
no_of_participants: number;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
|
|
44
|
+
course_cost: number;
|
|
45
|
+
|
|
46
|
+
@Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
|
|
47
|
+
total_cost: number;
|
|
48
|
+
|
|
49
|
+
@Column({ type: "date", nullable: false })
|
|
50
|
+
proposed_implementation_date: Date;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "text", nullable: false })
|
|
53
|
+
description: string;
|
|
54
|
+
|
|
55
|
+
@Column({
|
|
56
|
+
type: "enum",
|
|
57
|
+
enum: AnnualTrainingPlanPlace,
|
|
58
|
+
nullable: false
|
|
59
|
+
})
|
|
60
|
+
place: AnnualTrainingPlanPlace;
|
|
61
|
+
|
|
62
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
63
|
+
location: string | null;
|
|
64
|
+
|
|
65
|
+
@Column({ type: "text", nullable: false })
|
|
66
|
+
reason: string;
|
|
67
|
+
|
|
68
|
+
@Column({ type: "jsonb", nullable: true })
|
|
69
|
+
employee_list: any[] | null; // List of employees for training attendance
|
|
70
|
+
|
|
71
|
+
@Column({
|
|
72
|
+
type: "enum",
|
|
73
|
+
enum: AnnualTrainingPlanRequestStatus,
|
|
74
|
+
default: AnnualTrainingPlanRequestStatus.PENDING,
|
|
75
|
+
nullable: false
|
|
76
|
+
})
|
|
77
|
+
status: AnnualTrainingPlanRequestStatus;
|
|
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
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
92
|
+
job_competency: string | null;
|
|
93
|
+
|
|
94
|
+
@Column({ type: "jsonb", nullable: true })
|
|
95
|
+
name_of_participants: string[] | null;
|
|
96
|
+
|
|
97
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
98
|
+
directarate: string | null;
|
|
99
|
+
|
|
100
|
+
constructor(
|
|
101
|
+
user_id: number,
|
|
102
|
+
course_name: string,
|
|
103
|
+
no_of_participants: number,
|
|
104
|
+
course_cost: number,
|
|
105
|
+
total_cost: number,
|
|
106
|
+
proposed_implementation_date: Date,
|
|
107
|
+
description: string,
|
|
108
|
+
place: AnnualTrainingPlanPlace,
|
|
109
|
+
reason: string,
|
|
110
|
+
status: AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus.PENDING,
|
|
111
|
+
service_id?: number | null,
|
|
112
|
+
sub_service_id?: number | null,
|
|
113
|
+
req_user_department_id?: number | null,
|
|
114
|
+
req_user_section_id?: number | null,
|
|
115
|
+
req_user_position_id?: number | null,
|
|
116
|
+
location?: string | null,
|
|
117
|
+
employee_list?: any[] | null,
|
|
118
|
+
reviewer_user_id?: number | null,
|
|
119
|
+
assigned_to_user_id?: number | null,
|
|
120
|
+
assigned_at?: Date | null,
|
|
121
|
+
workflow_execution_id?: string | null,
|
|
122
|
+
job_competency?: string | null,
|
|
123
|
+
name_of_participants?: string[] | null,
|
|
124
|
+
directarate?: string | null
|
|
125
|
+
) {
|
|
126
|
+
super();
|
|
127
|
+
this.user_id = user_id;
|
|
128
|
+
this.course_name = course_name;
|
|
129
|
+
this.no_of_participants = no_of_participants;
|
|
130
|
+
this.course_cost = course_cost;
|
|
131
|
+
this.total_cost = total_cost;
|
|
132
|
+
this.proposed_implementation_date = proposed_implementation_date;
|
|
133
|
+
this.description = description;
|
|
134
|
+
this.place = place;
|
|
135
|
+
this.reason = reason;
|
|
136
|
+
this.status = status;
|
|
137
|
+
this.service_id = service_id || null;
|
|
138
|
+
this.sub_service_id = sub_service_id || null;
|
|
139
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
140
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
141
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
142
|
+
this.location = location || null;
|
|
143
|
+
this.employee_list = employee_list || null;
|
|
144
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
145
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
146
|
+
this.assigned_at = assigned_at || null;
|
|
147
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
148
|
+
this.job_competency = job_competency ?? null;
|
|
149
|
+
this.name_of_participants = name_of_participants ?? null;
|
|
150
|
+
this.directarate = directarate ?? null;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -75,29 +75,29 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
|
|
|
75
75
|
@Column({ type: "text", nullable: false })
|
|
76
76
|
decision_subject: string;
|
|
77
77
|
|
|
78
|
-
@Column({ type: "text", nullable: false })
|
|
79
|
-
grievance_details: string;
|
|
80
|
-
|
|
81
|
-
@Column({ type: "jsonb", nullable: true })
|
|
82
|
-
individuals_involved: string[] | null;
|
|
83
|
-
|
|
84
|
-
@Column({ type: "jsonb", nullable: true })
|
|
85
|
-
times: string[] | null;
|
|
86
|
-
|
|
87
|
-
@Column({ type: "date", nullable: true })
|
|
88
|
-
dates: Date | null;
|
|
89
|
-
|
|
90
|
-
@Column({ type: "text", nullable: true })
|
|
91
|
-
location: string | null;
|
|
92
|
-
|
|
93
|
-
@Column({ type: "jsonb", nullable: true })
|
|
94
|
-
requests: string[] | null;
|
|
95
|
-
|
|
96
|
-
@Column({ type: "jsonb", nullable: true })
|
|
97
|
-
events: string[] | null;
|
|
98
|
-
|
|
99
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
-
grievant_name: string;
|
|
78
|
+
@Column({ type: "text", nullable: false })
|
|
79
|
+
grievance_details: string;
|
|
80
|
+
|
|
81
|
+
@Column({ type: "jsonb", nullable: true })
|
|
82
|
+
individuals_involved: string[] | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: "jsonb", nullable: true })
|
|
85
|
+
times: string[] | null;
|
|
86
|
+
|
|
87
|
+
@Column({ type: "date", nullable: true })
|
|
88
|
+
dates: Date | null;
|
|
89
|
+
|
|
90
|
+
@Column({ type: "text", nullable: true })
|
|
91
|
+
location: string | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: "jsonb", nullable: true })
|
|
94
|
+
requests: string[] | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: "jsonb", nullable: true })
|
|
97
|
+
events: string[] | null;
|
|
98
|
+
|
|
99
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
+
grievant_name: string;
|
|
101
101
|
|
|
102
102
|
@Column({ type: "varchar", length: 100, nullable: false })
|
|
103
103
|
grievant_employee_number: string;
|
|
@@ -8,36 +8,36 @@ export class CAAServices extends BaseModel {
|
|
|
8
8
|
@Column({ type: 'varchar', length: 64, nullable: false, unique: true })
|
|
9
9
|
code: string;
|
|
10
10
|
|
|
11
|
-
@Column({ nullable: false })
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "text", nullable: true })
|
|
15
|
-
arabic_name: string | null;
|
|
16
|
-
|
|
17
|
-
@Column({ nullable: false })
|
|
18
|
-
description: string;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "text", nullable: true })
|
|
21
|
-
arabic_description: string | null;
|
|
22
|
-
|
|
23
|
-
@Column({ nullable: true })
|
|
24
|
-
logo_url: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
constructor(
|
|
28
|
-
name: string,
|
|
29
|
-
description: string,
|
|
30
|
-
arabic_name?: string | null,
|
|
31
|
-
arabic_description?: string | null,
|
|
32
|
-
code?: string,
|
|
33
|
-
logo_url?: string
|
|
34
|
-
) {
|
|
35
|
-
super();
|
|
36
|
-
this.name = name;
|
|
37
|
-
this.description = description;
|
|
38
|
-
this.arabic_name = arabic_name || null;
|
|
39
|
-
this.arabic_description = arabic_description || null;
|
|
40
|
-
this.code = code || '';
|
|
41
|
-
this.logo_url = logo_url || '';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
11
|
+
@Column({ nullable: false })
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "text", nullable: true })
|
|
15
|
+
arabic_name: string | null;
|
|
16
|
+
|
|
17
|
+
@Column({ nullable: false })
|
|
18
|
+
description: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "text", nullable: true })
|
|
21
|
+
arabic_description: string | null;
|
|
22
|
+
|
|
23
|
+
@Column({ nullable: true })
|
|
24
|
+
logo_url: string;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
description: string,
|
|
30
|
+
arabic_name?: string | null,
|
|
31
|
+
arabic_description?: string | null,
|
|
32
|
+
code?: string,
|
|
33
|
+
logo_url?: string
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.description = description;
|
|
38
|
+
this.arabic_name = arabic_name || null;
|
|
39
|
+
this.arabic_description = arabic_description || null;
|
|
40
|
+
this.code = code || '';
|
|
41
|
+
this.logo_url = logo_url || '';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -9,20 +9,20 @@ export class CAASubServices extends BaseModel {
|
|
|
9
9
|
@Column({ type: 'varchar', length: 64, nullable: true, unique: true })
|
|
10
10
|
code: string | null;
|
|
11
11
|
|
|
12
|
-
@Column({ nullable: false })
|
|
13
|
-
sub_service_name: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "text", nullable: true })
|
|
16
|
-
arabic_name: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ nullable: false })
|
|
19
|
-
description: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "text", nullable: true })
|
|
22
|
-
arabic_description: string | null;
|
|
23
|
-
|
|
24
|
-
@Column({ nullable: true })
|
|
25
|
-
service_id: number;
|
|
12
|
+
@Column({ nullable: false })
|
|
13
|
+
sub_service_name: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "text", nullable: true })
|
|
16
|
+
arabic_name: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ nullable: false })
|
|
19
|
+
description: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "text", nullable: true })
|
|
22
|
+
arabic_description: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ nullable: true })
|
|
25
|
+
service_id: number;
|
|
26
26
|
|
|
27
27
|
@ManyToOne(() => CAAServices)
|
|
28
28
|
@JoinColumn({ name: 'service_id' })
|
|
@@ -31,22 +31,22 @@ export class CAASubServices extends BaseModel {
|
|
|
31
31
|
@Column({ nullable: true })
|
|
32
32
|
logo_url: string;
|
|
33
33
|
|
|
34
|
-
constructor(
|
|
35
|
-
sub_service_name: string,
|
|
36
|
-
description: string,
|
|
37
|
-
arabic_name: string | null,
|
|
38
|
-
arabic_description: string | null,
|
|
39
|
-
service_id: number,
|
|
40
|
-
logo_url: string,
|
|
41
|
-
code: string | null = null
|
|
42
|
-
) {
|
|
43
|
-
super();
|
|
44
|
-
this.sub_service_name = sub_service_name
|
|
45
|
-
this.arabic_name = arabic_name || null;
|
|
46
|
-
this.description = description
|
|
47
|
-
this.arabic_description = arabic_description || null;
|
|
48
|
-
this.service_id = service_id
|
|
49
|
-
this.logo_url = logo_url
|
|
50
|
-
this.code = code
|
|
51
|
-
}
|
|
52
|
-
}
|
|
34
|
+
constructor(
|
|
35
|
+
sub_service_name: string,
|
|
36
|
+
description: string,
|
|
37
|
+
arabic_name: string | null,
|
|
38
|
+
arabic_description: string | null,
|
|
39
|
+
service_id: number,
|
|
40
|
+
logo_url: string,
|
|
41
|
+
code: string | null = null
|
|
42
|
+
) {
|
|
43
|
+
super();
|
|
44
|
+
this.sub_service_name = sub_service_name
|
|
45
|
+
this.arabic_name = arabic_name || null;
|
|
46
|
+
this.description = description
|
|
47
|
+
this.arabic_description = arabic_description || null;
|
|
48
|
+
this.service_id = service_id
|
|
49
|
+
this.logo_url = logo_url
|
|
50
|
+
this.code = code
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "cai_rating_master" })
|
|
5
|
-
export class CAIRatingMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
confidentiality: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "text", nullable: false })
|
|
10
|
-
integrity: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "text", nullable: false })
|
|
13
|
-
availability: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
-
rating: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
-
value: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "boolean", default: true })
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
|
|
24
|
-
constructor(
|
|
25
|
-
confidentiality: string,
|
|
26
|
-
integrity: string,
|
|
27
|
-
availability: string,
|
|
28
|
-
rating: string,
|
|
29
|
-
value: string
|
|
30
|
-
) {
|
|
31
|
-
super();
|
|
32
|
-
this.confidentiality = confidentiality;
|
|
33
|
-
this.integrity = integrity;
|
|
34
|
-
this.availability = availability;
|
|
35
|
-
this.rating = rating;
|
|
36
|
-
this.value = value;
|
|
37
|
-
this.is_active = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "cai_rating_master" })
|
|
5
|
+
export class CAIRatingMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
confidentiality: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "text", nullable: false })
|
|
10
|
+
integrity: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "text", nullable: false })
|
|
13
|
+
availability: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
+
rating: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
+
value: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "boolean", default: true })
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
confidentiality: string,
|
|
26
|
+
integrity: string,
|
|
27
|
+
availability: string,
|
|
28
|
+
rating: string,
|
|
29
|
+
value: string
|
|
30
|
+
) {
|
|
31
|
+
super();
|
|
32
|
+
this.confidentiality = confidentiality;
|
|
33
|
+
this.integrity = integrity;
|
|
34
|
+
this.availability = availability;
|
|
35
|
+
this.rating = rating;
|
|
36
|
+
this.value = value;
|
|
37
|
+
this.is_active = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "csrm_business_impact_rating_master" })
|
|
5
|
-
export class CSRMBusinessImpactRatingMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
guidelines: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
-
rating: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
-
value: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "boolean", default: true })
|
|
16
|
-
is_active: boolean;
|
|
17
|
-
|
|
18
|
-
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
-
super();
|
|
20
|
-
this.guidelines = guidelines;
|
|
21
|
-
this.rating = rating;
|
|
22
|
-
this.value = value;
|
|
23
|
-
this.is_active = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "csrm_business_impact_rating_master" })
|
|
5
|
+
export class CSRMBusinessImpactRatingMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
guidelines: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
+
rating: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
+
value: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "boolean", default: true })
|
|
16
|
+
is_active: boolean;
|
|
17
|
+
|
|
18
|
+
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
+
super();
|
|
20
|
+
this.guidelines = guidelines;
|
|
21
|
+
this.rating = rating;
|
|
22
|
+
this.value = value;
|
|
23
|
+
this.is_active = true;
|
|
24
|
+
}
|
|
25
|
+
}
|