@platform-modules/civil-aviation-authority 2.3.75 → 2.3.76

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.
@@ -27,6 +27,6 @@ export declare class JobTransferRequest extends BaseModel {
27
27
  current_job_position: string;
28
28
  position_to_be_transferred: string;
29
29
  effective_from_date: Date;
30
- decision_number: number | null;
30
+ decision_number: string | null;
31
31
  constructor(user_id: number, status?: JobTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, reason_for_request?: string, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, position_to_be_transferred?: string, effective_from_date?: Date);
32
32
  }
@@ -123,7 +123,7 @@ __decorate([
123
123
  __metadata("design:type", Date)
124
124
  ], JobTransferRequest.prototype, "effective_from_date", void 0);
125
125
  __decorate([
126
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
126
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
127
127
  __metadata("design:type", Object)
128
128
  ], JobTransferRequest.prototype, "decision_number", void 0);
129
129
  exports.JobTransferRequest = JobTransferRequest = __decorate([
@@ -0,0 +1,43 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum SkillsEnhancementRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ COMPLETED = "Completed",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected",
9
+ INFORMATION_REQUESTED = "Information Requested"
10
+ }
11
+ export declare enum SkillCategory {
12
+ TECHNICAL = "Technical",
13
+ COMPLIANCE = "Compliance",
14
+ MANAGEMENT = "Management",
15
+ SAFETY = "Safety",
16
+ SOFT_SKILLS = "Soft Skills",
17
+ OTHER = "Other"
18
+ }
19
+ export declare class SkillsEnhancementRequest extends BaseModel {
20
+ req_user_department_id: number | null;
21
+ req_user_section_id: number | null;
22
+ req_user_position_id: number | null;
23
+ user_id: number;
24
+ service_id: number | null;
25
+ sub_service_id: number | null;
26
+ status: SkillsEnhancementRequestStatus;
27
+ reviewer_user_id: number | null;
28
+ assigned_to_user_id: number | null;
29
+ assigned_at: Date | null;
30
+ workflow_execution_id: string | null;
31
+ description: string | null;
32
+ employee_name: string;
33
+ employee_id: string;
34
+ certification_title: string;
35
+ skill_category: SkillCategory;
36
+ issuing_authority: string;
37
+ completion_date: Date;
38
+ validity_start_date: Date | null;
39
+ validity_end_date: Date | null;
40
+ skill_summary: string | null;
41
+ additional_info_requested: string | null;
42
+ constructor(user_id: number, status?: SkillsEnhancementRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, certification_title?: string, skill_category?: SkillCategory, issuing_authority?: string, completion_date?: Date, validity_start_date?: Date | null, validity_end_date?: Date | null, skill_summary?: string | null, additional_info_requested?: string | null);
43
+ }
@@ -0,0 +1,153 @@
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.SkillsEnhancementRequest = exports.SkillCategory = exports.SkillsEnhancementRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var SkillsEnhancementRequestStatus;
16
+ (function (SkillsEnhancementRequestStatus) {
17
+ SkillsEnhancementRequestStatus["PENDING"] = "Pending";
18
+ SkillsEnhancementRequestStatus["ASSIGNED"] = "Assigned";
19
+ SkillsEnhancementRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ SkillsEnhancementRequestStatus["COMPLETED"] = "Completed";
21
+ SkillsEnhancementRequestStatus["APPROVED"] = "Approved";
22
+ SkillsEnhancementRequestStatus["REJECTED"] = "Rejected";
23
+ SkillsEnhancementRequestStatus["INFORMATION_REQUESTED"] = "Information Requested";
24
+ })(SkillsEnhancementRequestStatus || (exports.SkillsEnhancementRequestStatus = SkillsEnhancementRequestStatus = {}));
25
+ var SkillCategory;
26
+ (function (SkillCategory) {
27
+ SkillCategory["TECHNICAL"] = "Technical";
28
+ SkillCategory["COMPLIANCE"] = "Compliance";
29
+ SkillCategory["MANAGEMENT"] = "Management";
30
+ SkillCategory["SAFETY"] = "Safety";
31
+ SkillCategory["SOFT_SKILLS"] = "Soft Skills";
32
+ SkillCategory["OTHER"] = "Other";
33
+ })(SkillCategory || (exports.SkillCategory = SkillCategory = {}));
34
+ let SkillsEnhancementRequest = class SkillsEnhancementRequest extends BaseModel_1.BaseModel {
35
+ constructor(user_id, status = SkillsEnhancementRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, certification_title, skill_category, issuing_authority, completion_date, validity_start_date, validity_end_date, skill_summary, additional_info_requested) {
36
+ super();
37
+ this.user_id = user_id;
38
+ this.status = status;
39
+ this.service_id = service_id || null;
40
+ this.sub_service_id = sub_service_id || null;
41
+ this.req_user_department_id = req_user_department_id || null;
42
+ this.req_user_section_id = req_user_section_id || null;
43
+ this.req_user_position_id = req_user_position_id || null;
44
+ this.description = description || null;
45
+ this.reviewer_user_id = reviewer_user_id || null;
46
+ this.assigned_to_user_id = assigned_to_user_id || null;
47
+ this.assigned_at = assigned_at || null;
48
+ this.workflow_execution_id = workflow_execution_id || null;
49
+ this.employee_name = employee_name || "";
50
+ this.employee_id = employee_id || "";
51
+ this.certification_title = certification_title || "";
52
+ this.skill_category = skill_category || SkillCategory.TECHNICAL;
53
+ this.issuing_authority = issuing_authority || "";
54
+ this.completion_date = completion_date || new Date();
55
+ this.validity_start_date = validity_start_date || null;
56
+ this.validity_end_date = validity_end_date || null;
57
+ this.skill_summary = skill_summary || null;
58
+ this.additional_info_requested = additional_info_requested || null;
59
+ }
60
+ };
61
+ exports.SkillsEnhancementRequest = SkillsEnhancementRequest;
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], SkillsEnhancementRequest.prototype, "req_user_department_id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], SkillsEnhancementRequest.prototype, "req_user_section_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], SkillsEnhancementRequest.prototype, "req_user_position_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
76
+ __metadata("design:type", Number)
77
+ ], SkillsEnhancementRequest.prototype, "user_id", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
80
+ __metadata("design:type", Object)
81
+ ], SkillsEnhancementRequest.prototype, "service_id", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], SkillsEnhancementRequest.prototype, "sub_service_id", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: "enum", enum: SkillsEnhancementRequestStatus, default: SkillsEnhancementRequestStatus.PENDING, nullable: false }),
88
+ __metadata("design:type", String)
89
+ ], SkillsEnhancementRequest.prototype, "status", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], SkillsEnhancementRequest.prototype, "reviewer_user_id", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
96
+ __metadata("design:type", Object)
97
+ ], SkillsEnhancementRequest.prototype, "assigned_to_user_id", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
100
+ __metadata("design:type", Object)
101
+ ], SkillsEnhancementRequest.prototype, "assigned_at", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
104
+ __metadata("design:type", Object)
105
+ ], SkillsEnhancementRequest.prototype, "workflow_execution_id", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
108
+ __metadata("design:type", Object)
109
+ ], SkillsEnhancementRequest.prototype, "description", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
112
+ __metadata("design:type", String)
113
+ ], SkillsEnhancementRequest.prototype, "employee_name", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
116
+ __metadata("design:type", String)
117
+ ], SkillsEnhancementRequest.prototype, "employee_id", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
120
+ __metadata("design:type", String)
121
+ ], SkillsEnhancementRequest.prototype, "certification_title", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.Column)({ type: "enum", enum: SkillCategory, nullable: false }),
124
+ __metadata("design:type", String)
125
+ ], SkillsEnhancementRequest.prototype, "skill_category", void 0);
126
+ __decorate([
127
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
128
+ __metadata("design:type", String)
129
+ ], SkillsEnhancementRequest.prototype, "issuing_authority", void 0);
130
+ __decorate([
131
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
132
+ __metadata("design:type", Date)
133
+ ], SkillsEnhancementRequest.prototype, "completion_date", void 0);
134
+ __decorate([
135
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
136
+ __metadata("design:type", Object)
137
+ ], SkillsEnhancementRequest.prototype, "validity_start_date", void 0);
138
+ __decorate([
139
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
140
+ __metadata("design:type", Object)
141
+ ], SkillsEnhancementRequest.prototype, "validity_end_date", void 0);
142
+ __decorate([
143
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
144
+ __metadata("design:type", Object)
145
+ ], SkillsEnhancementRequest.prototype, "skill_summary", void 0);
146
+ __decorate([
147
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
148
+ __metadata("design:type", Object)
149
+ ], SkillsEnhancementRequest.prototype, "additional_info_requested", void 0);
150
+ exports.SkillsEnhancementRequest = SkillsEnhancementRequest = __decorate([
151
+ (0, typeorm_1.Entity)({ name: "skills_enhancement_requests" }),
152
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date, Object, Object, Object, Object])
153
+ ], SkillsEnhancementRequest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.75",
3
+ "version": "2.3.76",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -70,8 +70,8 @@ export class JobTransferRequest extends BaseModel {
70
70
  @Column({ type: "date", nullable: false })
71
71
  effective_from_date: Date;
72
72
 
73
- @Column({ type: "integer", nullable: true })
74
- decision_number : number | null;
73
+ @Column({ type: "varchar", nullable: true })
74
+ decision_number : string | null;
75
75
 
76
76
 
77
77
  constructor(
@@ -0,0 +1,140 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum SkillsEnhancementRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected",
11
+ INFORMATION_REQUESTED = "Information Requested"
12
+ }
13
+
14
+ export enum SkillCategory {
15
+ TECHNICAL = "Technical",
16
+ COMPLIANCE = "Compliance",
17
+ MANAGEMENT = "Management",
18
+ SAFETY = "Safety",
19
+ SOFT_SKILLS = "Soft Skills",
20
+ OTHER = "Other"
21
+ }
22
+
23
+ @Entity({ name: "skills_enhancement_requests" })
24
+ export class SkillsEnhancementRequest extends BaseModel {
25
+ @Column({ type: "integer", nullable: true })
26
+ req_user_department_id: number | null;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ req_user_section_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ req_user_position_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: false })
35
+ user_id: number;
36
+
37
+ @Column({ type: "integer", nullable: true })
38
+ service_id: number | null;
39
+
40
+ @Column({ type: "integer", nullable: true })
41
+ sub_service_id: number | null;
42
+
43
+ @Column({ type: "enum", enum: SkillsEnhancementRequestStatus, default: SkillsEnhancementRequestStatus.PENDING, nullable: false })
44
+ status: SkillsEnhancementRequestStatus;
45
+
46
+ @Column({ type: "integer", nullable: true })
47
+ reviewer_user_id: number | null;
48
+
49
+ @Column({ type: "integer", nullable: true })
50
+ assigned_to_user_id: number | null;
51
+
52
+ @Column({ type: "timestamp", nullable: true })
53
+ assigned_at: Date | null;
54
+
55
+ @Column({ type: "varchar", length: 255, nullable: true })
56
+ workflow_execution_id: string | null;
57
+
58
+ @Column({ type: "text", nullable: true })
59
+ description: string | null;
60
+
61
+ // Skills Enhancement specific fields
62
+ @Column({ type: "varchar", length: 255, nullable: false })
63
+ employee_name: string;
64
+
65
+ @Column({ type: "varchar", length: 100, nullable: false })
66
+ employee_id: string;
67
+
68
+ @Column({ type: "varchar", length: 255, nullable: false })
69
+ certification_title: string;
70
+
71
+ @Column({ type: "enum", enum: SkillCategory, nullable: false })
72
+ skill_category: SkillCategory;
73
+
74
+ @Column({ type: "varchar", length: 255, nullable: false })
75
+ issuing_authority: string;
76
+
77
+ @Column({ type: "date", nullable: false })
78
+ completion_date: Date;
79
+
80
+ @Column({ type: "date", nullable: true })
81
+ validity_start_date: Date | null;
82
+
83
+ @Column({ type: "date", nullable: true })
84
+ validity_end_date: Date | null;
85
+
86
+ @Column({ type: "text", nullable: true })
87
+ skill_summary: string | null;
88
+
89
+ @Column({ type: "text", nullable: true })
90
+ additional_info_requested: string | null;
91
+
92
+ constructor(
93
+ user_id: number,
94
+ status: SkillsEnhancementRequestStatus = SkillsEnhancementRequestStatus.PENDING,
95
+ service_id?: number | null,
96
+ sub_service_id?: number | null,
97
+ req_user_department_id?: number | null,
98
+ req_user_section_id?: number | null,
99
+ req_user_position_id?: number | null,
100
+ description?: string | null,
101
+ reviewer_user_id?: number | null,
102
+ assigned_to_user_id?: number | null,
103
+ assigned_at?: Date | null,
104
+ workflow_execution_id?: string | null,
105
+ employee_name?: string,
106
+ employee_id?: string,
107
+ certification_title?: string,
108
+ skill_category?: SkillCategory,
109
+ issuing_authority?: string,
110
+ completion_date?: Date,
111
+ validity_start_date?: Date | null,
112
+ validity_end_date?: Date | null,
113
+ skill_summary?: string | null,
114
+ additional_info_requested?: string | null
115
+ ) {
116
+ super();
117
+ this.user_id = user_id;
118
+ this.status = status;
119
+ this.service_id = service_id || null;
120
+ this.sub_service_id = sub_service_id || null;
121
+ this.req_user_department_id = req_user_department_id || null;
122
+ this.req_user_section_id = req_user_section_id || null;
123
+ this.req_user_position_id = req_user_position_id || null;
124
+ this.description = description || null;
125
+ this.reviewer_user_id = reviewer_user_id || null;
126
+ this.assigned_to_user_id = assigned_to_user_id || null;
127
+ this.assigned_at = assigned_at || null;
128
+ this.workflow_execution_id = workflow_execution_id || null;
129
+ this.employee_name = employee_name || "";
130
+ this.employee_id = employee_id || "";
131
+ this.certification_title = certification_title || "";
132
+ this.skill_category = skill_category || SkillCategory.TECHNICAL;
133
+ this.issuing_authority = issuing_authority || "";
134
+ this.completion_date = completion_date || new Date();
135
+ this.validity_start_date = validity_start_date || null;
136
+ this.validity_end_date = validity_end_date || null;
137
+ this.skill_summary = skill_summary || null;
138
+ this.additional_info_requested = additional_info_requested || null;
139
+ }
140
+ }