@platform-modules/civil-aviation-authority 2.3.60 → 2.3.62
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/AirportEntryPermitModel.js +1 -1
- package/dist/models/HotelreservationModal.d.ts +30 -0
- package/dist/models/HotelreservationModal.js +119 -0
- 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/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +5 -1
- package/src/models/AirportEntryPermitModel.ts +1 -1
- 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; } });
|
|
@@ -210,7 +210,7 @@ __decorate([
|
|
|
210
210
|
__metadata("design:type", Object)
|
|
211
211
|
], AirportEntryPermit.prototype, "temporary_duration", void 0);
|
|
212
212
|
__decorate([
|
|
213
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable:
|
|
213
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
214
214
|
__metadata("design:type", Array)
|
|
215
215
|
], AirportEntryPermit.prototype, "permission_to_required_areas", void 0);
|
|
216
216
|
__decorate([
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum MealType {
|
|
3
|
+
BREAKFAST = "Breakfast",
|
|
4
|
+
LUNCH = "Lunch",
|
|
5
|
+
DINNER = "Dinner"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ServiceTypes {
|
|
8
|
+
LAUNDRY = "Laundry",
|
|
9
|
+
TELEPHONE = "Telephone Service"
|
|
10
|
+
}
|
|
11
|
+
export declare class HotelReservation extends BaseModel {
|
|
12
|
+
type_of_accommodation: string;
|
|
13
|
+
price: number;
|
|
14
|
+
meal: MealType;
|
|
15
|
+
service: ServiceTypes;
|
|
16
|
+
date_of_request: Date;
|
|
17
|
+
hotel_name: string;
|
|
18
|
+
check_in_date: Date;
|
|
19
|
+
check_in_time: string;
|
|
20
|
+
check_out_date: Date;
|
|
21
|
+
check_out_time: string;
|
|
22
|
+
number_of_guests: number;
|
|
23
|
+
description: string;
|
|
24
|
+
attachment_url: string;
|
|
25
|
+
requested_by: string;
|
|
26
|
+
visitor_name: string;
|
|
27
|
+
hr_approval: boolean;
|
|
28
|
+
pr_approval: boolean;
|
|
29
|
+
constructor(type_of_accommodation: string, price: number, meal: MealType, service: ServiceTypes, date_of_request: Date, hotel_name: string, check_in_date: Date, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, visitor_name: string, hr_approval: boolean, pr_approval: boolean);
|
|
30
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.HotelReservation = exports.ServiceTypes = exports.MealType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var MealType;
|
|
16
|
+
(function (MealType) {
|
|
17
|
+
MealType["BREAKFAST"] = "Breakfast";
|
|
18
|
+
MealType["LUNCH"] = "Lunch";
|
|
19
|
+
MealType["DINNER"] = "Dinner";
|
|
20
|
+
})(MealType || (exports.MealType = MealType = {}));
|
|
21
|
+
var ServiceTypes;
|
|
22
|
+
(function (ServiceTypes) {
|
|
23
|
+
ServiceTypes["LAUNDRY"] = "Laundry";
|
|
24
|
+
ServiceTypes["TELEPHONE"] = "Telephone Service";
|
|
25
|
+
})(ServiceTypes || (exports.ServiceTypes = ServiceTypes = {}));
|
|
26
|
+
let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
27
|
+
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, visitor_name, hr_approval, pr_approval) {
|
|
28
|
+
super();
|
|
29
|
+
this.type_of_accommodation = type_of_accommodation;
|
|
30
|
+
this.price = price;
|
|
31
|
+
this.meal = meal;
|
|
32
|
+
this.service = service;
|
|
33
|
+
this.date_of_request = date_of_request;
|
|
34
|
+
this.hotel_name = hotel_name;
|
|
35
|
+
this.check_in_date = check_in_date;
|
|
36
|
+
this.check_in_time = check_in_time;
|
|
37
|
+
this.check_out_date = check_out_date;
|
|
38
|
+
this.check_out_time = check_out_time;
|
|
39
|
+
this.number_of_guests = number_of_guests;
|
|
40
|
+
this.description = description;
|
|
41
|
+
this.requested_by = requested_by;
|
|
42
|
+
this.visitor_name = visitor_name;
|
|
43
|
+
this.hr_approval = hr_approval;
|
|
44
|
+
this.pr_approval = pr_approval;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.HotelReservation = HotelReservation;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], HotelReservation.prototype, "type_of_accommodation", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], HotelReservation.prototype, "price", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MealType, nullable: false, }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], HotelReservation.prototype, "meal", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ServiceTypes, nullable: false, }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], HotelReservation.prototype, "service", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: false }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], HotelReservation.prototype, "date_of_request", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], HotelReservation.prototype, "hotel_name", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], HotelReservation.prototype, "check_in_date", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], HotelReservation.prototype, "check_in_time", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], HotelReservation.prototype, "check_out_date", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], HotelReservation.prototype, "check_out_time", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], HotelReservation.prototype, "number_of_guests", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], HotelReservation.prototype, "description", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], HotelReservation.prototype, "attachment_url", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], HotelReservation.prototype, "requested_by", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], HotelReservation.prototype, "visitor_name", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
110
|
+
__metadata("design:type", Boolean)
|
|
111
|
+
], HotelReservation.prototype, "hr_approval", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
114
|
+
__metadata("design:type", Boolean)
|
|
115
|
+
], HotelReservation.prototype, "pr_approval", void 0);
|
|
116
|
+
exports.HotelReservation = HotelReservation = __decorate([
|
|
117
|
+
(0, typeorm_1.Entity)({ name: 'hotel_reservations' }),
|
|
118
|
+
__metadata("design:paramtypes", [String, Number, String, String, Date, String, Date, String, Date, String, Number, String, String, String, Boolean, Boolean])
|
|
119
|
+
], HotelReservation);
|
|
@@ -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);
|
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';
|
|
@@ -142,7 +142,7 @@ export class AirportEntryPermit extends BaseModel {
|
|
|
142
142
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
143
143
|
temporary_duration: string | null;
|
|
144
144
|
|
|
145
|
-
@Column({ type: 'jsonb', nullable:
|
|
145
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
146
146
|
permission_to_required_areas: Array<{ permit: string; text: string }>;
|
|
147
147
|
|
|
148
148
|
@Column({ type: 'text', nullable: true })
|
|
@@ -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
|
+
}
|