@platform-modules/civil-aviation-authority 2.3.12 → 2.3.14
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 +14 -9
- package/dist/data-source.js +31 -1
- package/dist/index.d.ts +35 -8
- package/dist/index.js +59 -9
- 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/AssignTasksEmpApprovalModel.d.ts +23 -0
- package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
- package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
- package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
- package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
- package/dist/models/AssignTasksEmpChatModel.js +77 -0
- package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
- package/dist/models/AssignTasksEmpRequestModel.js +100 -0
- package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
- package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
- package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
- package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
- package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
- package/dist/models/TrainingRoomBookingChatModel.js +89 -0
- package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
- package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
- package/dist/models/Workflows.d.ts +0 -9
- package/package.json +1 -1
- package/src/data-source.ts +31 -1
- package/src/index.ts +35 -8
- 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/AssignTasksEmpApprovalModel.ts +84 -0
- package/src/models/AssignTasksEmpAttachmentModel.ts +52 -0
- package/src/models/AssignTasksEmpChatModel.ts +65 -0
- package/src/models/AssignTasksEmpRequestModel.ts +90 -0
- package/src/models/AssignTasksEmpWorkflowModel.ts +63 -0
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
- package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
- package/src/models/TrainingRoomBookingChatModel.ts +76 -0
- package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
- package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
|
@@ -0,0 +1,149 @@
|
|
|
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.TrainingRoomBookingRequest = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingRequestStatus;
|
|
16
|
+
(function (TrainingRoomBookingRequestStatus) {
|
|
17
|
+
TrainingRoomBookingRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
TrainingRoomBookingRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
TrainingRoomBookingRequestStatus["COMPLETED"] = "Completed";
|
|
20
|
+
TrainingRoomBookingRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
TrainingRoomBookingRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(TrainingRoomBookingRequestStatus || (exports.TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus = {}));
|
|
23
|
+
var TrainingRoomBookingRoomType;
|
|
24
|
+
(function (TrainingRoomBookingRoomType) {
|
|
25
|
+
TrainingRoomBookingRoomType["CLASSROOM_1"] = "Classroom 1";
|
|
26
|
+
TrainingRoomBookingRoomType["CLASSROOM_2"] = "Classroom 2";
|
|
27
|
+
TrainingRoomBookingRoomType["CLASSROOM_3"] = "Classroom 3";
|
|
28
|
+
TrainingRoomBookingRoomType["CLASSROOM_4"] = "Classroom 4";
|
|
29
|
+
TrainingRoomBookingRoomType["TRAINING_CENTRE_HALL"] = "Training Centre Hall";
|
|
30
|
+
})(TrainingRoomBookingRoomType || (exports.TrainingRoomBookingRoomType = TrainingRoomBookingRoomType = {}));
|
|
31
|
+
let TrainingRoomBookingRequest = class TrainingRoomBookingRequest extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor(user_id, purpose_of_training, date_of_event, start_time, end_time, room_type, number_of_attendees, network_support_required = false, meals_required = false, status = TrainingRoomBookingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
33
|
+
super();
|
|
34
|
+
this.user_id = user_id;
|
|
35
|
+
this.purpose_of_training = purpose_of_training;
|
|
36
|
+
this.date_of_event = date_of_event;
|
|
37
|
+
this.start_time = start_time;
|
|
38
|
+
this.end_time = end_time;
|
|
39
|
+
this.room_type = room_type;
|
|
40
|
+
this.number_of_attendees = number_of_attendees;
|
|
41
|
+
this.network_support_required = network_support_required;
|
|
42
|
+
this.meals_required = meals_required;
|
|
43
|
+
this.status = status;
|
|
44
|
+
this.service_id = service_id || null;
|
|
45
|
+
this.sub_service_id = sub_service_id || null;
|
|
46
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
47
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
48
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
49
|
+
this.remarks = remarks || null;
|
|
50
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
51
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
52
|
+
this.assigned_at = assigned_at || null;
|
|
53
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], TrainingRoomBookingRequest.prototype, "req_user_department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TrainingRoomBookingRequest.prototype, "req_user_section_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], TrainingRoomBookingRequest.prototype, "req_user_position_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], TrainingRoomBookingRequest.prototype, "service_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], TrainingRoomBookingRequest.prototype, "sub_service_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], TrainingRoomBookingRequest.prototype, "user_id", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], TrainingRoomBookingRequest.prototype, "purpose_of_training", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], TrainingRoomBookingRequest.prototype, "date_of_event", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TrainingRoomBookingRequest.prototype, "start_time", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], TrainingRoomBookingRequest.prototype, "end_time", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({
|
|
99
|
+
type: "enum",
|
|
100
|
+
enum: TrainingRoomBookingRoomType,
|
|
101
|
+
nullable: false
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], TrainingRoomBookingRequest.prototype, "room_type", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], TrainingRoomBookingRequest.prototype, "network_support_required", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], TrainingRoomBookingRequest.prototype, "meals_required", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], TrainingRoomBookingRequest.prototype, "number_of_attendees", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], TrainingRoomBookingRequest.prototype, "remarks", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({
|
|
123
|
+
type: "enum",
|
|
124
|
+
enum: TrainingRoomBookingRequestStatus,
|
|
125
|
+
default: TrainingRoomBookingRequestStatus.PENDING,
|
|
126
|
+
nullable: false
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], TrainingRoomBookingRequest.prototype, "status", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], TrainingRoomBookingRequest.prototype, "reviewer_user_id", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], TrainingRoomBookingRequest.prototype, "assigned_to_user_id", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], TrainingRoomBookingRequest.prototype, "assigned_at", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], TrainingRoomBookingRequest.prototype, "workflow_execution_id", void 0);
|
|
146
|
+
exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest = __decorate([
|
|
147
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_requests" }),
|
|
148
|
+
__metadata("design:paramtypes", [Number, String, Date, String, String, String, Number, Boolean, Boolean, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
149
|
+
], TrainingRoomBookingRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TrainingRoomBookingWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class TrainingRoomBookingWorkFlow 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: TrainingRoomBookingWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: TrainingRoomBookingWorkFlowStatus, 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.TrainingRoomBookingWorkFlow = exports.TrainingRoomBookingWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingWorkFlowStatus;
|
|
16
|
+
(function (TrainingRoomBookingWorkFlowStatus) {
|
|
17
|
+
TrainingRoomBookingWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
TrainingRoomBookingWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
TrainingRoomBookingWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
TrainingRoomBookingWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(TrainingRoomBookingWorkFlowStatus || (exports.TrainingRoomBookingWorkFlowStatus = TrainingRoomBookingWorkFlowStatus = {}));
|
|
22
|
+
let TrainingRoomBookingWorkFlow = class TrainingRoomBookingWorkFlow 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.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TrainingRoomBookingWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], TrainingRoomBookingWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], TrainingRoomBookingWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], TrainingRoomBookingWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TrainingRoomBookingWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], TrainingRoomBookingWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TrainingRoomBookingWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], TrainingRoomBookingWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: TrainingRoomBookingWorkFlowStatus,
|
|
73
|
+
default: TrainingRoomBookingWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], TrainingRoomBookingWorkFlow.prototype, "status", void 0);
|
|
78
|
+
exports.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_workflows" }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
+
], TrainingRoomBookingWorkFlow);
|
|
@@ -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/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -87,6 +87,11 @@ import { DutyMissionRequestAttachment } from './models/DutyMissionAttachmentMode
|
|
|
87
87
|
import { DutyMissionRequestChat } from './models/DutyMissionChatModel';
|
|
88
88
|
import { DutyMissionEmployeeDetails } from './models/DutyMissionEmployeeDetailsModel';
|
|
89
89
|
import { DutyMissionAirTicketDetails } from './models/DutyMissionAirTicketDetailsModel';
|
|
90
|
+
import { AssignTasksEmpRequests } from './models/AssignTasksEmpRequestModel';
|
|
91
|
+
import { AssignTasksEmpApprovalDetails } from './models/AssignTasksEmpApprovalModel';
|
|
92
|
+
import { AssignTasksEmpWorkFlow } from './models/AssignTasksEmpWorkflowModel';
|
|
93
|
+
import { AssignTasksEmpRequestAttachment } from './models/AssignTasksEmpAttachmentModel';
|
|
94
|
+
import { AssignTasksEmpRequestChat } from './models/AssignTasksEmpChatModel';
|
|
90
95
|
import { TrainingWorkFlow } from './models/TrainingWorkflowModel';
|
|
91
96
|
import { TrainingApprovalDetails } from './models/TrainingApprovalModel';
|
|
92
97
|
import { TrainingRequestChat } from './models/TrainingChatModel';
|
|
@@ -96,6 +101,16 @@ import { StudyLeaveWorkFlow } from './models/StudyLeaveWorkflowModel';
|
|
|
96
101
|
import { StudyLeaveApprovalDetails } from './models/StudyLeaveApprovalModel';
|
|
97
102
|
import { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
98
103
|
import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel';
|
|
104
|
+
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
105
|
+
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
106
|
+
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
107
|
+
import { AnnualTrainingPlanRequestChat } from './models/AnnualTrainingPlanChatModel';
|
|
108
|
+
import { AnnualTrainingPlanRequestAttachment } from './models/AnnualTrainingPlanAttachmentModel';
|
|
109
|
+
import { TrainingRoomBookingRequest } from './models/TrainingRoomBookingRequestModel';
|
|
110
|
+
import { TrainingRoomBookingWorkFlow } from './models/TrainingRoomBookingWorkflowModel';
|
|
111
|
+
import { TrainingRoomBookingApprovalDetails } from './models/TrainingRoomBookingApprovalModel';
|
|
112
|
+
import { TrainingRoomBookingRequestChat } from './models/TrainingRoomBookingChatModel';
|
|
113
|
+
import { TrainingRoomBookingRequestAttachment } from './models/TrainingRoomBookingAttachmentModel';
|
|
99
114
|
import { SecondmentRequest } from './models/SecondmentRequestModel';
|
|
100
115
|
|
|
101
116
|
export const AppDataSource = new DataSource({
|
|
@@ -193,6 +208,16 @@ export const AppDataSource = new DataSource({
|
|
|
193
208
|
StudyLeaveApprovalDetails,
|
|
194
209
|
StudyLeaveRequestChat,
|
|
195
210
|
StudyLeaveRequestAttachment,
|
|
211
|
+
AnnualTrainingPlanRequest,
|
|
212
|
+
AnnualTrainingPlanWorkFlow,
|
|
213
|
+
AnnualTrainingPlanApprovalDetails,
|
|
214
|
+
AnnualTrainingPlanRequestChat,
|
|
215
|
+
AnnualTrainingPlanRequestAttachment,
|
|
216
|
+
TrainingRoomBookingRequest,
|
|
217
|
+
TrainingRoomBookingWorkFlow,
|
|
218
|
+
TrainingRoomBookingApprovalDetails,
|
|
219
|
+
TrainingRoomBookingRequestChat,
|
|
220
|
+
TrainingRoomBookingRequestAttachment,
|
|
196
221
|
SecondmentRequest,
|
|
197
222
|
DutyMissionRequests,
|
|
198
223
|
DutyMissionApprovalDetails,
|
|
@@ -200,6 +225,11 @@ export const AppDataSource = new DataSource({
|
|
|
200
225
|
DutyMissionRequestAttachment,
|
|
201
226
|
DutyMissionRequestChat,
|
|
202
227
|
DutyMissionEmployeeDetails,
|
|
203
|
-
DutyMissionAirTicketDetails
|
|
228
|
+
DutyMissionAirTicketDetails,
|
|
229
|
+
AssignTasksEmpRequests,
|
|
230
|
+
AssignTasksEmpApprovalDetails,
|
|
231
|
+
AssignTasksEmpWorkFlow,
|
|
232
|
+
AssignTasksEmpRequestAttachment,
|
|
233
|
+
AssignTasksEmpRequestChat
|
|
204
234
|
],
|
|
205
235
|
});
|
package/src/index.ts
CHANGED
|
@@ -104,6 +104,30 @@ export {StudyLeaveRequestAttachment} from './models/StudyLeaveAttachmentModel';
|
|
|
104
104
|
export {StudyLeaveRequestChat} from './models/StudyLeaveChatModel';
|
|
105
105
|
export {StudyLeaveMessageType} from './models/StudyLeaveChatModel';
|
|
106
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';
|
|
119
|
+
export * from './models/TrainingRoomBookingRequestModel';
|
|
120
|
+
export * from './models/TrainingRoomBookingWorkflowModel';
|
|
121
|
+
export * from './models/TrainingRoomBookingApprovalModel';
|
|
122
|
+
export * from './models/TrainingRoomBookingChatModel';
|
|
123
|
+
export * from './models/TrainingRoomBookingAttachmentModel';
|
|
124
|
+
export {TrainingRoomBookingRequestStatus, TrainingRoomBookingRoomType} from './models/TrainingRoomBookingRequestModel';
|
|
125
|
+
export {TrainingRoomBookingApprovalStatus} from './models/TrainingRoomBookingApprovalModel';
|
|
126
|
+
export {TrainingRoomBookingWorkFlowStatus} from './models/TrainingRoomBookingWorkflowModel';
|
|
127
|
+
export {TrainingRoomBookingRequestAttachment} from './models/TrainingRoomBookingAttachmentModel';
|
|
128
|
+
export {TrainingRoomBookingRequestChat} from './models/TrainingRoomBookingChatModel';
|
|
129
|
+
export {TrainingRoomBookingMessageType} from './models/TrainingRoomBookingChatModel';
|
|
130
|
+
export {TrainingRoomBookingChatStatus} from './models/TrainingRoomBookingChatModel';
|
|
107
131
|
export * from './models/SecondmentRequestModel';
|
|
108
132
|
export {SecondmentRequestStatus} from './models/SecondmentRequestModel';
|
|
109
133
|
export * from './models/TemporaryAssignmentRequestModel';
|
|
@@ -117,11 +141,14 @@ export * from './models/DutyMissionAttachmentModel';
|
|
|
117
141
|
export * from './models/DutyMissionChatModel';
|
|
118
142
|
export * from './models/DutyMissionEmployeeDetailsModel';
|
|
119
143
|
export * from './models/DutyMissionAirTicketDetailsModel';
|
|
120
|
-
export * from './models/
|
|
121
|
-
export * from './models/
|
|
122
|
-
export * from './models/
|
|
123
|
-
export * from './models/
|
|
124
|
-
export * from './models/
|
|
125
|
-
export
|
|
126
|
-
export
|
|
127
|
-
export
|
|
144
|
+
export * from './models/AssignTasksEmpRequestModel';
|
|
145
|
+
export * from './models/AssignTasksEmpApprovalModel';
|
|
146
|
+
export * from './models/AssignTasksEmpWorkflowModel';
|
|
147
|
+
export * from './models/AssignTasksEmpAttachmentModel';
|
|
148
|
+
export * from './models/AssignTasksEmpChatModel';
|
|
149
|
+
export {AssignTasksEmpStatus, AssignTasksEmpPriority} from './models/AssignTasksEmpRequestModel';
|
|
150
|
+
export {AssignTasksEmpApprovalStatus} from './models/AssignTasksEmpApprovalModel';
|
|
151
|
+
export {AssignTasksEmpWorkFlowStatus} from './models/AssignTasksEmpWorkflowModel';
|
|
152
|
+
export {AssignTasksEmpRequestAttachment} from './models/AssignTasksEmpAttachmentModel';
|
|
153
|
+
export {AssignTasksEmpRequestChat} from './models/AssignTasksEmpChatModel';
|
|
154
|
+
export {AssignTasksEmpMessageType} from './models/AssignTasksEmpChatModel';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AnnualTrainingPlanApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "annual_training_plan_approvals" })
|
|
13
|
+
export class AnnualTrainingPlanApprovalDetails extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: false })
|
|
24
|
+
level: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
approver_user_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: true })
|
|
30
|
+
approver_role_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
department_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
section_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: true })
|
|
39
|
+
delegate_user_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
approved_by: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "varchar", length: 255, nullable: true, default: "" })
|
|
45
|
+
comment: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: AnnualTrainingPlanApprovalStatus,
|
|
50
|
+
default: AnnualTrainingPlanApprovalStatus.PENDING,
|
|
51
|
+
nullable: false
|
|
52
|
+
})
|
|
53
|
+
approval_status: AnnualTrainingPlanApprovalStatus;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
56
|
+
is_manager: boolean;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
59
|
+
is_allowed: boolean;
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
request_id: number,
|
|
63
|
+
approver_user_id: number | null,
|
|
64
|
+
approver_role_id: number | null,
|
|
65
|
+
comment: string,
|
|
66
|
+
approval_status: AnnualTrainingPlanApprovalStatus,
|
|
67
|
+
level: number,
|
|
68
|
+
service_id?: number | null,
|
|
69
|
+
sub_service_id?: number | null,
|
|
70
|
+
department_id?: number | null,
|
|
71
|
+
section_id?: number | null,
|
|
72
|
+
delegate_user_id?: number | null,
|
|
73
|
+
approved_by?: number | null,
|
|
74
|
+
is_manager?: boolean,
|
|
75
|
+
is_allowed?: boolean
|
|
76
|
+
) {
|
|
77
|
+
super();
|
|
78
|
+
this.request_id = request_id;
|
|
79
|
+
this.service_id = service_id || null;
|
|
80
|
+
this.sub_service_id = sub_service_id || null;
|
|
81
|
+
this.approver_user_id = approver_user_id;
|
|
82
|
+
this.approver_role_id = approver_role_id;
|
|
83
|
+
this.comment = comment;
|
|
84
|
+
this.approval_status = approval_status;
|
|
85
|
+
this.level = level;
|
|
86
|
+
this.department_id = department_id || null;
|
|
87
|
+
this.section_id = section_id || null;
|
|
88
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
89
|
+
this.approved_by = approved_by || null;
|
|
90
|
+
this.is_manager = is_manager ?? false;
|
|
91
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "annual_training_plan_request_attachments" })
|
|
5
|
+
export class AnnualTrainingPlanRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "integer", nullable: false })
|
|
16
|
+
uploaded_by: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
19
|
+
file_url: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
22
|
+
file_name: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
25
|
+
file_type: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "bigint", nullable: true })
|
|
28
|
+
file_size: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "text", nullable: true })
|
|
31
|
+
description: string;
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
request_id: number,
|
|
35
|
+
uploaded_by: number,
|
|
36
|
+
file_url: string,
|
|
37
|
+
service_id?: number | null,
|
|
38
|
+
sub_service_id?: number | null,
|
|
39
|
+
file_name?: string,
|
|
40
|
+
file_type?: string,
|
|
41
|
+
file_size?: number,
|
|
42
|
+
description?: string
|
|
43
|
+
) {
|
|
44
|
+
super();
|
|
45
|
+
this.request_id = request_id;
|
|
46
|
+
this.service_id = service_id || null;
|
|
47
|
+
this.sub_service_id = sub_service_id || null;
|
|
48
|
+
this.uploaded_by = uploaded_by;
|
|
49
|
+
this.file_url = file_url;
|
|
50
|
+
this.file_name = file_name || "";
|
|
51
|
+
this.file_type = file_type || "";
|
|
52
|
+
this.file_size = file_size || null;
|
|
53
|
+
this.description = description || "";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AnnualTrainingPlanMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum AnnualTrainingPlanChatStatus {
|
|
13
|
+
PENDING = "Pending",
|
|
14
|
+
APPROVED = "Approved",
|
|
15
|
+
REJECTED = "Rejected",
|
|
16
|
+
IN_PROGRESS = "In Progress"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Entity({ name: "annual_training_plan_request_chat" })
|
|
20
|
+
export class AnnualTrainingPlanRequestChat extends BaseModel {
|
|
21
|
+
@Column({ type: "integer", nullable: false })
|
|
22
|
+
request_id: number;
|
|
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: false })
|
|
34
|
+
message: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
approver_role_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({
|
|
40
|
+
type: "enum",
|
|
41
|
+
enum: AnnualTrainingPlanMessageType,
|
|
42
|
+
default: AnnualTrainingPlanMessageType.TEXT,
|
|
43
|
+
nullable: false
|
|
44
|
+
})
|
|
45
|
+
messageType: AnnualTrainingPlanMessageType;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "boolean", default: false })
|
|
48
|
+
is_internal: boolean;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "text", nullable: false })
|
|
51
|
+
status: string;
|
|
52
|
+
|
|
53
|
+
constructor(
|
|
54
|
+
request_id: number,
|
|
55
|
+
user_id: number,
|
|
56
|
+
message: string,
|
|
57
|
+
service_id?: number | null,
|
|
58
|
+
sub_service_id?: number | null,
|
|
59
|
+
messageType?: AnnualTrainingPlanMessageType,
|
|
60
|
+
is_internal?: boolean,
|
|
61
|
+
status?: string,
|
|
62
|
+
approver_role_id?: number
|
|
63
|
+
) {
|
|
64
|
+
super();
|
|
65
|
+
this.request_id = request_id;
|
|
66
|
+
this.service_id = service_id || null;
|
|
67
|
+
this.sub_service_id = sub_service_id || null;
|
|
68
|
+
this.user_id = user_id;
|
|
69
|
+
this.message = message;
|
|
70
|
+
this.messageType = messageType || AnnualTrainingPlanMessageType.TEXT;
|
|
71
|
+
this.is_internal = is_internal || false;
|
|
72
|
+
this.status = status || 'Pending';
|
|
73
|
+
this.approver_role_id = approver_role_id || null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|