@platform-modules/civil-aviation-authority 2.3.57 → 2.3.58
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 +4 -1
- package/dist/models/AirportEntryPermitModel.d.ts +11 -25
- package/dist/models/AirportEntryPermitModel.js +13 -26
- package/dist/models/CashAllowanceLeaveRequestModel.d.ts +33 -0
- package/dist/models/CashAllowanceLeaveRequestModel.js +138 -0
- package/dist/models/HotelreservationModel.d.ts +1 -2
- package/dist/models/HotelreservationModel.js +3 -8
- package/dist/models/PromotionRequestModel.d.ts +32 -0
- package/dist/models/PromotionRequestModel.js +133 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +6 -1
- package/src/models/AirportEntryPermitModel.ts +247 -261
- package/src/models/CashAllowanceLeaveRequestModel.ts +125 -0
- package/src/models/HotelreservationModel.ts +1 -6
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/PromotionRequestModel.ts +120 -0
- package/dist/models/HotelreservationModal.d.ts +0 -30
- package/dist/models/HotelreservationModal.js +0 -119
package/dist/data-source.js
CHANGED
|
@@ -124,6 +124,7 @@ const RequestForCoverageWorkflowModel_1 = require("./models/RequestForCoverageWo
|
|
|
124
124
|
const RequestForCoverageApprovalModel_1 = require("./models/RequestForCoverageApprovalModel");
|
|
125
125
|
const RequestForCoverageChatModel_1 = require("./models/RequestForCoverageChatModel");
|
|
126
126
|
const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverageAttachmentModel");
|
|
127
|
+
const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
127
128
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
128
129
|
type: 'postgres',
|
|
129
130
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -251,6 +252,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
251
252
|
AssignTasksEmpApprovalModel_1.AssignTasksEmpApprovalDetails,
|
|
252
253
|
AssignTasksEmpWorkflowModel_1.AssignTasksEmpWorkFlow,
|
|
253
254
|
AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
|
|
254
|
-
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat
|
|
255
|
+
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat,
|
|
256
|
+
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest
|
|
255
257
|
],
|
|
256
258
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -195,3 +195,5 @@ export { ServicesNotificationTriggerType } from './models/ServicesNotificationCo
|
|
|
195
195
|
export * from './models/TrainingRoomNotificationConfigModel';
|
|
196
196
|
export { NotificationFrequency } from './models/TrainingRoomNotificationConfigModel';
|
|
197
197
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
198
|
+
export * from './models/CashAllowanceLeaveRequestModel';
|
|
199
|
+
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel';
|
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.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.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);
|
|
@@ -293,3 +293,6 @@ var TrainingRoomNotificationConfigModel_1 = require("./models/TrainingRoomNotifi
|
|
|
293
293
|
Object.defineProperty(exports, "NotificationFrequency", { enumerable: true, get: function () { return TrainingRoomNotificationConfigModel_1.NotificationFrequency; } });
|
|
294
294
|
// Mission Travel Passport Expiry Notification Configuration
|
|
295
295
|
__exportStar(require("./models/MissionTravelPassportExpiryNotificationConfigModel"), exports);
|
|
296
|
+
__exportStar(require("./models/CashAllowanceLeaveRequestModel"), exports);
|
|
297
|
+
var CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
298
|
+
Object.defineProperty(exports, "CashAllowanceLeaveRequestStatus", { enumerable: true, get: function () { return CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequestStatus; } });
|
|
@@ -20,17 +20,15 @@ export declare enum AirportEntryPermitLocation {
|
|
|
20
20
|
MUKHAZINA = "Mukhazina"
|
|
21
21
|
}
|
|
22
22
|
export declare enum AirportEntryPermitArea {
|
|
23
|
-
PURPLE = "VIP
|
|
24
|
-
HEAVENLY = "Cargo Building
|
|
25
|
-
ORANGE = "Arrivals Hall
|
|
26
|
-
GREEN = "
|
|
27
|
-
YELLOW = "Information
|
|
28
|
-
BLUE = "Aircraft
|
|
29
|
-
PINK = "Baggage
|
|
30
|
-
GRAY = "
|
|
31
|
-
|
|
32
|
-
GOLD = "Gold Building",
|
|
33
|
-
RED = "All Civil Airports"
|
|
23
|
+
PURPLE = "VIP building",
|
|
24
|
+
HEAVENLY = "Cargo Building with import and export sections",
|
|
25
|
+
ORANGE = "[ Arrivals Hall] and Arrivals building",
|
|
26
|
+
GREEN = "[departures Hall ] and departures building",
|
|
27
|
+
YELLOW = "Information centre and control tower building",
|
|
28
|
+
BLUE = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop",
|
|
29
|
+
PINK = "Baggage sorting area",
|
|
30
|
+
GRAY = "Supply building",
|
|
31
|
+
ALL_CIVIL_AIRPORTS = "All Civil Airports"
|
|
34
32
|
}
|
|
35
33
|
export declare enum AirportEntryPermitStatus {
|
|
36
34
|
PENDING = "Pending",
|
|
@@ -43,11 +41,6 @@ export declare enum VisitorOption {
|
|
|
43
41
|
VISA_NO = "Visa No",
|
|
44
42
|
DATE_EXPIRY_VISA = "Date Expiry Visa"
|
|
45
43
|
}
|
|
46
|
-
export declare enum AdditionalServices {
|
|
47
|
-
LAPTOP_TABLET = "Laptop / Tablet",
|
|
48
|
-
BOARDING_THE_AIRCRAFT = "Boarding the Aircraft",
|
|
49
|
-
EMPLOYEE_ASSISTING_PEOPLE_WITH_SPECIAL_NEEDS = "Employee Assisting People with Special Needs"
|
|
50
|
-
}
|
|
51
44
|
export declare class AirportEntryPermit extends BaseModel {
|
|
52
45
|
req_user_department_id: number | null;
|
|
53
46
|
req_user_section_id: number | null;
|
|
@@ -70,15 +63,11 @@ export declare class AirportEntryPermit extends BaseModel {
|
|
|
70
63
|
type_of_permit: AirportEntryPermitType;
|
|
71
64
|
temporary_start_time: Date | null;
|
|
72
65
|
temporary_duration: string | null;
|
|
73
|
-
permission_to_required_areas:
|
|
74
|
-
permit: string;
|
|
75
|
-
text: string;
|
|
76
|
-
}>;
|
|
66
|
+
permission_to_required_areas: AirportEntryPermitArea[];
|
|
77
67
|
attachment_url: string | null;
|
|
78
68
|
details: string;
|
|
79
69
|
occupation_staff: string;
|
|
80
70
|
for_visitor: VisitorOption[] | null;
|
|
81
|
-
additional_services: AdditionalServices[] | null;
|
|
82
71
|
acknowledge_security_policies: boolean;
|
|
83
72
|
acknowledge_disciplinary_action: boolean;
|
|
84
73
|
consent_approve_to_issue_permit: boolean;
|
|
@@ -86,8 +75,5 @@ export declare class AirportEntryPermit extends BaseModel {
|
|
|
86
75
|
consent_justification: string | null;
|
|
87
76
|
requested_by: string;
|
|
88
77
|
expiration_date: Date | null;
|
|
89
|
-
constructor(name_full_family_name: string, nationality: string, dob: Date, place: string, passport_id_card_no: string, category_of_permit: AirportEntryPermitCategory, date_of_submission: Date, phone_number: string, location: AirportEntryPermitLocation, type_of_permit: AirportEntryPermitType, permission_to_required_areas:
|
|
90
|
-
permit: string;
|
|
91
|
-
text: string;
|
|
92
|
-
}>, details: string, occupation_staff: string, requested_by: string, user_id: number, status?: AirportEntryPermitStatus, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null, temporary_start_time?: Date | null, temporary_duration?: string | null, for_visitor?: VisitorOption[] | null, additional_services?: AdditionalServices[] | null, acknowledge_security_policies?: boolean, acknowledge_disciplinary_action?: boolean, consent_approve_to_issue_permit?: boolean, consent_do_not_approve_to_issue_permit?: boolean, consent_justification?: string | null, request_id?: string | null, expiration_date?: Date | null);
|
|
78
|
+
constructor(name_full_family_name: string, nationality: string, dob: Date, place: string, passport_id_card_no: string, category_of_permit: AirportEntryPermitCategory, date_of_submission: Date, phone_number: string, location: AirportEntryPermitLocation, type_of_permit: AirportEntryPermitType, permission_to_required_areas: AirportEntryPermitArea[], details: string, occupation_staff: string, requested_by: string, user_id: number, status?: AirportEntryPermitStatus, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null, temporary_start_time?: Date | null, temporary_duration?: string | null, for_visitor?: VisitorOption[] | null, acknowledge_security_policies?: boolean, acknowledge_disciplinary_action?: boolean, consent_approve_to_issue_permit?: boolean, consent_do_not_approve_to_issue_permit?: boolean, consent_justification?: string | null, request_id?: string | null, expiration_date?: Date | null);
|
|
93
79
|
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AirportEntryPermit = exports.
|
|
12
|
+
exports.AirportEntryPermit = exports.VisitorOption = exports.AirportEntryPermitStatus = exports.AirportEntryPermitArea = exports.AirportEntryPermitLocation = exports.AirportEntryPermitType = exports.AirportEntryPermitCategory = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var AirportEntryPermitCategory;
|
|
@@ -37,17 +37,15 @@ var AirportEntryPermitLocation;
|
|
|
37
37
|
})(AirportEntryPermitLocation || (exports.AirportEntryPermitLocation = AirportEntryPermitLocation = {}));
|
|
38
38
|
var AirportEntryPermitArea;
|
|
39
39
|
(function (AirportEntryPermitArea) {
|
|
40
|
-
AirportEntryPermitArea["PURPLE"] = "VIP
|
|
41
|
-
AirportEntryPermitArea["HEAVENLY"] = "Cargo Building
|
|
42
|
-
AirportEntryPermitArea["ORANGE"] = "Arrivals Hall
|
|
43
|
-
AirportEntryPermitArea["GREEN"] = "
|
|
44
|
-
AirportEntryPermitArea["YELLOW"] = "Information
|
|
45
|
-
AirportEntryPermitArea["BLUE"] = "Aircraft
|
|
46
|
-
AirportEntryPermitArea["PINK"] = "Baggage
|
|
47
|
-
AirportEntryPermitArea["GRAY"] = "
|
|
48
|
-
AirportEntryPermitArea["
|
|
49
|
-
AirportEntryPermitArea["GOLD"] = "Gold Building";
|
|
50
|
-
AirportEntryPermitArea["RED"] = "All Civil Airports";
|
|
40
|
+
AirportEntryPermitArea["PURPLE"] = "VIP building";
|
|
41
|
+
AirportEntryPermitArea["HEAVENLY"] = "Cargo Building with import and export sections";
|
|
42
|
+
AirportEntryPermitArea["ORANGE"] = "[ Arrivals Hall] and Arrivals building";
|
|
43
|
+
AirportEntryPermitArea["GREEN"] = "[departures Hall ] and departures building";
|
|
44
|
+
AirportEntryPermitArea["YELLOW"] = "Information centre and control tower building";
|
|
45
|
+
AirportEntryPermitArea["BLUE"] = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop";
|
|
46
|
+
AirportEntryPermitArea["PINK"] = "Baggage sorting area";
|
|
47
|
+
AirportEntryPermitArea["GRAY"] = "Supply building";
|
|
48
|
+
AirportEntryPermitArea["ALL_CIVIL_AIRPORTS"] = "All Civil Airports";
|
|
51
49
|
})(AirportEntryPermitArea || (exports.AirportEntryPermitArea = AirportEntryPermitArea = {}));
|
|
52
50
|
var AirportEntryPermitStatus;
|
|
53
51
|
(function (AirportEntryPermitStatus) {
|
|
@@ -62,14 +60,8 @@ var VisitorOption;
|
|
|
62
60
|
VisitorOption["VISA_NO"] = "Visa No";
|
|
63
61
|
VisitorOption["DATE_EXPIRY_VISA"] = "Date Expiry Visa";
|
|
64
62
|
})(VisitorOption || (exports.VisitorOption = VisitorOption = {}));
|
|
65
|
-
var AdditionalServices;
|
|
66
|
-
(function (AdditionalServices) {
|
|
67
|
-
AdditionalServices["LAPTOP_TABLET"] = "Laptop / Tablet";
|
|
68
|
-
AdditionalServices["BOARDING_THE_AIRCRAFT"] = "Boarding the Aircraft";
|
|
69
|
-
AdditionalServices["EMPLOYEE_ASSISTING_PEOPLE_WITH_SPECIAL_NEEDS"] = "Employee Assisting People with Special Needs";
|
|
70
|
-
})(AdditionalServices || (exports.AdditionalServices = AdditionalServices = {}));
|
|
71
63
|
let AirportEntryPermit = class AirportEntryPermit extends BaseModel_1.BaseModel {
|
|
72
|
-
constructor(name_full_family_name, nationality, dob, place, passport_id_card_no, category_of_permit, date_of_submission, phone_number, location, type_of_permit, permission_to_required_areas, details, occupation_staff, requested_by, user_id, status = AirportEntryPermitStatus.PENDING, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url, temporary_start_time, temporary_duration, for_visitor,
|
|
64
|
+
constructor(name_full_family_name, nationality, dob, place, passport_id_card_no, category_of_permit, date_of_submission, phone_number, location, type_of_permit, permission_to_required_areas, details, occupation_staff, requested_by, user_id, status = AirportEntryPermitStatus.PENDING, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url, temporary_start_time, temporary_duration, for_visitor, acknowledge_security_policies = false, acknowledge_disciplinary_action = false, consent_approve_to_issue_permit = false, consent_do_not_approve_to_issue_permit = false, consent_justification, request_id, expiration_date) {
|
|
73
65
|
super();
|
|
74
66
|
this.name_full_family_name = name_full_family_name;
|
|
75
67
|
this.nationality = nationality;
|
|
@@ -97,7 +89,6 @@ let AirportEntryPermit = class AirportEntryPermit extends BaseModel_1.BaseModel
|
|
|
97
89
|
this.temporary_start_time = temporary_start_time ?? null;
|
|
98
90
|
this.temporary_duration = temporary_duration ?? null;
|
|
99
91
|
this.for_visitor = for_visitor ?? null;
|
|
100
|
-
this.additional_services = additional_services ?? null;
|
|
101
92
|
this.acknowledge_security_policies = acknowledge_security_policies;
|
|
102
93
|
this.acknowledge_disciplinary_action = acknowledge_disciplinary_action;
|
|
103
94
|
this.consent_approve_to_issue_permit = consent_approve_to_issue_permit;
|
|
@@ -210,7 +201,7 @@ __decorate([
|
|
|
210
201
|
__metadata("design:type", Object)
|
|
211
202
|
], AirportEntryPermit.prototype, "temporary_duration", void 0);
|
|
212
203
|
__decorate([
|
|
213
|
-
(0, typeorm_1.Column)({ type: '
|
|
204
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: false }),
|
|
214
205
|
__metadata("design:type", Array)
|
|
215
206
|
], AirportEntryPermit.prototype, "permission_to_required_areas", void 0);
|
|
216
207
|
__decorate([
|
|
@@ -229,10 +220,6 @@ __decorate([
|
|
|
229
220
|
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
230
221
|
__metadata("design:type", Object)
|
|
231
222
|
], AirportEntryPermit.prototype, "for_visitor", void 0);
|
|
232
|
-
__decorate([
|
|
233
|
-
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
234
|
-
__metadata("design:type", Object)
|
|
235
|
-
], AirportEntryPermit.prototype, "additional_services", void 0);
|
|
236
223
|
__decorate([
|
|
237
224
|
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
238
225
|
__metadata("design:type", Boolean)
|
|
@@ -263,5 +250,5 @@ __decorate([
|
|
|
263
250
|
], AirportEntryPermit.prototype, "expiration_date", void 0);
|
|
264
251
|
exports.AirportEntryPermit = AirportEntryPermit = __decorate([
|
|
265
252
|
(0, typeorm_1.Entity)({ name: 'airport_entry_permits' }),
|
|
266
|
-
__metadata("design:paramtypes", [String, String, Date, String, String, String, Date, String, String, String, Array, String, String, String, Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
|
|
253
|
+
__metadata("design:paramtypes", [String, String, Date, String, String, String, Date, String, String, String, Array, String, String, String, Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Boolean, Boolean, Boolean, Boolean, Object, Object, Object])
|
|
267
254
|
], AirportEntryPermit);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum CashAllowanceLeaveRequestStatus {
|
|
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 CashAllowanceLeaveRequest 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: CashAllowanceLeaveRequestStatus;
|
|
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
|
+
job_title: string;
|
|
26
|
+
salary_grade: string;
|
|
27
|
+
remaining_leave_balance: number;
|
|
28
|
+
basic_salary: number;
|
|
29
|
+
total_salary_due: number;
|
|
30
|
+
end_of_service_date: Date | null;
|
|
31
|
+
reason_for_termination: string | null;
|
|
32
|
+
constructor(user_id: number, status?: CashAllowanceLeaveRequestStatus, 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, salary_grade?: string, remaining_leave_balance?: number, basic_salary?: number, total_salary_due?: number, end_of_service_date?: Date | null, reason_for_termination?: string | null);
|
|
33
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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.CashAllowanceLeaveRequest = exports.CashAllowanceLeaveRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var CashAllowanceLeaveRequestStatus;
|
|
16
|
+
(function (CashAllowanceLeaveRequestStatus) {
|
|
17
|
+
CashAllowanceLeaveRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
CashAllowanceLeaveRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
CashAllowanceLeaveRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
CashAllowanceLeaveRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
CashAllowanceLeaveRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
CashAllowanceLeaveRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(CashAllowanceLeaveRequestStatus || (exports.CashAllowanceLeaveRequestStatus = CashAllowanceLeaveRequestStatus = {}));
|
|
24
|
+
let CashAllowanceLeaveRequest = class CashAllowanceLeaveRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(user_id, status = CashAllowanceLeaveRequestStatus.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, salary_grade, remaining_leave_balance, basic_salary, total_salary_due, end_of_service_date, reason_for_termination) {
|
|
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.job_title = job_title || "";
|
|
42
|
+
this.salary_grade = salary_grade || "";
|
|
43
|
+
this.remaining_leave_balance = remaining_leave_balance || 0;
|
|
44
|
+
this.basic_salary = basic_salary || 0;
|
|
45
|
+
this.total_salary_due = total_salary_due || 0;
|
|
46
|
+
this.end_of_service_date = end_of_service_date || null;
|
|
47
|
+
this.reason_for_termination = reason_for_termination || null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.CashAllowanceLeaveRequest = CashAllowanceLeaveRequest;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], CashAllowanceLeaveRequest.prototype, "req_user_department_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], CashAllowanceLeaveRequest.prototype, "req_user_section_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], CashAllowanceLeaveRequest.prototype, "req_user_position_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], CashAllowanceLeaveRequest.prototype, "service_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], CashAllowanceLeaveRequest.prototype, "sub_service_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], CashAllowanceLeaveRequest.prototype, "user_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], CashAllowanceLeaveRequest.prototype, "description", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CashAllowanceLeaveRequestStatus, default: CashAllowanceLeaveRequestStatus.PENDING, nullable: false }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CashAllowanceLeaveRequest.prototype, "status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CashAllowanceLeaveRequest.prototype, "reviewer_user_id", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], CashAllowanceLeaveRequest.prototype, "assigned_to_user_id", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], CashAllowanceLeaveRequest.prototype, "assigned_at", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], CashAllowanceLeaveRequest.prototype, "workflow_execution_id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], CashAllowanceLeaveRequest.prototype, "employee_name", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], CashAllowanceLeaveRequest.prototype, "employee_id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], CashAllowanceLeaveRequest.prototype, "job_title", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], CashAllowanceLeaveRequest.prototype, "salary_grade", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: false }),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], CashAllowanceLeaveRequest.prototype, "remaining_leave_balance", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], CashAllowanceLeaveRequest.prototype, "basic_salary", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
125
|
+
__metadata("design:type", Number)
|
|
126
|
+
], CashAllowanceLeaveRequest.prototype, "total_salary_due", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], CashAllowanceLeaveRequest.prototype, "end_of_service_date", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], CashAllowanceLeaveRequest.prototype, "reason_for_termination", void 0);
|
|
135
|
+
exports.CashAllowanceLeaveRequest = CashAllowanceLeaveRequest = __decorate([
|
|
136
|
+
(0, typeorm_1.Entity)({ name: "cash_allowance_leave_requests" }),
|
|
137
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, Number, Number, Number, Object, Object])
|
|
138
|
+
], CashAllowanceLeaveRequest);
|
|
@@ -41,6 +41,5 @@ export declare class HotelReservation extends BaseModel {
|
|
|
41
41
|
purpose_of_visit: string | null;
|
|
42
42
|
hr_approval: boolean;
|
|
43
43
|
pr_approval: boolean;
|
|
44
|
-
|
|
45
|
-
constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, purpose_of_visit: string | null, user_id: number, status?: HotelReservationStatus, hr_approval?: boolean, pr_approval?: boolean, need_meeting_room?: boolean, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null);
|
|
44
|
+
constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, purpose_of_visit: string | null, user_id: number, status?: HotelReservationStatus, hr_approval?: boolean, pr_approval?: boolean, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null);
|
|
46
45
|
}
|
|
@@ -31,7 +31,7 @@ var HotelReservationStatus;
|
|
|
31
31
|
HotelReservationStatus["IN_PROGRESS"] = "In Progress";
|
|
32
32
|
})(HotelReservationStatus || (exports.HotelReservationStatus = HotelReservationStatus = {}));
|
|
33
33
|
let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
34
|
-
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, booking_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, purpose_of_visit, user_id, status = HotelReservationStatus.PENDING, hr_approval = false, pr_approval = false,
|
|
34
|
+
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, booking_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, purpose_of_visit, user_id, status = HotelReservationStatus.PENDING, hr_approval = false, pr_approval = false, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url) {
|
|
35
35
|
super();
|
|
36
36
|
this.type_of_accommodation = type_of_accommodation;
|
|
37
37
|
this.price = price;
|
|
@@ -51,7 +51,6 @@ let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
|
51
51
|
this.status = status;
|
|
52
52
|
this.hr_approval = hr_approval;
|
|
53
53
|
this.pr_approval = pr_approval;
|
|
54
|
-
this.need_meeting_room = need_meeting_room;
|
|
55
54
|
this.service_id = service_id ?? null;
|
|
56
55
|
this.sub_service_id = sub_service_id ?? null;
|
|
57
56
|
this.service_type = service_type ?? null;
|
|
@@ -101,7 +100,7 @@ __decorate([
|
|
|
101
100
|
__metadata("design:type", Number)
|
|
102
101
|
], HotelReservation.prototype, "user_id", void 0);
|
|
103
102
|
__decorate([
|
|
104
|
-
(0, typeorm_1.Column)({ type: 'varchar', length:
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
|
|
105
104
|
__metadata("design:type", String)
|
|
106
105
|
], HotelReservation.prototype, "type_of_accommodation", void 0);
|
|
107
106
|
__decorate([
|
|
@@ -172,11 +171,7 @@ __decorate([
|
|
|
172
171
|
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
173
172
|
__metadata("design:type", Boolean)
|
|
174
173
|
], HotelReservation.prototype, "pr_approval", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
177
|
-
__metadata("design:type", Boolean)
|
|
178
|
-
], HotelReservation.prototype, "need_meeting_room", void 0);
|
|
179
174
|
exports.HotelReservation = HotelReservation = __decorate([
|
|
180
175
|
(0, typeorm_1.Entity)({ name: 'hotelreservations' }),
|
|
181
|
-
__metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String, Object, Number, String, Boolean, Boolean,
|
|
176
|
+
__metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String, Object, Number, String, Boolean, Boolean, Object, Object, Object, Object, Object, Object, Object])
|
|
182
177
|
], HotelReservation);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum PromotionRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare class PromotionRequest extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
req_user_position_id: number | null;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
user_id: number;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: PromotionRequestStatus;
|
|
19
|
+
reviewer_user_id: number | null;
|
|
20
|
+
assigned_to_user_id: number | null;
|
|
21
|
+
assigned_at: Date | null;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
employee_name: string;
|
|
24
|
+
employee_id: string;
|
|
25
|
+
current_job_title: string;
|
|
26
|
+
proposed_job_title: string;
|
|
27
|
+
current_salary_grade: string;
|
|
28
|
+
proposed_salary_grade: string;
|
|
29
|
+
current_basic_salary: number;
|
|
30
|
+
proposed_basic_salary: number;
|
|
31
|
+
constructor(user_id: number, status?: PromotionRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, current_job_title?: string, proposed_job_title?: string, current_salary_grade?: string, proposed_salary_grade?: string, current_basic_salary?: number, proposed_basic_salary?: number);
|
|
32
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PromotionRequest = exports.PromotionRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var PromotionRequestStatus;
|
|
16
|
+
(function (PromotionRequestStatus) {
|
|
17
|
+
PromotionRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
PromotionRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
PromotionRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
PromotionRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
PromotionRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
PromotionRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(PromotionRequestStatus || (exports.PromotionRequestStatus = PromotionRequestStatus = {}));
|
|
24
|
+
let PromotionRequest = class PromotionRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(user_id, status = PromotionRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, current_job_title, proposed_job_title, current_salary_grade, proposed_salary_grade, current_basic_salary, proposed_basic_salary) {
|
|
26
|
+
super();
|
|
27
|
+
this.user_id = user_id;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.service_id = service_id || null;
|
|
30
|
+
this.sub_service_id = sub_service_id || null;
|
|
31
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
+
this.description = description || null;
|
|
35
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
+
this.assigned_at = assigned_at || null;
|
|
38
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
+
this.employee_name = employee_name || "";
|
|
40
|
+
this.employee_id = employee_id || "";
|
|
41
|
+
this.current_job_title = current_job_title || "";
|
|
42
|
+
this.proposed_job_title = proposed_job_title || "";
|
|
43
|
+
this.current_salary_grade = current_salary_grade || "";
|
|
44
|
+
this.proposed_salary_grade = proposed_salary_grade || "";
|
|
45
|
+
this.current_basic_salary = current_basic_salary || 0;
|
|
46
|
+
this.proposed_basic_salary = proposed_basic_salary || 0;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.PromotionRequest = PromotionRequest;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], PromotionRequest.prototype, "req_user_department_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], PromotionRequest.prototype, "req_user_section_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], PromotionRequest.prototype, "req_user_position_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], PromotionRequest.prototype, "service_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], PromotionRequest.prototype, "sub_service_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], PromotionRequest.prototype, "user_id", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], PromotionRequest.prototype, "description", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "enum", enum: PromotionRequestStatus, default: PromotionRequestStatus.PENDING, nullable: false }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PromotionRequest.prototype, "status", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], PromotionRequest.prototype, "reviewer_user_id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], PromotionRequest.prototype, "assigned_to_user_id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], PromotionRequest.prototype, "assigned_at", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], PromotionRequest.prototype, "workflow_execution_id", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], PromotionRequest.prototype, "employee_name", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], PromotionRequest.prototype, "employee_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], PromotionRequest.prototype, "current_job_title", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], PromotionRequest.prototype, "proposed_job_title", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], PromotionRequest.prototype, "current_salary_grade", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], PromotionRequest.prototype, "proposed_salary_grade", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], PromotionRequest.prototype, "current_basic_salary", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: false }),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], PromotionRequest.prototype, "proposed_basic_salary", void 0);
|
|
130
|
+
exports.PromotionRequest = PromotionRequest = __decorate([
|
|
131
|
+
(0, typeorm_1.Entity)({ name: "promotion_requests" }),
|
|
132
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, String, Number, Number])
|
|
133
|
+
], PromotionRequest);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Workflows extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
request_for: string;
|
|
7
|
+
levels: number;
|
|
8
|
+
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
+
}
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -122,6 +122,7 @@ import { RequestForCoverageWorkFlow } from './models/RequestForCoverageWorkflowM
|
|
|
122
122
|
import { RequestForCoverageApprovalDetails } from './models/RequestForCoverageApprovalModel';
|
|
123
123
|
import { RequestForCoverageRequestChat } from './models/RequestForCoverageChatModel';
|
|
124
124
|
import { RequestForCoverageRequestAttachment } from './models/RequestForCoverageAttachmentModel';
|
|
125
|
+
import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestModel';
|
|
125
126
|
|
|
126
127
|
export const AppDataSource = new DataSource({
|
|
127
128
|
type: 'postgres',
|
|
@@ -250,6 +251,7 @@ export const AppDataSource = new DataSource({
|
|
|
250
251
|
AssignTasksEmpApprovalDetails,
|
|
251
252
|
AssignTasksEmpWorkFlow,
|
|
252
253
|
AssignTasksEmpRequestAttachment,
|
|
253
|
-
AssignTasksEmpRequestChat
|
|
254
|
+
AssignTasksEmpRequestChat,
|
|
255
|
+
CashAllowanceLeaveRequest
|
|
254
256
|
],
|
|
255
257
|
});
|