@platform-modules/civil-aviation-authority 2.3.60 → 2.3.61
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 +7 -12
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/models/JobTransferRequestModel.d.ts +1 -0
- package/dist/models/JobTransferRequestModel.js +4 -0
- package/dist/models/LogisticsModel.d.ts +3 -1
- package/dist/models/LogisticsModel.js +2 -0
- package/dist/models/PromotionRequestModel.d.ts +32 -0
- package/dist/models/PromotionRequestModel.js +133 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +5 -1
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/JobTransferRequestModel.ts +4 -0
- package/src/models/LogisticsModel.ts +3 -1
- package/src/models/PromotionRequestModel.ts +120 -0
package/.env
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
# DB_HOST=localhost
|
|
2
|
-
# DB_PORT=5433
|
|
3
|
-
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=123
|
|
5
|
-
# DB_NAME=CAA
|
|
6
|
-
|
|
7
1
|
# DB_HOST=164.52.222.169
|
|
8
|
-
# DB_PORT=5432
|
|
2
|
+
# DB_PORT=5432
|
|
9
3
|
# DB_USER=postgres_admin_user
|
|
10
4
|
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
5
|
# DB_NAME=CAA
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=stevejobs
|
|
12
|
+
DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -125,6 +125,7 @@ const RequestForCoverageApprovalModel_1 = require("./models/RequestForCoverageAp
|
|
|
125
125
|
const RequestForCoverageChatModel_1 = require("./models/RequestForCoverageChatModel");
|
|
126
126
|
const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverageAttachmentModel");
|
|
127
127
|
const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
128
|
+
const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
128
129
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
129
130
|
type: 'postgres',
|
|
130
131
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -253,6 +254,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
253
254
|
AssignTasksEmpWorkflowModel_1.AssignTasksEmpWorkFlow,
|
|
254
255
|
AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
|
|
255
256
|
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat,
|
|
256
|
-
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest
|
|
257
|
+
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
|
|
258
|
+
PromotionRequestModel_1.PromotionRequest
|
|
257
259
|
],
|
|
258
260
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -197,3 +197,5 @@ export { NotificationFrequency } from './models/TrainingRoomNotificationConfigMo
|
|
|
197
197
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
198
198
|
export * from './models/CashAllowanceLeaveRequestModel';
|
|
199
199
|
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel';
|
|
200
|
+
export * from './models/PromotionRequestModel';
|
|
201
|
+
export { PromotionRequestStatus } from './models/PromotionRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
18
|
+
exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -296,3 +296,7 @@ __exportStar(require("./models/MissionTravelPassportExpiryNotificationConfigMode
|
|
|
296
296
|
__exportStar(require("./models/CashAllowanceLeaveRequestModel"), exports);
|
|
297
297
|
var CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
298
298
|
Object.defineProperty(exports, "CashAllowanceLeaveRequestStatus", { enumerable: true, get: function () { return CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequestStatus; } });
|
|
299
|
+
// Promotion Request Service
|
|
300
|
+
__exportStar(require("./models/PromotionRequestModel"), exports);
|
|
301
|
+
var PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
302
|
+
Object.defineProperty(exports, "PromotionRequestStatus", { enumerable: true, get: function () { return PromotionRequestModel_1.PromotionRequestStatus; } });
|
|
@@ -27,5 +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
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);
|
|
31
32
|
}
|
|
@@ -122,6 +122,10 @@ __decorate([
|
|
|
122
122
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
123
123
|
__metadata("design:type", Date)
|
|
124
124
|
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], JobTransferRequest.prototype, "decision_number", void 0);
|
|
125
129
|
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
126
130
|
(0, typeorm_1.Entity)({ name: "job_transfer_requests" }),
|
|
127
131
|
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Object, String, String, String, Date])
|
|
@@ -27,7 +27,9 @@ export declare enum Purpose_of_Travel {
|
|
|
27
27
|
}
|
|
28
28
|
export declare enum Type_of_Vehicle {
|
|
29
29
|
LIGHT = "Light vehicle",
|
|
30
|
-
HEAVY = "Heavy vehicle"
|
|
30
|
+
HEAVY = "Heavy vehicle",
|
|
31
|
+
SEDAN = "Sedan",
|
|
32
|
+
SUV = "SUV"
|
|
31
33
|
}
|
|
32
34
|
export declare enum Type_of_Request {
|
|
33
35
|
NEW_REQUEST = "New Request",
|
|
@@ -47,6 +47,8 @@ var Type_of_Vehicle;
|
|
|
47
47
|
(function (Type_of_Vehicle) {
|
|
48
48
|
Type_of_Vehicle["LIGHT"] = "Light vehicle";
|
|
49
49
|
Type_of_Vehicle["HEAVY"] = "Heavy vehicle";
|
|
50
|
+
Type_of_Vehicle["SEDAN"] = "Sedan";
|
|
51
|
+
Type_of_Vehicle["SUV"] = "SUV";
|
|
50
52
|
})(Type_of_Vehicle || (exports.Type_of_Vehicle = Type_of_Vehicle = {}));
|
|
51
53
|
var Type_of_Request;
|
|
52
54
|
(function (Type_of_Request) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum PromotionRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare class PromotionRequest extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
req_user_position_id: number | null;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
user_id: number;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: PromotionRequestStatus;
|
|
19
|
+
reviewer_user_id: number | null;
|
|
20
|
+
assigned_to_user_id: number | null;
|
|
21
|
+
assigned_at: Date | null;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
employee_name: string;
|
|
24
|
+
employee_id: string;
|
|
25
|
+
current_job_title: string;
|
|
26
|
+
proposed_job_title: string;
|
|
27
|
+
current_salary_grade: string;
|
|
28
|
+
proposed_salary_grade: string;
|
|
29
|
+
current_basic_salary: number;
|
|
30
|
+
proposed_basic_salary: number;
|
|
31
|
+
constructor(user_id: number, status?: PromotionRequestStatus, 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, current_job_title?: string, proposed_job_title?: string, current_salary_grade?: string, proposed_salary_grade?: string, current_basic_salary?: number, proposed_basic_salary?: number);
|
|
32
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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.PromotionRequest = exports.PromotionRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var PromotionRequestStatus;
|
|
16
|
+
(function (PromotionRequestStatus) {
|
|
17
|
+
PromotionRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
PromotionRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
PromotionRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
PromotionRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
PromotionRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
PromotionRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(PromotionRequestStatus || (exports.PromotionRequestStatus = PromotionRequestStatus = {}));
|
|
24
|
+
let PromotionRequest = class PromotionRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(user_id, status = PromotionRequestStatus.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, current_job_title, proposed_job_title, current_salary_grade, proposed_salary_grade, current_basic_salary, proposed_basic_salary) {
|
|
26
|
+
super();
|
|
27
|
+
this.user_id = user_id;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.service_id = service_id || null;
|
|
30
|
+
this.sub_service_id = sub_service_id || null;
|
|
31
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
+
this.description = description || null;
|
|
35
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
+
this.assigned_at = assigned_at || null;
|
|
38
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
+
this.employee_name = employee_name || "";
|
|
40
|
+
this.employee_id = employee_id || "";
|
|
41
|
+
this.current_job_title = current_job_title || "";
|
|
42
|
+
this.proposed_job_title = proposed_job_title || "";
|
|
43
|
+
this.current_salary_grade = current_salary_grade || "";
|
|
44
|
+
this.proposed_salary_grade = proposed_salary_grade || "";
|
|
45
|
+
this.current_basic_salary = current_basic_salary || 0;
|
|
46
|
+
this.proposed_basic_salary = proposed_basic_salary || 0;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.PromotionRequest = PromotionRequest;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], PromotionRequest.prototype, "req_user_department_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], PromotionRequest.prototype, "req_user_section_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], PromotionRequest.prototype, "req_user_position_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], PromotionRequest.prototype, "service_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], PromotionRequest.prototype, "sub_service_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], PromotionRequest.prototype, "user_id", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], PromotionRequest.prototype, "description", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "enum", enum: PromotionRequestStatus, default: PromotionRequestStatus.PENDING, nullable: false }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PromotionRequest.prototype, "status", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], PromotionRequest.prototype, "reviewer_user_id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], PromotionRequest.prototype, "assigned_to_user_id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], PromotionRequest.prototype, "assigned_at", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], PromotionRequest.prototype, "workflow_execution_id", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], PromotionRequest.prototype, "employee_name", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], PromotionRequest.prototype, "employee_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], PromotionRequest.prototype, "current_job_title", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], PromotionRequest.prototype, "proposed_job_title", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], PromotionRequest.prototype, "current_salary_grade", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], PromotionRequest.prototype, "proposed_salary_grade", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], PromotionRequest.prototype, "current_basic_salary", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], PromotionRequest.prototype, "proposed_basic_salary", void 0);
|
|
130
|
+
exports.PromotionRequest = PromotionRequest = __decorate([
|
|
131
|
+
(0, typeorm_1.Entity)({ name: "promotion_requests" }),
|
|
132
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, String, Number, Number])
|
|
133
|
+
], PromotionRequest);
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -123,6 +123,7 @@ import { RequestForCoverageApprovalDetails } from './models/RequestForCoverageAp
|
|
|
123
123
|
import { RequestForCoverageRequestChat } from './models/RequestForCoverageChatModel';
|
|
124
124
|
import { RequestForCoverageRequestAttachment } from './models/RequestForCoverageAttachmentModel';
|
|
125
125
|
import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestModel';
|
|
126
|
+
import { PromotionRequest } from './models/PromotionRequestModel';
|
|
126
127
|
|
|
127
128
|
export const AppDataSource = new DataSource({
|
|
128
129
|
type: 'postgres',
|
|
@@ -252,6 +253,7 @@ export const AppDataSource = new DataSource({
|
|
|
252
253
|
AssignTasksEmpWorkFlow,
|
|
253
254
|
AssignTasksEmpRequestAttachment,
|
|
254
255
|
AssignTasksEmpRequestChat,
|
|
255
|
-
CashAllowanceLeaveRequest
|
|
256
|
+
CashAllowanceLeaveRequest,
|
|
257
|
+
PromotionRequest
|
|
256
258
|
],
|
|
257
259
|
});
|
package/src/index.ts
CHANGED
|
@@ -220,4 +220,8 @@ export {NotificationFrequency} from './models/TrainingRoomNotificationConfigMode
|
|
|
220
220
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
221
221
|
|
|
222
222
|
export * from './models/CashAllowanceLeaveRequestModel'
|
|
223
|
-
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel'
|
|
223
|
+
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel'
|
|
224
|
+
|
|
225
|
+
// Promotion Request Service
|
|
226
|
+
export * from './models/PromotionRequestModel';
|
|
227
|
+
export { PromotionRequestStatus } from './models/PromotionRequestModel';
|
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum HrServiceRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
ASSIGNED = "Assigned",
|
|
7
|
-
IN_PROGRESS = "In Progress",
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: "hr_service_requests" })
|
|
14
|
-
export class HrServiceRequest 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
|
-
req_user_position_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "integer", nullable: true })
|
|
25
|
-
service_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "integer", nullable: true })
|
|
28
|
-
sub_service_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "integer", nullable: false })
|
|
31
|
-
user_id: number;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "text", nullable: true })
|
|
34
|
-
description: string | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
|
|
37
|
-
status: HrServiceRequestStatus;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "integer", nullable: true })
|
|
40
|
-
reviewer_user_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "integer", nullable: true })
|
|
43
|
-
assigned_to_user_id: number | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "timestamp", nullable: true })
|
|
46
|
-
assigned_at: Date | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
-
workflow_execution_id: string | null;
|
|
50
|
-
|
|
51
|
-
// Assignment Decision specific fields
|
|
52
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
53
|
-
assigned_employee_name: string;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
56
|
-
civil_id_card_number: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
59
|
-
employee_id: string;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
62
|
-
current_job_position: string;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
65
|
-
assigned_job_position: string;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "date", nullable: false })
|
|
68
|
-
start_date: Date;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "date", nullable: false })
|
|
71
|
-
end_date: Date;
|
|
72
|
-
|
|
73
|
-
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
74
|
-
assignment_allowance: number | null; // 0-100 percentage
|
|
75
|
-
|
|
76
|
-
@Column({ type: "varchar", length: 20, nullable: false })
|
|
77
|
-
phone_number: string;
|
|
78
|
-
|
|
79
|
-
@Column({ type: "text", nullable: false })
|
|
80
|
-
reason_for_request: string;
|
|
81
|
-
|
|
82
|
-
// Replacement tracking fields
|
|
83
|
-
@Column({ type: "boolean", default: false, nullable: false })
|
|
84
|
-
is_replaced: boolean;
|
|
85
|
-
|
|
86
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
87
|
-
replacement_employee_name: string | null;
|
|
88
|
-
|
|
89
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
90
|
-
replacement_employee_id: string | null;
|
|
91
|
-
|
|
92
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
93
|
-
replacement_civil_id_card_number: string | null;
|
|
94
|
-
|
|
95
|
-
@Column({ type: "text", nullable: true })
|
|
96
|
-
replacement_reason: string | null;
|
|
97
|
-
|
|
98
|
-
@Column({ type: "integer", nullable: true })
|
|
99
|
-
replaced_by_user_id: number | null;
|
|
100
|
-
|
|
101
|
-
@Column({ type: "timestamp", nullable: true })
|
|
102
|
-
replaced_at: Date | null;
|
|
103
|
-
|
|
104
|
-
constructor(
|
|
105
|
-
user_id: number,
|
|
106
|
-
status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
|
|
107
|
-
service_id?: number | null,
|
|
108
|
-
sub_service_id?: number | null,
|
|
109
|
-
req_user_department_id?: number | null,
|
|
110
|
-
req_user_section_id?: number | null,
|
|
111
|
-
req_user_position_id?: number | null,
|
|
112
|
-
description?: string | null,
|
|
113
|
-
reviewer_user_id?: number | null,
|
|
114
|
-
assigned_to_user_id?: number | null,
|
|
115
|
-
assigned_at?: Date | null,
|
|
116
|
-
workflow_execution_id?: string | null,
|
|
117
|
-
assigned_employee_name?: string,
|
|
118
|
-
civil_id_card_number?: string | null,
|
|
119
|
-
employee_id?: string,
|
|
120
|
-
current_job_position?: string,
|
|
121
|
-
assigned_job_position?: string,
|
|
122
|
-
start_date?: Date,
|
|
123
|
-
end_date?: Date,
|
|
124
|
-
assignment_allowance?: number | null,
|
|
125
|
-
phone_number?: string,
|
|
126
|
-
reason_for_request?: string,
|
|
127
|
-
is_replaced?: boolean,
|
|
128
|
-
replacement_employee_name?: string | null,
|
|
129
|
-
replacement_employee_id?: string | null,
|
|
130
|
-
replacement_civil_id_card_number?: string | null,
|
|
131
|
-
replacement_reason?: string | null,
|
|
132
|
-
replaced_by_user_id?: number | null,
|
|
133
|
-
replaced_at?: Date | null
|
|
134
|
-
) {
|
|
135
|
-
super();
|
|
136
|
-
this.user_id = user_id;
|
|
137
|
-
this.status = status;
|
|
138
|
-
this.service_id = service_id || null;
|
|
139
|
-
this.sub_service_id = sub_service_id || null;
|
|
140
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
141
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
142
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
143
|
-
this.description = description || null;
|
|
144
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
145
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
146
|
-
this.assigned_at = assigned_at || null;
|
|
147
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
148
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
149
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
150
|
-
this.employee_id = employee_id || "";
|
|
151
|
-
this.current_job_position = current_job_position || "";
|
|
152
|
-
this.assigned_job_position = assigned_job_position || "";
|
|
153
|
-
this.start_date = start_date || new Date();
|
|
154
|
-
this.end_date = end_date || new Date();
|
|
155
|
-
this.assignment_allowance = assignment_allowance || null;
|
|
156
|
-
this.phone_number = phone_number || "";
|
|
157
|
-
this.reason_for_request = reason_for_request || "";
|
|
158
|
-
this.is_replaced = is_replaced || false;
|
|
159
|
-
this.replacement_employee_name = replacement_employee_name || null;
|
|
160
|
-
this.replacement_employee_id = replacement_employee_id || null;
|
|
161
|
-
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
162
|
-
this.replacement_reason = replacement_reason || null;
|
|
163
|
-
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
164
|
-
this.replaced_at = replaced_at || null;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HrServiceRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: "hr_service_requests" })
|
|
14
|
+
export class HrServiceRequest 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
|
+
req_user_position_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
sub_service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: false })
|
|
31
|
+
user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "text", nullable: true })
|
|
34
|
+
description: string | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
|
|
37
|
+
status: HrServiceRequestStatus;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
reviewer_user_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "integer", nullable: true })
|
|
43
|
+
assigned_to_user_id: number | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "timestamp", nullable: true })
|
|
46
|
+
assigned_at: Date | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
|
|
51
|
+
// Assignment Decision specific fields
|
|
52
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
53
|
+
assigned_employee_name: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
56
|
+
civil_id_card_number: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
59
|
+
employee_id: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
62
|
+
current_job_position: string;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
65
|
+
assigned_job_position: string;
|
|
66
|
+
|
|
67
|
+
@Column({ type: "date", nullable: false })
|
|
68
|
+
start_date: Date;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "date", nullable: false })
|
|
71
|
+
end_date: Date;
|
|
72
|
+
|
|
73
|
+
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
74
|
+
assignment_allowance: number | null; // 0-100 percentage
|
|
75
|
+
|
|
76
|
+
@Column({ type: "varchar", length: 20, nullable: false })
|
|
77
|
+
phone_number: string;
|
|
78
|
+
|
|
79
|
+
@Column({ type: "text", nullable: false })
|
|
80
|
+
reason_for_request: string;
|
|
81
|
+
|
|
82
|
+
// Replacement tracking fields
|
|
83
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
84
|
+
is_replaced: boolean;
|
|
85
|
+
|
|
86
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
87
|
+
replacement_employee_name: string | null;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
90
|
+
replacement_employee_id: string | null;
|
|
91
|
+
|
|
92
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
93
|
+
replacement_civil_id_card_number: string | null;
|
|
94
|
+
|
|
95
|
+
@Column({ type: "text", nullable: true })
|
|
96
|
+
replacement_reason: string | null;
|
|
97
|
+
|
|
98
|
+
@Column({ type: "integer", nullable: true })
|
|
99
|
+
replaced_by_user_id: number | null;
|
|
100
|
+
|
|
101
|
+
@Column({ type: "timestamp", nullable: true })
|
|
102
|
+
replaced_at: Date | null;
|
|
103
|
+
|
|
104
|
+
constructor(
|
|
105
|
+
user_id: number,
|
|
106
|
+
status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
|
|
107
|
+
service_id?: number | null,
|
|
108
|
+
sub_service_id?: number | null,
|
|
109
|
+
req_user_department_id?: number | null,
|
|
110
|
+
req_user_section_id?: number | null,
|
|
111
|
+
req_user_position_id?: number | null,
|
|
112
|
+
description?: string | null,
|
|
113
|
+
reviewer_user_id?: number | null,
|
|
114
|
+
assigned_to_user_id?: number | null,
|
|
115
|
+
assigned_at?: Date | null,
|
|
116
|
+
workflow_execution_id?: string | null,
|
|
117
|
+
assigned_employee_name?: string,
|
|
118
|
+
civil_id_card_number?: string | null,
|
|
119
|
+
employee_id?: string,
|
|
120
|
+
current_job_position?: string,
|
|
121
|
+
assigned_job_position?: string,
|
|
122
|
+
start_date?: Date,
|
|
123
|
+
end_date?: Date,
|
|
124
|
+
assignment_allowance?: number | null,
|
|
125
|
+
phone_number?: string,
|
|
126
|
+
reason_for_request?: string,
|
|
127
|
+
is_replaced?: boolean,
|
|
128
|
+
replacement_employee_name?: string | null,
|
|
129
|
+
replacement_employee_id?: string | null,
|
|
130
|
+
replacement_civil_id_card_number?: string | null,
|
|
131
|
+
replacement_reason?: string | null,
|
|
132
|
+
replaced_by_user_id?: number | null,
|
|
133
|
+
replaced_at?: Date | null
|
|
134
|
+
) {
|
|
135
|
+
super();
|
|
136
|
+
this.user_id = user_id;
|
|
137
|
+
this.status = status;
|
|
138
|
+
this.service_id = service_id || null;
|
|
139
|
+
this.sub_service_id = sub_service_id || null;
|
|
140
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
141
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
142
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
143
|
+
this.description = description || null;
|
|
144
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
145
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
146
|
+
this.assigned_at = assigned_at || null;
|
|
147
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
148
|
+
this.assigned_employee_name = assigned_employee_name || "";
|
|
149
|
+
this.civil_id_card_number = civil_id_card_number || null;
|
|
150
|
+
this.employee_id = employee_id || "";
|
|
151
|
+
this.current_job_position = current_job_position || "";
|
|
152
|
+
this.assigned_job_position = assigned_job_position || "";
|
|
153
|
+
this.start_date = start_date || new Date();
|
|
154
|
+
this.end_date = end_date || new Date();
|
|
155
|
+
this.assignment_allowance = assignment_allowance || null;
|
|
156
|
+
this.phone_number = phone_number || "";
|
|
157
|
+
this.reason_for_request = reason_for_request || "";
|
|
158
|
+
this.is_replaced = is_replaced || false;
|
|
159
|
+
this.replacement_employee_name = replacement_employee_name || null;
|
|
160
|
+
this.replacement_employee_id = replacement_employee_id || null;
|
|
161
|
+
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
162
|
+
this.replacement_reason = replacement_reason || null;
|
|
163
|
+
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
164
|
+
this.replaced_at = replaced_at || null;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -70,6 +70,10 @@ 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;
|
|
75
|
+
|
|
76
|
+
|
|
73
77
|
constructor(
|
|
74
78
|
user_id: number,
|
|
75
79
|
status: JobTransferRequestStatus = JobTransferRequestStatus.PENDING,
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum PromotionRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: "promotion_requests" })
|
|
14
|
+
export class PromotionRequest 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
|
+
req_user_position_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
sub_service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: false })
|
|
31
|
+
user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "text", nullable: true })
|
|
34
|
+
description: string | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "enum", enum: PromotionRequestStatus, default: PromotionRequestStatus.PENDING, nullable: false })
|
|
37
|
+
status: PromotionRequestStatus;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
reviewer_user_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "integer", nullable: true })
|
|
43
|
+
assigned_to_user_id: number | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "timestamp", nullable: true })
|
|
46
|
+
assigned_at: Date | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
|
|
51
|
+
// Promotion Decision specific fields
|
|
52
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
53
|
+
employee_name: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
56
|
+
employee_id: string;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
59
|
+
current_job_title: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
62
|
+
proposed_job_title: string;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
65
|
+
current_salary_grade: string;
|
|
66
|
+
|
|
67
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
68
|
+
proposed_salary_grade: string;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: false })
|
|
71
|
+
current_basic_salary: number;
|
|
72
|
+
|
|
73
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: false })
|
|
74
|
+
proposed_basic_salary: number;
|
|
75
|
+
|
|
76
|
+
constructor(
|
|
77
|
+
user_id: number,
|
|
78
|
+
status: PromotionRequestStatus = PromotionRequestStatus.PENDING,
|
|
79
|
+
service_id?: number | null,
|
|
80
|
+
sub_service_id?: number | null,
|
|
81
|
+
req_user_department_id?: number | null,
|
|
82
|
+
req_user_section_id?: number | null,
|
|
83
|
+
req_user_position_id?: number | null,
|
|
84
|
+
description?: string | null,
|
|
85
|
+
reviewer_user_id?: number | null,
|
|
86
|
+
assigned_to_user_id?: number | null,
|
|
87
|
+
assigned_at?: Date | null,
|
|
88
|
+
workflow_execution_id?: string | null,
|
|
89
|
+
employee_name?: string,
|
|
90
|
+
employee_id?: string,
|
|
91
|
+
current_job_title?: string,
|
|
92
|
+
proposed_job_title?: string,
|
|
93
|
+
current_salary_grade?: string,
|
|
94
|
+
proposed_salary_grade?: string,
|
|
95
|
+
current_basic_salary?: number,
|
|
96
|
+
proposed_basic_salary?: number
|
|
97
|
+
) {
|
|
98
|
+
super();
|
|
99
|
+
this.user_id = user_id;
|
|
100
|
+
this.status = status;
|
|
101
|
+
this.service_id = service_id || null;
|
|
102
|
+
this.sub_service_id = sub_service_id || null;
|
|
103
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
104
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
105
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
106
|
+
this.description = description || null;
|
|
107
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
108
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
109
|
+
this.assigned_at = assigned_at || null;
|
|
110
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
111
|
+
this.employee_name = employee_name || "";
|
|
112
|
+
this.employee_id = employee_id || "";
|
|
113
|
+
this.current_job_title = current_job_title || "";
|
|
114
|
+
this.proposed_job_title = proposed_job_title || "";
|
|
115
|
+
this.current_salary_grade = current_salary_grade || "";
|
|
116
|
+
this.proposed_salary_grade = proposed_salary_grade || "";
|
|
117
|
+
this.current_basic_salary = current_basic_salary || 0;
|
|
118
|
+
this.proposed_basic_salary = proposed_basic_salary || 0;
|
|
119
|
+
}
|
|
120
|
+
}
|