@platform-modules/civil-aviation-authority 2.3.211 → 2.3.212
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 +10 -10
- package/dist/data-source.js +10 -10
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/models/FollowUpReportApprovalModel.d.ts +24 -0
- package/dist/models/FollowUpReportApprovalModel.js +85 -0
- package/dist/models/FollowUpReportAttachmentModel.d.ts +12 -0
- package/dist/models/FollowUpReportAttachmentModel.js +53 -0
- package/dist/models/FollowUpReportChatModel.d.ts +20 -0
- package/dist/models/FollowUpReportChatModel.js +66 -0
- package/dist/models/FollowUpReportRequestModel.d.ts +46 -0
- package/dist/models/FollowUpReportRequestModel.js +126 -0
- package/dist/models/FollowUpReportWorkflowModel.d.ts +19 -0
- package/dist/models/FollowUpReportWorkflowModel.js +68 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -10
- package/src/index.ts +5 -5
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- 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/{MaintenanceApprovalModel.ts → FollowUpReportApprovalModel.ts} +10 -6
- package/src/models/{MaintenanceAttachmentModel.ts → FollowUpReportAttachmentModel.ts} +5 -2
- package/src/models/{MaintenanceChatModel.ts → FollowUpReportChatModel.ts} +10 -6
- package/src/models/{MaintenanceRequestModel.ts → FollowUpReportRequestModel.ts} +18 -12
- package/src/models/{MaintenanceWorkflowModel.ts → FollowUpReportWorkflowModel.ts} +10 -6
- package/src/models/HrServiceRequestModel.ts +193 -193
- 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/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/SkillsEnhancementRequestModel.ts +17 -17
- package/src/models/UserSkillModel.ts +56 -56
- 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
|
@@ -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 || "";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum
|
|
4
|
+
export enum FollowUpReportApprovalStatus {
|
|
5
5
|
PENDING = 'Pending',
|
|
6
6
|
IN_PROGRESS = 'In Progress',
|
|
7
7
|
APPROVED = 'Approved',
|
|
8
8
|
REJECTED = 'Rejected',
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@Entity({ name: '
|
|
12
|
-
export class
|
|
11
|
+
@Entity({ name: 'followup_report_approvals' })
|
|
12
|
+
export class FollowUpReportApprovalDetails extends BaseModel {
|
|
13
13
|
@Column({ type: 'integer', nullable: false })
|
|
14
14
|
request_id: number;
|
|
15
15
|
|
|
@@ -45,12 +45,16 @@ export class MaintenanceApprovalDetails extends BaseModel {
|
|
|
45
45
|
|
|
46
46
|
@Column({
|
|
47
47
|
type: 'enum',
|
|
48
|
-
enum:
|
|
49
|
-
default:
|
|
48
|
+
enum: FollowUpReportApprovalStatus,
|
|
49
|
+
default: FollowUpReportApprovalStatus.PENDING,
|
|
50
50
|
nullable: false,
|
|
51
51
|
})
|
|
52
|
-
approval_status:
|
|
52
|
+
approval_status: FollowUpReportApprovalStatus;
|
|
53
53
|
|
|
54
54
|
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
55
|
is_allowed: boolean;
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
// Backward-compatible aliases (entity/table remains maintenance_*)
|
|
59
|
+
export { FollowUpReportApprovalDetails as MaintenanceApprovalDetails };
|
|
60
|
+
export { FollowUpReportApprovalStatus as MaintenanceApprovalStatus };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
5
|
-
export class
|
|
4
|
+
@Entity({ name: 'followup_report_attachments' })
|
|
5
|
+
export class FollowUpReportAttachment extends BaseModel {
|
|
6
6
|
@Column({ type: 'integer', nullable: false })
|
|
7
7
|
request_id: number;
|
|
8
8
|
|
|
@@ -27,3 +27,6 @@ export class MaintenanceAttachment extends BaseModel {
|
|
|
27
27
|
@Column({ type: 'integer', nullable: true })
|
|
28
28
|
chat_id: number | null;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
// Backward-compatible aliases (entity/table remains maintenance_*)
|
|
32
|
+
export { FollowUpReportAttachment as MaintenanceAttachment };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum
|
|
4
|
+
export enum FollowUpReportMessageType {
|
|
5
5
|
TEXT = 'text',
|
|
6
6
|
IMAGE = 'image',
|
|
7
7
|
VIDEO = 'video',
|
|
@@ -9,8 +9,8 @@ export enum MaintenanceMessageType {
|
|
|
9
9
|
LINK = 'link',
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@Entity({ name: '
|
|
13
|
-
export class
|
|
12
|
+
@Entity({ name: 'followup_report_chats' })
|
|
13
|
+
export class FollowUpReportChat extends BaseModel {
|
|
14
14
|
@Column({ type: 'integer', nullable: false })
|
|
15
15
|
request_id: number;
|
|
16
16
|
|
|
@@ -31,12 +31,16 @@ export class MaintenanceChat extends BaseModel {
|
|
|
31
31
|
|
|
32
32
|
@Column({
|
|
33
33
|
type: 'enum',
|
|
34
|
-
enum:
|
|
35
|
-
default:
|
|
34
|
+
enum: FollowUpReportMessageType,
|
|
35
|
+
default: FollowUpReportMessageType.TEXT,
|
|
36
36
|
nullable: false,
|
|
37
37
|
})
|
|
38
|
-
messageType:
|
|
38
|
+
messageType: FollowUpReportMessageType;
|
|
39
39
|
|
|
40
40
|
@Column({ type: 'text', nullable: true })
|
|
41
41
|
status: string;
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
// Backward-compatible aliases (entity/table remains maintenance_*)
|
|
45
|
+
export { FollowUpReportChat as MaintenanceChat };
|
|
46
|
+
export { FollowUpReportMessageType as MaintenanceMessageType };
|
|
@@ -2,7 +2,7 @@ import { Column, Entity } from 'typeorm';
|
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
4
|
/** Subject / handling priority classification */
|
|
5
|
-
export enum
|
|
5
|
+
export enum FollowUpReportSubjectClassification {
|
|
6
6
|
URGENT = 'Urgent',
|
|
7
7
|
VERY_URGENT = 'Very Urgent',
|
|
8
8
|
CONFIDENTIAL = 'Confidential',
|
|
@@ -11,7 +11,7 @@ export enum MaintenanceSubjectClassification {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/** Concerned department under General Manager of Support Services */
|
|
14
|
-
export enum
|
|
14
|
+
export enum FollowUpReportConcernedDepartment {
|
|
15
15
|
IT = 'IT',
|
|
16
16
|
HR = 'HR',
|
|
17
17
|
TRAINING = 'Training',
|
|
@@ -19,7 +19,7 @@ export enum MaintenanceConcernedDepartment {
|
|
|
19
19
|
PROJECTS_AND_MAINTENANCE = 'Projects & Maintenance',
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export enum
|
|
22
|
+
export enum FollowUpReportRequestStatus {
|
|
23
23
|
PENDING = 'Pending',
|
|
24
24
|
ASSIGNED = 'Assigned',
|
|
25
25
|
IN_PROGRESS = 'In Progress',
|
|
@@ -27,8 +27,8 @@ export enum MaintenanceRequestStatus {
|
|
|
27
27
|
REJECTED = 'Rejected',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
@Entity({ name: '
|
|
31
|
-
export class
|
|
30
|
+
@Entity({ name: 'followup_report_requests' })
|
|
31
|
+
export class FollowUpReportRequests extends BaseModel {
|
|
32
32
|
@Column({ type: 'int', nullable: true })
|
|
33
33
|
req_user_department_id: number | null;
|
|
34
34
|
|
|
@@ -55,22 +55,22 @@ export class MaintenanceRequests extends BaseModel {
|
|
|
55
55
|
|
|
56
56
|
@Column({
|
|
57
57
|
type: 'enum',
|
|
58
|
-
enum:
|
|
58
|
+
enum: FollowUpReportSubjectClassification,
|
|
59
59
|
enumName: 'maintenance_subject_classification_en',
|
|
60
60
|
nullable: false,
|
|
61
61
|
})
|
|
62
|
-
subject_classification:
|
|
62
|
+
subject_classification: FollowUpReportSubjectClassification;
|
|
63
63
|
|
|
64
64
|
@Column({ type: 'text', nullable: false })
|
|
65
65
|
topic: string;
|
|
66
66
|
|
|
67
67
|
@Column({
|
|
68
68
|
type: 'enum',
|
|
69
|
-
enum:
|
|
69
|
+
enum: FollowUpReportConcernedDepartment,
|
|
70
70
|
enumName: 'maintenance_concerned_department_en',
|
|
71
71
|
nullable: false,
|
|
72
72
|
})
|
|
73
|
-
concerned_department:
|
|
73
|
+
concerned_department: FollowUpReportConcernedDepartment;
|
|
74
74
|
|
|
75
75
|
@Column({ type: 'date', nullable: false })
|
|
76
76
|
date_from: Date;
|
|
@@ -83,12 +83,18 @@ export class MaintenanceRequests extends BaseModel {
|
|
|
83
83
|
|
|
84
84
|
@Column({
|
|
85
85
|
type: 'enum',
|
|
86
|
-
enum:
|
|
87
|
-
default:
|
|
86
|
+
enum: FollowUpReportRequestStatus,
|
|
87
|
+
default: FollowUpReportRequestStatus.PENDING,
|
|
88
88
|
nullable: false,
|
|
89
89
|
})
|
|
90
|
-
status:
|
|
90
|
+
status: FollowUpReportRequestStatus;
|
|
91
91
|
|
|
92
92
|
@Column({ type: 'varchar', nullable: true })
|
|
93
93
|
workflow_execution_id: string | null;
|
|
94
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 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum
|
|
4
|
+
export enum FollowUpReportWorkFlowStatus {
|
|
5
5
|
COMPLETED = 'Completed',
|
|
6
6
|
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
7
|
PENDING = 'Pending',
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@Entity({ name: '
|
|
11
|
-
export class
|
|
10
|
+
@Entity({ name: 'followup_report_workflows' })
|
|
11
|
+
export class FollowUpReportWorkFlow extends BaseModel {
|
|
12
12
|
@Column({ type: 'integer', nullable: false })
|
|
13
13
|
request_id: number;
|
|
14
14
|
|
|
@@ -23,11 +23,11 @@ export class MaintenanceWorkFlow extends BaseModel {
|
|
|
23
23
|
|
|
24
24
|
@Column({
|
|
25
25
|
type: 'enum',
|
|
26
|
-
enum:
|
|
27
|
-
default:
|
|
26
|
+
enum: FollowUpReportWorkFlowStatus,
|
|
27
|
+
default: FollowUpReportWorkFlowStatus.NOT_YET_STARTED,
|
|
28
28
|
nullable: false,
|
|
29
29
|
})
|
|
30
|
-
status:
|
|
30
|
+
status: FollowUpReportWorkFlowStatus;
|
|
31
31
|
|
|
32
32
|
@Column({ type: 'integer', nullable: true })
|
|
33
33
|
user_id: number | null;
|
|
@@ -41,3 +41,7 @@ export class MaintenanceWorkFlow extends BaseModel {
|
|
|
41
41
|
@Column({ type: 'integer', nullable: true })
|
|
42
42
|
section_id: number | null;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
// Backward-compatible aliases (entity/table remains maintenance_*)
|
|
46
|
+
export { FollowUpReportWorkFlow as MaintenanceWorkFlow };
|
|
47
|
+
export { FollowUpReportWorkFlowStatus as MaintenanceWorkFlowStatus };
|