@platform-modules/civil-aviation-authority 2.3.201 → 2.3.205
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 +22 -7
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.d.ts +12 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.js +56 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.d.ts +21 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.js +78 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.d.ts +18 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.js +80 -0
- 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/ImportExportMaterialModels.d.ts +92 -0
- package/dist/models/ImportExportMaterialModels.js +307 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
- package/dist/models/SecurityAccessApprovalModel.js +82 -0
- package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAccessAttachmentModel.js +56 -0
- package/dist/models/SecurityAccessChatModel.d.ts +12 -0
- package/dist/models/SecurityAccessChatModel.js +56 -0
- package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
- package/dist/models/SecurityAccessRequestModel.js +80 -0
- package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
- package/dist/models/SecurityAccessWorkflowModel.js +84 -0
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
- package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
- package/dist/models/WorkingHoursExtensionModels.js +295 -0
- package/package.json +1 -1
- package/src/data-source.ts +419 -419
- package/src/index.ts +5 -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/ComplaintLostPropertyReportApprovalModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportAttachmentModel.ts +33 -0
- package/src/models/ComplaintLostPropertyReportChatModel.ts +53 -0
- package/src/models/ComplaintLostPropertyReportRequestModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportWorkflowModel.ts +51 -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/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- 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/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalConsultationApprovalModel.ts +65 -65
- 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/ResidentialUnitRentalApprovalModel.ts +143 -143
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- 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/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
package/src/models/user.ts
CHANGED
|
@@ -1,234 +1,234 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'users' })
|
|
5
|
-
export class User extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'bigint', nullable: true })
|
|
8
|
-
employee_id?: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'bigint', nullable: true })
|
|
11
|
-
civil_employee_id?: number;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: true })
|
|
14
|
-
employee_name?: string;
|
|
15
|
-
|
|
16
|
-
@Column({ nullable: true })
|
|
17
|
-
employee_arabic_name?: string;
|
|
18
|
-
|
|
19
|
-
@Column({ nullable: true })
|
|
20
|
-
person_type?: string;
|
|
21
|
-
|
|
22
|
-
@Column({ nullable: true })
|
|
23
|
-
date_of_birth?: string;
|
|
24
|
-
|
|
25
|
-
@Column({ nullable: true })
|
|
26
|
-
region_of_birth?: string;
|
|
27
|
-
|
|
28
|
-
@Column({ nullable: true })
|
|
29
|
-
country_of_birth?: string;
|
|
30
|
-
|
|
31
|
-
@Column({ nullable: true })
|
|
32
|
-
date_of_joining?: string;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true })
|
|
35
|
-
last_promotion_date?: string;
|
|
36
|
-
|
|
37
|
-
@Column({ nullable: true })
|
|
38
|
-
gender?: string;
|
|
39
|
-
|
|
40
|
-
@Column({ nullable: true })
|
|
41
|
-
qualification?: string;
|
|
42
|
-
|
|
43
|
-
@Column({ nullable: true })
|
|
44
|
-
marital_status?: string;
|
|
45
|
-
|
|
46
|
-
@Column({ nullable: true })
|
|
47
|
-
nationality?: string;
|
|
48
|
-
|
|
49
|
-
@Column({ nullable: true })
|
|
50
|
-
email?: string;
|
|
51
|
-
|
|
52
|
-
@Column({ nullable: true })
|
|
53
|
-
blood_type?: string;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
56
|
-
national_id?: string;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
59
|
-
manpower_id?: string;
|
|
60
|
-
|
|
61
|
-
@Column({ nullable: true })
|
|
62
|
-
mobile?: string;
|
|
63
|
-
|
|
64
|
-
@Column({ nullable: true })
|
|
65
|
-
office_number?: string;
|
|
66
|
-
|
|
67
|
-
@Column({ nullable: true })
|
|
68
|
-
department?: number;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" })
|
|
71
|
-
category: "CAA" | "Embassy"; // Mandatory
|
|
72
|
-
|
|
73
|
-
@Column({ nullable: true })
|
|
74
|
-
directorate?: string;
|
|
75
|
-
|
|
76
|
-
@Column({ nullable: true })
|
|
77
|
-
section?: number;
|
|
78
|
-
|
|
79
|
-
@Column({ nullable: true })
|
|
80
|
-
position?: number;
|
|
81
|
-
|
|
82
|
-
@Column({ nullable: true })
|
|
83
|
-
arabic_position?: string;
|
|
84
|
-
|
|
85
|
-
@Column({ nullable: true })
|
|
86
|
-
grade?: number;
|
|
87
|
-
|
|
88
|
-
@Column({ nullable: true })
|
|
89
|
-
location?: string;
|
|
90
|
-
|
|
91
|
-
@Column({ type: 'bigint', nullable: true })
|
|
92
|
-
supervisor_emp_id?: number;
|
|
93
|
-
|
|
94
|
-
@Column({ nullable: true })
|
|
95
|
-
supervisor_emp_name?: string;
|
|
96
|
-
|
|
97
|
-
@Column({ nullable: true , default: false})
|
|
98
|
-
is_admin?: boolean;
|
|
99
|
-
|
|
100
|
-
@Column({ nullable: true })
|
|
101
|
-
passport_number?: string;
|
|
102
|
-
|
|
103
|
-
@Column({ nullable: true })
|
|
104
|
-
personal_email?: string;
|
|
105
|
-
|
|
106
|
-
@Column({ nullable: true })
|
|
107
|
-
extension_number?: number;
|
|
108
|
-
|
|
109
|
-
@Column({ type: "varchar", length: 20, nullable: true })
|
|
110
|
-
fax_number?: string; // Optional
|
|
111
|
-
|
|
112
|
-
@Column({ nullable: true })
|
|
113
|
-
diplomatic_name?: string;
|
|
114
|
-
|
|
115
|
-
@Column({ nullable: true })
|
|
116
|
-
avatar?: string;
|
|
117
|
-
|
|
118
|
-
@Column({ nullable: true })
|
|
119
|
-
father_name?: string;
|
|
120
|
-
|
|
121
|
-
@Column({ nullable: true })
|
|
122
|
-
spouse_name?: string;
|
|
123
|
-
|
|
124
|
-
@Column({ nullable: true })
|
|
125
|
-
children1_name?: string;
|
|
126
|
-
|
|
127
|
-
@Column({ nullable: true })
|
|
128
|
-
children2_name?: string;
|
|
129
|
-
|
|
130
|
-
@Column({ nullable: true })
|
|
131
|
-
address?: string;
|
|
132
|
-
|
|
133
|
-
@Column({ nullable: true })
|
|
134
|
-
religion?: string;
|
|
135
|
-
|
|
136
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
137
|
-
current_basic_salary: number;
|
|
138
|
-
|
|
139
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
140
|
-
previous_basic_salary: number;
|
|
141
|
-
|
|
142
|
-
constructor(
|
|
143
|
-
employee_id?: number,
|
|
144
|
-
civil_employee_id?: number,
|
|
145
|
-
employee_name?: string,
|
|
146
|
-
employee_arabic_name?: string,
|
|
147
|
-
person_type?: string,
|
|
148
|
-
date_of_birth?: string,
|
|
149
|
-
region_of_birth?: string,
|
|
150
|
-
country_of_birth?: string,
|
|
151
|
-
date_of_joining?: string,
|
|
152
|
-
last_promotion_date?: string,
|
|
153
|
-
gender?: string,
|
|
154
|
-
qualification?: string,
|
|
155
|
-
marital_status?: string,
|
|
156
|
-
nationality?: string,
|
|
157
|
-
email?: string,
|
|
158
|
-
blood_type?: string,
|
|
159
|
-
national_id?: string,
|
|
160
|
-
manpower_id?: string,
|
|
161
|
-
mobile?: string,
|
|
162
|
-
office_number?: string,
|
|
163
|
-
department?: number,
|
|
164
|
-
category?: "CAA" | "Embassy",
|
|
165
|
-
directorate?: string,
|
|
166
|
-
section?: number,
|
|
167
|
-
position?: number,
|
|
168
|
-
arabic_position?: string,
|
|
169
|
-
grade?: number,
|
|
170
|
-
location?: string,
|
|
171
|
-
supervisor_emp_id?: number,
|
|
172
|
-
supervisor_emp_name?: string,
|
|
173
|
-
passport_number?: string,
|
|
174
|
-
personal_email?: string,
|
|
175
|
-
extension_number?: number,
|
|
176
|
-
fax_number?: string,
|
|
177
|
-
diplomatic_name?: string,
|
|
178
|
-
avatar?: string,
|
|
179
|
-
father_name?: string,
|
|
180
|
-
spouse_name?: string,
|
|
181
|
-
children1_name?: string,
|
|
182
|
-
children2_name?: string,
|
|
183
|
-
address?: string,
|
|
184
|
-
religion?: string,
|
|
185
|
-
current_basic_salary?: number,
|
|
186
|
-
previous_basic_salary?: number
|
|
187
|
-
) {
|
|
188
|
-
super();
|
|
189
|
-
this.employee_id = employee_id;
|
|
190
|
-
this.civil_employee_id = civil_employee_id;
|
|
191
|
-
this.employee_name = employee_name;
|
|
192
|
-
this.employee_arabic_name = employee_arabic_name;
|
|
193
|
-
this.person_type = person_type;
|
|
194
|
-
this.date_of_birth = date_of_birth;
|
|
195
|
-
this.region_of_birth = region_of_birth;
|
|
196
|
-
this.country_of_birth = country_of_birth;
|
|
197
|
-
this.date_of_joining = date_of_joining;
|
|
198
|
-
this.last_promotion_date = last_promotion_date;
|
|
199
|
-
this.gender = gender;
|
|
200
|
-
this.qualification = qualification;
|
|
201
|
-
this.marital_status = marital_status;
|
|
202
|
-
this.nationality = nationality;
|
|
203
|
-
this.email = email;
|
|
204
|
-
this.blood_type = blood_type;
|
|
205
|
-
this.national_id = national_id;
|
|
206
|
-
this.manpower_id = manpower_id;
|
|
207
|
-
this.mobile = mobile;
|
|
208
|
-
this.office_number = office_number;
|
|
209
|
-
this.department = department;
|
|
210
|
-
this.category = category || "CAA";
|
|
211
|
-
this.directorate = directorate;
|
|
212
|
-
this.section = section;
|
|
213
|
-
this.position = position;
|
|
214
|
-
this.arabic_position = arabic_position;
|
|
215
|
-
this.grade = grade;
|
|
216
|
-
this.location = location;
|
|
217
|
-
this.supervisor_emp_id = supervisor_emp_id;
|
|
218
|
-
this.supervisor_emp_name = supervisor_emp_name;
|
|
219
|
-
this.passport_number = passport_number;
|
|
220
|
-
this.personal_email = personal_email;
|
|
221
|
-
this.extension_number = extension_number;
|
|
222
|
-
this.fax_number = fax_number;
|
|
223
|
-
this.diplomatic_name = diplomatic_name;
|
|
224
|
-
this.avatar = avatar;
|
|
225
|
-
this.father_name = father_name;
|
|
226
|
-
this.spouse_name = spouse_name;
|
|
227
|
-
this.children1_name = children1_name;
|
|
228
|
-
this.children2_name = children2_name;
|
|
229
|
-
this.address = address;
|
|
230
|
-
this.religion = religion;
|
|
231
|
-
this.current_basic_salary = current_basic_salary || 0;
|
|
232
|
-
this.previous_basic_salary = previous_basic_salary || 0;
|
|
233
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'users' })
|
|
5
|
+
export class User extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'bigint', nullable: true })
|
|
8
|
+
employee_id?: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'bigint', nullable: true })
|
|
11
|
+
civil_employee_id?: number;
|
|
12
|
+
|
|
13
|
+
@Column({ nullable: true })
|
|
14
|
+
employee_name?: string;
|
|
15
|
+
|
|
16
|
+
@Column({ nullable: true })
|
|
17
|
+
employee_arabic_name?: string;
|
|
18
|
+
|
|
19
|
+
@Column({ nullable: true })
|
|
20
|
+
person_type?: string;
|
|
21
|
+
|
|
22
|
+
@Column({ nullable: true })
|
|
23
|
+
date_of_birth?: string;
|
|
24
|
+
|
|
25
|
+
@Column({ nullable: true })
|
|
26
|
+
region_of_birth?: string;
|
|
27
|
+
|
|
28
|
+
@Column({ nullable: true })
|
|
29
|
+
country_of_birth?: string;
|
|
30
|
+
|
|
31
|
+
@Column({ nullable: true })
|
|
32
|
+
date_of_joining?: string;
|
|
33
|
+
|
|
34
|
+
@Column({ nullable: true })
|
|
35
|
+
last_promotion_date?: string;
|
|
36
|
+
|
|
37
|
+
@Column({ nullable: true })
|
|
38
|
+
gender?: string;
|
|
39
|
+
|
|
40
|
+
@Column({ nullable: true })
|
|
41
|
+
qualification?: string;
|
|
42
|
+
|
|
43
|
+
@Column({ nullable: true })
|
|
44
|
+
marital_status?: string;
|
|
45
|
+
|
|
46
|
+
@Column({ nullable: true })
|
|
47
|
+
nationality?: string;
|
|
48
|
+
|
|
49
|
+
@Column({ nullable: true })
|
|
50
|
+
email?: string;
|
|
51
|
+
|
|
52
|
+
@Column({ nullable: true })
|
|
53
|
+
blood_type?: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
56
|
+
national_id?: string;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
59
|
+
manpower_id?: string;
|
|
60
|
+
|
|
61
|
+
@Column({ nullable: true })
|
|
62
|
+
mobile?: string;
|
|
63
|
+
|
|
64
|
+
@Column({ nullable: true })
|
|
65
|
+
office_number?: string;
|
|
66
|
+
|
|
67
|
+
@Column({ nullable: true })
|
|
68
|
+
department?: number;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" })
|
|
71
|
+
category: "CAA" | "Embassy"; // Mandatory
|
|
72
|
+
|
|
73
|
+
@Column({ nullable: true })
|
|
74
|
+
directorate?: string;
|
|
75
|
+
|
|
76
|
+
@Column({ nullable: true })
|
|
77
|
+
section?: number;
|
|
78
|
+
|
|
79
|
+
@Column({ nullable: true })
|
|
80
|
+
position?: number;
|
|
81
|
+
|
|
82
|
+
@Column({ nullable: true })
|
|
83
|
+
arabic_position?: string;
|
|
84
|
+
|
|
85
|
+
@Column({ nullable: true })
|
|
86
|
+
grade?: number;
|
|
87
|
+
|
|
88
|
+
@Column({ nullable: true })
|
|
89
|
+
location?: string;
|
|
90
|
+
|
|
91
|
+
@Column({ type: 'bigint', nullable: true })
|
|
92
|
+
supervisor_emp_id?: number;
|
|
93
|
+
|
|
94
|
+
@Column({ nullable: true })
|
|
95
|
+
supervisor_emp_name?: string;
|
|
96
|
+
|
|
97
|
+
@Column({ nullable: true , default: false})
|
|
98
|
+
is_admin?: boolean;
|
|
99
|
+
|
|
100
|
+
@Column({ nullable: true })
|
|
101
|
+
passport_number?: string;
|
|
102
|
+
|
|
103
|
+
@Column({ nullable: true })
|
|
104
|
+
personal_email?: string;
|
|
105
|
+
|
|
106
|
+
@Column({ nullable: true })
|
|
107
|
+
extension_number?: number;
|
|
108
|
+
|
|
109
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
110
|
+
fax_number?: string; // Optional
|
|
111
|
+
|
|
112
|
+
@Column({ nullable: true })
|
|
113
|
+
diplomatic_name?: string;
|
|
114
|
+
|
|
115
|
+
@Column({ nullable: true })
|
|
116
|
+
avatar?: string;
|
|
117
|
+
|
|
118
|
+
@Column({ nullable: true })
|
|
119
|
+
father_name?: string;
|
|
120
|
+
|
|
121
|
+
@Column({ nullable: true })
|
|
122
|
+
spouse_name?: string;
|
|
123
|
+
|
|
124
|
+
@Column({ nullable: true })
|
|
125
|
+
children1_name?: string;
|
|
126
|
+
|
|
127
|
+
@Column({ nullable: true })
|
|
128
|
+
children2_name?: string;
|
|
129
|
+
|
|
130
|
+
@Column({ nullable: true })
|
|
131
|
+
address?: string;
|
|
132
|
+
|
|
133
|
+
@Column({ nullable: true })
|
|
134
|
+
religion?: string;
|
|
135
|
+
|
|
136
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
137
|
+
current_basic_salary: number;
|
|
138
|
+
|
|
139
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
140
|
+
previous_basic_salary: number;
|
|
141
|
+
|
|
142
|
+
constructor(
|
|
143
|
+
employee_id?: number,
|
|
144
|
+
civil_employee_id?: number,
|
|
145
|
+
employee_name?: string,
|
|
146
|
+
employee_arabic_name?: string,
|
|
147
|
+
person_type?: string,
|
|
148
|
+
date_of_birth?: string,
|
|
149
|
+
region_of_birth?: string,
|
|
150
|
+
country_of_birth?: string,
|
|
151
|
+
date_of_joining?: string,
|
|
152
|
+
last_promotion_date?: string,
|
|
153
|
+
gender?: string,
|
|
154
|
+
qualification?: string,
|
|
155
|
+
marital_status?: string,
|
|
156
|
+
nationality?: string,
|
|
157
|
+
email?: string,
|
|
158
|
+
blood_type?: string,
|
|
159
|
+
national_id?: string,
|
|
160
|
+
manpower_id?: string,
|
|
161
|
+
mobile?: string,
|
|
162
|
+
office_number?: string,
|
|
163
|
+
department?: number,
|
|
164
|
+
category?: "CAA" | "Embassy",
|
|
165
|
+
directorate?: string,
|
|
166
|
+
section?: number,
|
|
167
|
+
position?: number,
|
|
168
|
+
arabic_position?: string,
|
|
169
|
+
grade?: number,
|
|
170
|
+
location?: string,
|
|
171
|
+
supervisor_emp_id?: number,
|
|
172
|
+
supervisor_emp_name?: string,
|
|
173
|
+
passport_number?: string,
|
|
174
|
+
personal_email?: string,
|
|
175
|
+
extension_number?: number,
|
|
176
|
+
fax_number?: string,
|
|
177
|
+
diplomatic_name?: string,
|
|
178
|
+
avatar?: string,
|
|
179
|
+
father_name?: string,
|
|
180
|
+
spouse_name?: string,
|
|
181
|
+
children1_name?: string,
|
|
182
|
+
children2_name?: string,
|
|
183
|
+
address?: string,
|
|
184
|
+
religion?: string,
|
|
185
|
+
current_basic_salary?: number,
|
|
186
|
+
previous_basic_salary?: number
|
|
187
|
+
) {
|
|
188
|
+
super();
|
|
189
|
+
this.employee_id = employee_id;
|
|
190
|
+
this.civil_employee_id = civil_employee_id;
|
|
191
|
+
this.employee_name = employee_name;
|
|
192
|
+
this.employee_arabic_name = employee_arabic_name;
|
|
193
|
+
this.person_type = person_type;
|
|
194
|
+
this.date_of_birth = date_of_birth;
|
|
195
|
+
this.region_of_birth = region_of_birth;
|
|
196
|
+
this.country_of_birth = country_of_birth;
|
|
197
|
+
this.date_of_joining = date_of_joining;
|
|
198
|
+
this.last_promotion_date = last_promotion_date;
|
|
199
|
+
this.gender = gender;
|
|
200
|
+
this.qualification = qualification;
|
|
201
|
+
this.marital_status = marital_status;
|
|
202
|
+
this.nationality = nationality;
|
|
203
|
+
this.email = email;
|
|
204
|
+
this.blood_type = blood_type;
|
|
205
|
+
this.national_id = national_id;
|
|
206
|
+
this.manpower_id = manpower_id;
|
|
207
|
+
this.mobile = mobile;
|
|
208
|
+
this.office_number = office_number;
|
|
209
|
+
this.department = department;
|
|
210
|
+
this.category = category || "CAA";
|
|
211
|
+
this.directorate = directorate;
|
|
212
|
+
this.section = section;
|
|
213
|
+
this.position = position;
|
|
214
|
+
this.arabic_position = arabic_position;
|
|
215
|
+
this.grade = grade;
|
|
216
|
+
this.location = location;
|
|
217
|
+
this.supervisor_emp_id = supervisor_emp_id;
|
|
218
|
+
this.supervisor_emp_name = supervisor_emp_name;
|
|
219
|
+
this.passport_number = passport_number;
|
|
220
|
+
this.personal_email = personal_email;
|
|
221
|
+
this.extension_number = extension_number;
|
|
222
|
+
this.fax_number = fax_number;
|
|
223
|
+
this.diplomatic_name = diplomatic_name;
|
|
224
|
+
this.avatar = avatar;
|
|
225
|
+
this.father_name = father_name;
|
|
226
|
+
this.spouse_name = spouse_name;
|
|
227
|
+
this.children1_name = children1_name;
|
|
228
|
+
this.children2_name = children2_name;
|
|
229
|
+
this.address = address;
|
|
230
|
+
this.religion = religion;
|
|
231
|
+
this.current_basic_salary = current_basic_salary || 0;
|
|
232
|
+
this.previous_basic_salary = previous_basic_salary || 0;
|
|
233
|
+
}
|
|
234
234
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ITApprovalSettings = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.level = level;
|
|
19
|
-
this.approval_role_id = approval_role_id;
|
|
20
|
-
this.workflow_id = workflow_id;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
-
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
-
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
-
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
-
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
-
], ITApprovalSettings);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ITServicesTypesMuscat = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, name_in_arabic) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.name_in_arabic = name_in_arabic;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
-
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, String])
|
|
34
|
-
], ITServicesTypesMuscat);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ITServicesTypesSalalah = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, name_in_arabic) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.name_in_arabic = name_in_arabic;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
-
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, String])
|
|
34
|
-
], ITServicesTypesSalalah);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class Workflows extends BaseModel {
|
|
3
|
-
name: string;
|
|
4
|
-
service_id: number;
|
|
5
|
-
sub_service_id: number;
|
|
6
|
-
request_for: string;
|
|
7
|
-
levels: number;
|
|
8
|
-
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
-
}
|
package/dist/models/Workflows.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { Column, Entity, Unique } from "typeorm";
|
|
3
|
-
// import { BaseModel } from './BaseModel';
|
|
4
|
-
// @Entity({ name: 'workflows' })
|
|
5
|
-
// @Unique(['service_id', 'sub_service_id', 'request_for'])
|
|
6
|
-
// export class Workflows extends BaseModel {
|
|
7
|
-
// @Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
|
-
// name: string;
|
|
9
|
-
// @Column({ type: 'bigint', nullable: false })
|
|
10
|
-
// service_id: number;
|
|
11
|
-
// @Column({ type: 'bigint', nullable: false })
|
|
12
|
-
// sub_service_id: number;
|
|
13
|
-
// @Column({ type: 'varchar', length: 20, nullable: false })
|
|
14
|
-
// request_for: string; // 'Self' | 'Behalf of' | 'Internal'
|
|
15
|
-
// @Column({ type: 'int', nullable: false })
|
|
16
|
-
// levels: number;
|
|
17
|
-
// constructor(
|
|
18
|
-
// name: string,
|
|
19
|
-
// service_id: number,
|
|
20
|
-
// sub_service_id: number,
|
|
21
|
-
// request_for: string,
|
|
22
|
-
// levels: number,
|
|
23
|
-
// ) {
|
|
24
|
-
// super();
|
|
25
|
-
// this.name = name;
|
|
26
|
-
// this.service_id = service_id;
|
|
27
|
-
// this.sub_service_id = sub_service_id;
|
|
28
|
-
// this.request_for = request_for;
|
|
29
|
-
// this.levels = levels;
|
|
30
|
-
// }
|
|
31
|
-
// }
|