@platform-modules/civil-aviation-authority 2.3.40 → 2.3.42
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/index.d.ts +4 -0
- package/dist/index.js +9 -1
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/JobTransferRequestModel.d.ts +31 -0
- package/dist/models/JobTransferRequestModel.js +128 -0
- package/dist/models/LogisticsForeignVehicleModel.js +1 -0
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +2 -0
- package/dist/models/ServiceTransferRequestModel.d.ts +3 -3
- package/dist/models/ServiceTransferRequestModel.js +7 -8
- package/dist/models/ShiftAllowanceRequestModel.d.ts +37 -0
- package/dist/models/ShiftAllowanceRequestModel.js +140 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/roleRightsModel.d.ts +9 -12
- package/dist/models/roleRightsModel.js +16 -15
- package/package.json +1 -1
- package/src/index.ts +7 -0
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/JobTransferRequestModel.ts +115 -0
- package/src/models/LogisticsForeignVehicleModel.ts +1 -0
- package/src/models/LogisticsVehicleMaintenanceRequestModel.ts +2 -0
- package/src/models/RequestForCoverageRequestModel.ts +174 -174
- package/src/models/ServiceTransferRequestModel.ts +8 -8
- package/src/models/ShiftAllowanceRequestModel.ts +126 -0
- package/src/models/roleRightsModel.ts +13 -14
package/dist/index.d.ts
CHANGED
|
@@ -181,3 +181,7 @@ export { AssignTasksEmpWorkFlowStatus } from './models/AssignTasksEmpWorkflowMod
|
|
|
181
181
|
export { AssignTasksEmpRequestAttachment } from './models/AssignTasksEmpAttachmentModel';
|
|
182
182
|
export { AssignTasksEmpRequestChat } from './models/AssignTasksEmpChatModel';
|
|
183
183
|
export { AssignTasksEmpMessageType } from './models/AssignTasksEmpChatModel';
|
|
184
|
+
export * from './models/ShiftAllowanceRequestModel';
|
|
185
|
+
export { ShiftAllowanceRequestStatus, ShiftAllowanceValue } from './models/ShiftAllowanceRequestModel';
|
|
186
|
+
export * from './models/JobTransferRequestModel';
|
|
187
|
+
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.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.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);
|
|
@@ -265,3 +265,11 @@ var AssignTasksEmpChatModel_1 = require("./models/AssignTasksEmpChatModel");
|
|
|
265
265
|
Object.defineProperty(exports, "AssignTasksEmpRequestChat", { enumerable: true, get: function () { return AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat; } });
|
|
266
266
|
var AssignTasksEmpChatModel_2 = require("./models/AssignTasksEmpChatModel");
|
|
267
267
|
Object.defineProperty(exports, "AssignTasksEmpMessageType", { enumerable: true, get: function () { return AssignTasksEmpChatModel_2.AssignTasksEmpMessageType; } });
|
|
268
|
+
__exportStar(require("./models/ShiftAllowanceRequestModel"), exports);
|
|
269
|
+
var ShiftAllowanceRequestModel_1 = require("./models/ShiftAllowanceRequestModel");
|
|
270
|
+
Object.defineProperty(exports, "ShiftAllowanceRequestStatus", { enumerable: true, get: function () { return ShiftAllowanceRequestModel_1.ShiftAllowanceRequestStatus; } });
|
|
271
|
+
Object.defineProperty(exports, "ShiftAllowanceValue", { enumerable: true, get: function () { return ShiftAllowanceRequestModel_1.ShiftAllowanceValue; } });
|
|
272
|
+
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
273
|
+
__exportStar(require("./models/JobTransferRequestModel"), exports);
|
|
274
|
+
var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
|
|
275
|
+
Object.defineProperty(exports, "JobTransferRequestStatus", { enumerable: true, get: function () { return JobTransferRequestModel_1.JobTransferRequestStatus; } });
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ITApprovalSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.level = level;
|
|
19
|
+
this.approval_role_id = approval_role_id;
|
|
20
|
+
this.workflow_id = workflow_id;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
+
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
+
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
+
], ITApprovalSettings);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesMuscat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesMuscat);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesSalalah = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesSalalah);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum JobTransferRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare class JobTransferRequest extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
req_user_position_id: number | null;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
user_id: number;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: JobTransferRequestStatus;
|
|
19
|
+
reviewer_user_id: number | null;
|
|
20
|
+
assigned_to_user_id: number | null;
|
|
21
|
+
assigned_at: Date | null;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
reason_for_request: string;
|
|
24
|
+
assigned_employee_name: string;
|
|
25
|
+
civil_id_card_number: string | null;
|
|
26
|
+
employee_id: string;
|
|
27
|
+
current_job_position: string;
|
|
28
|
+
position_to_be_transferred: string;
|
|
29
|
+
effective_from_date: Date;
|
|
30
|
+
constructor(user_id: number, status?: JobTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, reason_for_request?: string, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, position_to_be_transferred?: string, effective_from_date?: Date);
|
|
31
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.JobTransferRequest = exports.JobTransferRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var JobTransferRequestStatus;
|
|
16
|
+
(function (JobTransferRequestStatus) {
|
|
17
|
+
JobTransferRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
JobTransferRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
JobTransferRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
JobTransferRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
JobTransferRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
JobTransferRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(JobTransferRequestStatus || (exports.JobTransferRequestStatus = JobTransferRequestStatus = {}));
|
|
24
|
+
let JobTransferRequest = class JobTransferRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(user_id, status = JobTransferRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, reason_for_request, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, position_to_be_transferred, effective_from_date) {
|
|
26
|
+
super();
|
|
27
|
+
this.user_id = user_id;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.service_id = service_id || null;
|
|
30
|
+
this.sub_service_id = sub_service_id || null;
|
|
31
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
+
this.description = description || null;
|
|
35
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
+
this.assigned_at = assigned_at || null;
|
|
38
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
+
this.reason_for_request = reason_for_request || "";
|
|
40
|
+
this.assigned_employee_name = assigned_employee_name || "";
|
|
41
|
+
this.civil_id_card_number = civil_id_card_number || null;
|
|
42
|
+
this.employee_id = employee_id || "";
|
|
43
|
+
this.current_job_position = current_job_position || "";
|
|
44
|
+
this.position_to_be_transferred = position_to_be_transferred || "";
|
|
45
|
+
this.effective_from_date = effective_from_date || new Date();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.JobTransferRequest = JobTransferRequest;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], JobTransferRequest.prototype, "req_user_department_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], JobTransferRequest.prototype, "req_user_section_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], JobTransferRequest.prototype, "req_user_position_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], JobTransferRequest.prototype, "service_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], JobTransferRequest.prototype, "sub_service_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], JobTransferRequest.prototype, "user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], JobTransferRequest.prototype, "description", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "enum", enum: JobTransferRequestStatus, default: JobTransferRequestStatus.PENDING, nullable: false }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], JobTransferRequest.prototype, "status", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], JobTransferRequest.prototype, "reviewer_user_id", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], JobTransferRequest.prototype, "assigned_to_user_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], JobTransferRequest.prototype, "assigned_at", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], JobTransferRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], JobTransferRequest.prototype, "reason_for_request", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], JobTransferRequest.prototype, "assigned_employee_name", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], JobTransferRequest.prototype, "civil_id_card_number", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], JobTransferRequest.prototype, "employee_id", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], JobTransferRequest.prototype, "current_job_position", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], JobTransferRequest.prototype, "position_to_be_transferred", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
123
|
+
__metadata("design:type", Date)
|
|
124
|
+
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
|
+
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
126
|
+
(0, typeorm_1.Entity)({ name: "job_transfer_requests" }),
|
|
127
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Object, String, String, String, Date])
|
|
128
|
+
], JobTransferRequest);
|
|
@@ -73,6 +73,8 @@ __decorate([
|
|
|
73
73
|
type: "enum",
|
|
74
74
|
enum: VehicleMaintenanceType,
|
|
75
75
|
nullable: false,
|
|
76
|
+
enumName: 'logistics_vehicle_maintenance_requests_en',
|
|
77
|
+
default: VehicleMaintenanceType.CORRECTIVE
|
|
76
78
|
}),
|
|
77
79
|
__metadata("design:type", String)
|
|
78
80
|
], LogisticsVehicleMaintenanceRequests.prototype, "type_of_maintenance_required", void 0);
|
|
@@ -35,12 +35,12 @@ export declare class ServiceTransferRequest extends BaseModel {
|
|
|
35
35
|
assigned_job_position: string;
|
|
36
36
|
current_entity: string;
|
|
37
37
|
transferred_to_entity: string;
|
|
38
|
-
start_date: Date;
|
|
39
|
-
end_date: Date;
|
|
38
|
+
start_date: Date | null;
|
|
39
|
+
end_date: Date | null;
|
|
40
40
|
phone_number: string;
|
|
41
41
|
reason_for_request: string;
|
|
42
42
|
request_type: ServiceTransferRequestType;
|
|
43
43
|
salary_details: string;
|
|
44
44
|
salary_details_description: string | null;
|
|
45
|
-
constructor(user_id: number, status?: ServiceTransferRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, current_entity?: string, transferred_to_entity?: string, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, request_type?: ServiceTransferRequestType, salary_details?: string, salary_details_description?: string | null);
|
|
45
|
+
constructor(user_id: number, status?: ServiceTransferRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, current_entity?: string, transferred_to_entity?: string, start_date?: Date | null, end_date?: Date | null, phone_number?: string, reason_for_request?: string, request_type?: ServiceTransferRequestType, salary_details?: string, salary_details_description?: string | null);
|
|
46
46
|
}
|
|
@@ -53,8 +53,8 @@ let ServiceTransferRequest = class ServiceTransferRequest extends BaseModel_1.Ba
|
|
|
53
53
|
this.assigned_job_position = assigned_job_position || "";
|
|
54
54
|
this.current_entity = current_entity || "";
|
|
55
55
|
this.transferred_to_entity = transferred_to_entity || "";
|
|
56
|
-
this.start_date = start_date ||
|
|
57
|
-
this.end_date = end_date ||
|
|
56
|
+
this.start_date = start_date || null;
|
|
57
|
+
this.end_date = end_date || null;
|
|
58
58
|
this.phone_number = phone_number || "";
|
|
59
59
|
this.reason_for_request = reason_for_request || "";
|
|
60
60
|
this.request_type = request_type || ServiceTransferRequestType.INTERNAL;
|
|
@@ -140,12 +140,12 @@ __decorate([
|
|
|
140
140
|
__metadata("design:type", String)
|
|
141
141
|
], ServiceTransferRequest.prototype, "transferred_to_entity", void 0);
|
|
142
142
|
__decorate([
|
|
143
|
-
(0, typeorm_1.Column)({ type: "date", nullable:
|
|
144
|
-
__metadata("design:type",
|
|
143
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
145
|
], ServiceTransferRequest.prototype, "start_date", void 0);
|
|
146
146
|
__decorate([
|
|
147
|
-
(0, typeorm_1.Column)({ type: "date", nullable:
|
|
148
|
-
__metadata("design:type",
|
|
147
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
149
|
], ServiceTransferRequest.prototype, "end_date", void 0);
|
|
150
150
|
__decorate([
|
|
151
151
|
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
@@ -169,6 +169,5 @@ __decorate([
|
|
|
169
169
|
], ServiceTransferRequest.prototype, "salary_details_description", void 0);
|
|
170
170
|
exports.ServiceTransferRequest = ServiceTransferRequest = __decorate([
|
|
171
171
|
(0, typeorm_1.Entity)({ name: "service_transfer_requests" }),
|
|
172
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, String, String,
|
|
173
|
-
Date, String, String, String, String, Object])
|
|
172
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, String, String, Object, Object, String, String, String, String, Object])
|
|
174
173
|
], ServiceTransferRequest);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ShiftAllowanceRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ShiftAllowanceValue {
|
|
11
|
+
TWENTY_TWO_PERCENT = "22%",
|
|
12
|
+
THIRTY_PERCENT = "30%",
|
|
13
|
+
SEVENTY_PERCENT = "70%"
|
|
14
|
+
}
|
|
15
|
+
export declare class ShiftAllowanceRequest extends BaseModel {
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
req_user_section_id: number | null;
|
|
18
|
+
req_user_position_id: number | null;
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
user_id: number;
|
|
22
|
+
description: string | null;
|
|
23
|
+
status: ShiftAllowanceRequestStatus;
|
|
24
|
+
reviewer_user_id: number | null;
|
|
25
|
+
assigned_to_user_id: number | null;
|
|
26
|
+
assigned_at: Date | null;
|
|
27
|
+
workflow_execution_id: string | null;
|
|
28
|
+
employee_name: string;
|
|
29
|
+
employee_id: string;
|
|
30
|
+
job_title: string;
|
|
31
|
+
financial_grade: string;
|
|
32
|
+
allowance_value: ShiftAllowanceValue;
|
|
33
|
+
shift_start_date: Date;
|
|
34
|
+
shift_end_date: Date;
|
|
35
|
+
reason_for_request: string | null;
|
|
36
|
+
constructor(user_id: number, status?: ShiftAllowanceRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
|
|
37
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ShiftAllowanceRequest = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ShiftAllowanceRequestStatus;
|
|
16
|
+
(function (ShiftAllowanceRequestStatus) {
|
|
17
|
+
ShiftAllowanceRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
ShiftAllowanceRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
ShiftAllowanceRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
ShiftAllowanceRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
ShiftAllowanceRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
ShiftAllowanceRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(ShiftAllowanceRequestStatus || (exports.ShiftAllowanceRequestStatus = ShiftAllowanceRequestStatus = {}));
|
|
24
|
+
var ShiftAllowanceValue;
|
|
25
|
+
(function (ShiftAllowanceValue) {
|
|
26
|
+
ShiftAllowanceValue["TWENTY_TWO_PERCENT"] = "22%";
|
|
27
|
+
ShiftAllowanceValue["THIRTY_PERCENT"] = "30%";
|
|
28
|
+
ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
|
|
29
|
+
})(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
|
|
30
|
+
let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
|
|
31
|
+
constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
|
|
32
|
+
super();
|
|
33
|
+
this.user_id = user_id;
|
|
34
|
+
this.status = status;
|
|
35
|
+
this.service_id = service_id || null;
|
|
36
|
+
this.sub_service_id = sub_service_id || null;
|
|
37
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
38
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
39
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
40
|
+
this.description = description || null;
|
|
41
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
42
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
43
|
+
this.assigned_at = assigned_at || null;
|
|
44
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
45
|
+
this.employee_name = employee_name || "";
|
|
46
|
+
this.employee_id = employee_id || "";
|
|
47
|
+
this.job_title = job_title || "";
|
|
48
|
+
this.financial_grade = financial_grade || "";
|
|
49
|
+
this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
|
|
50
|
+
this.shift_start_date = shift_start_date || new Date();
|
|
51
|
+
this.shift_end_date = shift_end_date || new Date();
|
|
52
|
+
this.reason_for_request = reason_for_request || null;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.ShiftAllowanceRequest = ShiftAllowanceRequest;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], ShiftAllowanceRequest.prototype, "req_user_department_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], ShiftAllowanceRequest.prototype, "req_user_section_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], ShiftAllowanceRequest.prototype, "req_user_position_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], ShiftAllowanceRequest.prototype, "service_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], ShiftAllowanceRequest.prototype, "sub_service_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], ShiftAllowanceRequest.prototype, "user_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], ShiftAllowanceRequest.prototype, "description", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceRequestStatus, default: ShiftAllowanceRequestStatus.PENDING, nullable: false }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], ShiftAllowanceRequest.prototype, "status", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], ShiftAllowanceRequest.prototype, "reviewer_user_id", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], ShiftAllowanceRequest.prototype, "assigned_to_user_id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], ShiftAllowanceRequest.prototype, "assigned_at", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], ShiftAllowanceRequest.prototype, "workflow_execution_id", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], ShiftAllowanceRequest.prototype, "employee_name", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], ShiftAllowanceRequest.prototype, "employee_id", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], ShiftAllowanceRequest.prototype, "job_title", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], ShiftAllowanceRequest.prototype, "financial_grade", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceValue, nullable: false }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], ShiftAllowanceRequest.prototype, "allowance_value", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
126
|
+
__metadata("design:type", Date)
|
|
127
|
+
], ShiftAllowanceRequest.prototype, "shift_start_date", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
130
|
+
__metadata("design:type", Date)
|
|
131
|
+
], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], ShiftAllowanceRequest.prototype, "reason_for_request", void 0);
|
|
136
|
+
exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
|
|
137
|
+
(0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
|
|
138
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
|
|
139
|
+
Date, Object])
|
|
140
|
+
], ShiftAllowanceRequest);
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { Column, Entity, Unique } from "typeorm";
|
|
3
|
+
// import { BaseModel } from './BaseModel';
|
|
4
|
+
// @Entity({ name: 'workflows' })
|
|
5
|
+
// @Unique(['service_id', 'sub_service_id', 'request_for'])
|
|
6
|
+
// export class Workflows extends BaseModel {
|
|
7
|
+
// @Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
|
+
// name: string;
|
|
9
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
10
|
+
// service_id: number;
|
|
11
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
12
|
+
// sub_service_id: number;
|
|
13
|
+
// @Column({ type: 'varchar', length: 20, nullable: false })
|
|
14
|
+
// request_for: string; // 'Self' | 'Behalf of' | 'Internal'
|
|
15
|
+
// @Column({ type: 'int', nullable: false })
|
|
16
|
+
// levels: number;
|
|
17
|
+
// constructor(
|
|
18
|
+
// name: string,
|
|
19
|
+
// service_id: number,
|
|
20
|
+
// sub_service_id: number,
|
|
21
|
+
// request_for: string,
|
|
22
|
+
// levels: number,
|
|
23
|
+
// ) {
|
|
24
|
+
// super();
|
|
25
|
+
// this.name = name;
|
|
26
|
+
// this.service_id = service_id;
|
|
27
|
+
// this.sub_service_id = sub_service_id;
|
|
28
|
+
// this.request_for = request_for;
|
|
29
|
+
// this.levels = levels;
|
|
30
|
+
// }
|
|
31
|
+
// }
|