@platform-modules/civil-aviation-authority 2.3.211 → 2.3.213

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 (65) hide show
  1. package/.env +10 -10
  2. package/dist/data-source.js +15 -5
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.js +5 -0
  5. package/dist/models/FollowUpReportApprovalModel.d.ts +24 -0
  6. package/dist/models/FollowUpReportApprovalModel.js +85 -0
  7. package/dist/models/FollowUpReportAttachmentModel.d.ts +12 -0
  8. package/dist/models/FollowUpReportAttachmentModel.js +53 -0
  9. package/dist/models/FollowUpReportChatModel.d.ts +20 -0
  10. package/dist/models/FollowUpReportChatModel.js +66 -0
  11. package/dist/models/FollowUpReportRequestModel.d.ts +46 -0
  12. package/dist/models/FollowUpReportRequestModel.js +126 -0
  13. package/dist/models/FollowUpReportWorkflowModel.d.ts +19 -0
  14. package/dist/models/FollowUpReportWorkflowModel.js +68 -0
  15. package/dist/models/MaintenanceApprovalModel.d.ts +4 -4
  16. package/dist/models/MaintenanceApprovalModel.js +28 -28
  17. package/dist/models/MaintenanceAttachmentModel.d.ts +1 -1
  18. package/dist/models/MaintenanceAttachmentModel.js +13 -13
  19. package/dist/models/MaintenanceChatModel.d.ts +5 -5
  20. package/dist/models/MaintenanceChatModel.js +25 -25
  21. package/dist/models/MaintenanceRequestModel.d.ts +23 -28
  22. package/dist/models/MaintenanceRequestModel.js +65 -76
  23. package/dist/models/MaintenanceWorkflowModel.d.ts +3 -3
  24. package/dist/models/MaintenanceWorkflowModel.js +22 -22
  25. package/package.json +1 -1
  26. package/src/data-source.ts +20 -10
  27. package/src/index.ts +5 -0
  28. package/src/models/AccommodationApprovalModel.ts +8 -8
  29. package/src/models/AccommodationRequestModel.ts +8 -8
  30. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  31. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  32. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  33. package/src/models/CAAServices.ts +33 -33
  34. package/src/models/CAASubServices.ts +33 -33
  35. package/src/models/CAIRatingMasterModel.ts +39 -39
  36. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  37. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  38. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  39. package/src/models/FollowUpReportApprovalModel.ts +60 -0
  40. package/src/models/FollowUpReportAttachmentModel.ts +32 -0
  41. package/src/models/FollowUpReportChatModel.ts +46 -0
  42. package/src/models/FollowUpReportRequestModel.ts +100 -0
  43. package/src/models/FollowUpReportWorkflowModel.ts +47 -0
  44. package/src/models/HrServiceRequestModel.ts +193 -193
  45. package/src/models/MaintenanceApprovalModel.ts +6 -6
  46. package/src/models/MaintenanceAttachmentModel.ts +1 -1
  47. package/src/models/MaintenanceChatModel.ts +7 -7
  48. package/src/models/MaintenanceRequestModel.ts +39 -48
  49. package/src/models/MaintenanceWorkflowModel.ts +5 -5
  50. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  51. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  52. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  53. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  54. package/src/models/PromotionRequestModel.ts +11 -11
  55. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  56. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  57. package/src/models/UserSkillModel.ts +56 -56
  58. package/dist/models/ITApprovalSettings.d.ts +0 -7
  59. package/dist/models/ITApprovalSettings.js +0 -40
  60. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  61. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  62. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  63. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  64. package/dist/models/Workflows.d.ts +0 -9
  65. package/dist/models/Workflows.js +0 -31
