@platform-modules/civil-aviation-authority 2.3.267 → 2.3.269

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 (34) hide show
  1. package/.env +10 -10
  2. package/dist/models/MultiPurposeHallRequestModel.d.ts +2 -0
  3. package/dist/models/MultiPurposeHallRequestModel.js +4 -0
  4. package/dist/models/VipHallRequestModel.d.ts +2 -0
  5. package/dist/models/VipHallRequestModel.js +4 -0
  6. package/package.json +1 -1
  7. package/src/models/AccommodationApprovalModel.ts +8 -8
  8. package/src/models/AccommodationRequestModel.ts +8 -8
  9. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  10. package/src/models/CAAServices.ts +33 -33
  11. package/src/models/CAASubServices.ts +33 -33
  12. package/src/models/CAIRatingMasterModel.ts +39 -39
  13. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  14. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  15. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  16. package/src/models/HrServiceRequestModel.ts +193 -193
  17. package/src/models/MultiPurposeHallRequestModel.ts +4 -0
  18. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  19. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  20. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  21. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  22. package/src/models/PromotionRequestModel.ts +11 -11
  23. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  24. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  25. package/src/models/UserSkillModel.ts +56 -56
  26. package/src/models/VipHallRequestModel.ts +4 -0
  27. package/dist/models/ITApprovalSettings.d.ts +0 -7
  28. package/dist/models/ITApprovalSettings.js +0 -40
  29. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  30. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  31. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  32. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  33. package/dist/models/Workflows.d.ts +0 -9
  34. package/dist/models/Workflows.js +0 -31
package/.env CHANGED
@@ -1,12 +1,12 @@
1
- # DB_HOST=164.52.222.169
2
- # DB_PORT=5432
3
- # DB_USER=postgres_admin_user
4
- # DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
5
- # DB_NAME=CAA
1
+ DB_HOST=164.52.222.169
2
+ DB_PORT=5432
3
+ DB_USER=postgres_admin_user
4
+ DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
5
+ DB_NAME=CAA
6
6
 
7
7
 
