@platform-modules/civil-aviation-authority 2.3.185 → 2.3.192

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 (67) hide show
  1. package/.env +17 -9
  2. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  3. package/dist/models/DocumentMetadataModel.js +171 -0
  4. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  5. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  6. package/dist/models/FolderModel.d.ts +16 -0
  7. package/dist/models/FolderModel.js +85 -0
  8. package/dist/models/PermissionModel.d.ts +18 -0
  9. package/dist/models/PermissionModel.js +68 -0
  10. package/dist/models/UUIDBaseModel.d.ts +14 -0
  11. package/dist/models/UUIDBaseModel.js +66 -0
  12. package/dist/models/role.d.ts +2 -1
  13. package/dist/models/role.js +7 -2
  14. package/dist/models/user.d.ts +3 -3
  15. package/dist/models/user.js +5 -5
  16. package/package.json +1 -1
  17. package/src/data-source.ts +389 -389
  18. package/src/index.ts +414 -414
  19. package/src/models/AccessCardRequestModel.ts +135 -135
  20. package/src/models/AccommodationApprovalModel.ts +8 -8
  21. package/src/models/AccommodationRequestModel.ts +8 -8
  22. package/src/models/AirportEntryPermitModel.ts +276 -276
  23. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  24. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  25. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  26. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  27. package/src/models/CAAServices.ts +33 -33
  28. package/src/models/CAASubServices.ts +33 -33
  29. package/src/models/CAIRatingMasterModel.ts +39 -39
  30. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  31. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  32. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  33. package/src/models/DepartmentsModel.ts +25 -25
  34. package/src/models/DocumentDriveModel.ts +28 -28
  35. package/src/models/DocumentFolderModel.ts +45 -45
  36. package/src/models/HousingContractCancelChatModel.ts +56 -56
  37. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  38. package/src/models/HrServiceRequestModel.ts +193 -193
  39. package/src/models/ITRequestAttachmentModel.ts +73 -73
  40. package/src/models/ITRequestChatModel.ts +74 -74
  41. package/src/models/ItApprovalsModel.ts +84 -84
  42. package/src/models/ItWorkflowModel.ts +55 -55
  43. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  44. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  45. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  46. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  47. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  48. package/src/models/PromotionRequestModel.ts +11 -11
  49. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  50. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  51. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  52. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  53. package/src/models/StudyLeaveRequestModel.ts +144 -144
  54. package/src/models/TrainingRequestModel.ts +164 -164
  55. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  56. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  57. package/src/models/UserSkillModel.ts +56 -56
  58. package/src/models/role.ts +7 -3
  59. package/src/models/user.ts +233 -233
  60. package/dist/models/ITApprovalSettings.d.ts +0 -7
  61. package/dist/models/ITApprovalSettings.js +0 -40
  62. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  63. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  64. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  65. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  66. package/dist/models/Workflows.d.ts +0 -9
  67. package/dist/models/Workflows.js +0 -31
