@platform-modules/civil-aviation-authority 2.3.171 → 2.3.173

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 (42) hide show
  1. package/.env +10 -10
  2. package/dist/data-source.js +2 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/models/ScholarshipAttendeeModel.d.ts +6 -0
  6. package/dist/models/{ITServicesTypesMuscatModel.js → ScholarshipAttendeeModel.js} +15 -17
  7. package/dist/models/ScholarshipRequestModel.d.ts +10 -0
  8. package/dist/models/ScholarshipRequestModel.js +36 -0
  9. package/dist/models/user.d.ts +1 -1
  10. package/dist/models/user.js +1 -1
  11. package/package.json +1 -1
  12. package/src/data-source.ts +2 -0
  13. package/src/index.ts +1 -0
  14. package/src/models/AccommodationApprovalModel.ts +8 -8
  15. package/src/models/AccommodationRequestModel.ts +8 -8
  16. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  17. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  18. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  19. package/src/models/CAAServices.ts +33 -33
  20. package/src/models/CAASubServices.ts +33 -33
  21. package/src/models/CAIRatingMasterModel.ts +39 -39
  22. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  23. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  24. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  25. package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
  26. package/src/models/HrServiceRequestModel.ts +193 -193
  27. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  28. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  29. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  30. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  31. package/src/models/PromotionRequestModel.ts +11 -11
  32. package/src/models/ScholarshipAttendeeModel.ts +14 -0
  33. package/src/models/ScholarshipRequestModel.ts +28 -0
  34. package/src/models/UserSkillModel.ts +56 -56
  35. package/src/models/user.ts +2 -2
  36. package/dist/models/ITApprovalSettings.d.ts +0 -7
  37. package/dist/models/ITApprovalSettings.js +0 -40
  38. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  39. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  40. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  41. package/dist/models/Workflows.d.ts +0 -9
  42. package/dist/models/Workflows.js +0 -31
@@ -9,20 +9,20 @@ export class CAASubServices extends BaseModel {
9
9
  @Column({ type: 'varchar', length: 64, nullable: true, unique: true })
10
10
  code: string | null;
11
11
 
12
- @Column({ nullable: false })
13
- sub_service_name: string;
14
-
15
- @Column({ type: "text", nullable: true })
16
- arabic_name: string | null;
17
-
18
- @Column({ nullable: false })
19
- description: string;
20
-
21
- @Column({ type: "text", nullable: true })
22
- arabic_description: string | null;
23
-
24
- @Column({ nullable: true })
25
- service_id: number;
12
+ @Column({ nullable: false })
13
+ sub_service_name: string;
14
+
15
+ @Column({ type: "text", nullable: true })
16
+ arabic_name: string | null;
17
+
18
+ @Column({ nullable: false })
19
+ description: string;
20
+
21
+ @Column({ type: "text", nullable: true })
22
+ arabic_description: string | null;
23
+
24
+ @Column({ nullable: true })
25
+ service_id: number;
26
26
 
27
27
  @ManyToOne(() => CAAServices)
28
28
  @JoinColumn({ name: 'service_id' })
@@ -31,22 +31,22 @@ export class CAASubServices extends BaseModel {
31
31
  @Column({ nullable: true })
32
32
  logo_url: string;
33
33
 
34
- constructor(
35
- sub_service_name: string,
36
- description: string,
37
- arabic_name: string | null,
38
- arabic_description: string | null,
39
- service_id: number,
40
- logo_url: string,
41
- code: string | null = null
42
- ) {
43
- super();
44
- this.sub_service_name = sub_service_name
45
- this.arabic_name = arabic_name || null;
46
- this.description = description
47
- this.arabic_description = arabic_description || null;
48
- this.service_id = service_id
49
- this.logo_url = logo_url
50
- this.code = code
51
- }
52
- }
34
+ constructor(
35
+ sub_service_name: string,
36
+ description: string,
37
+ arabic_name: string | null,
38
+ arabic_description: string | null,
39
+ service_id: number,
40
+ logo_url: string,
41
+ code: string | null = null
42
+ ) {
43
+ super();
44
+ this.sub_service_name = sub_service_name
45
+ this.arabic_name = arabic_name || null;
46
+ this.description = description
47
+ this.arabic_description = arabic_description || null;
48
+ this.service_id = service_id
49
+ this.logo_url = logo_url
50
+ this.code = code
51
+ }
52
+ }
@@ -1,39 +1,39 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "cai_rating_master" })
5
- export class CAIRatingMaster extends BaseModel {
6
- @Column({ type: "text", nullable: false })
7
- confidentiality: string;
8
-
9
- @Column({ type: "text", nullable: false })
10
- integrity: string;
11
-
12
- @Column({ type: "text", nullable: false })
13
- availability: string;
14
-
15
- @Column({ type: "varchar", length: 100, nullable: false })
16
- rating: string;
17
-
18
- @Column({ type: "varchar", length: 100, nullable: false })
19
- value: string;
20
-
21
- @Column({ type: "boolean", default: true })
22
- is_active: boolean;
23
-
24
- constructor(
25
- confidentiality: string,
26
- integrity: string,
27
- availability: string,
28
- rating: string,
29
- value: string
30
- ) {
31
- super();
32
- this.confidentiality = confidentiality;
33
- this.integrity = integrity;
34
- this.availability = availability;
35
- this.rating = rating;
36
- this.value = value;
37
- this.is_active = true;
38
- }
39
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "cai_rating_master" })
5
+ export class CAIRatingMaster extends BaseModel {
6
+ @Column({ type: "text", nullable: false })
7
+ confidentiality: string;
8
+
9
+ @Column({ type: "text", nullable: false })
10
+ integrity: string;
11
+
12
+ @Column({ type: "text", nullable: false })
13
+ availability: string;
14
+
15
+ @Column({ type: "varchar", length: 100, nullable: false })
16
+ rating: string;
17
+
18
+ @Column({ type: "varchar", length: 100, nullable: false })
19
+ value: string;
20
+
21
+ @Column({ type: "boolean", default: true })
22
+ is_active: boolean;
23
+
24
+ constructor(
25
+ confidentiality: string,
26
+ integrity: string,
27
+ availability: string,
28
+ rating: string,
29
+ value: string
30
+ ) {
31
+ super();
32
+ this.confidentiality = confidentiality;
33
+ this.integrity = integrity;
34
+ this.availability = availability;
35
+ this.rating = rating;
36
+ this.value = value;
37
+ this.is_active = true;
38
+ }
39
+ }
@@ -1,25 +1,25 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- @Entity({ name: "csrm_business_impact_rating_master" })
5
- export class CSRMBusinessImpactRatingMaster 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_business_impact_rating_master" })
5
+ export class CSRMBusinessImpactRatingMaster 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,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 || "";
@@ -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;