@@ -1,25 +1,25 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "csrm_likelihood_master" })
5
- export class CSRMLikelihoodMaster 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_likelihood_master" })
5
+ export class CSRMLikelihoodMaster 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
+ }
@@ -45,12 +45,12 @@ export class CashAllowanceLeaveRequest extends BaseModel {
45
45
  @Column({ type: "timestamp", nullable: true })
46
46
  assigned_at: Date | null;
47
47
 
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- @Column({ type: "varchar", length: 255, nullable: true })
52
- reference_number: string | null;
53
-
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ @Column({ type: "varchar", length: 255, nullable: true })
52
+ reference_number: string | null;
53
+
54
54
  // Cash Allowance for Leave specific fields
55
55
  @Column({ type: "varchar", length: 255, nullable: false })
56
56
  employee_name: string;
@@ -112,11 +112,11 @@ export class CashAllowanceLeaveRequest extends BaseModel {
112
112
  this.req_user_position_id = req_user_position_id || null;
113
113
  this.description = description || null;
114
114
  this.reviewer_user_id = reviewer_user_id || null;
115
- this.assigned_to_user_id = assigned_to_user_id || null;
116
- this.assigned_at = assigned_at || null;
117
- this.workflow_execution_id = workflow_execution_id || null;
118
- this.reference_number = null;
119
- this.employee_name = employee_name || "";
115
+ this.assigned_to_user_id = assigned_to_user_id || null;
116
+ this.assigned_at = assigned_at || null;
117
+ this.workflow_execution_id = workflow_execution_id || null;
118
+ this.reference_number = null;
119
+ this.employee_name = employee_name || "";
120
120
  this.employee_id = employee_id || "";
121
121
  this.job_title = job_title || "";
122
122
  this.salary_grade = salary_grade || "";
@@ -0,0 +1,60 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum FollowUpReportApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'followup_report_approvals' })
12
+ export class FollowUpReportApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: FollowUpReportApprovalStatus,
49
+ default: FollowUpReportApprovalStatus.PENDING,
50
+ nullable: false,
51
+ })
52
+ approval_status: FollowUpReportApprovalStatus;
53
+
54
+ @Column({ type: 'boolean', default: true, nullable: false })
55
+ is_allowed: boolean;
56
+ }
57
+
58
+ // Backward-compatible aliases (entity/table remains maintenance_*)
59
+ export { FollowUpReportApprovalDetails as MaintenanceApprovalDetails };
60
+ export { FollowUpReportApprovalStatus as MaintenanceApprovalStatus };
@@ -0,0 +1,32 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'followup_report_attachments' })
5
+ export class FollowUpReportAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ chat_id: number | null;
29
+ }
30
+
31
+ // Backward-compatible aliases (entity/table remains maintenance_*)
32
+ export { FollowUpReportAttachment as MaintenanceAttachment };
@@ -0,0 +1,46 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum FollowUpReportMessageType {
5
+ TEXT = 'text',
6
+ IMAGE = 'image',
7
+ VIDEO = 'video',
8
+ FILE = 'file',
9
+ LINK = 'link',
10
+ }
11
+
12
+ @Entity({ name: 'followup_report_chats' })
13
+ export class FollowUpReportChat extends BaseModel {
14
+ @Column({ type: 'integer', nullable: false })
15
+ request_id: number;
16
+
17
+ @Column({ type: 'integer', nullable: true })
18
+ service_id: number | null;
19
+
20
+ @Column({ type: 'integer', nullable: true })
21
+ sub_service_id: number | null;
22
+
23
+ @Column({ type: 'integer', nullable: false })
24
+ user_id: number;
25
+
26
+ @Column({ type: 'integer', nullable: true })
27
+ role_id: number;
28
+
29
+ @Column({ type: 'text', nullable: false })
30
+ message: string;
31
+
32
+ @Column({
33
+ type: 'enum',
34
+ enum: FollowUpReportMessageType,
35
+ default: FollowUpReportMessageType.TEXT,
36
+ nullable: false,
37
+ })
38
+ messageType: FollowUpReportMessageType;
39
+
40
+ @Column({ type: 'text', nullable: true })
41
+ status: string;
42
+ }
43
+
44
+ // Backward-compatible aliases (entity/table remains maintenance_*)
45
+ export { FollowUpReportChat as MaintenanceChat };
46
+ export { FollowUpReportMessageType as MaintenanceMessageType };
@@ -0,0 +1,100 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ /** Subject / handling priority classification */
5
+ export enum FollowUpReportSubjectClassification {
6
+ URGENT = 'Urgent',
7
+ VERY_URGENT = 'Very Urgent',
8
+ CONFIDENTIAL = 'Confidential',
9
+ INFORMATIONAL = 'Informational',
10
+ NORMAL = 'Normal',
11
+ }
12
+
13
+ /** Concerned department under General Manager of Support Services */
14
+ export enum FollowUpReportConcernedDepartment {
15
+ IT = 'IT',
16
+ HR = 'HR',
17
+ TRAINING = 'Training',
18
+ FINANCE = 'Finance',
19
+ PROJECTS_AND_MAINTENANCE = 'Projects & Maintenance',
20
+ }
21
+
22
+ export enum FollowUpReportRequestStatus {
23
+ PENDING = 'Pending',
24
+ ASSIGNED = 'Assigned',
25
+ IN_PROGRESS = 'In Progress',
26
+ APPROVED = 'Approved',
27
+ REJECTED = 'Rejected',
28
+ }
29
+
30
+ @Entity({ name: 'followup_report_requests' })
31
+ export class FollowUpReportRequests extends BaseModel {
32
+ @Column({ type: 'int', nullable: true })
33
+ req_user_department_id: number | null;
34
+
35
+ @Column({ type: 'int', nullable: true })
36
+ req_user_section_id: number | null;
37
+
38
+ @Column({ nullable: true })
39
+ service_id: number;
40
+
41
+ @Column({ nullable: true })
42
+ sub_service_id: number;
43
+
44
+ @Column({ nullable: false })
45
+ user_id: number;
46
+
47
+ @Column({ type: 'varchar', length: 500, nullable: false })
48
+ sent_by: string;
49
+
50
+ @Column({ type: 'date', nullable: false })
51
+ letter_date: Date;
52
+
53
+ @Column({ type: 'varchar', length: 500, nullable: false })
54
+ subject: string;
55
+
56
+ @Column({
57
+ type: 'enum',
58
+ enum: FollowUpReportSubjectClassification,
59
+ enumName: 'maintenance_subject_classification_en',
60
+ nullable: false,
61
+ })
62
+ subject_classification: FollowUpReportSubjectClassification;
63
+
64
+ @Column({ type: 'text', nullable: false })
65
+ topic: string;
66
+
67
+ @Column({
68
+ type: 'enum',
69
+ enum: FollowUpReportConcernedDepartment,
70
+ enumName: 'maintenance_concerned_department_en',
71
+ nullable: false,
72
+ })
73
+ concerned_department: FollowUpReportConcernedDepartment;
74
+
75
+ @Column({ type: 'date', nullable: false })
76
+ date_from: Date;
77
+
78
+ @Column({ type: 'date', nullable: false })
79
+ date_to: Date;
80
+
81
+ @Column({ type: 'date', nullable: false, default: () => 'CURRENT_DATE' })
82
+ request_submission_date: Date;
83
+
84
+ @Column({
85
+ type: 'enum',
86
+ enum: FollowUpReportRequestStatus,
87
+ default: FollowUpReportRequestStatus.PENDING,
88
+ nullable: false,
89
+ })
90
+ status: FollowUpReportRequestStatus;
91
+
92
+ @Column({ type: 'varchar', nullable: true })
93
+ workflow_execution_id: string | null;
94
+ }
95
+
96
+ // Backward-compatible aliases (entity/table remains maintenance_*)
97
+ export { FollowUpReportRequests as MaintenanceRequests };
98
+ export { FollowUpReportRequestStatus as MaintenanceRequestStatus };
99
+ export { FollowUpReportSubjectClassification as MaintenanceSubjectClassification };
100
+ export { FollowUpReportConcernedDepartment as MaintenanceConcernedDepartment };
@@ -0,0 +1,47 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum FollowUpReportWorkFlowStatus {
5
+ COMPLETED = 'Completed',
6
+ NOT_YET_STARTED = 'Not Yet Started',
7
+ PENDING = 'Pending',
8
+ }
9
+
10
+ @Entity({ name: 'followup_report_workflows' })
11
+ export class FollowUpReportWorkFlow extends BaseModel {
12
+ @Column({ type: 'integer', nullable: false })
13
+ request_id: number;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ service_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ sub_service_id: number | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: false })
22
+ content: string;
23
+
24
+ @Column({
25
+ type: 'enum',
26
+ enum: FollowUpReportWorkFlowStatus,
27
+ default: FollowUpReportWorkFlowStatus.NOT_YET_STARTED,
28
+ nullable: false,
29
+ })
30
+ status: FollowUpReportWorkFlowStatus;
31
+
32
+ @Column({ type: 'integer', nullable: true })
33
+ user_id: number | null;
34
+
35
+ @Column({ type: 'integer', nullable: true })
36
+ role_id: number | null;
37
+
38
+ @Column({ type: 'integer', nullable: true })
39
+ department_id: number | null;
40
+
41
+ @Column({ type: 'integer', nullable: true })
42
+ section_id: number | null;
43
+ }
44
+
45
+ // Backward-compatible aliases (entity/table remains maintenance_*)
46
+ export { FollowUpReportWorkFlow as MaintenanceWorkFlow };
47
+ export { FollowUpReportWorkFlowStatus as MaintenanceWorkFlowStatus };