@platform-modules/civil-aviation-authority 2.3.7 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +9 -14
- package/dist/data-source.js +20 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +44 -1
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
- package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
- package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
- package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
- package/dist/models/StudyLeaveApprovalModel.d.ts +25 -0
- package/dist/models/StudyLeaveApprovalModel.js +107 -0
- package/dist/models/StudyLeaveAttachmentModel.d.ts +13 -0
- package/dist/models/StudyLeaveAttachmentModel.js +69 -0
- package/dist/models/StudyLeaveChatModel.d.ts +26 -0
- package/dist/models/StudyLeaveChatModel.js +89 -0
- package/dist/models/StudyLeaveRequestModel.d.ts +29 -0
- package/dist/models/StudyLeaveRequestModel.js +128 -0
- package/dist/models/StudyLeaveWorkflowModel.d.ts +19 -0
- package/dist/models/StudyLeaveWorkflowModel.js +81 -0
- package/dist/models/TemporaryAssignmentRequestModel.d.ts +49 -0
- package/dist/models/TemporaryAssignmentRequestModel.js +204 -0
- package/package.json +1 -1
- package/src/data-source.ts +20 -0
- package/src/index.ts +26 -0
- package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
- package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
- package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
- package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
- package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/StudyLeaveApprovalModel.ts +94 -0
- package/src/models/StudyLeaveAttachmentModel.ts +56 -0
- package/src/models/StudyLeaveChatModel.ts +76 -0
- package/src/models/StudyLeaveRequestModel.ts +114 -0
- package/src/models/StudyLeaveWorkflowModel.ts +68 -0
- package/src/models/TemporaryAssignmentRequestModel.ts +194 -0
- 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/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -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.StudyLeaveRequest = exports.StudyLeaveRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StudyLeaveRequestStatus;
|
|
16
|
+
(function (StudyLeaveRequestStatus) {
|
|
17
|
+
StudyLeaveRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
StudyLeaveRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
StudyLeaveRequestStatus["COMPLETED"] = "Completed";
|
|
20
|
+
StudyLeaveRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
StudyLeaveRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(StudyLeaveRequestStatus || (exports.StudyLeaveRequestStatus = StudyLeaveRequestStatus = {}));
|
|
23
|
+
let StudyLeaveRequest = class StudyLeaveRequest extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(user_id, course_name, institute_name, course_start_date, course_end_date, location, description, status = StudyLeaveRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, duration_of_course, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
25
|
+
super();
|
|
26
|
+
this.user_id = user_id;
|
|
27
|
+
this.course_name = course_name;
|
|
28
|
+
this.institute_name = institute_name;
|
|
29
|
+
this.course_start_date = course_start_date;
|
|
30
|
+
this.course_end_date = course_end_date;
|
|
31
|
+
this.location = location;
|
|
32
|
+
this.description = description;
|
|
33
|
+
this.status = status;
|
|
34
|
+
this.service_id = service_id || null;
|
|
35
|
+
this.sub_service_id = sub_service_id || null;
|
|
36
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
37
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
38
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
39
|
+
this.duration_of_course = duration_of_course || null;
|
|
40
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
41
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
42
|
+
this.assigned_at = assigned_at || null;
|
|
43
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.StudyLeaveRequest = StudyLeaveRequest;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], StudyLeaveRequest.prototype, "req_user_department_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], StudyLeaveRequest.prototype, "req_user_section_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], StudyLeaveRequest.prototype, "req_user_position_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], StudyLeaveRequest.prototype, "service_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], StudyLeaveRequest.prototype, "sub_service_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], StudyLeaveRequest.prototype, "user_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StudyLeaveRequest.prototype, "course_name", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], StudyLeaveRequest.prototype, "institute_name", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], StudyLeaveRequest.prototype, "duration_of_course", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], StudyLeaveRequest.prototype, "course_start_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], StudyLeaveRequest.prototype, "course_end_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], StudyLeaveRequest.prototype, "location", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], StudyLeaveRequest.prototype, "description", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({
|
|
101
|
+
type: "enum",
|
|
102
|
+
enum: StudyLeaveRequestStatus,
|
|
103
|
+
default: StudyLeaveRequestStatus.PENDING,
|
|
104
|
+
nullable: false
|
|
105
|
+
}),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], StudyLeaveRequest.prototype, "status", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], StudyLeaveRequest.prototype, "reviewer_user_id", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], StudyLeaveRequest.prototype, "assigned_to_user_id", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], StudyLeaveRequest.prototype, "assigned_at", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], StudyLeaveRequest.prototype, "workflow_execution_id", void 0);
|
|
124
|
+
exports.StudyLeaveRequest = StudyLeaveRequest = __decorate([
|
|
125
|
+
(0, typeorm_1.Entity)({ name: "study_leave_requests" }),
|
|
126
|
+
__metadata("design:paramtypes", [Number, String, String, Date,
|
|
127
|
+
Date, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
128
|
+
], StudyLeaveRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum StudyLeaveWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class StudyLeaveWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
order: number | null;
|
|
13
|
+
content: string;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
status: StudyLeaveWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: StudyLeaveWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
|
|
19
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.StudyLeaveWorkFlow = exports.StudyLeaveWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StudyLeaveWorkFlowStatus;
|
|
16
|
+
(function (StudyLeaveWorkFlowStatus) {
|
|
17
|
+
StudyLeaveWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
StudyLeaveWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
StudyLeaveWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
StudyLeaveWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(StudyLeaveWorkFlowStatus || (exports.StudyLeaveWorkFlowStatus = StudyLeaveWorkFlowStatus = {}));
|
|
22
|
+
let StudyLeaveWorkFlow = class StudyLeaveWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
|
|
24
|
+
super();
|
|
25
|
+
this.request_id = request_id;
|
|
26
|
+
this.service_id = service_id || null;
|
|
27
|
+
this.sub_service_id = sub_service_id || null;
|
|
28
|
+
this.content = content;
|
|
29
|
+
this.status = status;
|
|
30
|
+
this.order = order || null;
|
|
31
|
+
this.approver_role_id = approver_role_id || null;
|
|
32
|
+
this.approver_user_id = approver_user_id || null;
|
|
33
|
+
this.approved_by = approved_by || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.StudyLeaveWorkFlow = StudyLeaveWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], StudyLeaveWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], StudyLeaveWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], StudyLeaveWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], StudyLeaveWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], StudyLeaveWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], StudyLeaveWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], StudyLeaveWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], StudyLeaveWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: StudyLeaveWorkFlowStatus,
|
|
73
|
+
default: StudyLeaveWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], StudyLeaveWorkFlow.prototype, "status", void 0);
|
|
78
|
+
exports.StudyLeaveWorkFlow = StudyLeaveWorkFlow = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: "study_leave_workflows" }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
+
], StudyLeaveWorkFlow);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TemporaryAssignmentRequestStatus {
|
|
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 SalaryPaymentSource {
|
|
11
|
+
AUTHORITY = "Authority",
|
|
12
|
+
OTHER_ENTITY = "Other Entity"
|
|
13
|
+
}
|
|
14
|
+
export declare class TemporaryAssignmentRequest extends BaseModel {
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
req_user_section_id: number | null;
|
|
17
|
+
req_user_position_id: number | null;
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
user_id: number;
|
|
21
|
+
description: string | null;
|
|
22
|
+
status: TemporaryAssignmentRequestStatus;
|
|
23
|
+
reviewer_user_id: number | null;
|
|
24
|
+
assigned_to_user_id: number | null;
|
|
25
|
+
assigned_at: Date | null;
|
|
26
|
+
workflow_execution_id: string | null;
|
|
27
|
+
assigned_employee_name: string;
|
|
28
|
+
civil_id_card_number: string | null;
|
|
29
|
+
employee_id: string;
|
|
30
|
+
current_job_position: string;
|
|
31
|
+
assigned_job_position: string;
|
|
32
|
+
original_department_id: number;
|
|
33
|
+
assigned_department_id: number;
|
|
34
|
+
entity: string | null;
|
|
35
|
+
start_date: Date;
|
|
36
|
+
end_date: Date;
|
|
37
|
+
phone_number: string;
|
|
38
|
+
reason_for_request: string;
|
|
39
|
+
salary_payment_source: SalaryPaymentSource;
|
|
40
|
+
social_service_fund_contribution: string | null;
|
|
41
|
+
is_replaced: boolean;
|
|
42
|
+
replacement_employee_name: string | null;
|
|
43
|
+
replacement_employee_id: string | null;
|
|
44
|
+
replacement_civil_id_card_number: string | null;
|
|
45
|
+
replacement_reason: string | null;
|
|
46
|
+
replaced_by_user_id: number | null;
|
|
47
|
+
replaced_at: Date | null;
|
|
48
|
+
constructor(user_id: number, status?: TemporaryAssignmentRequestStatus, 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, original_department_id?: number, assigned_department_id?: number, entity?: string | null, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, salary_payment_source?: SalaryPaymentSource, social_service_fund_contribution?: string | null, is_replaced?: boolean, replacement_employee_name?: string | null, replacement_employee_id?: string | null, replacement_civil_id_card_number?: string | null, replacement_reason?: string | null, replaced_by_user_id?: number | null, replaced_at?: Date | null);
|
|
49
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
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.TemporaryAssignmentRequest = exports.SalaryPaymentSource = exports.TemporaryAssignmentRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TemporaryAssignmentRequestStatus;
|
|
16
|
+
(function (TemporaryAssignmentRequestStatus) {
|
|
17
|
+
TemporaryAssignmentRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
TemporaryAssignmentRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
TemporaryAssignmentRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
TemporaryAssignmentRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
TemporaryAssignmentRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
TemporaryAssignmentRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(TemporaryAssignmentRequestStatus || (exports.TemporaryAssignmentRequestStatus = TemporaryAssignmentRequestStatus = {}));
|
|
24
|
+
var SalaryPaymentSource;
|
|
25
|
+
(function (SalaryPaymentSource) {
|
|
26
|
+
SalaryPaymentSource["AUTHORITY"] = "Authority";
|
|
27
|
+
SalaryPaymentSource["OTHER_ENTITY"] = "Other Entity";
|
|
28
|
+
})(SalaryPaymentSource || (exports.SalaryPaymentSource = SalaryPaymentSource = {}));
|
|
29
|
+
let TemporaryAssignmentRequest = class TemporaryAssignmentRequest extends BaseModel_1.BaseModel {
|
|
30
|
+
constructor(user_id, status = TemporaryAssignmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id, entity, start_date, end_date, phone_number, reason_for_request, salary_payment_source, social_service_fund_contribution, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_reason, replaced_by_user_id, replaced_at) {
|
|
31
|
+
super();
|
|
32
|
+
this.user_id = user_id;
|
|
33
|
+
this.status = status;
|
|
34
|
+
this.service_id = service_id || null;
|
|
35
|
+
this.sub_service_id = sub_service_id || null;
|
|
36
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
37
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
38
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
39
|
+
this.description = description || null;
|
|
40
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
41
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
42
|
+
this.assigned_at = assigned_at || null;
|
|
43
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
44
|
+
this.assigned_employee_name = assigned_employee_name || "";
|
|
45
|
+
this.civil_id_card_number = civil_id_card_number || null;
|
|
46
|
+
this.employee_id = employee_id || "";
|
|
47
|
+
this.current_job_position = current_job_position || "";
|
|
48
|
+
this.assigned_job_position = assigned_job_position || "";
|
|
49
|
+
this.original_department_id = original_department_id || 0;
|
|
50
|
+
this.assigned_department_id = assigned_department_id || 0;
|
|
51
|
+
this.entity = entity || null;
|
|
52
|
+
this.start_date = start_date || new Date();
|
|
53
|
+
this.end_date = end_date || new Date();
|
|
54
|
+
this.phone_number = phone_number || "";
|
|
55
|
+
this.reason_for_request = reason_for_request || "";
|
|
56
|
+
this.salary_payment_source = salary_payment_source || SalaryPaymentSource.AUTHORITY;
|
|
57
|
+
this.social_service_fund_contribution = social_service_fund_contribution || null;
|
|
58
|
+
this.is_replaced = is_replaced || false;
|
|
59
|
+
this.replacement_employee_name = replacement_employee_name || null;
|
|
60
|
+
this.replacement_employee_id = replacement_employee_id || null;
|
|
61
|
+
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
62
|
+
this.replacement_reason = replacement_reason || null;
|
|
63
|
+
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
64
|
+
this.replaced_at = replaced_at || null;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.TemporaryAssignmentRequest = TemporaryAssignmentRequest;
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], TemporaryAssignmentRequest.prototype, "req_user_department_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], TemporaryAssignmentRequest.prototype, "req_user_section_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], TemporaryAssignmentRequest.prototype, "req_user_position_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], TemporaryAssignmentRequest.prototype, "service_id", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], TemporaryAssignmentRequest.prototype, "sub_service_id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], TemporaryAssignmentRequest.prototype, "user_id", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], TemporaryAssignmentRequest.prototype, "description", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "enum", enum: TemporaryAssignmentRequestStatus, default: TemporaryAssignmentRequestStatus.PENDING, nullable: false }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], TemporaryAssignmentRequest.prototype, "status", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], TemporaryAssignmentRequest.prototype, "reviewer_user_id", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], TemporaryAssignmentRequest.prototype, "assigned_to_user_id", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], TemporaryAssignmentRequest.prototype, "assigned_at", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], TemporaryAssignmentRequest.prototype, "workflow_execution_id", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], TemporaryAssignmentRequest.prototype, "assigned_employee_name", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], TemporaryAssignmentRequest.prototype, "civil_id_card_number", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], TemporaryAssignmentRequest.prototype, "employee_id", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], TemporaryAssignmentRequest.prototype, "current_job_position", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], TemporaryAssignmentRequest.prototype, "assigned_job_position", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], TemporaryAssignmentRequest.prototype, "original_department_id", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
142
|
+
__metadata("design:type", Number)
|
|
143
|
+
], TemporaryAssignmentRequest.prototype, "assigned_department_id", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], TemporaryAssignmentRequest.prototype, "entity", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
150
|
+
__metadata("design:type", Date)
|
|
151
|
+
], TemporaryAssignmentRequest.prototype, "start_date", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
154
|
+
__metadata("design:type", Date)
|
|
155
|
+
], TemporaryAssignmentRequest.prototype, "end_date", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], TemporaryAssignmentRequest.prototype, "phone_number", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], TemporaryAssignmentRequest.prototype, "reason_for_request", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({ type: "enum", enum: SalaryPaymentSource, nullable: false }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], TemporaryAssignmentRequest.prototype, "salary_payment_source", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
170
|
+
__metadata("design:type", Object)
|
|
171
|
+
], TemporaryAssignmentRequest.prototype, "social_service_fund_contribution", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
174
|
+
__metadata("design:type", Boolean)
|
|
175
|
+
], TemporaryAssignmentRequest.prototype, "is_replaced", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
178
|
+
__metadata("design:type", Object)
|
|
179
|
+
], TemporaryAssignmentRequest.prototype, "replacement_employee_name", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
182
|
+
__metadata("design:type", Object)
|
|
183
|
+
], TemporaryAssignmentRequest.prototype, "replacement_employee_id", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
186
|
+
__metadata("design:type", Object)
|
|
187
|
+
], TemporaryAssignmentRequest.prototype, "replacement_civil_id_card_number", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], TemporaryAssignmentRequest.prototype, "replacement_reason", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
194
|
+
__metadata("design:type", Object)
|
|
195
|
+
], TemporaryAssignmentRequest.prototype, "replaced_by_user_id", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
198
|
+
__metadata("design:type", Object)
|
|
199
|
+
], TemporaryAssignmentRequest.prototype, "replaced_at", void 0);
|
|
200
|
+
exports.TemporaryAssignmentRequest = TemporaryAssignmentRequest = __decorate([
|
|
201
|
+
(0, typeorm_1.Entity)({ name: "temporary_assignment_requests" }),
|
|
202
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Date,
|
|
203
|
+
Date, String, String, String, Object, Boolean, Object, Object, Object, Object, Object, Object])
|
|
204
|
+
], TemporaryAssignmentRequest);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -91,6 +91,16 @@ import { TrainingWorkFlow } from './models/TrainingWorkflowModel';
|
|
|
91
91
|
import { TrainingApprovalDetails } from './models/TrainingApprovalModel';
|
|
92
92
|
import { TrainingRequestChat } from './models/TrainingChatModel';
|
|
93
93
|
import { TrainingRequestAttachment } from './models/TrainingAttachmentModel';
|
|
94
|
+
import { StudyLeaveRequest } from './models/StudyLeaveRequestModel';
|
|
95
|
+
import { StudyLeaveWorkFlow } from './models/StudyLeaveWorkflowModel';
|
|
96
|
+
import { StudyLeaveApprovalDetails } from './models/StudyLeaveApprovalModel';
|
|
97
|
+
import { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
98
|
+
import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel';
|
|
99
|
+
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
100
|
+
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
101
|
+
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
102
|
+
import { AnnualTrainingPlanRequestChat } from './models/AnnualTrainingPlanChatModel';
|
|
103
|
+
import { AnnualTrainingPlanRequestAttachment } from './models/AnnualTrainingPlanAttachmentModel';
|
|
94
104
|
import { SecondmentRequest } from './models/SecondmentRequestModel';
|
|
95
105
|
|
|
96
106
|
export const AppDataSource = new DataSource({
|
|
@@ -183,6 +193,16 @@ export const AppDataSource = new DataSource({
|
|
|
183
193
|
TrainingApprovalDetails,
|
|
184
194
|
TrainingRequestChat,
|
|
185
195
|
TrainingRequestAttachment,
|
|
196
|
+
StudyLeaveRequest,
|
|
197
|
+
StudyLeaveWorkFlow,
|
|
198
|
+
StudyLeaveApprovalDetails,
|
|
199
|
+
StudyLeaveRequestChat,
|
|
200
|
+
StudyLeaveRequestAttachment,
|
|
201
|
+
AnnualTrainingPlanRequest,
|
|
202
|
+
AnnualTrainingPlanWorkFlow,
|
|
203
|
+
AnnualTrainingPlanApprovalDetails,
|
|
204
|
+
AnnualTrainingPlanRequestChat,
|
|
205
|
+
AnnualTrainingPlanRequestAttachment,
|
|
186
206
|
SecondmentRequest,
|
|
187
207
|
DutyMissionRequests,
|
|
188
208
|
DutyMissionApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -79,6 +79,11 @@ export * from './models/TrainingWorkflowModel';
|
|
|
79
79
|
export * from './models/TrainingApprovalModel';
|
|
80
80
|
export * from './models/TrainingChatModel';
|
|
81
81
|
export * from './models/TrainingAttachmentModel';
|
|
82
|
+
export * from './models/StudyLeaveRequestModel';
|
|
83
|
+
export * from './models/StudyLeaveWorkflowModel';
|
|
84
|
+
export * from './models/StudyLeaveApprovalModel';
|
|
85
|
+
export * from './models/StudyLeaveChatModel';
|
|
86
|
+
export * from './models/StudyLeaveAttachmentModel';
|
|
82
87
|
export {HrServiceRequestStatus} from './models/HrServiceRequestModel';
|
|
83
88
|
export {HrServiceApprovalStatus} from './models/HrServiceApprovalModel';
|
|
84
89
|
export {HrServiceWorkFlowStatus} from './models/HrServiceWorkflowModel';
|
|
@@ -92,8 +97,29 @@ export {TrainingWorkFlowStatus} from './models/TrainingWorkflowModel';
|
|
|
92
97
|
export {TrainingRequestAttachment} from './models/TrainingAttachmentModel';
|
|
93
98
|
export {TrainingRequestChat} from './models/TrainingChatModel';
|
|
94
99
|
export {TrainingMessageType} from './models/TrainingChatModel';
|
|
100
|
+
export {StudyLeaveRequestStatus} from './models/StudyLeaveRequestModel';
|
|
101
|
+
export {StudyLeaveApprovalStatus} from './models/StudyLeaveApprovalModel';
|
|
102
|
+
export {StudyLeaveWorkFlowStatus} from './models/StudyLeaveWorkflowModel';
|
|
103
|
+
export {StudyLeaveRequestAttachment} from './models/StudyLeaveAttachmentModel';
|
|
104
|
+
export {StudyLeaveRequestChat} from './models/StudyLeaveChatModel';
|
|
105
|
+
export {StudyLeaveMessageType} from './models/StudyLeaveChatModel';
|
|
106
|
+
export {StudyLeaveChatStatus} from './models/StudyLeaveChatModel';
|
|
107
|
+
export * from './models/AnnualTrainingPlanRequestModel';
|
|
108
|
+
export * from './models/AnnualTrainingPlanWorkflowModel';
|
|
109
|
+
export * from './models/AnnualTrainingPlanApprovalModel';
|
|
110
|
+
export * from './models/AnnualTrainingPlanChatModel';
|
|
111
|
+
export * from './models/AnnualTrainingPlanAttachmentModel';
|
|
112
|
+
export {AnnualTrainingPlanRequestStatus, AnnualTrainingPlanPlace} from './models/AnnualTrainingPlanRequestModel';
|
|
113
|
+
export {AnnualTrainingPlanApprovalStatus} from './models/AnnualTrainingPlanApprovalModel';
|
|
114
|
+
export {AnnualTrainingPlanWorkFlowStatus} from './models/AnnualTrainingPlanWorkflowModel';
|
|
115
|
+
export {AnnualTrainingPlanRequestAttachment} from './models/AnnualTrainingPlanAttachmentModel';
|
|
116
|
+
export {AnnualTrainingPlanRequestChat} from './models/AnnualTrainingPlanChatModel';
|
|
117
|
+
export {AnnualTrainingPlanMessageType} from './models/AnnualTrainingPlanChatModel';
|
|
118
|
+
export {AnnualTrainingPlanChatStatus} from './models/AnnualTrainingPlanChatModel';
|
|
95
119
|
export * from './models/SecondmentRequestModel';
|
|
96
120
|
export {SecondmentRequestStatus} from './models/SecondmentRequestModel';
|
|
121
|
+
export * from './models/TemporaryAssignmentRequestModel';
|
|
122
|
+
export {TemporaryAssignmentRequestStatus, SalaryPaymentSource} from './models/TemporaryAssignmentRequestModel';
|
|
97
123
|
export * from './models/DutyMissionRequestModel';
|
|
98
124
|
export * from './models/DutyMissionApprovalModel';
|
|
99
125
|
export * from './models/DutyMissionWorkflowModel';
|