@platform-modules/civil-aviation-authority 2.3.250 → 2.3.256

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 (96) hide show
  1. package/.env +22 -7
  2. package/dist/data-source.js +8 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  6. package/dist/models/DocumentMetadataModel.js +171 -0
  7. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  8. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  9. package/dist/models/FolderModel.d.ts +16 -0
  10. package/dist/models/FolderModel.js +85 -0
  11. package/dist/models/ImportExportMaterialModels.d.ts +92 -0
  12. package/dist/models/ImportExportMaterialModels.js +307 -0
  13. package/dist/models/PermissionModel.d.ts +18 -0
  14. package/dist/models/PermissionModel.js +68 -0
  15. package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
  16. package/dist/models/SecurityAccessApprovalModel.js +82 -0
  17. package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
  18. package/dist/models/SecurityAccessAttachmentModel.js +56 -0
  19. package/dist/models/SecurityAccessChatModel.d.ts +12 -0
  20. package/dist/models/SecurityAccessChatModel.js +56 -0
  21. package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
  22. package/dist/models/SecurityAccessRequestModel.js +80 -0
  23. package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
  24. package/dist/models/SecurityAccessWorkflowModel.js +84 -0
  25. package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
  26. package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
  27. package/dist/models/SlaMyRequestsViewModel.d.ts +25 -0
  28. package/dist/models/SlaMyRequestsViewModel.js +148 -0
  29. package/dist/models/UUIDBaseModel.d.ts +14 -0
  30. package/dist/models/UUIDBaseModel.js +66 -0
  31. package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
  32. package/dist/models/WorkingHoursExtensionModels.js +295 -0
  33. package/package.json +1 -2
  34. package/src/data-source.ts +8 -0
  35. package/src/index.ts +1 -0
  36. package/src/models/AccessCardRequestModel.ts +135 -135
  37. package/src/models/AccommodationApprovalModel.ts +8 -8
  38. package/src/models/AccommodationRequestModel.ts +8 -8
  39. package/src/models/AirportEntryPermitModel.ts +276 -276
  40. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  41. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  42. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  43. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  44. package/src/models/CAAServices.ts +33 -33
  45. package/src/models/CAASubServices.ts +33 -33
  46. package/src/models/CAIRatingMasterModel.ts +39 -39
  47. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  48. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  49. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  50. package/src/models/DepartmentsModel.ts +25 -25
  51. package/src/models/DocumentDriveModel.ts +28 -28
  52. package/src/models/DocumentFolderModel.ts +45 -45
  53. package/src/models/HotelApprovalModel.ts +83 -83
  54. package/src/models/HousingContractCancelApprovalModel.ts +64 -64
  55. package/src/models/HousingContractCancelChatModel.ts +56 -56
  56. package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
  57. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  58. package/src/models/HrServiceRequestModel.ts +193 -193
  59. package/src/models/ITRequestAttachmentModel.ts +73 -73
  60. package/src/models/ITRequestChatModel.ts +74 -74
  61. package/src/models/ItApprovalsModel.ts +84 -84
  62. package/src/models/ItWorkflowModel.ts +55 -55
  63. package/src/models/LegalConsultationApprovalModel.ts +65 -65
  64. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  65. package/src/models/NotificationModel.ts +89 -89
  66. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  67. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  68. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  69. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  70. package/src/models/PromotionRequestModel.ts +11 -11
  71. package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
  72. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  73. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  74. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  75. package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
  76. package/src/models/ServiceSlaApprovalModel.ts +64 -64
  77. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  78. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  79. package/src/models/SlaMyRequestsViewModel.ts +142 -0
  80. package/src/models/SlaRequestModel.ts +65 -65
  81. package/src/models/StudyLeaveRequestModel.ts +144 -144
  82. package/src/models/TrainingRequestModel.ts +164 -164
  83. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  84. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  85. package/src/models/UserSkillModel.ts +56 -56
  86. package/src/models/role.ts +34 -34
  87. package/src/models/user.ts +233 -233
  88. package/src/sla/sla-table-sync.service.ts +90 -90
  89. package/dist/models/ITApprovalSettings.d.ts +0 -7
  90. package/dist/models/ITApprovalSettings.js +0 -40
  91. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  92. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  93. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  94. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  95. package/dist/models/Workflows.d.ts +0 -9
  96. package/dist/models/Workflows.js +0 -31