8
- DB_HOST=localhost
9
- DB_PORT=5432
10
- DB_USER=postgres
11
- DB_PASS=stevejobs
12
- DB_NAME=CAA
8
+ # DB_HOST=localhost
9
+ # DB_PORT=5432
10
+ # DB_USER=postgres
11
+ # DB_PASS=stevejobs
12
+ # DB_NAME=CAA
@@ -30,6 +30,8 @@ export declare class MultiPurposeHallRequests extends BaseModel {
30
30
  event_type: MultiPurposeHallInternalExternal;
31
31
  request_type: MultiPurposeHallInternalExternal;
32
32
  event_date: string;
33
+ /** Last calendar day of the booking when duration spans multiple days; defaults to event_date when omitted. */
34
+ event_end_date: string | null;
33
35
  event_start_time: string;
34
36
  event_end_time: string;
35
37
  meal_required: boolean;
@@ -89,6 +89,10 @@ __decorate([
89
89
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
90
90
  __metadata("design:type", String)
91
91
  ], MultiPurposeHallRequests.prototype, "event_date", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
94
+ __metadata("design:type", Object)
95
+ ], MultiPurposeHallRequests.prototype, "event_end_date", void 0);
92
96
  __decorate([
93
97
  (0, typeorm_1.Column)({ type: "time", nullable: false }),
94
98
  __metadata("design:type", String)
@@ -27,6 +27,8 @@ export declare class VipHallRequests extends BaseModel {
27
27
  event_type: VipHallInternalExternal;
28
28
  request_type: VipHallInternalExternal;
29
29
  event_date: string;
30
+ /** Last calendar day of the booking when duration spans multiple days; defaults to event_date when omitted. */
31
+ event_end_date: string | null;
30
32
  event_start_time: string;
31
33
  event_end_time: string;
32
34
  /** Purpose of the meeting (mandatory in API validation). */
@@ -88,6 +88,10 @@ __decorate([
88
88
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
89
89
  __metadata("design:type", String)
90
90
  ], VipHallRequests.prototype, "event_date", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
93
+ __metadata("design:type", Object)
94
+ ], VipHallRequests.prototype, "event_end_date", void 0);
91
95
  __decorate([
92
96
  (0, typeorm_1.Column)({ type: "time", nullable: false }),
93
97
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.267",
3
+ "version": "2.3.269",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
35
35
  @Column({ type: 'int', nullable: true })
36
36
  department_id: number;
37
37
 
38
- @Column({ type: 'int', nullable: true })
39
- section_id: number;
40
-
41
- @Column({ type: 'boolean', nullable: false, default: true })
42
- is_allowed: boolean;
43
-
44
- @Column({ type: 'int', nullable: false })
45
- level: number;
38
+ @Column({ type: 'int', nullable: true })
39
+ section_id: number;
40
+
41
+ @Column({ type: 'boolean', nullable: false, default: true })
42
+ is_allowed: boolean;
43
+
44
+ @Column({ type: 'int', nullable: false })
45
+ level: number;
46
46
 
47
47
  @Column({
48
48
  type: 'enum',
@@ -134,14 +134,14 @@ export class AccommodationRequest extends BaseModel {
134
134
  @Column({ type: 'int', nullable: true })
135
135
  assigned_to_user_id: number | null;
136
136
 
137
- @Column({ type: 'text', nullable: true })
138
- approver_comment: string | null;
139
-
140
- @Column({ type: 'varchar', length: 255, nullable: true })
141
- accommodation_allocated: string | null;
142
-
143
- @Column({ type: 'int', nullable: true })
144
- approved_by: number | null;
137
+ @Column({ type: 'text', nullable: true })
138
+ approver_comment: string | null;
139
+
140
+ @Column({ type: 'varchar', length: 255, nullable: true })
141
+ accommodation_allocated: string | null;
142
+
143
+ @Column({ type: 'int', nullable: true })
144
+ approved_by: number | null;
145
145
 
146
146
  @Column({ type: 'date', nullable: true })
147
147
  approved_at: Date | null;
@@ -75,29 +75,29 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
75
75
  @Column({ type: "text", nullable: false })
76
76
  decision_subject: string;
77
77
 
78
- @Column({ type: "text", nullable: false })
79
- grievance_details: string;
80
-
81
- @Column({ type: "jsonb", nullable: true })
82
- individuals_involved: string[] | null;
83
-
84
- @Column({ type: "jsonb", nullable: true })
85
- times: string[] | null;
86
-
87
- @Column({ type: "date", nullable: true })
88
- dates: Date | null;
89
-
90
- @Column({ type: "text", nullable: true })
91
- location: string | null;
92
-
93
- @Column({ type: "jsonb", nullable: true })
94
- requests: string[] | null;
95
-
96
- @Column({ type: "jsonb", nullable: true })
97
- events: string[] | null;
98
-
99
- @Column({ type: "varchar", length: 500, nullable: false })
100
- grievant_name: string;
78
+ @Column({ type: "text", nullable: false })
79
+ grievance_details: string;
80
+
81
+ @Column({ type: "jsonb", nullable: true })
82
+ individuals_involved: string[] | null;
83
+
84
+ @Column({ type: "jsonb", nullable: true })
85
+ times: string[] | null;
86
+
87
+ @Column({ type: "date", nullable: true })
88
+ dates: Date | null;
89
+
90
+ @Column({ type: "text", nullable: true })
91
+ location: string | null;
92
+
93
+ @Column({ type: "jsonb", nullable: true })
94
+ requests: string[] | null;
95
+
96
+ @Column({ type: "jsonb", nullable: true })
97
+ events: string[] | null;
98
+
99
+ @Column({ type: "varchar", length: 500, nullable: false })
100
+ grievant_name: string;
101
101
 
102
102
  @Column({ type: "varchar", length: 100, nullable: false })
103
103
  grievant_employee_number: string;
@@ -8,36 +8,36 @@ export class CAAServices extends BaseModel {
8
8
  @Column({ type: 'varchar', length: 64, nullable: false, unique: true })
9
9
  code: string;
10
10
 
11
- @Column({ nullable: false })
12
- name: string;
13
-
14
- @Column({ type: "text", nullable: true })
15
- arabic_name: string | null;
16
-
17
- @Column({ nullable: false })
18
- description: string;
19
-
20
- @Column({ type: "text", nullable: true })
21
- arabic_description: string | null;
22
-
23
- @Column({ nullable: true })
24
- logo_url: string;
25
-
26
-
27
- constructor(
28
- name: string,
29
- description: string,
30
- arabic_name?: string | null,
31
- arabic_description?: string | null,
32
- code?: string,
33
- logo_url?: string
34
- ) {
35
- super();
36
- this.name = name;
37
- this.description = description;
38
- this.arabic_name = arabic_name || null;
39
- this.arabic_description = arabic_description || null;
40
- this.code = code || '';
41
- this.logo_url = logo_url || '';
42
- }
43
- }
11
+ @Column({ nullable: false })
12
+ name: string;
13
+
14
+ @Column({ type: "text", nullable: true })
15
+ arabic_name: string | null;
16
+
17
+ @Column({ nullable: false })
18
+ description: string;
19
+
20
+ @Column({ type: "text", nullable: true })
21
+ arabic_description: string | null;
22
+
23
+ @Column({ nullable: true })
24
+ logo_url: string;
25
+
26
+
27
+ constructor(
28
+ name: string,
29
+ description: string,
30
+ arabic_name?: string | null,
31
+ arabic_description?: string | null,
32
+ code?: string,
33
+ logo_url?: string
34
+ ) {
35
+ super();
36
+ this.name = name;
37
+ this.description = description;
38
+ this.arabic_name = arabic_name || null;
39
+ this.arabic_description = arabic_description || null;
40
+ this.code = code || '';
41
+ this.logo_url = logo_url || '';
42
+ }
43
+ }
@@ -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 || "";