@platform-modules/civil-aviation-authority 2.3.32 → 2.3.34
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 +14 -9
- package/dist/index.d.ts +0 -4
- package/dist/index.js +1 -9
- package/dist/models/LogisticsForeignVehicleModel.js +0 -1
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +0 -1
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/roleRightsModel.d.ts +9 -12
- package/dist/models/roleRightsModel.js +16 -15
- package/package.json +1 -1
- package/src/index.ts +0 -7
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/LogisticsForeignVehicleModel.ts +0 -1
- package/src/models/LogisticsVehicleMaintenanceRequestModel.ts +0 -1
- package/src/models/roleRightsModel.ts +13 -14
- package/dist/models/JobTransferRequestModel.d.ts +0 -31
- package/dist/models/JobTransferRequestModel.js +0 -128
- package/dist/models/ShiftAllowanceRequestModel.d.ts +0 -37
- package/dist/models/ShiftAllowanceRequestModel.js +0 -140
- package/src/models/JobTransferRequestModel.ts +0 -115
- package/src/models/ShiftAllowanceRequestModel.ts +0 -126
package/.env
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
# DB_HOST=
|
|
2
|
-
# DB_PORT=
|
|
3
|
-
# DB_USER=
|
|
4
|
-
# DB_PASS=
|
|
1
|
+
# DB_HOST=localhost
|
|
2
|
+
# DB_PORT=5433
|
|
3
|
+
# DB_USER=postgres
|
|
4
|
+
# DB_PASS=123
|
|
5
5
|
# DB_NAME=CAA
|
|
6
6
|
|
|
7
|
+
DB_HOST=164.52.222.169
|
|
8
|
+
DB_PORT=5432
|
|
9
|
+
DB_USER=postgres_admin_user
|
|
10
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
+
DB_NAME=CAA
|
|
7
12
|
|
|
8
|
-
DB_HOST=
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=
|
|
11
|
-
DB_PASS=
|
|
12
|
-
DB_NAME=
|
|
13
|
+
# DB_HOST=216.48.187.46
|
|
14
|
+
# DB_PORT=5432
|
|
15
|
+
# DB_USER=adminuser
|
|
16
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
17
|
+
# DB_NAME=CAA_QA
|
package/dist/index.d.ts
CHANGED
|
@@ -181,7 +181,3 @@ export { AssignTasksEmpWorkFlowStatus } from './models/AssignTasksEmpWorkflowMod
|
|
|
181
181
|
export { AssignTasksEmpRequestAttachment } from './models/AssignTasksEmpAttachmentModel';
|
|
182
182
|
export { AssignTasksEmpRequestChat } from './models/AssignTasksEmpChatModel';
|
|
183
183
|
export { AssignTasksEmpMessageType } from './models/AssignTasksEmpChatModel';
|
|
184
|
-
export * from './models/ShiftAllowanceRequestModel';
|
|
185
|
-
export { ShiftAllowanceRequestStatus, ShiftAllowanceValue } from './models/ShiftAllowanceRequestModel';
|
|
186
|
-
export * from './models/JobTransferRequestModel';
|
|
187
|
-
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
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.
|
|
18
|
+
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);
|
|
@@ -265,11 +265,3 @@ var AssignTasksEmpChatModel_1 = require("./models/AssignTasksEmpChatModel");
|
|
|
265
265
|
Object.defineProperty(exports, "AssignTasksEmpRequestChat", { enumerable: true, get: function () { return AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat; } });
|
|
266
266
|
var AssignTasksEmpChatModel_2 = require("./models/AssignTasksEmpChatModel");
|
|
267
267
|
Object.defineProperty(exports, "AssignTasksEmpMessageType", { enumerable: true, get: function () { return AssignTasksEmpChatModel_2.AssignTasksEmpMessageType; } });
|
|
268
|
-
__exportStar(require("./models/ShiftAllowanceRequestModel"), exports);
|
|
269
|
-
var ShiftAllowanceRequestModel_1 = require("./models/ShiftAllowanceRequestModel");
|
|
270
|
-
Object.defineProperty(exports, "ShiftAllowanceRequestStatus", { enumerable: true, get: function () { return ShiftAllowanceRequestModel_1.ShiftAllowanceRequestStatus; } });
|
|
271
|
-
Object.defineProperty(exports, "ShiftAllowanceValue", { enumerable: true, get: function () { return ShiftAllowanceRequestModel_1.ShiftAllowanceValue; } });
|
|
272
|
-
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
273
|
-
__exportStar(require("./models/JobTransferRequestModel"), exports);
|
|
274
|
-
var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
|
|
275
|
-
Object.defineProperty(exports, "JobTransferRequestStatus", { enumerable: true, get: function () { return JobTransferRequestModel_1.JobTransferRequestStatus; } });
|
|
@@ -73,7 +73,6 @@ __decorate([
|
|
|
73
73
|
type: "enum",
|
|
74
74
|
enum: VehicleMaintenanceType,
|
|
75
75
|
nullable: false,
|
|
76
|
-
default: VehicleMaintenanceType.CORRECTIVE
|
|
77
76
|
}),
|
|
78
77
|
__metadata("design:type", String)
|
|
79
78
|
], LogisticsVehicleMaintenanceRequests.prototype, "type_of_maintenance_required", void 0);
|
|
@@ -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,16 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@author
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* @author Amnet Digital
|
|
3
|
+
* @date 2024-05-20
|
|
4
|
+
* @Model RoleRights
|
|
5
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
6
|
+
*/
|
|
11
7
|
import { BaseModel } from './BaseModel';
|
|
12
8
|
export declare class RoleRights extends BaseModel {
|
|
13
|
-
user_role_id: number;
|
|
9
|
+
user_role_id: number | null;
|
|
14
10
|
service_id: number;
|
|
15
|
-
|
|
11
|
+
sub_service_ids: number[] | null;
|
|
12
|
+
constructor(user_role_id?: number | null, service_id?: number, sub_service_ids?: number[] | null);
|
|
16
13
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
@author
|
|
4
|
-
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Role
|
|
9
|
-
@usage
|
|
10
|
-
Userrole Information will store
|
|
11
|
-
*/
|
|
2
|
+
/**
|
|
3
|
+
* @author Amnet Digital
|
|
4
|
+
* @date 2024-05-20
|
|
5
|
+
* @Model RoleRights
|
|
6
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
7
|
+
*/
|
|
12
8
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
10
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,22 +19,27 @@ exports.RoleRights = void 0;
|
|
|
23
19
|
const typeorm_1 = require("typeorm");
|
|
24
20
|
const BaseModel_1 = require("./BaseModel");
|
|
25
21
|
let RoleRights = class RoleRights extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(user_role_id, service_id) {
|
|
22
|
+
constructor(user_role_id, service_id, sub_service_ids) {
|
|
27
23
|
super();
|
|
28
|
-
this.user_role_id = user_role_id;
|
|
29
|
-
this.service_id = service_id;
|
|
24
|
+
this.user_role_id = user_role_id ?? null;
|
|
25
|
+
this.service_id = service_id ?? 0;
|
|
26
|
+
this.sub_service_ids = sub_service_ids ?? null;
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
exports.RoleRights = RoleRights;
|
|
33
30
|
__decorate([
|
|
34
31
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
35
|
-
__metadata("design:type",
|
|
32
|
+
__metadata("design:type", Object)
|
|
36
33
|
], RoleRights.prototype, "user_role_id", void 0);
|
|
37
34
|
__decorate([
|
|
38
35
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
39
36
|
__metadata("design:type", Number)
|
|
40
37
|
], RoleRights.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', array: true, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], RoleRights.prototype, "sub_service_ids", void 0);
|
|
41
42
|
exports.RoleRights = RoleRights = __decorate([
|
|
42
43
|
(0, typeorm_1.Entity)({ name: 'role_rights' }),
|
|
43
|
-
__metadata("design:paramtypes", [Number,
|
|
44
|
+
__metadata("design:paramtypes", [Object, Number, Object])
|
|
44
45
|
], RoleRights);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -185,10 +185,3 @@ export {AssignTasksEmpWorkFlowStatus} from './models/AssignTasksEmpWorkflowModel
|
|
|
185
185
|
export {AssignTasksEmpRequestAttachment} from './models/AssignTasksEmpAttachmentModel';
|
|
186
186
|
export {AssignTasksEmpRequestChat} from './models/AssignTasksEmpChatModel';
|
|
187
187
|
export {AssignTasksEmpMessageType} from './models/AssignTasksEmpChatModel';
|
|
188
|
-
|
|
189
|
-
export * from './models/ShiftAllowanceRequestModel';
|
|
190
|
-
export {ShiftAllowanceRequestStatus, ShiftAllowanceValue} from './models/ShiftAllowanceRequestModel';
|
|
191
|
-
|
|
192
|
-
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
193
|
-
export * from './models/JobTransferRequestModel';
|
|
194
|
-
export {JobTransferRequestStatus} from './models/JobTransferRequestModel';
|
|
@@ -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
|
+
|
|
@@ -57,7 +57,6 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
57
57
|
@Column({
|
|
58
58
|
type: "enum",
|
|
59
59
|
enum: Foreign_Vehicle_Required_Location,
|
|
60
|
-
enumName: 'foreign_vehicle_required_location_en',
|
|
61
60
|
default: Foreign_Vehicle_Required_Location.INSIDE,
|
|
62
61
|
nullable: false,
|
|
63
62
|
})
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@author
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* @author Amnet Digital
|
|
3
|
+
* @date 2024-05-20
|
|
4
|
+
* @Model RoleRights
|
|
5
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
6
|
+
*/
|
|
11
7
|
|
|
12
8
|
import { Column, Entity } from "typeorm";
|
|
13
9
|
import { BaseModel } from './BaseModel';
|
|
@@ -17,16 +13,19 @@ import { BaseModel } from './BaseModel';
|
|
|
17
13
|
export class RoleRights extends BaseModel {
|
|
18
14
|
|
|
19
15
|
@Column({ type: 'bigint', nullable: true })
|
|
20
|
-
user_role_id: number;
|
|
16
|
+
user_role_id: number | null;
|
|
21
17
|
|
|
22
18
|
@Column({ type: 'bigint', nullable: false })
|
|
23
19
|
service_id: number;
|
|
24
20
|
|
|
21
|
+
@Column({ type: 'int', array: true, nullable: true })
|
|
22
|
+
sub_service_ids: number[] | null;
|
|
25
23
|
|
|
26
|
-
constructor(user_role_id
|
|
24
|
+
constructor(user_role_id?: number | null, service_id?: number, sub_service_ids?: number[] | null) {
|
|
27
25
|
super();
|
|
28
|
-
this.user_role_id = user_role_id
|
|
29
|
-
this.service_id = service_id
|
|
26
|
+
this.user_role_id = user_role_id ?? null;
|
|
27
|
+
this.service_id = service_id ?? 0;
|
|
28
|
+
this.sub_service_ids = sub_service_ids ?? null;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum JobTransferRequestStatus {
|
|
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 JobTransferRequest 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: JobTransferRequestStatus;
|
|
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
|
-
reason_for_request: string;
|
|
24
|
-
assigned_employee_name: string;
|
|
25
|
-
civil_id_card_number: string | null;
|
|
26
|
-
employee_id: string;
|
|
27
|
-
current_job_position: string;
|
|
28
|
-
position_to_be_transferred: string;
|
|
29
|
-
effective_from_date: Date;
|
|
30
|
-
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
|
-
}
|
|
@@ -1,128 +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.JobTransferRequest = exports.JobTransferRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var JobTransferRequestStatus;
|
|
16
|
-
(function (JobTransferRequestStatus) {
|
|
17
|
-
JobTransferRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
JobTransferRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
JobTransferRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
JobTransferRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
-
JobTransferRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
JobTransferRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
})(JobTransferRequestStatus || (exports.JobTransferRequestStatus = JobTransferRequestStatus = {}));
|
|
24
|
-
let JobTransferRequest = class JobTransferRequest extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(user_id, status = JobTransferRequestStatus.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, reason_for_request, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, position_to_be_transferred, effective_from_date) {
|
|
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.reason_for_request = reason_for_request || "";
|
|
40
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
41
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
42
|
-
this.employee_id = employee_id || "";
|
|
43
|
-
this.current_job_position = current_job_position || "";
|
|
44
|
-
this.position_to_be_transferred = position_to_be_transferred || "";
|
|
45
|
-
this.effective_from_date = effective_from_date || new Date();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.JobTransferRequest = JobTransferRequest;
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], JobTransferRequest.prototype, "req_user_department_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], JobTransferRequest.prototype, "req_user_section_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], JobTransferRequest.prototype, "req_user_position_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], JobTransferRequest.prototype, "service_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], JobTransferRequest.prototype, "sub_service_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], JobTransferRequest.prototype, "user_id", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], JobTransferRequest.prototype, "description", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: "enum", enum: JobTransferRequestStatus, default: JobTransferRequestStatus.PENDING, nullable: false }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], JobTransferRequest.prototype, "status", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], JobTransferRequest.prototype, "reviewer_user_id", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
87
|
-
__metadata("design:type", Object)
|
|
88
|
-
], JobTransferRequest.prototype, "assigned_to_user_id", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
91
|
-
__metadata("design:type", Object)
|
|
92
|
-
], JobTransferRequest.prototype, "assigned_at", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], JobTransferRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], JobTransferRequest.prototype, "reason_for_request", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], JobTransferRequest.prototype, "assigned_employee_name", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
107
|
-
__metadata("design:type", Object)
|
|
108
|
-
], JobTransferRequest.prototype, "civil_id_card_number", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], JobTransferRequest.prototype, "employee_id", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
115
|
-
__metadata("design:type", String)
|
|
116
|
-
], JobTransferRequest.prototype, "current_job_position", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], JobTransferRequest.prototype, "position_to_be_transferred", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
123
|
-
__metadata("design:type", Date)
|
|
124
|
-
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
|
-
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
126
|
-
(0, typeorm_1.Entity)({ name: "job_transfer_requests" }),
|
|
127
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Object, String, String, String, Date])
|
|
128
|
-
], JobTransferRequest);
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ShiftAllowanceRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
export declare enum ShiftAllowanceValue {
|
|
11
|
-
TWENTY_TWO_PERCENT = "22%",
|
|
12
|
-
THIRTY_PERCENT = "30%",
|
|
13
|
-
SEVENTY_PERCENT = "70%"
|
|
14
|
-
}
|
|
15
|
-
export declare class ShiftAllowanceRequest extends BaseModel {
|
|
16
|
-
req_user_department_id: number | null;
|
|
17
|
-
req_user_section_id: number | null;
|
|
18
|
-
req_user_position_id: number | null;
|
|
19
|
-
service_id: number | null;
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
user_id: number;
|
|
22
|
-
description: string | null;
|
|
23
|
-
status: ShiftAllowanceRequestStatus;
|
|
24
|
-
reviewer_user_id: number | null;
|
|
25
|
-
assigned_to_user_id: number | null;
|
|
26
|
-
assigned_at: Date | null;
|
|
27
|
-
workflow_execution_id: string | null;
|
|
28
|
-
employee_name: string;
|
|
29
|
-
employee_id: string;
|
|
30
|
-
job_title: string;
|
|
31
|
-
financial_grade: string;
|
|
32
|
-
allowance_value: ShiftAllowanceValue;
|
|
33
|
-
shift_start_date: Date;
|
|
34
|
-
shift_end_date: Date;
|
|
35
|
-
reason_for_request: string | null;
|
|
36
|
-
constructor(user_id: number, status?: ShiftAllowanceRequestStatus, 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, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
|
|
37
|
-
}
|
|
@@ -1,140 +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.ShiftAllowanceRequest = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ShiftAllowanceRequestStatus;
|
|
16
|
-
(function (ShiftAllowanceRequestStatus) {
|
|
17
|
-
ShiftAllowanceRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
ShiftAllowanceRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
ShiftAllowanceRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
ShiftAllowanceRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
-
ShiftAllowanceRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
ShiftAllowanceRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
})(ShiftAllowanceRequestStatus || (exports.ShiftAllowanceRequestStatus = ShiftAllowanceRequestStatus = {}));
|
|
24
|
-
var ShiftAllowanceValue;
|
|
25
|
-
(function (ShiftAllowanceValue) {
|
|
26
|
-
ShiftAllowanceValue["TWENTY_TWO_PERCENT"] = "22%";
|
|
27
|
-
ShiftAllowanceValue["THIRTY_PERCENT"] = "30%";
|
|
28
|
-
ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
|
|
29
|
-
})(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
|
|
30
|
-
let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
|
|
31
|
-
constructor(user_id, status = ShiftAllowanceRequestStatus.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, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
|
|
32
|
-
super();
|
|
33
|
-
this.user_id = user_id;
|
|
34
|
-
this.status = status;
|
|
35
|
-
this.service_id = service_id || null;
|
|
36
|
-
this.sub_service_id = sub_service_id || null;
|
|
37
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
38
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
39
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
40
|
-
this.description = description || null;
|
|
41
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
42
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
43
|
-
this.assigned_at = assigned_at || null;
|
|
44
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
45
|
-
this.employee_name = employee_name || "";
|
|
46
|
-
this.employee_id = employee_id || "";
|
|
47
|
-
this.job_title = job_title || "";
|
|
48
|
-
this.financial_grade = financial_grade || "";
|
|
49
|
-
this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
|
|
50
|
-
this.shift_start_date = shift_start_date || new Date();
|
|
51
|
-
this.shift_end_date = shift_end_date || new Date();
|
|
52
|
-
this.reason_for_request = reason_for_request || null;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
exports.ShiftAllowanceRequest = ShiftAllowanceRequest;
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], ShiftAllowanceRequest.prototype, "req_user_department_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], ShiftAllowanceRequest.prototype, "req_user_section_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], ShiftAllowanceRequest.prototype, "req_user_position_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], ShiftAllowanceRequest.prototype, "service_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], ShiftAllowanceRequest.prototype, "sub_service_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], ShiftAllowanceRequest.prototype, "user_id", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], ShiftAllowanceRequest.prototype, "description", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceRequestStatus, default: ShiftAllowanceRequestStatus.PENDING, nullable: false }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], ShiftAllowanceRequest.prototype, "status", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
90
|
-
__metadata("design:type", Object)
|
|
91
|
-
], ShiftAllowanceRequest.prototype, "reviewer_user_id", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
94
|
-
__metadata("design:type", Object)
|
|
95
|
-
], ShiftAllowanceRequest.prototype, "assigned_to_user_id", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
98
|
-
__metadata("design:type", Object)
|
|
99
|
-
], ShiftAllowanceRequest.prototype, "assigned_at", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
102
|
-
__metadata("design:type", Object)
|
|
103
|
-
], ShiftAllowanceRequest.prototype, "workflow_execution_id", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], ShiftAllowanceRequest.prototype, "employee_name", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
110
|
-
__metadata("design:type", String)
|
|
111
|
-
], ShiftAllowanceRequest.prototype, "employee_id", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], ShiftAllowanceRequest.prototype, "job_title", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], ShiftAllowanceRequest.prototype, "financial_grade", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceValue, nullable: false }),
|
|
122
|
-
__metadata("design:type", String)
|
|
123
|
-
], ShiftAllowanceRequest.prototype, "allowance_value", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
126
|
-
__metadata("design:type", Date)
|
|
127
|
-
], ShiftAllowanceRequest.prototype, "shift_start_date", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
130
|
-
__metadata("design:type", Date)
|
|
131
|
-
], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
|
-
__metadata("design:type", Object)
|
|
135
|
-
], ShiftAllowanceRequest.prototype, "reason_for_request", void 0);
|
|
136
|
-
exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
|
|
137
|
-
(0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
|
|
138
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
|
|
139
|
-
Date, Object])
|
|
140
|
-
], ShiftAllowanceRequest);
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum JobTransferRequestStatus {
|
|
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: "job_transfer_requests" })
|
|
14
|
-
export class JobTransferRequest 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: JobTransferRequestStatus, default: JobTransferRequestStatus.PENDING, nullable: false })
|
|
37
|
-
status: JobTransferRequestStatus;
|
|
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
|
-
// Job Transfer specific fields
|
|
52
|
-
@Column({ type: "text", nullable: false })
|
|
53
|
-
reason_for_request: string;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
56
|
-
assigned_employee_name: string;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
59
|
-
civil_id_card_number: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
62
|
-
employee_id: string;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
65
|
-
current_job_position: string;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
68
|
-
position_to_be_transferred: string;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "date", nullable: false })
|
|
71
|
-
effective_from_date: Date;
|
|
72
|
-
|
|
73
|
-
constructor(
|
|
74
|
-
user_id: number,
|
|
75
|
-
status: JobTransferRequestStatus = JobTransferRequestStatus.PENDING,
|
|
76
|
-
service_id?: number | null,
|
|
77
|
-
sub_service_id?: number | null,
|
|
78
|
-
req_user_department_id?: number | null,
|
|
79
|
-
req_user_section_id?: number | null,
|
|
80
|
-
req_user_position_id?: number | null,
|
|
81
|
-
description?: string | null,
|
|
82
|
-
reviewer_user_id?: number | null,
|
|
83
|
-
assigned_to_user_id?: number | null,
|
|
84
|
-
assigned_at?: Date | null,
|
|
85
|
-
workflow_execution_id?: string | null,
|
|
86
|
-
reason_for_request?: string,
|
|
87
|
-
assigned_employee_name?: string,
|
|
88
|
-
civil_id_card_number?: string | null,
|
|
89
|
-
employee_id?: string,
|
|
90
|
-
current_job_position?: string,
|
|
91
|
-
position_to_be_transferred?: string,
|
|
92
|
-
effective_from_date?: Date
|
|
93
|
-
) {
|
|
94
|
-
super();
|
|
95
|
-
this.user_id = user_id;
|
|
96
|
-
this.status = status;
|
|
97
|
-
this.service_id = service_id || null;
|
|
98
|
-
this.sub_service_id = sub_service_id || null;
|
|
99
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
100
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
101
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
102
|
-
this.description = description || null;
|
|
103
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
104
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
105
|
-
this.assigned_at = assigned_at || null;
|
|
106
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
107
|
-
this.reason_for_request = reason_for_request || "";
|
|
108
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
109
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
110
|
-
this.employee_id = employee_id || "";
|
|
111
|
-
this.current_job_position = current_job_position || "";
|
|
112
|
-
this.position_to_be_transferred = position_to_be_transferred || "";
|
|
113
|
-
this.effective_from_date = effective_from_date || new Date();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ShiftAllowanceRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
ASSIGNED = "Assigned",
|
|
7
|
-
IN_PROGRESS = "In Progress",
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum ShiftAllowanceValue {
|
|
14
|
-
TWENTY_TWO_PERCENT = "22%",
|
|
15
|
-
THIRTY_PERCENT = "30%",
|
|
16
|
-
SEVENTY_PERCENT = "70%"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@Entity({ name: "shift_allowance_requests" })
|
|
20
|
-
export class ShiftAllowanceRequest extends BaseModel {
|
|
21
|
-
@Column({ type: "integer", nullable: true })
|
|
22
|
-
req_user_department_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "integer", nullable: true })
|
|
25
|
-
req_user_section_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "integer", nullable: true })
|
|
28
|
-
req_user_position_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "integer", nullable: true })
|
|
31
|
-
service_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "integer", nullable: true })
|
|
34
|
-
sub_service_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "integer", nullable: false })
|
|
37
|
-
user_id: number;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "text", nullable: true })
|
|
40
|
-
description: string | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "enum", enum: ShiftAllowanceRequestStatus, default: ShiftAllowanceRequestStatus.PENDING, nullable: false })
|
|
43
|
-
status: ShiftAllowanceRequestStatus;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "integer", nullable: true })
|
|
46
|
-
reviewer_user_id: number | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "integer", nullable: true })
|
|
49
|
-
assigned_to_user_id: number | null;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "timestamp", nullable: true })
|
|
52
|
-
assigned_at: Date | null;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
55
|
-
workflow_execution_id: string | null;
|
|
56
|
-
|
|
57
|
-
// Shift Allowance specific fields
|
|
58
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
59
|
-
employee_name: string;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
62
|
-
employee_id: string;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
65
|
-
job_title: string;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
68
|
-
financial_grade: string;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "enum", enum: ShiftAllowanceValue, nullable: false })
|
|
71
|
-
allowance_value: ShiftAllowanceValue;
|
|
72
|
-
|
|
73
|
-
@Column({ type: "date", nullable: false })
|
|
74
|
-
shift_start_date: Date;
|
|
75
|
-
|
|
76
|
-
@Column({ type: "date", nullable: false })
|
|
77
|
-
shift_end_date: Date;
|
|
78
|
-
|
|
79
|
-
@Column({ type: "text", nullable: true })
|
|
80
|
-
reason_for_request: string | null;
|
|
81
|
-
|
|
82
|
-
constructor(
|
|
83
|
-
user_id: number,
|
|
84
|
-
status: ShiftAllowanceRequestStatus = ShiftAllowanceRequestStatus.PENDING,
|
|
85
|
-
service_id?: number | null,
|
|
86
|
-
sub_service_id?: number | null,
|
|
87
|
-
req_user_department_id?: number | null,
|
|
88
|
-
req_user_section_id?: number | null,
|
|
89
|
-
req_user_position_id?: number | null,
|
|
90
|
-
description?: string | null,
|
|
91
|
-
reviewer_user_id?: number | null,
|
|
92
|
-
assigned_to_user_id?: number | null,
|
|
93
|
-
assigned_at?: Date | null,
|
|
94
|
-
workflow_execution_id?: string | null,
|
|
95
|
-
employee_name?: string,
|
|
96
|
-
employee_id?: string,
|
|
97
|
-
job_title?: string,
|
|
98
|
-
financial_grade?: string,
|
|
99
|
-
allowance_value?: ShiftAllowanceValue,
|
|
100
|
-
shift_start_date?: Date,
|
|
101
|
-
shift_end_date?: Date,
|
|
102
|
-
reason_for_request?: string | null
|
|
103
|
-
) {
|
|
104
|
-
super();
|
|
105
|
-
this.user_id = user_id;
|
|
106
|
-
this.status = status;
|
|
107
|
-
this.service_id = service_id || null;
|
|
108
|
-
this.sub_service_id = sub_service_id || null;
|
|
109
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
110
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
111
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
112
|
-
this.description = description || null;
|
|
113
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
114
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
115
|
-
this.assigned_at = assigned_at || null;
|
|
116
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
117
|
-
this.employee_name = employee_name || "";
|
|
118
|
-
this.employee_id = employee_id || "";
|
|
119
|
-
this.job_title = job_title || "";
|
|
120
|
-
this.financial_grade = financial_grade || "";
|
|
121
|
-
this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
|
|
122
|
-
this.shift_start_date = shift_start_date || new Date();
|
|
123
|
-
this.shift_end_date = shift_end_date || new Date();
|
|
124
|
-
this.reason_for_request = reason_for_request || null;
|
|
125
|
-
}
|
|
126
|
-
}
|