@@ -1,65 +1,65 @@
1
- import { Column, Entity, Index } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- /** Workflow status for generic SLA-tracked service requests. */
5
- export enum SlaRequestStatus {
6
- PENDING = "Pending",
7
- IN_PROGRESS = "In Progress",
8
- APPROVED = "Approved",
9
- REJECTED = "Rejected"
10
- }
11
-
12
- /**
13
- * Cross-service SLA request: common routing/workflow fields plus `request_obj`
14
- * for service-specific payload (same common columns as `ServiceExtensionAfter60Request` lines 13–37).
15
- */
16
- @Entity({ name: "sla_requests" })
17
- /** Non-unique: same native `request_id` may be inserted more than once (e.g. workflow retries); scope in queries with service_id / workflow_execution_id as needed. */
18
- @Index("idx_sla_requests_request_id", ["request_id"])
19
- @Index("idx_sla_requests_user_id", ["user_id"])
20
- @Index("idx_sla_requests_service_subservice", ["service_id", "sub_service_id"])
21
- @Index("idx_sla_requests_workflow_execution_id", ["workflow_execution_id"])
22
- @Index("idx_sla_requests_status", ["status"])
23
- export class SlaRequest extends BaseModel {
24
- @Column({ type: "int", nullable: true })
25
- req_user_department_id: number | null;
26
-
27
- @Column({ type: "int", nullable: true })
28
- req_user_section_id: number | null;
29
-
30
- @Column({ type: "int", nullable: true })
31
- service_id: number | null;
32
-
33
- @Column({ type: "int", nullable: true })
34
- sub_service_id: number | null;
35
-
36
- @Column({ type: "int", nullable: false })
37
- user_id: number;
38
-
39
- @Column({
40
- type: "enum",
41
- enum: SlaRequestStatus,
42
- default: SlaRequestStatus.PENDING,
43
- nullable: false
44
- })
45
- status: SlaRequestStatus;
46
-
47
- @Column({ type: "varchar", length: 255, nullable: true })
48
- workflow_execution_id: string | null;
49
-
50
- /**
51
- * Native service request PK this SLA row tracks (non-unique index; scope with service_id/sub_service_id in queries).
52
- */
53
- @Column({ type: "int", nullable: false })
54
- request_id: number;
55
-
56
- /** Service-specific fields as JSON (shape defined per service / sub_service). */
57
- @Column({ type: "jsonb", nullable: false, default: () => "'{}'::jsonb" })
58
- request_obj: Record<string, unknown>;
59
-
60
- constructor() {
61
- super();
62
- this.request_id = 0;
63
- this.request_obj = {};
64
- }
65
- }
1
+ import { Column, Entity, Index } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ /** Workflow status for generic SLA-tracked service requests. */
5
+ export enum SlaRequestStatus {
6
+ PENDING = "Pending",
7
+ IN_PROGRESS = "In Progress",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ /**
13
+ * Cross-service SLA request: common routing/workflow fields plus `request_obj`
14
+ * for service-specific payload (same common columns as `ServiceExtensionAfter60Request` lines 13–37).
15
+ */
16
+ @Entity({ name: "sla_requests" })
17
+ /** Non-unique: same native `request_id` may be inserted more than once (e.g. workflow retries); scope in queries with service_id / workflow_execution_id as needed. */
18
+ @Index("idx_sla_requests_request_id", ["request_id"])
19
+ @Index("idx_sla_requests_user_id", ["user_id"])
20
+ @Index("idx_sla_requests_service_subservice", ["service_id", "sub_service_id"])
21
+ @Index("idx_sla_requests_workflow_execution_id", ["workflow_execution_id"])
22
+ @Index("idx_sla_requests_status", ["status"])
23
+ export class SlaRequest extends BaseModel {
24
+ @Column({ type: "int", nullable: true })
25
+ req_user_department_id: number | null;
26
+
27
+ @Column({ type: "int", nullable: true })
28
+ req_user_section_id: number | null;
29
+
30
+ @Column({ type: "int", nullable: true })
31
+ service_id: number | null;
32
+
33
+ @Column({ type: "int", nullable: true })
34
+ sub_service_id: number | null;
35
+
36
+ @Column({ type: "int", nullable: false })
37
+ user_id: number;
38
+
39
+ @Column({
40
+ type: "enum",
41
+ enum: SlaRequestStatus,
42
+ default: SlaRequestStatus.PENDING,
43
+ nullable: false
44
+ })
45
+ status: SlaRequestStatus;
46
+
47
+ @Column({ type: "varchar", length: 255, nullable: true })
48
+ workflow_execution_id: string | null;
49
+
50
+ /**
51
+ * Native service request PK this SLA row tracks (non-unique index; scope with service_id/sub_service_id in queries).
52
+ */
53
+ @Column({ type: "int", nullable: false })
54
+ request_id: number;
55
+
56
+ /** Service-specific fields as JSON (shape defined per service / sub_service). */
57
+ @Column({ type: "jsonb", nullable: false, default: () => "'{}'::jsonb" })
58
+ request_obj: Record<string, unknown>;
59
+
60
+ constructor() {
61
+ super();
62
+ this.request_id = 0;
63
+ this.request_obj = {};
64
+ }
65
+ }
@@ -1,144 +1,144 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum StudyLeaveRequestStatus {
5
- PENDING = "Pending",
6
- IN_PROGRESS = "In Progress",
7
- COMPLETED = "Completed",
8
- APPROVED = "Approved",
9
- REJECTED = "Rejected"
10
- }
11
-
12
- @Entity({ name: "study_leave_requests" })
13
- export class StudyLeaveRequest extends BaseModel {
14
- @Column({ type: "integer", nullable: true })
15
- req_user_department_id: number | null;
16
-
17
- @Column({ type: "integer", nullable: true })
18
- req_user_section_id: number | null;
19
-
20
- @Column({ type: "integer", nullable: true })
21
- req_user_position_id: number | null;
22
-
23
- @Column({ type: "integer", nullable: true })
24
- service_id: number | null;
25
-
26
- @Column({ type: "integer", nullable: true })
27
- sub_service_id: number | null;
28
-
29
- @Column({ type: "integer", nullable: false })
30
- user_id: number;
31
-
32
- @Column({ type: "varchar", length: 255, nullable: false })
33
- course_name: string;
34
-
35
- @Column({ type: "varchar", length: 255, nullable: false })
36
- institute_name: string;
37
-
38
- @Column({ type: "varchar", length: 255, nullable: true })
39
- duration_of_course: string | null;
40
-
41
- @Column({ type: "date", nullable: false })
42
- course_start_date: Date;
43
-
44
- @Column({ type: "date", nullable: false })
45
- course_end_date: Date;
46
-
47
- @Column({ type: "varchar", length: 255, nullable: false })
48
- location: string;
49
-
50
- @Column({ type: "text", nullable: false })
51
- description: string;
52
-
53
- @Column({
54
- type: "enum",
55
- enum: StudyLeaveRequestStatus,
56
- default: StudyLeaveRequestStatus.PENDING,
57
- nullable: false
58
- })
59
- status: StudyLeaveRequestStatus;
60
-
61
- @Column({ type: "integer", nullable: true })
62
- reviewer_user_id: number | null;
63
-
64
- @Column({ type: "integer", nullable: true })
65
- assigned_to_user_id: number | null;
66
-
67
- @Column({ type: "timestamp", nullable: true })
68
- assigned_at: Date | null;
69
-
70
- @Column({ type: "varchar", length: 255, nullable: true })
71
- workflow_execution_id: string | null;
72
-
73
- @Column({ type: "boolean", default: false, nullable: true })
74
- already_submitted_in_ministry_of_education_system: boolean | null;
75
-
76
- @Column({ type: "varchar", length: 255, nullable: true })
77
- area_name: string | null;
78
-
79
- @Column({ type: "varchar", length: 255, nullable: true })
80
- country_name: string | null;
81
-
82
- @Column({ type: "varchar", length: 255, nullable: true })
83
- qualification_required: string | null;
84
-
85
- @Column({ type: "boolean", default: false, nullable: true })
86
- have_you_ever_received_authority: boolean | null;
87
-
88
- @Column({ type: "varchar", length: 255, nullable: true })
89
- scholarship: string | null;
90
-
91
- constructor(
92
- user_id: number,
93
- course_name: string,
94
- institute_name: string,
95
- course_start_date: Date,
96
- course_end_date: Date,
97
- location: string,
98
- description: string,
99
- status: StudyLeaveRequestStatus = StudyLeaveRequestStatus.PENDING,
100
- service_id?: number | null,
101
- sub_service_id?: number | null,
102
- req_user_department_id?: number | null,
103
- req_user_section_id?: number | null,
104
- req_user_position_id?: number | null,
105
- duration_of_course?: string | null,
106
- reviewer_user_id?: number | null,
107
- assigned_to_user_id?: number | null,
108
- assigned_at?: Date | null,
109
- workflow_execution_id?: string | null,
110
- already_submitted_in_ministry_of_education_system?: boolean | null,
111
- area_name?: string | null,
112
- country_name?: string | null,
113
- qualification_required?: string | null,
114
- have_you_ever_received_authority?: boolean | null,
115
- scholarship?: string | null
116
- ) {
117
- super();
118
- this.user_id = user_id;
119
- this.course_name = course_name;
120
- this.institute_name = institute_name;
121
- this.course_start_date = course_start_date;
122
- this.course_end_date = course_end_date;
123
- this.location = location;
124
- this.description = description;
125
- this.status = status;
126
- this.service_id = service_id || null;
127
- this.sub_service_id = sub_service_id || null;
128
- this.req_user_department_id = req_user_department_id || null;
129
- this.req_user_section_id = req_user_section_id || null;
130
- this.req_user_position_id = req_user_position_id || null;
131
- this.duration_of_course = duration_of_course || null;
132
- this.reviewer_user_id = reviewer_user_id || null;
133
- this.assigned_to_user_id = assigned_to_user_id || null;
134
- this.assigned_at = assigned_at || null;
135
- this.workflow_execution_id = workflow_execution_id || null;
136
- this.already_submitted_in_ministry_of_education_system = already_submitted_in_ministry_of_education_system ?? null;
137
- this.area_name = area_name ?? null;
138
- this.country_name = country_name ?? null;
139
- this.qualification_required = qualification_required ?? null;
140
- this.have_you_ever_received_authority = have_you_ever_received_authority ?? null;
141
- this.scholarship = scholarship ?? null;
142
- }
143
- }
144
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum StudyLeaveRequestStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ COMPLETED = "Completed",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ @Entity({ name: "study_leave_requests" })
13
+ export class StudyLeaveRequest extends BaseModel {
14
+ @Column({ type: "integer", nullable: true })
15
+ req_user_department_id: number | null;
16
+
17
+ @Column({ type: "integer", nullable: true })
18
+ req_user_section_id: number | null;
19
+
20
+ @Column({ type: "integer", nullable: true })
21
+ req_user_position_id: number | null;
22
+
23
+ @Column({ type: "integer", nullable: true })
24
+ service_id: number | null;
25
+
26
+ @Column({ type: "integer", nullable: true })
27
+ sub_service_id: number | null;
28
+
29
+ @Column({ type: "integer", nullable: false })
30
+ user_id: number;
31
+
32
+ @Column({ type: "varchar", length: 255, nullable: false })
33
+ course_name: string;
34
+
35
+ @Column({ type: "varchar", length: 255, nullable: false })
36
+ institute_name: string;
37
+
38
+ @Column({ type: "varchar", length: 255, nullable: true })
39
+ duration_of_course: string | null;
40
+
41
+ @Column({ type: "date", nullable: false })
42
+ course_start_date: Date;
43
+
44
+ @Column({ type: "date", nullable: false })
45
+ course_end_date: Date;
46
+
47
+ @Column({ type: "varchar", length: 255, nullable: false })
48
+ location: string;
49
+
50
+ @Column({ type: "text", nullable: false })
51
+ description: string;
52
+
53
+ @Column({
54
+ type: "enum",
55
+ enum: StudyLeaveRequestStatus,
56
+ default: StudyLeaveRequestStatus.PENDING,
57
+ nullable: false
58
+ })
59
+ status: StudyLeaveRequestStatus;
60
+
61
+ @Column({ type: "integer", nullable: true })
62
+ reviewer_user_id: number | null;
63
+
64
+ @Column({ type: "integer", nullable: true })
65
+ assigned_to_user_id: number | null;
66
+
67
+ @Column({ type: "timestamp", nullable: true })
68
+ assigned_at: Date | null;
69
+
70
+ @Column({ type: "varchar", length: 255, nullable: true })
71
+ workflow_execution_id: string | null;
72
+
73
+ @Column({ type: "boolean", default: false, nullable: true })
74
+ already_submitted_in_ministry_of_education_system: boolean | null;
75
+
76
+ @Column({ type: "varchar", length: 255, nullable: true })
77
+ area_name: string | null;
78
+
79
+ @Column({ type: "varchar", length: 255, nullable: true })
80
+ country_name: string | null;
81
+
82
+ @Column({ type: "varchar", length: 255, nullable: true })
83
+ qualification_required: string | null;
84
+
85
+ @Column({ type: "boolean", default: false, nullable: true })
86
+ have_you_ever_received_authority: boolean | null;
87
+
88
+ @Column({ type: "varchar", length: 255, nullable: true })
89
+ scholarship: string | null;
90
+
91
+ constructor(
92
+ user_id: number,
93
+ course_name: string,
94
+ institute_name: string,
95
+ course_start_date: Date,
96
+ course_end_date: Date,
97
+ location: string,
98
+ description: string,
99
+ status: StudyLeaveRequestStatus = StudyLeaveRequestStatus.PENDING,
100
+ service_id?: number | null,
101
+ sub_service_id?: number | null,
102
+ req_user_department_id?: number | null,
103
+ req_user_section_id?: number | null,
104
+ req_user_position_id?: number | null,
105
+ duration_of_course?: string | null,
106
+ reviewer_user_id?: number | null,
107
+ assigned_to_user_id?: number | null,
108
+ assigned_at?: Date | null,
109
+ workflow_execution_id?: string | null,
110
+ already_submitted_in_ministry_of_education_system?: boolean | null,
111
+ area_name?: string | null,
112
+ country_name?: string | null,
113
+ qualification_required?: string | null,
114
+ have_you_ever_received_authority?: boolean | null,
115
+ scholarship?: string | null
116
+ ) {
117
+ super();
118
+ this.user_id = user_id;
119
+ this.course_name = course_name;
120
+ this.institute_name = institute_name;
121
+ this.course_start_date = course_start_date;
122
+ this.course_end_date = course_end_date;
123
+ this.location = location;
124
+ this.description = description;
125
+ this.status = status;
126
+ this.service_id = service_id || null;
127
+ this.sub_service_id = sub_service_id || null;
128
+ this.req_user_department_id = req_user_department_id || null;
129
+ this.req_user_section_id = req_user_section_id || null;
130
+ this.req_user_position_id = req_user_position_id || null;
131
+ this.duration_of_course = duration_of_course || null;
132
+ this.reviewer_user_id = reviewer_user_id || null;
133
+ this.assigned_to_user_id = assigned_to_user_id || null;
134
+ this.assigned_at = assigned_at || null;
135
+ this.workflow_execution_id = workflow_execution_id || null;
136
+ this.already_submitted_in_ministry_of_education_system = already_submitted_in_ministry_of_education_system ?? null;
137
+ this.area_name = area_name ?? null;
138
+ this.country_name = country_name ?? null;
139
+ this.qualification_required = qualification_required ?? null;
140
+ this.have_you_ever_received_authority = have_you_ever_received_authority ?? null;
141
+ this.scholarship = scholarship ?? null;
142
+ }
143
+ }
144
+