@platform-modules/civil-aviation-authority 2.3.33 → 2.3.40
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 +0 -4
- package/dist/index.js +1 -9
- package/dist/models/LogisticsForeignVehicleModel.js +0 -1
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +0 -2
- package/dist/models/RequestForCoverageRequestModel.d.ts +2 -1
- package/dist/models/RequestForCoverageRequestModel.js +7 -2
- package/package.json +1 -1
- package/src/index.ts +0 -7
- 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/LogisticsForeignVehicleModel.ts +0 -1
- package/src/models/LogisticsVehicleMaintenanceRequestModel.ts +0 -2
- package/src/models/RequestForCoverageRequestModel.ts +174 -169
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/JobTransferRequestModel.d.ts +0 -31
- package/dist/models/JobTransferRequestModel.js +0 -128
- package/dist/models/ShiftAllowanceRequestModel.d.ts +0 -37
- package/dist/models/ShiftAllowanceRequestModel.js +0 -140
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
- package/src/models/JobTransferRequestModel.ts +0 -115
- package/src/models/ShiftAllowanceRequestModel.ts +0 -126
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.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);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.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);
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.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);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum JobTransferRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
export declare class JobTransferRequest extends BaseModel {
|
|
11
|
-
req_user_department_id: number | null;
|
|
12
|
-
req_user_section_id: number | null;
|
|
13
|
-
req_user_position_id: number | null;
|
|
14
|
-
service_id: number | null;
|
|
15
|
-
sub_service_id: number | null;
|
|
16
|
-
user_id: number;
|
|
17
|
-
description: string | null;
|
|
18
|
-
status: JobTransferRequestStatus;
|
|
19
|
-
reviewer_user_id: number | null;
|
|
20
|
-
assigned_to_user_id: number | null;
|
|
21
|
-
assigned_at: Date | null;
|
|
22
|
-
workflow_execution_id: string | null;
|
|
23
|
-
reason_for_request: string;
|
|
24
|
-
assigned_employee_name: string;
|
|
25
|
-
civil_id_card_number: string | null;
|
|
26
|
-
employee_id: string;
|
|
27
|
-
current_job_position: string;
|
|
28
|
-
position_to_be_transferred: string;
|
|
29
|
-
effective_from_date: Date;
|
|
30
|
-
constructor(user_id: number, status?: JobTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, reason_for_request?: string, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, position_to_be_transferred?: string, effective_from_date?: Date);
|
|
31
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.JobTransferRequest = exports.JobTransferRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var JobTransferRequestStatus;
|
|
16
|
-
(function (JobTransferRequestStatus) {
|
|
17
|
-
JobTransferRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
JobTransferRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
JobTransferRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
JobTransferRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
-
JobTransferRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
JobTransferRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
})(JobTransferRequestStatus || (exports.JobTransferRequestStatus = JobTransferRequestStatus = {}));
|
|
24
|
-
let JobTransferRequest = class JobTransferRequest extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(user_id, status = JobTransferRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, reason_for_request, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, position_to_be_transferred, effective_from_date) {
|
|
26
|
-
super();
|
|
27
|
-
this.user_id = user_id;
|
|
28
|
-
this.status = status;
|
|
29
|
-
this.service_id = service_id || null;
|
|
30
|
-
this.sub_service_id = sub_service_id || null;
|
|
31
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
-
this.description = description || null;
|
|
35
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
-
this.assigned_at = assigned_at || null;
|
|
38
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
-
this.reason_for_request = reason_for_request || "";
|
|
40
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
41
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
42
|
-
this.employee_id = employee_id || "";
|
|
43
|
-
this.current_job_position = current_job_position || "";
|
|
44
|
-
this.position_to_be_transferred = position_to_be_transferred || "";
|
|
45
|
-
this.effective_from_date = effective_from_date || new Date();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.JobTransferRequest = JobTransferRequest;
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], JobTransferRequest.prototype, "req_user_department_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], JobTransferRequest.prototype, "req_user_section_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], JobTransferRequest.prototype, "req_user_position_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], JobTransferRequest.prototype, "service_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], JobTransferRequest.prototype, "sub_service_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], JobTransferRequest.prototype, "user_id", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], JobTransferRequest.prototype, "description", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: "enum", enum: JobTransferRequestStatus, default: JobTransferRequestStatus.PENDING, nullable: false }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], JobTransferRequest.prototype, "status", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], JobTransferRequest.prototype, "reviewer_user_id", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
87
|
-
__metadata("design:type", Object)
|
|
88
|
-
], JobTransferRequest.prototype, "assigned_to_user_id", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
91
|
-
__metadata("design:type", Object)
|
|
92
|
-
], JobTransferRequest.prototype, "assigned_at", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], JobTransferRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], JobTransferRequest.prototype, "reason_for_request", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], JobTransferRequest.prototype, "assigned_employee_name", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
107
|
-
__metadata("design:type", Object)
|
|
108
|
-
], JobTransferRequest.prototype, "civil_id_card_number", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], JobTransferRequest.prototype, "employee_id", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
115
|
-
__metadata("design:type", String)
|
|
116
|
-
], JobTransferRequest.prototype, "current_job_position", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], JobTransferRequest.prototype, "position_to_be_transferred", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
123
|
-
__metadata("design:type", Date)
|
|
124
|
-
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
|
-
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
126
|
-
(0, typeorm_1.Entity)({ name: "job_transfer_requests" }),
|
|
127
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Object, String, String, String, Date])
|
|
128
|
-
], JobTransferRequest);
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ShiftAllowanceRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
export declare enum ShiftAllowanceValue {
|
|
11
|
-
TWENTY_TWO_PERCENT = "22%",
|
|
12
|
-
THIRTY_PERCENT = "30%",
|
|
13
|
-
SEVENTY_PERCENT = "70%"
|
|
14
|
-
}
|
|
15
|
-
export declare class ShiftAllowanceRequest extends BaseModel {
|
|
16
|
-
req_user_department_id: number | null;
|
|
17
|
-
req_user_section_id: number | null;
|
|
18
|
-
req_user_position_id: number | null;
|
|
19
|
-
service_id: number | null;
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
user_id: number;
|
|
22
|
-
description: string | null;
|
|
23
|
-
status: ShiftAllowanceRequestStatus;
|
|
24
|
-
reviewer_user_id: number | null;
|
|
25
|
-
assigned_to_user_id: number | null;
|
|
26
|
-
assigned_at: Date | null;
|
|
27
|
-
workflow_execution_id: string | null;
|
|
28
|
-
employee_name: string;
|
|
29
|
-
employee_id: string;
|
|
30
|
-
job_title: string;
|
|
31
|
-
financial_grade: string;
|
|
32
|
-
allowance_value: ShiftAllowanceValue;
|
|
33
|
-
shift_start_date: Date;
|
|
34
|
-
shift_end_date: Date;
|
|
35
|
-
reason_for_request: string | null;
|
|
36
|
-
constructor(user_id: number, status?: ShiftAllowanceRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
|
|
37
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ShiftAllowanceRequest = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ShiftAllowanceRequestStatus;
|
|
16
|
-
(function (ShiftAllowanceRequestStatus) {
|
|
17
|
-
ShiftAllowanceRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
ShiftAllowanceRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
ShiftAllowanceRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
ShiftAllowanceRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
-
ShiftAllowanceRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
ShiftAllowanceRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
})(ShiftAllowanceRequestStatus || (exports.ShiftAllowanceRequestStatus = ShiftAllowanceRequestStatus = {}));
|
|
24
|
-
var ShiftAllowanceValue;
|
|
25
|
-
(function (ShiftAllowanceValue) {
|
|
26
|
-
ShiftAllowanceValue["TWENTY_TWO_PERCENT"] = "22%";
|
|
27
|
-
ShiftAllowanceValue["THIRTY_PERCENT"] = "30%";
|
|
28
|
-
ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
|
|
29
|
-
})(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
|
|
30
|
-
let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
|
|
31
|
-
constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
|
|
32
|
-
super();
|
|
33
|
-
this.user_id = user_id;
|
|
34
|
-
this.status = status;
|
|
35
|
-
this.service_id = service_id || null;
|
|
36
|
-
this.sub_service_id = sub_service_id || null;
|
|
37
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
38
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
39
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
40
|
-
this.description = description || null;
|
|
41
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
42
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
43
|
-
this.assigned_at = assigned_at || null;
|
|
44
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
45
|
-
this.employee_name = employee_name || "";
|
|
46
|
-
this.employee_id = employee_id || "";
|
|
47
|
-
this.job_title = job_title || "";
|
|
48
|
-
this.financial_grade = financial_grade || "";
|
|
49
|
-
this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
|
|
50
|
-
this.shift_start_date = shift_start_date || new Date();
|
|
51
|
-
this.shift_end_date = shift_end_date || new Date();
|
|
52
|
-
this.reason_for_request = reason_for_request || null;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
exports.ShiftAllowanceRequest = ShiftAllowanceRequest;
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], ShiftAllowanceRequest.prototype, "req_user_department_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], ShiftAllowanceRequest.prototype, "req_user_section_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], ShiftAllowanceRequest.prototype, "req_user_position_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], ShiftAllowanceRequest.prototype, "service_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], ShiftAllowanceRequest.prototype, "sub_service_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], ShiftAllowanceRequest.prototype, "user_id", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], ShiftAllowanceRequest.prototype, "description", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceRequestStatus, default: ShiftAllowanceRequestStatus.PENDING, nullable: false }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], ShiftAllowanceRequest.prototype, "status", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
90
|
-
__metadata("design:type", Object)
|
|
91
|
-
], ShiftAllowanceRequest.prototype, "reviewer_user_id", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
94
|
-
__metadata("design:type", Object)
|
|
95
|
-
], ShiftAllowanceRequest.prototype, "assigned_to_user_id", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
98
|
-
__metadata("design:type", Object)
|
|
99
|
-
], ShiftAllowanceRequest.prototype, "assigned_at", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
102
|
-
__metadata("design:type", Object)
|
|
103
|
-
], ShiftAllowanceRequest.prototype, "workflow_execution_id", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], ShiftAllowanceRequest.prototype, "employee_name", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
110
|
-
__metadata("design:type", String)
|
|
111
|
-
], ShiftAllowanceRequest.prototype, "employee_id", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], ShiftAllowanceRequest.prototype, "job_title", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], ShiftAllowanceRequest.prototype, "financial_grade", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceValue, nullable: false }),
|
|
122
|
-
__metadata("design:type", String)
|
|
123
|
-
], ShiftAllowanceRequest.prototype, "allowance_value", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
126
|
-
__metadata("design:type", Date)
|
|
127
|
-
], ShiftAllowanceRequest.prototype, "shift_start_date", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
130
|
-
__metadata("design:type", Date)
|
|
131
|
-
], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
|
-
__metadata("design:type", Object)
|
|
135
|
-
], ShiftAllowanceRequest.prototype, "reason_for_request", void 0);
|
|
136
|
-
exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
|
|
137
|
-
(0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
|
|
138
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
|
|
139
|
-
Date, Object])
|
|
140
|
-
], ShiftAllowanceRequest);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class Workflows extends BaseModel {
|
|
3
|
-
name: string;
|
|
4
|
-
service_id: number;
|
|
5
|
-
sub_service_id: number;
|
|
6
|
-
request_for: string;
|
|
7
|
-
levels: number;
|
|
8
|
-
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
-
}
|
package/dist/models/Workflows.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
// }
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum JobTransferRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
ASSIGNED = "Assigned",
|
|
7
|
-
IN_PROGRESS = "In Progress",
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: "job_transfer_requests" })
|
|
14
|
-
export class JobTransferRequest extends BaseModel {
|
|
15
|
-
@Column({ type: "integer", nullable: true })
|
|
16
|
-
req_user_department_id: number | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "integer", nullable: true })
|
|
19
|
-
req_user_section_id: number | null;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "integer", nullable: true })
|
|
22
|
-
req_user_position_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "integer", nullable: true })
|
|
25
|
-
service_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "integer", nullable: true })
|
|
28
|
-
sub_service_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "integer", nullable: false })
|
|
31
|
-
user_id: number;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "text", nullable: true })
|
|
34
|
-
description: string | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "enum", enum: JobTransferRequestStatus, default: JobTransferRequestStatus.PENDING, nullable: false })
|
|
37
|
-
status: JobTransferRequestStatus;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "integer", nullable: true })
|
|
40
|
-
reviewer_user_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "integer", nullable: true })
|
|
43
|
-
assigned_to_user_id: number | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "timestamp", nullable: true })
|
|
46
|
-
assigned_at: Date | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
-
workflow_execution_id: string | null;
|
|
50
|
-
|
|
51
|
-
// Job Transfer specific fields
|
|
52
|
-
@Column({ type: "text", nullable: false })
|
|
53
|
-
reason_for_request: string;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
56
|
-
assigned_employee_name: string;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
59
|
-
civil_id_card_number: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
62
|
-
employee_id: string;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
65
|
-
current_job_position: string;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
68
|
-
position_to_be_transferred: string;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "date", nullable: false })
|
|
71
|
-
effective_from_date: Date;
|
|
72
|
-
|
|
73
|
-
constructor(
|
|
74
|
-
user_id: number,
|
|
75
|
-
status: JobTransferRequestStatus = JobTransferRequestStatus.PENDING,
|
|
76
|
-
service_id?: number | null,
|
|
77
|
-
sub_service_id?: number | null,
|
|
78
|
-
req_user_department_id?: number | null,
|
|
79
|
-
req_user_section_id?: number | null,
|
|
80
|
-
req_user_position_id?: number | null,
|
|
81
|
-
description?: string | null,
|
|
82
|
-
reviewer_user_id?: number | null,
|
|
83
|
-
assigned_to_user_id?: number | null,
|
|
84
|
-
assigned_at?: Date | null,
|
|
85
|
-
workflow_execution_id?: string | null,
|
|
86
|
-
reason_for_request?: string,
|
|
87
|
-
assigned_employee_name?: string,
|
|
88
|
-
civil_id_card_number?: string | null,
|
|
89
|
-
employee_id?: string,
|
|
90
|
-
current_job_position?: string,
|
|
91
|
-
position_to_be_transferred?: string,
|
|
92
|
-
effective_from_date?: Date
|
|
93
|
-
) {
|
|
94
|
-
super();
|
|
95
|
-
this.user_id = user_id;
|
|
96
|
-
this.status = status;
|
|
97
|
-
this.service_id = service_id || null;
|
|
98
|
-
this.sub_service_id = sub_service_id || null;
|
|
99
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
100
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
101
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
102
|
-
this.description = description || null;
|
|
103
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
104
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
105
|
-
this.assigned_at = assigned_at || null;
|
|
106
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
107
|
-
this.reason_for_request = reason_for_request || "";
|
|
108
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
109
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
110
|
-
this.employee_id = employee_id || "";
|
|
111
|
-
this.current_job_position = current_job_position || "";
|
|
112
|
-
this.position_to_be_transferred = position_to_be_transferred || "";
|
|
113
|
-
this.effective_from_date = effective_from_date || new Date();
|
|
114
|
-
}
|
|
115
|
-
}
|