@platform-modules/civil-aviation-authority 2.3.172 → 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 (41) 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 +3 -3
  10. package/dist/models/user.js +4 -4
  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/HrServiceRequestModel.ts +193 -193
  26. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  27. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  28. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  29. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  30. package/src/models/PromotionRequestModel.ts +11 -11
  31. package/src/models/ScholarshipAttendeeModel.ts +14 -0
  32. package/src/models/ScholarshipRequestModel.ts +28 -0
  33. package/src/models/UserSkillModel.ts +56 -56
  34. package/src/models/user.ts +5 -5
  35. package/dist/models/ITApprovalSettings.d.ts +0 -7
  36. package/dist/models/ITApprovalSettings.js +0 -40
  37. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  38. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  39. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  40. package/dist/models/Workflows.d.ts +0 -9
  41. package/dist/models/Workflows.js +0 -31
@@ -45,12 +45,12 @@ export class PromotionRequest 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
  // Promotion Decision specific fields
55
55
  @Column({ type: "varchar", length: 255, nullable: false })
56
56
  employee_name: string;
@@ -108,11 +108,11 @@ export class PromotionRequest extends BaseModel {
108
108
  this.req_user_position_id = req_user_position_id || null;
109
109
  this.description = description || null;
110
110
  this.reviewer_user_id = reviewer_user_id || null;
111
- this.assigned_to_user_id = assigned_to_user_id || null;
112
- this.assigned_at = assigned_at || null;
113
- this.workflow_execution_id = workflow_execution_id || null;
114
- this.reference_number = null;
115
- this.employee_name = employee_name || "";
111
+ this.assigned_to_user_id = assigned_to_user_id || null;
112
+ this.assigned_at = assigned_at || null;
113
+ this.workflow_execution_id = workflow_execution_id || null;
114
+ this.reference_number = null;
115
+ this.employee_name = employee_name || "";
116
116
  this.employee_id = employee_id || "";
117
117
  this.current_job_title = current_job_title || "";
118
118
  this.proposed_job_title = proposed_job_title || "";
@@ -0,0 +1,14 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "scholarship_attendees" })
5
+ export class ScholarshipAttendee extends BaseModel {
6
+ @Column({ type: "integer", nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: "integer", nullable: false })
10
+ attendee_id: number;
11
+
12
+ @Column({ type: "varchar", length: 320, nullable: false })
13
+ attendee_email: string;
14
+ }
@@ -44,6 +44,10 @@ export class ScholarshipRequests extends BaseModel {
44
44
  @Column({ type: "enum", enum: ScholarshipType, nullable: false })
45
45
  type: ScholarshipType;
46
46
 
47
+ /** Planned-flow only: whether amount exceeds threshold; Unplanned rows store null. */
48
+ @Column({ type: "varchar", length: 10, nullable: true })
49
+ is_amount_more_than_tenthousand: "Yes" | "No" | null;
50
+
47
51
  @Column({ type: "text", nullable: true })
48
52
  reason: string | null;
49
53
 
@@ -61,4 +65,28 @@ export class ScholarshipRequests extends BaseModel {
61
65
 
62
66
  @Column({ type: "varchar", length: 500, nullable: true })
63
67
  place: string | null;
68
+
69
+ @Column({ type: "boolean", default: false, nullable: false })
70
+ is_confirm: boolean;
71
+
72
+ @Column({ type: "varchar", length: 500, nullable: true })
73
+ training_entity: string | null;
74
+
75
+ @Column({ type: "varchar", length: 10, nullable: true })
76
+ media_coverage: "Yes" | "No" | null;
77
+
78
+ @Column({ type: "date", nullable: true })
79
+ training_start_date: string | null;
80
+
81
+ @Column({ type: "date", nullable: true })
82
+ training_end_date: string | null;
83
+
84
+ @Column({ type: "date", nullable: true })
85
+ travel_date: string | null;
86
+
87
+ @Column({ type: "date", nullable: true })
88
+ return_date: string | null;
89
+
90
+ @Column({ type: "text", nullable: true })
91
+ comment: string | null;
64
92
  }
@@ -1,56 +1,56 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { SkillCategory } from "./SkillsEnhancementRequestModel";
4
-
5
- @Entity({ name: "user_skills" })
6
- export class UserSkill extends BaseModel {
7
- @Column({ type: "integer", nullable: false })
8
- user_id: number;
9
-
10
- @Column({ type: "varchar", length: 255, nullable: false })
11
- skill_name: string;
12
-
13
- @Column({ type: "enum", enum: SkillCategory, nullable: true })
14
- skill_category: SkillCategory | null;
15
-
16
- @Column({ type: "varchar", length: 255, nullable: true })
17
- issuing_authority: string | null;
18
-
19
- @Column({ type: "date", nullable: true })
20
- completion_date: Date | null;
21
-
22
- @Column({ type: "text", nullable: true })
23
- skill_summary: string | null;
24
-
25
- @Column({ type: "integer", nullable: true })
26
- source_request_id: number | null;
27
-
28
- @Column({ type: "varchar", length: 50, nullable: true })
29
- source_request_type: string | null;
30
-
31
- @Column({ type: "boolean", nullable: false, default: true })
32
- is_active: boolean;
33
-
34
- constructor(
35
- user_id: number,
36
- skill_name: string,
37
- skill_category?: SkillCategory | null,
38
- issuing_authority?: string | null,
39
- completion_date?: Date | null,
40
- skill_summary?: string | null,
41
- source_request_id?: number | null,
42
- source_request_type?: string | null,
43
- is_active?: boolean
44
- ) {
45
- super();
46
- this.user_id = user_id;
47
- this.skill_name = skill_name;
48
- this.skill_category = skill_category || null;
49
- this.issuing_authority = issuing_authority || null;
50
- this.completion_date = completion_date || null;
51
- this.skill_summary = skill_summary || null;
52
- this.source_request_id = source_request_id || null;
53
- this.source_request_type = source_request_type || null;
54
- this.is_active = is_active !== undefined ? is_active : true;
55
- }
56
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { SkillCategory } from "./SkillsEnhancementRequestModel";
4
+
5
+ @Entity({ name: "user_skills" })
6
+ export class UserSkill extends BaseModel {
7
+ @Column({ type: "integer", nullable: false })
8
+ user_id: number;
9
+
10
+ @Column({ type: "varchar", length: 255, nullable: false })
11
+ skill_name: string;
12
+
13
+ @Column({ type: "enum", enum: SkillCategory, nullable: true })
14
+ skill_category: SkillCategory | null;
15
+
16
+ @Column({ type: "varchar", length: 255, nullable: true })
17
+ issuing_authority: string | null;
18
+
19
+ @Column({ type: "date", nullable: true })
20
+ completion_date: Date | null;
21
+
22
+ @Column({ type: "text", nullable: true })
23
+ skill_summary: string | null;
24
+
25
+ @Column({ type: "integer", nullable: true })
26
+ source_request_id: number | null;
27
+
28
+ @Column({ type: "varchar", length: 50, nullable: true })
29
+ source_request_type: string | null;
30
+
31
+ @Column({ type: "boolean", nullable: false, default: true })
32
+ is_active: boolean;
33
+
34
+ constructor(
35
+ user_id: number,
36
+ skill_name: string,
37
+ skill_category?: SkillCategory | null,
38
+ issuing_authority?: string | null,
39
+ completion_date?: Date | null,
40
+ skill_summary?: string | null,
41
+ source_request_id?: number | null,
42
+ source_request_type?: string | null,
43
+ is_active?: boolean
44
+ ) {
45
+ super();
46
+ this.user_id = user_id;
47
+ this.skill_name = skill_name;
48
+ this.skill_category = skill_category || null;
49
+ this.issuing_authority = issuing_authority || null;
50
+ this.completion_date = completion_date || null;
51
+ this.skill_summary = skill_summary || null;
52
+ this.source_request_id = source_request_id || null;
53
+ this.source_request_type = source_request_type || null;
54
+ this.is_active = is_active !== undefined ? is_active : true;
55
+ }
56
+ }
@@ -52,8 +52,8 @@ export class User extends BaseModel {
52
52
  @Column({ nullable: true })
53
53
  blood_type?: string;
54
54
 
55
- @Column({ nullable: true })
56
- national_id?: string;
55
+ @Column({ type: 'bigint', nullable: true })
56
+ national_id?: number;
57
57
 
58
58
  @Column({ type: 'bigint', nullable: true })
59
59
  manpower_id?: number;
@@ -67,8 +67,8 @@ export class User extends BaseModel {
67
67
  @Column({ nullable: true })
68
68
  department?: number;
69
69
 
70
- @Column({ nullable: true })
71
- category: string; // Mandatory
70
+ @Column({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" })
71
+ category: "CAA" | "Embassy"; // Mandatory
72
72
 
73
73
  @Column({ nullable: true })
74
74
  directorate?: string;
@@ -156,7 +156,7 @@ export class User extends BaseModel {
156
156
  nationality?: string,
157
157
  email?: string,
158
158
  blood_type?: string,
159
- national_id?: string,
159
+ national_id?: number,
160
160
  manpower_id?: number,
161
161
  mobile?: string,
162
162
  office_number?: string,
@@ -1,7 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITApprovalSettings extends BaseModel {
3
- level: number;
4
- approval_role_id: number;
5
- workflow_id: number;
6
- constructor(level: number, approval_role_id: number, workflow_id: number);
7
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ITApprovalSettings = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
16
- constructor(level, approval_role_id, workflow_id) {
17
- super();
18
- this.level = level;
19
- this.approval_role_id = approval_role_id;
20
- this.workflow_id = workflow_id;
21
- }
22
- };
23
- exports.ITApprovalSettings = ITApprovalSettings;
24
- __decorate([
25
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
26
- __metadata("design:type", Number)
27
- ], ITApprovalSettings.prototype, "level", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
30
- __metadata("design:type", Number)
31
- ], ITApprovalSettings.prototype, "approval_role_id", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
34
- __metadata("design:type", Number)
35
- ], ITApprovalSettings.prototype, "workflow_id", void 0);
36
- exports.ITApprovalSettings = ITApprovalSettings = __decorate([
37
- (0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
38
- (0, typeorm_1.Unique)(['workflow_id', 'level']),
39
- __metadata("design:paramtypes", [Number, Number, Number])
40
- ], ITApprovalSettings);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesMuscat extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesSalalah extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ITServicesTypesSalalah = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
16
- constructor(name, name_in_arabic) {
17
- super();
18
- this.name = name;
19
- this.name_in_arabic = name_in_arabic;
20
- }
21
- };
22
- exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
23
- __decorate([
24
- (0, typeorm_1.Column)({ nullable: false }),
25
- __metadata("design:type", String)
26
- ], ITServicesTypesSalalah.prototype, "name", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ nullable: false }),
29
- __metadata("design:type", String)
30
- ], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
31
- exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
33
- __metadata("design:paramtypes", [String, String])
34
- ], ITServicesTypesSalalah);
@@ -1,9 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class Workflows extends BaseModel {
3
- name: string;
4
- service_id: number;
5
- sub_service_id: number;
6
- request_for: string;
7
- levels: number;
8
- constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
9
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- // import { Column, Entity, Unique } from "typeorm";
3
- // import { BaseModel } from './BaseModel';
4
- // @Entity({ name: 'workflows' })
5
- // @Unique(['service_id', 'sub_service_id', 'request_for'])
6
- // export class Workflows extends BaseModel {
7
- // @Column({ type: 'varchar', length: 100, nullable: false })
8
- // name: string;
9
- // @Column({ type: 'bigint', nullable: false })
10
- // service_id: number;
11
- // @Column({ type: 'bigint', nullable: false })
12
- // sub_service_id: number;
13
- // @Column({ type: 'varchar', length: 20, nullable: false })
14
- // request_for: string; // 'Self' | 'Behalf of' | 'Internal'
15
- // @Column({ type: 'int', nullable: false })
16
- // levels: number;
17
- // constructor(
18
- // name: string,
19
- // service_id: number,
20
- // sub_service_id: number,
21
- // request_for: string,
22
- // levels: number,
23
- // ) {
24
- // super();
25
- // this.name = name;
26
- // this.service_id = service_id;
27
- // this.sub_service_id = sub_service_id;
28
- // this.request_for = request_for;
29
- // this.levels = levels;
30
- // }
31
- // }