@platform-modules/civil-aviation-authority 2.3.149 → 2.3.150
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 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +20 -3
- package/dist/models/CancellationApprovalModel.d.ts +23 -0
- package/dist/models/CancellationApprovalModel.js +88 -0
- package/dist/models/CancellationAttachmentModel.d.ts +12 -0
- package/dist/models/CancellationAttachmentModel.js +56 -0
- package/dist/models/CancellationChatModel.d.ts +18 -0
- package/dist/models/CancellationChatModel.js +65 -0
- package/dist/models/CancellationRequestModel.d.ts +23 -0
- package/dist/models/CancellationRequestModel.js +73 -0
- package/dist/models/CancellationWorkflowModel.d.ts +18 -0
- package/dist/models/CancellationWorkflowModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +11 -0
- package/src/models/AccommodationApprovalModel.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/CancellationApprovalModel.ts +59 -0
- package/src/models/CancellationAttachmentModel.ts +32 -0
- package/src/models/CancellationChatModel.ts +42 -0
- package/src/models/CancellationRequestModel.ts +48 -0
- package/src/models/CancellationWorkflowModel.ts +41 -0
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- 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/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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "cancellation_attachments" })
|
|
5
|
+
export class CancellationRequestAttachment 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
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
31
|
+
attachment_for: string | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum CancellationMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "cancellation_chats" })
|
|
13
|
+
export class CancellationRequestChat 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 | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "text", nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: "enum",
|
|
34
|
+
enum: CancellationMessageType,
|
|
35
|
+
default: CancellationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: CancellationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "text", nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum CancellationRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected",
|
|
10
|
+
CANCELLED = "Cancelled",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: "cancellation_requests" })
|
|
14
|
+
export class CancellationRequests extends BaseModel {
|
|
15
|
+
@Column({ type: "integer", nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "integer", nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "integer", nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "enum", enum: CancellationRequestStatus, default: CancellationRequestStatus.PENDING, nullable: false })
|
|
31
|
+
status: CancellationRequestStatus;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "varchar", nullable: true })
|
|
34
|
+
workflow_execution_id: string | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: false })
|
|
37
|
+
old_request_number: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
40
|
+
reason_for_cancellation: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "text", nullable: false })
|
|
43
|
+
description: string;
|
|
44
|
+
|
|
45
|
+
/** Optional user IDs for “affected participants” notification fan-out */
|
|
46
|
+
@Column({ type: "json", nullable: true })
|
|
47
|
+
affected_participant_user_ids: number[] | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum CancellationWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: "cancellation_workflows" })
|
|
11
|
+
export class CancellationWorkFlow 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({ type: "enum", enum: CancellationWorkFlowStatus, default: CancellationWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: CancellationWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
user_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
role_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: true })
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
section_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
step_order: number | null;
|
|
41
|
+
}
|
|
@@ -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 || "";
|
|
@@ -23,21 +23,21 @@ export enum CyberSecurityAuditApplicationType {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@Entity({ name: "cyber_security_audit_requests" })
|
|
26
|
-
export class CyberSecurityAuditRequest extends BaseModel {
|
|
27
|
-
@Column({ type: "integer", nullable: true })
|
|
28
|
-
req_user_department_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "integer", nullable: true })
|
|
31
|
-
req_user_section_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "integer", nullable: true })
|
|
34
|
-
requesting_to_department_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "integer", nullable: true })
|
|
37
|
-
requesting_to_section_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "integer", nullable: true })
|
|
40
|
-
req_user_position_id: number | null;
|
|
26
|
+
export class CyberSecurityAuditRequest extends BaseModel {
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
req_user_department_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
req_user_section_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: true })
|
|
34
|
+
requesting_to_department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
requesting_to_section_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
req_user_position_id: number | null;
|
|
41
41
|
|
|
42
42
|
@Column({ type: "integer", nullable: true })
|
|
43
43
|
service_id: number | null;
|
|
@@ -87,15 +87,15 @@ export class CyberSecurityAuditRequest extends BaseModel {
|
|
|
87
87
|
application_to_be_audited: CyberSecurityAuditApplicationType,
|
|
88
88
|
submission_date: Date,
|
|
89
89
|
status: CyberSecurityAuditRequestStatus = CyberSecurityAuditRequestStatus.PENDING,
|
|
90
|
-
service_id?: number | null,
|
|
91
|
-
sub_service_id?: number | null,
|
|
92
|
-
req_user_department_id?: number | null,
|
|
93
|
-
req_user_section_id?: number | null,
|
|
94
|
-
requesting_to_department_id?: number | null,
|
|
95
|
-
requesting_to_section_id?: number | null,
|
|
96
|
-
req_user_position_id?: number | null,
|
|
97
|
-
description?: string | null,
|
|
98
|
-
reviewer_user_id?: number | null,
|
|
90
|
+
service_id?: number | null,
|
|
91
|
+
sub_service_id?: number | null,
|
|
92
|
+
req_user_department_id?: number | null,
|
|
93
|
+
req_user_section_id?: number | null,
|
|
94
|
+
requesting_to_department_id?: number | null,
|
|
95
|
+
requesting_to_section_id?: number | null,
|
|
96
|
+
req_user_position_id?: number | null,
|
|
97
|
+
description?: string | null,
|
|
98
|
+
reviewer_user_id?: number | null,
|
|
99
99
|
assigned_to_user_id?: number | null,
|
|
100
100
|
assigned_at?: Date | null,
|
|
101
101
|
workflow_execution_id?: string | null,
|
|
@@ -108,14 +108,14 @@ export class CyberSecurityAuditRequest extends BaseModel {
|
|
|
108
108
|
this.application_to_be_audited = application_to_be_audited;
|
|
109
109
|
this.submission_date = submission_date;
|
|
110
110
|
this.status = status;
|
|
111
|
-
this.service_id = service_id || null;
|
|
112
|
-
this.sub_service_id = sub_service_id || null;
|
|
113
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
114
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
115
|
-
this.requesting_to_department_id = requesting_to_department_id || null;
|
|
116
|
-
this.requesting_to_section_id = requesting_to_section_id || null;
|
|
117
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
118
|
-
this.description = description || null;
|
|
111
|
+
this.service_id = service_id || null;
|
|
112
|
+
this.sub_service_id = sub_service_id || null;
|
|
113
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
114
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
115
|
+
this.requesting_to_department_id = requesting_to_department_id || null;
|
|
116
|
+
this.requesting_to_section_id = requesting_to_section_id || null;
|
|
117
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
118
|
+
this.description = description || null;
|
|
119
119
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
120
120
|
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
121
121
|
this.assigned_at = assigned_at || null;
|