@platform-modules/civil-aviation-authority 2.3.200 → 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.
Files changed (104) hide show
  1. package/.env +9 -17
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +1 -0
  4. package/dist/models/ContractServiceRequestModel.d.ts +23 -0
  5. package/dist/models/ContractServiceRequestModel.js +102 -0
  6. package/dist/models/ITApprovalSettings.d.ts +7 -0
  7. package/dist/models/ITApprovalSettings.js +40 -0
  8. package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
  9. package/dist/models/ITServicesTypesMuscatModel.js +34 -0
  10. package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
  11. package/dist/models/ITServicesTypesSalalahModel.js +34 -0
  12. package/dist/models/Workflows.d.ts +9 -0
  13. package/dist/models/Workflows.js +31 -0
  14. package/package.json +24 -24
  15. package/src/data-source.ts +419 -419
  16. package/src/index.ts +432 -431
  17. package/src/models/AccessCardRequestModel.ts +135 -135
  18. package/src/models/AccommodationApprovalModel.ts +8 -8
  19. package/src/models/AccommodationRequestModel.ts +8 -8
  20. package/src/models/AirportEntryPermitModel.ts +276 -276
  21. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  22. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  23. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  24. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  25. package/src/models/CAAServices.ts +33 -33
  26. package/src/models/CAASubServices.ts +33 -33
  27. package/src/models/CAIRatingMasterModel.ts +39 -39
  28. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  29. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  30. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  31. package/src/models/ContractServiceRequestModel.ts +68 -0
  32. package/src/models/DepartmentsModel.ts +25 -25
  33. package/src/models/DocumentDriveModel.ts +28 -28
  34. package/src/models/DocumentFolderModel.ts +45 -45
  35. package/src/models/HousingContractCancelApprovalModel.ts +64 -64
  36. package/src/models/HousingContractCancelChatModel.ts +56 -56
  37. package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
  38. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  39. package/src/models/HrServiceRequestModel.ts +193 -193
  40. package/src/models/ITRequestAttachmentModel.ts +73 -73
  41. package/src/models/ITRequestChatModel.ts +74 -74
  42. package/src/models/ImportExportMaterialApprovalModel.ts +87 -87
  43. package/src/models/ImportExportMaterialAttachmentModel.ts +50 -50
  44. package/src/models/ImportExportMaterialChatModel.ts +61 -61
  45. package/src/models/ImportExportMaterialRequestModel.ts +85 -85
  46. package/src/models/ImportExportMaterialWorkflowModel.ts +51 -51
  47. package/src/models/ItApprovalsModel.ts +84 -84
  48. package/src/models/ItWorkflowModel.ts +55 -55
  49. package/src/models/LegalComplaintApprovalModel.ts +64 -64
  50. package/src/models/LegalConsultationApprovalModel.ts +65 -65
  51. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  52. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  53. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  54. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  55. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  56. package/src/models/PromotionRequestModel.ts +11 -11
  57. package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
  58. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  59. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  60. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  61. package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
  62. package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -50
  63. package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -61
  64. package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -75
  65. package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -51
  66. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  67. package/src/models/StudyLeaveRequestModel.ts +144 -144
  68. package/src/models/TrainingRequestModel.ts +164 -164
  69. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  70. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  71. package/src/models/UserSkillModel.ts +56 -56
  72. package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -87
  73. package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -50
  74. package/src/models/WorkingHoursExtensionChatModel.ts +61 -61
  75. package/src/models/WorkingHoursExtensionRequestModel.ts +66 -66
  76. package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -51
  77. package/src/models/role.ts +34 -34
  78. package/src/models/user.ts +233 -233
  79. package/dist/models/DocumentMetadataModel.d.ts +0 -45
  80. package/dist/models/DocumentMetadataModel.js +0 -171
  81. package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
  82. package/dist/models/DocumentationDepartmentsModel.js +0 -53
  83. package/dist/models/FolderModel.d.ts +0 -16
  84. package/dist/models/FolderModel.js +0 -85
  85. package/dist/models/ImportExportMaterialModels.d.ts +0 -92
  86. package/dist/models/ImportExportMaterialModels.js +0 -307
  87. package/dist/models/PermissionModel.d.ts +0 -18
  88. package/dist/models/PermissionModel.js +0 -68
  89. package/dist/models/SecurityAccessApprovalModel.d.ts +0 -23
  90. package/dist/models/SecurityAccessApprovalModel.js +0 -82
  91. package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
  92. package/dist/models/SecurityAccessAttachmentModel.js +0 -56
  93. package/dist/models/SecurityAccessChatModel.d.ts +0 -12
  94. package/dist/models/SecurityAccessChatModel.js +0 -56
  95. package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
  96. package/dist/models/SecurityAccessRequestModel.js +0 -80
  97. package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
  98. package/dist/models/SecurityAccessWorkflowModel.js +0 -84
  99. package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
  100. package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
  101. package/dist/models/UUIDBaseModel.d.ts +0 -14
  102. package/dist/models/UUIDBaseModel.js +0 -66
  103. package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
  104. package/dist/models/WorkingHoursExtensionModels.js +0 -295
