@platform-modules/civil-aviation-authority 2.3.59 → 2.3.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/models/JobTransferRequestModel.d.ts +1 -0
- package/dist/models/JobTransferRequestModel.js +4 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +10 -1
- package/dist/models/LogisticsForeignVehicleModel.js +47 -2
- package/dist/models/LogisticsModel.d.ts +12 -3
- package/dist/models/LogisticsModel.js +55 -13
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +5 -1
- package/src/models/JobTransferRequestModel.ts +4 -0
- package/src/models/LogisticsForeignVehicleModel.ts +45 -0
- package/src/models/LogisticsModel.ts +56 -9
package/dist/data-source.js
CHANGED
|
@@ -125,6 +125,7 @@ const RequestForCoverageApprovalModel_1 = require("./models/RequestForCoverageAp
|
|
|
125
125
|
const RequestForCoverageChatModel_1 = require("./models/RequestForCoverageChatModel");
|
|
126
126
|
const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverageAttachmentModel");
|
|
127
127
|
const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
128
|
+
const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
128
129
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
129
130
|
type: 'postgres',
|
|
130
131
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -253,6 +254,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
253
254
|
AssignTasksEmpWorkflowModel_1.AssignTasksEmpWorkFlow,
|
|
254
255
|
AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
|
|
255
256
|
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat,
|
|
256
|
-
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest
|
|
257
|
+
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
|
|
258
|
+
PromotionRequestModel_1.PromotionRequest
|
|
257
259
|
],
|
|
258
260
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -197,3 +197,5 @@ export { NotificationFrequency } from './models/TrainingRoomNotificationConfigMo
|
|
|
197
197
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
198
198
|
export * from './models/CashAllowanceLeaveRequestModel';
|
|
199
199
|
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel';
|
|
200
|
+
export * from './models/PromotionRequestModel';
|
|
201
|
+
export { PromotionRequestStatus } from './models/PromotionRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
18
|
+
exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -296,3 +296,7 @@ __exportStar(require("./models/MissionTravelPassportExpiryNotificationConfigMode
|
|
|
296
296
|
__exportStar(require("./models/CashAllowanceLeaveRequestModel"), exports);
|
|
297
297
|
var CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
298
298
|
Object.defineProperty(exports, "CashAllowanceLeaveRequestStatus", { enumerable: true, get: function () { return CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequestStatus; } });
|
|
299
|
+
// Promotion Request Service
|
|
300
|
+
__exportStar(require("./models/PromotionRequestModel"), exports);
|
|
301
|
+
var PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
302
|
+
Object.defineProperty(exports, "PromotionRequestStatus", { enumerable: true, get: function () { return PromotionRequestModel_1.PromotionRequestStatus; } });
|
|
@@ -27,5 +27,6 @@ export declare class JobTransferRequest extends BaseModel {
|
|
|
27
27
|
current_job_position: string;
|
|
28
28
|
position_to_be_transferred: string;
|
|
29
29
|
effective_from_date: Date;
|
|
30
|
+
decision_number: number | null;
|
|
30
31
|
constructor(user_id: number, status?: JobTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, reason_for_request?: string, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, position_to_be_transferred?: string, effective_from_date?: Date);
|
|
31
32
|
}
|
|
@@ -122,6 +122,10 @@ __decorate([
|
|
|
122
122
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
123
123
|
__metadata("design:type", Date)
|
|
124
124
|
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], JobTransferRequest.prototype, "decision_number", void 0);
|
|
125
129
|
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
126
130
|
(0, typeorm_1.Entity)({ name: "job_transfer_requests" }),
|
|
127
131
|
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Object, String, String, String, Date])
|
|
@@ -31,6 +31,15 @@ export declare class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
31
31
|
vehicle_required_location: Foreign_Vehicle_Required_Location;
|
|
32
32
|
employee_id_passport: string | null;
|
|
33
33
|
contact_number: string;
|
|
34
|
+
driver_name: string | null;
|
|
35
|
+
vehicle_number: string | null;
|
|
36
|
+
fuel_card: string | null;
|
|
37
|
+
expected_vehicle_return_time: string | null;
|
|
38
|
+
expected_return_date: Date | null;
|
|
39
|
+
actual_vehicle_return_time: string | null;
|
|
40
|
+
actual_return_date: Date | null;
|
|
41
|
+
vehicle_condition: string | null;
|
|
42
|
+
reason: string | null;
|
|
34
43
|
request_type: Foreign_Request_Type;
|
|
35
44
|
origin_city: string | null;
|
|
36
45
|
destination_city: string;
|
|
@@ -38,5 +47,5 @@ export declare class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
38
47
|
special_instructions: string | null;
|
|
39
48
|
status: Foreign_Request_Status;
|
|
40
49
|
workflow_execution_id: string | null;
|
|
41
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, number_of_passengers: number, purpose_of_travel: string, vehicle_required_location: Foreign_Vehicle_Required_Location, contact_number: string, request_type: Foreign_Request_Type, destination_city: string, arrival_departure_datetime: Date, status: Foreign_Request_Status, employee_id_passport?: string | null, origin_city?: string | null, special_instructions?: string | null, workflow_execution_id?: string | null);
|
|
50
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, number_of_passengers: number, purpose_of_travel: string, vehicle_required_location: Foreign_Vehicle_Required_Location, contact_number: string, request_type: Foreign_Request_Type, destination_city: string, arrival_departure_datetime: Date, status: Foreign_Request_Status, employee_id_passport?: string | null, origin_city?: string | null, special_instructions?: string | null, workflow_execution_id?: string | null, driver_name?: string | null, vehicle_number?: string | null, fuel_card?: string | null, expected_vehicle_return_time?: string | null, expected_return_date?: Date | null, actual_vehicle_return_time?: string | null, actual_return_date?: Date | null, vehicle_condition?: string | null, reason?: string | null);
|
|
42
51
|
}
|
|
@@ -38,7 +38,7 @@ var Foreign_Request_Status;
|
|
|
38
38
|
Foreign_Request_Status["REJECTED"] = "Rejected";
|
|
39
39
|
})(Foreign_Request_Status || (exports.Foreign_Request_Status = Foreign_Request_Status = {}));
|
|
40
40
|
let LogisticsForeignVehicleRequests = class LogisticsForeignVehicleRequests extends BaseModel_1.BaseModel {
|
|
41
|
-
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, number_of_passengers, purpose_of_travel, vehicle_required_location, contact_number, request_type, destination_city, arrival_departure_datetime, status, employee_id_passport, origin_city, special_instructions, workflow_execution_id) {
|
|
41
|
+
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, number_of_passengers, purpose_of_travel, vehicle_required_location, contact_number, request_type, destination_city, arrival_departure_datetime, status, employee_id_passport, origin_city, special_instructions, workflow_execution_id, driver_name, vehicle_number, fuel_card, expected_vehicle_return_time, expected_return_date, actual_vehicle_return_time, actual_return_date, vehicle_condition, reason) {
|
|
42
42
|
super();
|
|
43
43
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
44
44
|
this.req_user_section_id = req_user_section_id ?? null;
|
|
@@ -51,9 +51,18 @@ let LogisticsForeignVehicleRequests = class LogisticsForeignVehicleRequests exte
|
|
|
51
51
|
this.employee_id_passport = employee_id_passport ?? null;
|
|
52
52
|
this.contact_number = contact_number;
|
|
53
53
|
this.request_type = request_type;
|
|
54
|
+
this.vehicle_number = vehicle_number ?? null;
|
|
55
|
+
this.fuel_card = fuel_card ?? null;
|
|
56
|
+
this.expected_vehicle_return_time = expected_vehicle_return_time ?? null;
|
|
57
|
+
this.expected_return_date = expected_return_date ?? null;
|
|
58
|
+
this.actual_vehicle_return_time = actual_vehicle_return_time ?? null;
|
|
59
|
+
this.actual_return_date = actual_return_date ?? null;
|
|
60
|
+
this.vehicle_condition = vehicle_condition ?? null;
|
|
61
|
+
this.reason = reason ?? null;
|
|
54
62
|
this.origin_city = origin_city ?? null;
|
|
55
63
|
this.destination_city = destination_city;
|
|
56
64
|
this.arrival_departure_datetime = arrival_departure_datetime;
|
|
65
|
+
this.driver_name = driver_name ?? null;
|
|
57
66
|
this.special_instructions = special_instructions ?? null;
|
|
58
67
|
this.status = status;
|
|
59
68
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
@@ -110,6 +119,42 @@ __decorate([
|
|
|
110
119
|
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
111
120
|
__metadata("design:type", String)
|
|
112
121
|
], LogisticsForeignVehicleRequests.prototype, "contact_number", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], LogisticsForeignVehicleRequests.prototype, "driver_name", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], LogisticsForeignVehicleRequests.prototype, "vehicle_number", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], LogisticsForeignVehicleRequests.prototype, "fuel_card", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], LogisticsForeignVehicleRequests.prototype, "expected_vehicle_return_time", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], LogisticsForeignVehicleRequests.prototype, "expected_return_date", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], LogisticsForeignVehicleRequests.prototype, "actual_vehicle_return_time", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], LogisticsForeignVehicleRequests.prototype, "actual_return_date", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], LogisticsForeignVehicleRequests.prototype, "vehicle_condition", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], LogisticsForeignVehicleRequests.prototype, "reason", void 0);
|
|
113
158
|
__decorate([
|
|
114
159
|
(0, typeorm_1.Column)({
|
|
115
160
|
type: "enum",
|
|
@@ -150,5 +195,5 @@ __decorate([
|
|
|
150
195
|
], LogisticsForeignVehicleRequests.prototype, "workflow_execution_id", void 0);
|
|
151
196
|
exports.LogisticsForeignVehicleRequests = LogisticsForeignVehicleRequests = __decorate([
|
|
152
197
|
(0, typeorm_1.Entity)({ name: 'logistics_foreign_vehicle_requests' }),
|
|
153
|
-
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, Number, String, String, String, String, String, Date, String, Object, Object, Object, Object])
|
|
198
|
+
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, Number, String, String, String, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
154
199
|
], LogisticsForeignVehicleRequests);
|
|
@@ -26,6 +26,8 @@ export declare enum Purpose_of_Travel {
|
|
|
26
26
|
OTHER = "Other"
|
|
27
27
|
}
|
|
28
28
|
export declare enum Type_of_Vehicle {
|
|
29
|
+
LIGHT = "Light vehicle",
|
|
30
|
+
HEAVY = "Heavy vehicle",
|
|
29
31
|
SEDAN = "Sedan",
|
|
30
32
|
SUV = "SUV"
|
|
31
33
|
}
|
|
@@ -48,10 +50,17 @@ export declare class LogisticsRequests extends BaseModel {
|
|
|
48
50
|
type_of_request: Type_of_Request;
|
|
49
51
|
date_of_travel: Date;
|
|
50
52
|
time_of_travel: string;
|
|
51
|
-
exp_duration_of_use_hrs: number;
|
|
52
|
-
exp_duration_of_use_days: number;
|
|
53
53
|
description: string;
|
|
54
54
|
status: Status;
|
|
55
55
|
workflow_execution_id: string | null;
|
|
56
|
-
|
|
56
|
+
vehicle_number: string | null;
|
|
57
|
+
fuel_card: string | null;
|
|
58
|
+
expected_vehicle_return_time: string | null;
|
|
59
|
+
expected_return_date: Date | null;
|
|
60
|
+
actual_vehicle_return_time: string | null;
|
|
61
|
+
actual_return_date: Date | null;
|
|
62
|
+
vehicle_condition: string | null;
|
|
63
|
+
reason: string | null;
|
|
64
|
+
driver_name: string | null;
|
|
65
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, category: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, type_of_request: Type_of_Request, date_of_travel: Date, time_of_travel: string, description: string, status: Status, workflow_execution_id?: string | null, vehicle_number?: string | null, fuel_card?: string | null, expected_vehicle_return_time?: string | null, expected_return_date?: Date | null, actual_vehicle_return_time?: string | null, actual_return_date?: Date | null, vehicle_condition?: string | null, reason?: string | null, driver_name?: string | null);
|
|
57
66
|
}
|
|
@@ -45,6 +45,8 @@ var Purpose_of_Travel;
|
|
|
45
45
|
})(Purpose_of_Travel || (exports.Purpose_of_Travel = Purpose_of_Travel = {}));
|
|
46
46
|
var Type_of_Vehicle;
|
|
47
47
|
(function (Type_of_Vehicle) {
|
|
48
|
+
Type_of_Vehicle["LIGHT"] = "Light vehicle";
|
|
49
|
+
Type_of_Vehicle["HEAVY"] = "Heavy vehicle";
|
|
48
50
|
Type_of_Vehicle["SEDAN"] = "Sedan";
|
|
49
51
|
Type_of_Vehicle["SUV"] = "SUV";
|
|
50
52
|
})(Type_of_Vehicle || (exports.Type_of_Vehicle = Type_of_Vehicle = {}));
|
|
@@ -54,7 +56,10 @@ var Type_of_Request;
|
|
|
54
56
|
Type_of_Request["EXTENSION"] = "Extension of Previous Request";
|
|
55
57
|
})(Type_of_Request || (exports.Type_of_Request = Type_of_Request = {}));
|
|
56
58
|
let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
|
|
57
|
-
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, category, vehicle_required_for, vehicle_required_location, title, purpose_of_travel, type_of_vehicle_required, type_of_request, date_of_travel, time_of_travel,
|
|
59
|
+
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, category, vehicle_required_for, vehicle_required_location, title, purpose_of_travel, type_of_vehicle_required, type_of_request, date_of_travel, time_of_travel,
|
|
60
|
+
// exp_duration_of_use_hrs: number,
|
|
61
|
+
// exp_duration_of_use_days: number,
|
|
62
|
+
description, status, workflow_execution_id, vehicle_number, fuel_card, expected_vehicle_return_time, expected_return_date, actual_vehicle_return_time, actual_return_date, vehicle_condition, reason, driver_name) {
|
|
58
63
|
super();
|
|
59
64
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
60
65
|
this.req_user_section_id = req_user_section_id ?? null;
|
|
@@ -70,11 +75,20 @@ let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
|
|
|
70
75
|
this.type_of_request = type_of_request;
|
|
71
76
|
this.date_of_travel = date_of_travel;
|
|
72
77
|
this.time_of_travel = time_of_travel;
|
|
73
|
-
this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
|
|
74
|
-
this.exp_duration_of_use_days = exp_duration_of_use_days;
|
|
78
|
+
// this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
|
|
79
|
+
// this.exp_duration_of_use_days = exp_duration_of_use_days;
|
|
75
80
|
this.description = description;
|
|
76
81
|
this.status = status;
|
|
77
82
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
83
|
+
this.vehicle_number = vehicle_number ?? null;
|
|
84
|
+
this.fuel_card = fuel_card ?? null;
|
|
85
|
+
this.expected_vehicle_return_time = expected_vehicle_return_time ?? null;
|
|
86
|
+
this.expected_return_date = expected_return_date ?? null;
|
|
87
|
+
this.actual_vehicle_return_time = actual_vehicle_return_time ?? null;
|
|
88
|
+
this.actual_return_date = actual_return_date ?? null;
|
|
89
|
+
this.vehicle_condition = vehicle_condition ?? null;
|
|
90
|
+
this.reason = reason ?? null;
|
|
91
|
+
this.driver_name = driver_name ?? null;
|
|
78
92
|
}
|
|
79
93
|
};
|
|
80
94
|
exports.LogisticsRequests = LogisticsRequests;
|
|
@@ -142,7 +156,7 @@ __decorate([
|
|
|
142
156
|
(0, typeorm_1.Column)({
|
|
143
157
|
type: "enum",
|
|
144
158
|
enum: Type_of_Vehicle,
|
|
145
|
-
default: Type_of_Vehicle.
|
|
159
|
+
default: Type_of_Vehicle.LIGHT,
|
|
146
160
|
nullable: false,
|
|
147
161
|
}),
|
|
148
162
|
__metadata("design:type", String)
|
|
@@ -164,14 +178,6 @@ __decorate([
|
|
|
164
178
|
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
165
179
|
__metadata("design:type", String)
|
|
166
180
|
], LogisticsRequests.prototype, "time_of_travel", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
169
|
-
__metadata("design:type", Number)
|
|
170
|
-
], LogisticsRequests.prototype, "exp_duration_of_use_hrs", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
173
|
-
__metadata("design:type", Number)
|
|
174
|
-
], LogisticsRequests.prototype, "exp_duration_of_use_days", void 0);
|
|
175
181
|
__decorate([
|
|
176
182
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
177
183
|
__metadata("design:type", String)
|
|
@@ -189,7 +195,43 @@ __decorate([
|
|
|
189
195
|
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
190
196
|
__metadata("design:type", Object)
|
|
191
197
|
], LogisticsRequests.prototype, "workflow_execution_id", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
200
|
+
__metadata("design:type", Object)
|
|
201
|
+
], LogisticsRequests.prototype, "vehicle_number", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], LogisticsRequests.prototype, "fuel_card", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
208
|
+
__metadata("design:type", Object)
|
|
209
|
+
], LogisticsRequests.prototype, "expected_vehicle_return_time", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], LogisticsRequests.prototype, "expected_return_date", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
216
|
+
__metadata("design:type", Object)
|
|
217
|
+
], LogisticsRequests.prototype, "actual_vehicle_return_time", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
220
|
+
__metadata("design:type", Object)
|
|
221
|
+
], LogisticsRequests.prototype, "actual_return_date", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
224
|
+
__metadata("design:type", Object)
|
|
225
|
+
], LogisticsRequests.prototype, "vehicle_condition", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
228
|
+
__metadata("design:type", Object)
|
|
229
|
+
], LogisticsRequests.prototype, "reason", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
232
|
+
__metadata("design:type", Object)
|
|
233
|
+
], LogisticsRequests.prototype, "driver_name", void 0);
|
|
192
234
|
exports.LogisticsRequests = LogisticsRequests = __decorate([
|
|
193
235
|
(0, typeorm_1.Entity)({ name: 'logistics_requests' }),
|
|
194
|
-
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Date, String,
|
|
236
|
+
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Date, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
195
237
|
], LogisticsRequests);
|
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';
|
|
@@ -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,
|
|
@@ -69,6 +69,33 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
69
69
|
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
70
70
|
contact_number: string;
|
|
71
71
|
|
|
72
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
73
|
+
driver_name: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
76
|
+
vehicle_number: string | null;
|
|
77
|
+
|
|
78
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
79
|
+
fuel_card: string | null;
|
|
80
|
+
|
|
81
|
+
@Column({ type: 'time', nullable: true })
|
|
82
|
+
expected_vehicle_return_time: string | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: 'date', nullable: true })
|
|
85
|
+
expected_return_date: Date | null;
|
|
86
|
+
|
|
87
|
+
@Column({ type: 'time', nullable: true })
|
|
88
|
+
actual_vehicle_return_time: string | null;
|
|
89
|
+
|
|
90
|
+
@Column({ type: 'date', nullable: true })
|
|
91
|
+
actual_return_date: Date | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
94
|
+
vehicle_condition: string | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
97
|
+
reason: string | null;
|
|
98
|
+
|
|
72
99
|
@Column({
|
|
73
100
|
type: "enum",
|
|
74
101
|
enum: Foreign_Request_Type,
|
|
@@ -118,6 +145,15 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
118
145
|
origin_city?: string | null,
|
|
119
146
|
special_instructions?: string | null,
|
|
120
147
|
workflow_execution_id?: string | null,
|
|
148
|
+
driver_name?: string | null,
|
|
149
|
+
vehicle_number?: string | null,
|
|
150
|
+
fuel_card?: string | null,
|
|
151
|
+
expected_vehicle_return_time?: string | null,
|
|
152
|
+
expected_return_date?: Date | null,
|
|
153
|
+
actual_vehicle_return_time?: string | null,
|
|
154
|
+
actual_return_date?: Date | null,
|
|
155
|
+
vehicle_condition?: string | null,
|
|
156
|
+
reason?: string | null,
|
|
121
157
|
) {
|
|
122
158
|
super();
|
|
123
159
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
@@ -131,9 +167,18 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
131
167
|
this.employee_id_passport = employee_id_passport ?? null;
|
|
132
168
|
this.contact_number = contact_number;
|
|
133
169
|
this.request_type = request_type;
|
|
170
|
+
this.vehicle_number = vehicle_number ?? null;
|
|
171
|
+
this.fuel_card = fuel_card ?? null;
|
|
172
|
+
this.expected_vehicle_return_time = expected_vehicle_return_time ?? null;
|
|
173
|
+
this.expected_return_date = expected_return_date ?? null;
|
|
174
|
+
this.actual_vehicle_return_time = actual_vehicle_return_time ?? null;
|
|
175
|
+
this.actual_return_date = actual_return_date ?? null;
|
|
176
|
+
this.vehicle_condition = vehicle_condition ?? null;
|
|
177
|
+
this.reason = reason ?? null;
|
|
134
178
|
this.origin_city = origin_city ?? null;
|
|
135
179
|
this.destination_city = destination_city;
|
|
136
180
|
this.arrival_departure_datetime = arrival_departure_datetime;
|
|
181
|
+
this.driver_name = driver_name ?? null;
|
|
137
182
|
this.special_instructions = special_instructions ?? null;
|
|
138
183
|
this.status = status;
|
|
139
184
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
@@ -33,6 +33,8 @@ export enum Purpose_of_Travel {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export enum Type_of_Vehicle {
|
|
36
|
+
LIGHT = "Light vehicle",
|
|
37
|
+
HEAVY = "Heavy vehicle",
|
|
36
38
|
SEDAN = "Sedan",
|
|
37
39
|
SUV = "SUV"
|
|
38
40
|
}
|
|
@@ -98,7 +100,7 @@ export class LogisticsRequests extends BaseModel {
|
|
|
98
100
|
@Column({
|
|
99
101
|
type: "enum",
|
|
100
102
|
enum: Type_of_Vehicle,
|
|
101
|
-
default: Type_of_Vehicle.
|
|
103
|
+
default: Type_of_Vehicle.LIGHT,
|
|
102
104
|
nullable: false,
|
|
103
105
|
})
|
|
104
106
|
type_of_vehicle_required: Type_of_Vehicle;
|
|
@@ -117,11 +119,11 @@ export class LogisticsRequests extends BaseModel {
|
|
|
117
119
|
@Column({ type: "time", nullable: true })
|
|
118
120
|
time_of_travel: string;
|
|
119
121
|
|
|
120
|
-
@Column({ type: 'int', nullable: false })
|
|
121
|
-
exp_duration_of_use_hrs: number;
|
|
122
|
+
// @Column({ type: 'int', nullable: false })
|
|
123
|
+
// exp_duration_of_use_hrs: number;
|
|
122
124
|
|
|
123
|
-
@Column({ type: 'int', nullable: false })
|
|
124
|
-
exp_duration_of_use_days: number;
|
|
125
|
+
// @Column({ type: 'int', nullable: false })
|
|
126
|
+
// exp_duration_of_use_days: number;
|
|
125
127
|
|
|
126
128
|
@Column({ nullable: false })
|
|
127
129
|
description: string;
|
|
@@ -137,6 +139,33 @@ export class LogisticsRequests extends BaseModel {
|
|
|
137
139
|
@Column({ type: "varchar", nullable: true })
|
|
138
140
|
workflow_execution_id: string | null;
|
|
139
141
|
|
|
142
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
143
|
+
vehicle_number: string | null;
|
|
144
|
+
|
|
145
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
146
|
+
fuel_card: string | null;
|
|
147
|
+
|
|
148
|
+
@Column({ type: 'time', nullable: true })
|
|
149
|
+
expected_vehicle_return_time: string | null;
|
|
150
|
+
|
|
151
|
+
@Column({ type: 'date', nullable: true })
|
|
152
|
+
expected_return_date: Date | null;
|
|
153
|
+
|
|
154
|
+
@Column({ type: 'time', nullable: true })
|
|
155
|
+
actual_vehicle_return_time: string | null;
|
|
156
|
+
|
|
157
|
+
@Column({ type: 'date', nullable: true })
|
|
158
|
+
actual_return_date: Date | null;
|
|
159
|
+
|
|
160
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
161
|
+
vehicle_condition: string | null;
|
|
162
|
+
|
|
163
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
164
|
+
reason: string | null;
|
|
165
|
+
|
|
166
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
167
|
+
driver_name: string | null;
|
|
168
|
+
|
|
140
169
|
constructor(
|
|
141
170
|
req_user_department_id: number | null,
|
|
142
171
|
req_user_section_id: number | null,
|
|
@@ -152,11 +181,20 @@ export class LogisticsRequests extends BaseModel {
|
|
|
152
181
|
type_of_request: Type_of_Request,
|
|
153
182
|
date_of_travel: Date,
|
|
154
183
|
time_of_travel: string,
|
|
155
|
-
exp_duration_of_use_hrs: number,
|
|
156
|
-
exp_duration_of_use_days: number,
|
|
184
|
+
// exp_duration_of_use_hrs: number,
|
|
185
|
+
// exp_duration_of_use_days: number,
|
|
157
186
|
description: string,
|
|
158
187
|
status: Status,
|
|
159
188
|
workflow_execution_id?: string | null,
|
|
189
|
+
vehicle_number?: string | null,
|
|
190
|
+
fuel_card?: string | null,
|
|
191
|
+
expected_vehicle_return_time?: string | null,
|
|
192
|
+
expected_return_date?: Date | null,
|
|
193
|
+
actual_vehicle_return_time?: string | null,
|
|
194
|
+
actual_return_date?: Date | null,
|
|
195
|
+
vehicle_condition?: string | null,
|
|
196
|
+
reason?: string | null,
|
|
197
|
+
driver_name?: string | null,
|
|
160
198
|
) {
|
|
161
199
|
super();
|
|
162
200
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
@@ -173,10 +211,19 @@ export class LogisticsRequests extends BaseModel {
|
|
|
173
211
|
this.type_of_request = type_of_request;
|
|
174
212
|
this.date_of_travel = date_of_travel;
|
|
175
213
|
this.time_of_travel = time_of_travel;
|
|
176
|
-
this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
|
|
177
|
-
this.exp_duration_of_use_days = exp_duration_of_use_days;
|
|
214
|
+
// this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
|
|
215
|
+
// this.exp_duration_of_use_days = exp_duration_of_use_days;
|
|
178
216
|
this.description = description;
|
|
179
217
|
this.status = status;
|
|
180
218
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
219
|
+
this.vehicle_number = vehicle_number ?? null;
|
|
220
|
+
this.fuel_card = fuel_card ?? null;
|
|
221
|
+
this.expected_vehicle_return_time = expected_vehicle_return_time ?? null;
|
|
222
|
+
this.expected_return_date = expected_return_date ?? null;
|
|
223
|
+
this.actual_vehicle_return_time = actual_vehicle_return_time ?? null;
|
|
224
|
+
this.actual_return_date = actual_return_date ?? null;
|
|
225
|
+
this.vehicle_condition = vehicle_condition ?? null;
|
|
226
|
+
this.reason = reason ?? null;
|
|
227
|
+
this.driver_name = driver_name ?? null;
|
|
181
228
|
}
|
|
182
229
|
}
|