@platform-modules/civil-aviation-authority 2.3.11 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +20 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +46 -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/ServiceTransferRequestModel.d.ts +46 -0
- package/dist/models/ServiceTransferRequestModel.js +174 -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/package.json +1 -1
- package/src/data-source.ts +225 -205
- 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/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/ServiceTransferRequestModel.ts +164 -0
- 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
- 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 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -0,0 +1,151 @@
|
|
|
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.AnnualTrainingPlanRequest = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AnnualTrainingPlanRequestStatus;
|
|
16
|
+
(function (AnnualTrainingPlanRequestStatus) {
|
|
17
|
+
AnnualTrainingPlanRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
AnnualTrainingPlanRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AnnualTrainingPlanRequestStatus["COMPLETED"] = "Completed";
|
|
20
|
+
AnnualTrainingPlanRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
AnnualTrainingPlanRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(AnnualTrainingPlanRequestStatus || (exports.AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus = {}));
|
|
23
|
+
var AnnualTrainingPlanPlace;
|
|
24
|
+
(function (AnnualTrainingPlanPlace) {
|
|
25
|
+
AnnualTrainingPlanPlace["INSIDE"] = "Inside";
|
|
26
|
+
AnnualTrainingPlanPlace["OUTSIDE"] = "Outside";
|
|
27
|
+
})(AnnualTrainingPlanPlace || (exports.AnnualTrainingPlanPlace = AnnualTrainingPlanPlace = {}));
|
|
28
|
+
let AnnualTrainingPlanRequest = class AnnualTrainingPlanRequest extends BaseModel_1.BaseModel {
|
|
29
|
+
constructor(user_id, course_name, no_of_participants, course_cost, total_cost, proposed_implementation_date, description, place, reason, status = AnnualTrainingPlanRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, location, employee_list, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
30
|
+
super();
|
|
31
|
+
this.user_id = user_id;
|
|
32
|
+
this.course_name = course_name;
|
|
33
|
+
this.no_of_participants = no_of_participants;
|
|
34
|
+
this.course_cost = course_cost;
|
|
35
|
+
this.total_cost = total_cost;
|
|
36
|
+
this.proposed_implementation_date = proposed_implementation_date;
|
|
37
|
+
this.description = description;
|
|
38
|
+
this.place = place;
|
|
39
|
+
this.reason = reason;
|
|
40
|
+
this.status = status;
|
|
41
|
+
this.service_id = service_id || null;
|
|
42
|
+
this.sub_service_id = sub_service_id || null;
|
|
43
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
44
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
45
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
46
|
+
this.location = location || null;
|
|
47
|
+
this.employee_list = employee_list || null;
|
|
48
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
49
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
50
|
+
this.assigned_at = assigned_at || null;
|
|
51
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.AnnualTrainingPlanRequest = AnnualTrainingPlanRequest;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], AnnualTrainingPlanRequest.prototype, "req_user_department_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], AnnualTrainingPlanRequest.prototype, "req_user_section_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], AnnualTrainingPlanRequest.prototype, "req_user_position_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], AnnualTrainingPlanRequest.prototype, "service_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], AnnualTrainingPlanRequest.prototype, "sub_service_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], AnnualTrainingPlanRequest.prototype, "user_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], AnnualTrainingPlanRequest.prototype, "course_name", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], AnnualTrainingPlanRequest.prototype, "no_of_participants", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: false }),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], AnnualTrainingPlanRequest.prototype, "course_cost", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: false }),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], AnnualTrainingPlanRequest.prototype, "total_cost", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
97
|
+
__metadata("design:type", Date)
|
|
98
|
+
], AnnualTrainingPlanRequest.prototype, "proposed_implementation_date", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], AnnualTrainingPlanRequest.prototype, "description", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({
|
|
105
|
+
type: "enum",
|
|
106
|
+
enum: AnnualTrainingPlanPlace,
|
|
107
|
+
nullable: false
|
|
108
|
+
}),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], AnnualTrainingPlanRequest.prototype, "place", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], AnnualTrainingPlanRequest.prototype, "location", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], AnnualTrainingPlanRequest.prototype, "reason", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], AnnualTrainingPlanRequest.prototype, "employee_list", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({
|
|
125
|
+
type: "enum",
|
|
126
|
+
enum: AnnualTrainingPlanRequestStatus,
|
|
127
|
+
default: AnnualTrainingPlanRequestStatus.PENDING,
|
|
128
|
+
nullable: false
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], AnnualTrainingPlanRequest.prototype, "status", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], AnnualTrainingPlanRequest.prototype, "reviewer_user_id", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], AnnualTrainingPlanRequest.prototype, "assigned_to_user_id", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
142
|
+
__metadata("design:type", Object)
|
|
143
|
+
], AnnualTrainingPlanRequest.prototype, "assigned_at", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], AnnualTrainingPlanRequest.prototype, "workflow_execution_id", void 0);
|
|
148
|
+
exports.AnnualTrainingPlanRequest = AnnualTrainingPlanRequest = __decorate([
|
|
149
|
+
(0, typeorm_1.Entity)({ name: "annual_training_plan_requests" }),
|
|
150
|
+
__metadata("design:paramtypes", [Number, String, Number, Number, Number, Date, String, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
151
|
+
], AnnualTrainingPlanRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AnnualTrainingPlanWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class AnnualTrainingPlanWorkFlow 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: AnnualTrainingPlanWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: AnnualTrainingPlanWorkFlowStatus, 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.AnnualTrainingPlanWorkFlow = exports.AnnualTrainingPlanWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AnnualTrainingPlanWorkFlowStatus;
|
|
16
|
+
(function (AnnualTrainingPlanWorkFlowStatus) {
|
|
17
|
+
AnnualTrainingPlanWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
AnnualTrainingPlanWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
AnnualTrainingPlanWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
AnnualTrainingPlanWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(AnnualTrainingPlanWorkFlowStatus || (exports.AnnualTrainingPlanWorkFlowStatus = AnnualTrainingPlanWorkFlowStatus = {}));
|
|
22
|
+
let AnnualTrainingPlanWorkFlow = class AnnualTrainingPlanWorkFlow 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.AnnualTrainingPlanWorkFlow = AnnualTrainingPlanWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AnnualTrainingPlanWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], AnnualTrainingPlanWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], AnnualTrainingPlanWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AnnualTrainingPlanWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AnnualTrainingPlanWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AnnualTrainingPlanWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AnnualTrainingPlanWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], AnnualTrainingPlanWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: AnnualTrainingPlanWorkFlowStatus,
|
|
73
|
+
default: AnnualTrainingPlanWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AnnualTrainingPlanWorkFlow.prototype, "status", void 0);
|
|
78
|
+
exports.AnnualTrainingPlanWorkFlow = AnnualTrainingPlanWorkFlow = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: "annual_training_plan_workflows" }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
+
], AnnualTrainingPlanWorkFlow);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ServiceTransferRequestStatus {
|
|
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 SalaryDetailsType {
|
|
11
|
+
RETAINED = "Retained with Same Financial Allocations and Grade",
|
|
12
|
+
NEW = "New Financial Allocations and Grade"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ServiceTransferRequestType {
|
|
15
|
+
INTERNAL = "Internal",
|
|
16
|
+
EXTERNAL = "External"
|
|
17
|
+
}
|
|
18
|
+
export declare class ServiceTransferRequest extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
req_user_position_id: number | null;
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
user_id: number;
|
|
25
|
+
description: string | null;
|
|
26
|
+
status: ServiceTransferRequestStatus;
|
|
27
|
+
reviewer_user_id: number | null;
|
|
28
|
+
assigned_to_user_id: number | null;
|
|
29
|
+
assigned_at: Date | null;
|
|
30
|
+
workflow_execution_id: string | null;
|
|
31
|
+
assigned_employee_name: string;
|
|
32
|
+
civil_id_card_number: string | null;
|
|
33
|
+
employee_id: string;
|
|
34
|
+
current_job_position: string;
|
|
35
|
+
assigned_job_position: string;
|
|
36
|
+
current_entity: string;
|
|
37
|
+
transferred_to_entity: string;
|
|
38
|
+
start_date: Date;
|
|
39
|
+
end_date: Date;
|
|
40
|
+
phone_number: string;
|
|
41
|
+
reason_for_request: string;
|
|
42
|
+
request_type: ServiceTransferRequestType;
|
|
43
|
+
salary_details: SalaryDetailsType;
|
|
44
|
+
salary_details_description: string | null;
|
|
45
|
+
constructor(user_id: number, status?: ServiceTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, current_entity?: string, transferred_to_entity?: string, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, request_type?: ServiceTransferRequestType, salary_details?: SalaryDetailsType, salary_details_description?: string | null);
|
|
46
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
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.ServiceTransferRequest = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ServiceTransferRequestStatus;
|
|
16
|
+
(function (ServiceTransferRequestStatus) {
|
|
17
|
+
ServiceTransferRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
ServiceTransferRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
ServiceTransferRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
ServiceTransferRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
ServiceTransferRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
ServiceTransferRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(ServiceTransferRequestStatus || (exports.ServiceTransferRequestStatus = ServiceTransferRequestStatus = {}));
|
|
24
|
+
var SalaryDetailsType;
|
|
25
|
+
(function (SalaryDetailsType) {
|
|
26
|
+
SalaryDetailsType["RETAINED"] = "Retained with Same Financial Allocations and Grade";
|
|
27
|
+
SalaryDetailsType["NEW"] = "New Financial Allocations and Grade";
|
|
28
|
+
})(SalaryDetailsType || (exports.SalaryDetailsType = SalaryDetailsType = {}));
|
|
29
|
+
var ServiceTransferRequestType;
|
|
30
|
+
(function (ServiceTransferRequestType) {
|
|
31
|
+
ServiceTransferRequestType["INTERNAL"] = "Internal";
|
|
32
|
+
ServiceTransferRequestType["EXTERNAL"] = "External";
|
|
33
|
+
})(ServiceTransferRequestType || (exports.ServiceTransferRequestType = ServiceTransferRequestType = {}));
|
|
34
|
+
let ServiceTransferRequest = class ServiceTransferRequest extends BaseModel_1.BaseModel {
|
|
35
|
+
constructor(user_id, status = ServiceTransferRequestStatus.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, current_entity, transferred_to_entity, start_date, end_date, phone_number, reason_for_request, request_type, salary_details, salary_details_description) {
|
|
36
|
+
super();
|
|
37
|
+
this.user_id = user_id;
|
|
38
|
+
this.status = status;
|
|
39
|
+
this.service_id = service_id || null;
|
|
40
|
+
this.sub_service_id = sub_service_id || null;
|
|
41
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
42
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
43
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
44
|
+
this.description = description || null;
|
|
45
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
46
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
47
|
+
this.assigned_at = assigned_at || null;
|
|
48
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
49
|
+
this.assigned_employee_name = assigned_employee_name || "";
|
|
50
|
+
this.civil_id_card_number = civil_id_card_number || null;
|
|
51
|
+
this.employee_id = employee_id || "";
|
|
52
|
+
this.current_job_position = current_job_position || "";
|
|
53
|
+
this.assigned_job_position = assigned_job_position || "";
|
|
54
|
+
this.current_entity = current_entity || "";
|
|
55
|
+
this.transferred_to_entity = transferred_to_entity || "";
|
|
56
|
+
this.start_date = start_date || new Date();
|
|
57
|
+
this.end_date = end_date || new Date();
|
|
58
|
+
this.phone_number = phone_number || "";
|
|
59
|
+
this.reason_for_request = reason_for_request || "";
|
|
60
|
+
this.request_type = request_type || ServiceTransferRequestType.INTERNAL;
|
|
61
|
+
this.salary_details = salary_details || SalaryDetailsType.RETAINED;
|
|
62
|
+
this.salary_details_description = salary_details_description || null;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.ServiceTransferRequest = ServiceTransferRequest;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], ServiceTransferRequest.prototype, "req_user_department_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ServiceTransferRequest.prototype, "req_user_section_id", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], ServiceTransferRequest.prototype, "req_user_position_id", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], ServiceTransferRequest.prototype, "service_id", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], ServiceTransferRequest.prototype, "sub_service_id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], ServiceTransferRequest.prototype, "user_id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], ServiceTransferRequest.prototype, "description", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ServiceTransferRequestStatus, default: ServiceTransferRequestStatus.PENDING, nullable: false }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], ServiceTransferRequest.prototype, "status", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], ServiceTransferRequest.prototype, "reviewer_user_id", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], ServiceTransferRequest.prototype, "assigned_to_user_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], ServiceTransferRequest.prototype, "assigned_at", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], ServiceTransferRequest.prototype, "workflow_execution_id", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], ServiceTransferRequest.prototype, "assigned_employee_name", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], ServiceTransferRequest.prototype, "civil_id_card_number", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], ServiceTransferRequest.prototype, "employee_id", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], ServiceTransferRequest.prototype, "current_job_position", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], ServiceTransferRequest.prototype, "assigned_job_position", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], ServiceTransferRequest.prototype, "current_entity", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], ServiceTransferRequest.prototype, "transferred_to_entity", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
144
|
+
__metadata("design:type", Date)
|
|
145
|
+
], ServiceTransferRequest.prototype, "start_date", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
148
|
+
__metadata("design:type", Date)
|
|
149
|
+
], ServiceTransferRequest.prototype, "end_date", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], ServiceTransferRequest.prototype, "phone_number", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], ServiceTransferRequest.prototype, "reason_for_request", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ServiceTransferRequestType, nullable: false }),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], ServiceTransferRequest.prototype, "request_type", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.Column)({ type: "enum", enum: SalaryDetailsType, nullable: false }),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], ServiceTransferRequest.prototype, "salary_details", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], ServiceTransferRequest.prototype, "salary_details_description", void 0);
|
|
170
|
+
exports.ServiceTransferRequest = ServiceTransferRequest = __decorate([
|
|
171
|
+
(0, typeorm_1.Entity)({ name: "service_transfer_requests" }),
|
|
172
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, String, String, Date,
|
|
173
|
+
Date, String, String, String, String, Object])
|
|
174
|
+
], ServiceTransferRequest);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TrainingRoomBookingApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class TrainingRoomBookingApprovalDetails extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
level: number;
|
|
14
|
+
approver_user_id: number | null;
|
|
15
|
+
approver_role_id: number | null;
|
|
16
|
+
department_id: number | null;
|
|
17
|
+
section_id: number | null;
|
|
18
|
+
delegate_user_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
comment: string;
|
|
21
|
+
approval_status: TrainingRoomBookingApprovalStatus;
|
|
22
|
+
is_manager: boolean;
|
|
23
|
+
is_allowed: boolean;
|
|
24
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: TrainingRoomBookingApprovalStatus, level: number, service_id?: number | null, sub_service_id?: number | null, department_id?: number | null, section_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_manager?: boolean, is_allowed?: boolean);
|
|
25
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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.TrainingRoomBookingApprovalDetails = exports.TrainingRoomBookingApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingApprovalStatus;
|
|
16
|
+
(function (TrainingRoomBookingApprovalStatus) {
|
|
17
|
+
TrainingRoomBookingApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
TrainingRoomBookingApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
TrainingRoomBookingApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
TrainingRoomBookingApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
TrainingRoomBookingApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(TrainingRoomBookingApprovalStatus || (exports.TrainingRoomBookingApprovalStatus = TrainingRoomBookingApprovalStatus = {}));
|
|
23
|
+
let TrainingRoomBookingApprovalDetails = class TrainingRoomBookingApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, service_id, sub_service_id, department_id, section_id, delegate_user_id, approved_by, is_manager, is_allowed) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.service_id = service_id || null;
|
|
28
|
+
this.sub_service_id = sub_service_id || null;
|
|
29
|
+
this.approver_user_id = approver_user_id;
|
|
30
|
+
this.approver_role_id = approver_role_id;
|
|
31
|
+
this.comment = comment;
|
|
32
|
+
this.approval_status = approval_status;
|
|
33
|
+
this.level = level;
|
|
34
|
+
this.department_id = department_id || null;
|
|
35
|
+
this.section_id = section_id || null;
|
|
36
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
37
|
+
this.approved_by = approved_by || null;
|
|
38
|
+
this.is_manager = is_manager ?? false;
|
|
39
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.TrainingRoomBookingApprovalDetails = TrainingRoomBookingApprovalDetails;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], TrainingRoomBookingApprovalDetails.prototype, "request_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], TrainingRoomBookingApprovalDetails.prototype, "service_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], TrainingRoomBookingApprovalDetails.prototype, "sub_service_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], TrainingRoomBookingApprovalDetails.prototype, "level", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], TrainingRoomBookingApprovalDetails.prototype, "approver_user_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], TrainingRoomBookingApprovalDetails.prototype, "approver_role_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], TrainingRoomBookingApprovalDetails.prototype, "department_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], TrainingRoomBookingApprovalDetails.prototype, "section_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], TrainingRoomBookingApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], TrainingRoomBookingApprovalDetails.prototype, "approved_by", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], TrainingRoomBookingApprovalDetails.prototype, "comment", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
type: "enum",
|
|
90
|
+
enum: TrainingRoomBookingApprovalStatus,
|
|
91
|
+
default: TrainingRoomBookingApprovalStatus.PENDING,
|
|
92
|
+
nullable: false
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], TrainingRoomBookingApprovalDetails.prototype, "approval_status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
98
|
+
__metadata("design:type", Boolean)
|
|
99
|
+
], TrainingRoomBookingApprovalDetails.prototype, "is_manager", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
102
|
+
__metadata("design:type", Boolean)
|
|
103
|
+
], TrainingRoomBookingApprovalDetails.prototype, "is_allowed", void 0);
|
|
104
|
+
exports.TrainingRoomBookingApprovalDetails = TrainingRoomBookingApprovalDetails = __decorate([
|
|
105
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_approvals" }),
|
|
106
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean])
|
|
107
|
+
], TrainingRoomBookingApprovalDetails);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class TrainingRoomBookingRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
uploaded_by: number;
|
|
7
|
+
file_url: string;
|
|
8
|
+
file_name: string;
|
|
9
|
+
file_type: string;
|
|
10
|
+
file_size: number | null;
|
|
11
|
+
description: string;
|
|
12
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, service_id?: number | null, sub_service_id?: number | null, file_name?: string, file_type?: string, file_size?: number, description?: string);
|
|
13
|
+
}
|