@@ -1,51 +1,51 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "working_hours_extension_workflow" })
5
- export class WorkingHoursExtensionWorkflow extends BaseModel {
6
- @Column({ type: "int", nullable: false })
7
- request_id: number;
8
-
9
- @Column({ type: "int", nullable: true })
10
- service_id: number;
11
-
12
- @Column({ type: "int", nullable: true })
13
- sub_service_id: number;
14
-
15
- @Column({ type: "int", nullable: true })
16
- workflow_definition_id: number;
17
-
18
- @Column({ type: "int", nullable: true })
19
- current_level: number;
20
-
21
- @Column({ type: "varchar", length: 500, nullable: true })
22
- content: string;
23
-
24
- @Column({ type: "varchar", length: 50, nullable: false })
25
- status: string;
26
-
27
- @Column({ type: "int", nullable: true })
28
- step_order: number;
29
-
30
- @Column({ type: "int", nullable: true })
31
- user_id: number;
32
-
33
- @Column({ type: "int", nullable: true })
34
- role_id: number;
35
-
36
- @Column({ type: "int", nullable: true })
37
- department_id: number;
38
-
39
- @Column({ type: "int", nullable: true })
40
- section_id: number;
41
-
42
- @Column({ type: "text", nullable: true })
43
- workflow_data: string;
44
-
45
- @Column({ type: "int", nullable: false })
46
- created_by: number;
47
-
48
- constructor() {
49
- super();
50
- }
51
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "working_hours_extension_workflow" })
5
+ export class WorkingHoursExtensionWorkflow extends BaseModel {
6
+ @Column({ type: "int", nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: "int", nullable: true })
10
+ service_id: number;
11
+
12
+ @Column({ type: "int", nullable: true })
13
+ sub_service_id: number;
14
+
15
+ @Column({ type: "int", nullable: true })
16
+ workflow_definition_id: number;
17
+
18
+ @Column({ type: "int", nullable: true })
19
+ current_level: number;
20
+
21
+ @Column({ type: "varchar", length: 500, nullable: true })
22
+ content: string;
23
+
24
+ @Column({ type: "varchar", length: 50, nullable: false })
25
+ status: string;
26
+
27
+ @Column({ type: "int", nullable: true })
28
+ step_order: number;
29
+
30
+ @Column({ type: "int", nullable: true })
31
+ user_id: number;
32
+
33
+ @Column({ type: "int", nullable: true })
34
+ role_id: number;
35
+
36
+ @Column({ type: "int", nullable: true })
37
+ department_id: number;
38
+
39
+ @Column({ type: "int", nullable: true })
40
+ section_id: number;
41
+
42
+ @Column({ type: "text", nullable: true })
43
+ workflow_data: string;
44
+
45
+ @Column({ type: "int", nullable: false })
46
+ created_by: number;
47
+
48
+ constructor() {
49
+ super();
50
+ }
51
+ }
@@ -1,34 +1,34 @@
1
- /** *
2
- @author
3
- Amnet Digital
4
- @date
5
- 2024-05-20
6
- @Model
7
- Role
8
- @usage
9
- Userrole Information will store
10
- */
11
-
12
- import { Column, Entity } from "typeorm";
13
- import { BaseModel } from './BaseModel';
14
-
15
- @Entity({ name: 'role' })
16
- export class Role extends BaseModel {
17
-
18
- @Column({ nullable: true })
19
- name: string;
20
-
21
- @Column({ type: 'varchar', length: 255, nullable: true })
22
- arabic_name: string | null;
23
-
24
- @Column({ nullable: true })
25
- is_deleted?: boolean;
26
-
27
-
28
- constructor(name: string, is_deleted: boolean, arabic_name: string | null = null) {
29
- super();
30
- this.name = name;
31
- this.is_deleted = is_deleted;
32
- this.arabic_name = arabic_name;
33
- }
34
- }
1
+ /** *
2
+ @author
3
+ Amnet Digital
4
+ @date
5
+ 2024-05-20
6
+ @Model
7
+ Role
8
+ @usage
9
+ Userrole Information will store
10
+ */
11
+
12
+ import { Column, Entity } from "typeorm";
13
+ import { BaseModel } from './BaseModel';
14
+
15
+ @Entity({ name: 'role' })
16
+ export class Role extends BaseModel {
17
+
18
+ @Column({ nullable: true })
19
+ name: string;
20
+
21
+ @Column({ type: 'varchar', length: 255, nullable: true })
22
+ arabic_name: string | null;
23
+
24
+ @Column({ nullable: true })
25
+ is_deleted?: boolean;
26
+
27
+
28
+ constructor(name: string, is_deleted: boolean, arabic_name: string | null = null) {
29
+ super();
30
+ this.name = name;
31
+ this.is_deleted = is_deleted;
32
+ this.arabic_name = arabic_name;
33
+ }
34
+ }
@@ -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,45 +0,0 @@
1
- import { Departments } from './DepartmentsModel';
2
- import { UUIDBaseModel } from './UUIDBaseModel';
3
- export declare enum DocumentType {
4
- POLICY = "policy",
5
- PROCEDURE = "procedure",
6
- MANUAL = "manual",
7
- TEMPLATE = "template",
8
- REPORT = "report"
9
- }
10
- export declare enum DocumentStatus {
11
- ACTIVE = "active",
12
- ARCHIVED = "archived",
13
- DRAFT = "draft"
14
- }
15
- export declare enum AccessLevel {
16
- GENERAL = "general",
17
- RESTRICTED = "restricted"
18
- }
19
- export declare class DocumentMetadata extends UUIDBaseModel {
20
- title: string;
21
- description?: string;
22
- original_name: string;
23
- mime_type: string;
24
- size: number;
25
- mongodb_file_id: string;
26
- document_type: DocumentType;
27
- access_level: AccessLevel;
28
- status: DocumentStatus;
29
- version: string;
30
- tags: string[];
31
- is_sensitive: boolean;
32
- department: Departments;
33
- department_id: number;
34
- folder_id?: string | null;
35
- folder_path: string;
36
- uploaded_by: string;
37
- uploaded_by_name?: string;
38
- authorized_person?: string;
39
- allowed_roles: string[];
40
- allowed_users: string[];
41
- download_count: number;
42
- last_accessed_at?: Date;
43
- metadata?: Record<string, any>;
44
- constructor(title: string, original_name: string, mime_type: string, size: number, mongodb_file_id: string, document_type: DocumentType, department_id: number, uploaded_by: string, access_level?: AccessLevel, status?: DocumentStatus, version?: string, folder_path?: string, created_by?: string, description?: string, folder_id?: string | null, uploaded_by_name?: string, authorized_person?: string, tags?: string[], allowed_roles?: string[], allowed_users?: string[], is_sensitive?: boolean, download_count?: number, last_accessed_at?: Date, metadata?: Record<string, any>);
45
- }