@@ -1,219 +1,219 @@
1
- import { Column, Entity } from "typeorm";
2
-
3
- import { BaseModel } from "./BaseModel";
4
-
5
-
6
-
7
-
8
- export enum ResidentialUnitRentalRequestStatus {
9
-
10
- Pending = 'Pending',
11
-
12
- Approved = 'Approved',
13
-
14
- Rejected = 'Rejected',
15
-
16
- RFC = 'RFC'
17
-
18
- }
19
-
20
-
21
-
22
-
23
- @Entity({ name: 'residential_unit_rental_requests' })
24
-
25
- export class ResidentialUnitRentalRequest extends BaseModel {
26
-
27
-
28
-
29
-
30
- @Column({ type: 'varchar', length: 20, nullable: false })
31
-
32
- request_id: string;
33
-
34
-
35
-
36
-
37
- @Column({ type: 'int', nullable: false })
38
-
39
- service_id: number;
40
-
41
-
42
-
43
-
44
- @Column({ type: 'int', nullable: false })
45
-
46
- sub_service_id: number;
47
-
48
-
49
-
50
-
51
- @Column({ type: 'varchar', length: 50, nullable: false })
52
-
53
- requested_unit_type: string; // Apartment, Villa
54
-
55
-
56
-
57
-
58
- /** UI sends apartment type as a plain string value */
59
-
60
- @Column({ type: 'json', nullable: true })
61
-
62
- apartment_type: string | null;
63
-
64
-
65
-
66
-
67
- /** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
68
-
69
- @Column({ type: 'json', nullable: true })
70
-
71
- villa_type: {
72
-
73
- one_room?: boolean;
74
-
75
- two_room?: boolean;
76
-
77
- three_room?: boolean;
78
-
79
- };
80
-
81
-
82
-
83
-
84
- @Column({ type: 'varchar', length: 20, nullable: true })
85
-
86
- extension_number: string;
87
-
88
-
89
-
90
-
91
- @Column({ type: 'date', nullable: false })
92
-
93
- preferred_start_date: Date;
94
-
95
-
96
-
97
-
98
- @Column({ type: 'int', nullable: false })
99
-
100
- family_size: number;
101
-
102
-
103
-
104
-
105
- @Column({ type: 'varchar', length: 50, nullable: false })
106
-
107
- phone_number: string;
108
-
109
-
110
-
111
-
112
- @Column({ type: 'varchar', length: 255, nullable: true })
113
-
114
- location_of_unit: string;
115
-
116
-
117
-
118
-
119
- @Column({ type: 'text', nullable: true })
120
-
121
- comment: string;
122
-
123
-
124
-
125
-
126
- @Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
127
-
128
- status: string;
129
-
130
-
131
-
132
-
133
- @Column({ type: 'int', nullable: true })
134
-
135
- user_id: number;
136
-
137
-
138
-
139
-
140
- @Column({ type: 'varchar', length: 255, nullable: true })
141
-
142
- workflow_execution_id: string;
143
-
144
-
145
-
146
-
147
- @Column({ type: 'int', nullable: false })
148
-
149
- created_by: number;
150
-
151
-
152
-
153
-
154
- @Column({ type: 'int', nullable: true })
155
-
156
- approved_by: number;
157
-
158
-
159
-
160
-
161
- @Column({ type: 'date', nullable: true })
162
-
163
- approved_at: Date;
164
-
165
-
166
-
167
-
168
- @Column({ type: 'text', nullable: true })
169
-
170
- approver_comment: string;
171
-
172
-
173
-
174
-
175
- @Column({ type: 'json', nullable: true })
176
-
177
- unit_details: {
178
-
179
- type: string;
180
-
181
- specifications: any;
182
-
183
- rate: number;
184
-
185
- };
186
-
187
-
188
-
189
-
190
- @Column({ type: 'date', nullable: true })
191
-
192
- rental_start_date: Date;
193
-
194
-
195
-
196
-
197
- @Column({ type: 'date', nullable: true })
198
-
199
- rental_end_date: Date;
200
-
201
-
202
-
203
-
204
- @Column({ type: 'text', nullable: true })
205
-
206
- rental_agreement_url: string;
207
-
208
-
209
-
210
-
211
- constructor() {
212
-
213
- super();
214
-
215
- }
216
-
217
- }
218
-
1
+ import { Column, Entity } from "typeorm";
2
+
3
+ import { BaseModel } from "./BaseModel";
4
+
5
+
6
+
7
+
8
+ export enum ResidentialUnitRentalRequestStatus {
9
+
10
+ Pending = 'Pending',
11
+
12
+ Approved = 'Approved',
13
+
14
+ Rejected = 'Rejected',
15
+
16
+ RFC = 'RFC'
17
+
18
+ }
19
+
20
+
21
+
22
+
23
+ @Entity({ name: 'residential_unit_rental_requests' })
24
+
25
+ export class ResidentialUnitRentalRequest extends BaseModel {
26
+
27
+
28
+
29
+
30
+ @Column({ type: 'varchar', length: 20, nullable: false })
31
+
32
+ request_id: string;
33
+
34
+
35
+
36
+
37
+ @Column({ type: 'int', nullable: false })
38
+
39
+ service_id: number;
40
+
41
+
42
+
43
+
44
+ @Column({ type: 'int', nullable: false })
45
+
46
+ sub_service_id: number;
47
+
48
+
49
+
50
+
51
+ @Column({ type: 'varchar', length: 50, nullable: false })
52
+
53
+ requested_unit_type: string; // Apartment, Villa
54
+
55
+
56
+
57
+
58
+ /** UI sends apartment type as a plain string value */
59
+
60
+ @Column({ type: 'json', nullable: true })
61
+
62
+ apartment_type: string | null;
63
+
64
+
65
+
66
+
67
+ /** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
68
+
69
+ @Column({ type: 'json', nullable: true })
70
+
71
+ villa_type: {
72
+
73
+ one_room?: boolean;
74
+
75
+ two_room?: boolean;
76
+
77
+ three_room?: boolean;
78
+
79
+ };
80
+
81
+
82
+
83
+
84
+ @Column({ type: 'varchar', length: 20, nullable: true })
85
+
86
+ extension_number: string;
87
+
88
+
89
+
90
+
91
+ @Column({ type: 'date', nullable: false })
92
+
93
+ preferred_start_date: Date;
94
+
95
+
96
+
97
+
98
+ @Column({ type: 'int', nullable: false })
99
+
100
+ family_size: number;
101
+
102
+
103
+
104
+
105
+ @Column({ type: 'varchar', length: 50, nullable: false })
106
+
107
+ phone_number: string;
108
+
109
+
110
+
111
+
112
+ @Column({ type: 'varchar', length: 255, nullable: true })
113
+
114
+ location_of_unit: string;
115
+
116
+
117
+
118
+
119
+ @Column({ type: 'text', nullable: true })
120
+
121
+ comment: string;
122
+
123
+
124
+
125
+
126
+ @Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
127
+
128
+ status: string;
129
+
130
+
131
+
132
+
133
+ @Column({ type: 'int', nullable: true })
134
+
135
+ user_id: number;
136
+
137
+
138
+
139
+
140
+ @Column({ type: 'varchar', length: 255, nullable: true })
141
+
142
+ workflow_execution_id: string;
143
+
144
+
145
+
146
+
147
+ @Column({ type: 'int', nullable: false })
148
+
149
+ created_by: number;
150
+
151
+
152
+
153
+
154
+ @Column({ type: 'int', nullable: true })
155
+
156
+ approved_by: number;
157
+
158
+
159
+
160
+
161
+ @Column({ type: 'date', nullable: true })
162
+
163
+ approved_at: Date;
164
+
165
+
166
+
167
+
168
+ @Column({ type: 'text', nullable: true })
169
+
170
+ approver_comment: string;
171
+
172
+
173
+
174
+
175
+ @Column({ type: 'json', nullable: true })
176
+
177
+ unit_details: {
178
+
179
+ type: string;
180
+
181
+ specifications: any;
182
+
183
+ rate: number;
184
+
185
+ };
186
+
187
+
188
+
189
+
190
+ @Column({ type: 'date', nullable: true })
191
+
192
+ rental_start_date: Date;
193
+
194
+
195
+
196
+
197
+ @Column({ type: 'date', nullable: true })
198
+
199
+ rental_end_date: Date;
200
+
201
+
202
+
203
+
204
+ @Column({ type: 'text', nullable: true })
205
+
206
+ rental_agreement_url: string;
207
+
208
+
209
+
210
+
211
+ constructor() {
212
+
213
+ super();
214
+
215
+ }
216
+
217
+ }
218
+
219
219
 
@@ -1,17 +1,17 @@
1
1
  import { Column, Entity } from "typeorm";
2
2
  import { BaseModel } from "./BaseModel";
3
3
 
4
- export enum RespondToEnquiriesRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- @Entity({ name: "respond_to_enquiries_requests" })
14
- export class RespondToEnquiriesRequest extends BaseModel {
4
+ export enum RespondToEnquiriesRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "respond_to_enquiries_requests" })
14
+ export class RespondToEnquiriesRequest extends BaseModel {
15
15
  @Column({ type: "integer", nullable: true })
16
16
  req_user_department_id: number | null;
17
17
 
@@ -65,11 +65,11 @@ export class RespondToEnquiriesRequest extends BaseModel {
65
65
  @Column({ type: "date", nullable: false })
66
66
  date_of_submission: Date;
67
67
 
68
- @Column({ type: "varchar", length: 30, nullable: false })
69
- phone: string;
70
-
71
- @Column({ type: "date", nullable: true })
72
- tender_date_of_submission: Date | null;
68
+ @Column({ type: "varchar", length: 30, nullable: false })
69
+ phone: string;
70
+
71
+ @Column({ type: "date", nullable: true })
72
+ tender_date_of_submission: Date | null;
73
73
 
74
74
  @Column({ type: "varchar", length: 30, nullable: true })
75
75
  tender_phone: string | null;
@@ -101,14 +101,14 @@ export class RespondToEnquiriesRequest extends BaseModel {
101
101
  req_user_department_id?: number | null,
102
102
  req_user_section_id?: number | null,
103
103
  req_user_position_id?: number | null,
104
- reviewer_user_id?: number | null,
105
- assigned_to_user_id?: number | null,
106
- assigned_at?: Date | null,
107
- workflow_execution_id?: string | null,
108
- request_id?: string | null,
109
- tender_date_of_submission?: Date | null,
110
- tender_phone?: string | null,
111
- budget_code?: string | null,
104
+ reviewer_user_id?: number | null,
105
+ assigned_to_user_id?: number | null,
106
+ assigned_at?: Date | null,
107
+ workflow_execution_id?: string | null,
108
+ request_id?: string | null,
109
+ tender_date_of_submission?: Date | null,
110
+ tender_phone?: string | null,
111
+ budget_code?: string | null,
112
112
  estimated_cost?: string | null,
113
113
  implementation_period?: string | null,
114
114
  requesting_entity?: string | null,
@@ -128,13 +128,13 @@ export class RespondToEnquiriesRequest extends BaseModel {
128
128
  this.req_user_position_id = req_user_position_id || null;
129
129
  this.reviewer_user_id = reviewer_user_id || null;
130
130
  this.assigned_to_user_id = assigned_to_user_id || null;
131
- this.assigned_at = assigned_at || null;
132
- this.workflow_execution_id = workflow_execution_id || null;
133
- this.reference_number = null;
134
- this.request_id = request_id || null;
135
- this.tender_date_of_submission = tender_date_of_submission ?? null;
136
- this.tender_phone = tender_phone ?? null;
137
- this.budget_code = budget_code ?? null;
131
+ this.assigned_at = assigned_at || null;
132
+ this.workflow_execution_id = workflow_execution_id || null;
133
+ this.reference_number = null;
134
+ this.request_id = request_id || null;
135
+ this.tender_date_of_submission = tender_date_of_submission ?? null;
136
+ this.tender_phone = tender_phone ?? null;
137
+ this.budget_code = budget_code ?? null;
138
138
  this.estimated_cost = estimated_cost ?? null;
139
139
  this.implementation_period = implementation_period ?? null;
140
140
  this.requesting_entity = requesting_entity ?? null;
@@ -1,55 +1,55 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum ServicesNotificationTriggerType {
5
- FINAL_APPROVAL = "final_approval",
6
- EVERY_APPROVAL = "every_approval"
7
- }
8
-
9
- @Entity({ name: "services_notification_configs" })
10
- export class ServicesNotificationConfigs extends BaseModel {
11
- @Column({ type: "integer", nullable: false })
12
- service_id: number;
13
-
14
- @Column({ type: "integer", nullable: false })
15
- sub_service_id: number;
16
-
17
- @Column({ type: "integer", nullable: false })
18
- department_id: number;
19
-
20
- @Column({ type: "integer", nullable: true })
21
- section_id: number | null;
22
-
23
- @Column({ type: "integer", nullable: true })
24
- role_id: number | null;
25
-
26
- @Column({
27
- type: "enum",
28
- enum: ServicesNotificationTriggerType,
29
- nullable: false,
30
- default: ServicesNotificationTriggerType.FINAL_APPROVAL
31
- })
32
- trigger: ServicesNotificationTriggerType;
33
-
34
- @Column({ type: "boolean", nullable: false, default: true })
35
- is_active: boolean;
36
-
37
- constructor(
38
- service_id: number,
39
- sub_service_id: number,
40
- department_id: number,
41
- section_id: number | null = null,
42
- role_id: number | null = null,
43
- trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
44
- is_active: boolean = true
45
- ) {
46
- super();
47
- this.service_id = service_id;
48
- this.sub_service_id = sub_service_id;
49
- this.department_id = department_id;
50
- this.section_id = section_id;
51
- this.role_id = role_id;
52
- this.trigger = trigger;
53
- this.is_active = is_active;
54
- }
55
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum ServicesNotificationTriggerType {
5
+ FINAL_APPROVAL = "final_approval",
6
+ EVERY_APPROVAL = "every_approval"
7
+ }
8
+
9
+ @Entity({ name: "services_notification_configs" })
10
+ export class ServicesNotificationConfigs extends BaseModel {
11
+ @Column({ type: "integer", nullable: false })
12
+ service_id: number;
13
+
14
+ @Column({ type: "integer", nullable: false })
15
+ sub_service_id: number;
16
+
17
+ @Column({ type: "integer", nullable: false })
18
+ department_id: number;
19
+
20
+ @Column({ type: "integer", nullable: true })
21
+ section_id: number | null;
22
+
23
+ @Column({ type: "integer", nullable: true })
24
+ role_id: number | null;
25
+
26
+ @Column({
27
+ type: "enum",
28
+ enum: ServicesNotificationTriggerType,
29
+ nullable: false,
30
+ default: ServicesNotificationTriggerType.FINAL_APPROVAL
31
+ })
32
+ trigger: ServicesNotificationTriggerType;
33
+
34
+ @Column({ type: "boolean", nullable: false, default: true })
35
+ is_active: boolean;
36
+
37
+ constructor(
38
+ service_id: number,
39
+ sub_service_id: number,
40
+ department_id: number,
41
+ section_id: number | null = null,
42
+ role_id: number | null = null,
43
+ trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
44
+ is_active: boolean = true
45
+ ) {
46
+ super();
47
+ this.service_id = service_id;
48
+ this.sub_service_id = sub_service_id;
49
+ this.department_id = department_id;
50
+ this.section_id = section_id;
51
+ this.role_id = role_id;
52
+ this.trigger = trigger;
53
+ this.is_active = is_active;
54
+ }
55
+ }