@platform-modules/civil-aviation-authority 2.3.338 → 2.3.340
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 +13 -4
- package/dist/data-source.js +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/ImportExportMaterialModels.d.ts +92 -0
- package/dist/models/ImportExportMaterialModels.js +307 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/ScholarshipChatModel.d.ts +3 -0
- package/dist/models/ScholarshipChatModel.js +12 -0
- package/dist/models/ScholarshipRequestModel.d.ts +10 -0
- package/dist/models/ScholarshipRequestModel.js +30 -1
- package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
- package/dist/models/SecurityAccessApprovalModel.js +82 -0
- package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAccessAttachmentModel.js +56 -0
- package/dist/models/SecurityAccessChatModel.d.ts +12 -0
- package/dist/models/SecurityAccessChatModel.js +56 -0
- package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
- package/dist/models/SecurityAccessRequestModel.js +80 -0
- package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
- package/dist/models/SecurityAccessWorkflowModel.js +84 -0
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
- package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
- package/dist/models/SlaApprovalsViewModel.js +54 -54
- package/dist/models/StudyLeaveRequestModel.d.ts +2 -2
- package/dist/models/StudyLeaveRequestModel.js +3 -3
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
- package/dist/models/WorkingHoursExtensionModels.js +295 -0
- package/package.json +1 -1
- package/scripts/sync-sla-reports-sql.js +92 -92
- package/sql/README.md +21 -21
- package/sql/add_annual_training_plan_reference_number.sql +6 -6
- package/sql/add_scholarship_request_extra_fields.sql +45 -0
- package/sql/add_training_request_reference_number.sql +9 -9
- package/sql/add_training_room_booking_records_reference.sql +19 -19
- package/sql/sla_reports_admin_procedures.sql +322 -322
- package/sql/sla_reports_approvals_workbook.sql +427 -427
- package/sql/sla_reports_procedures.sql +883 -883
- package/sql/study_leave_description_optional.sql +5 -0
- package/sql/update_scholarship_workflow_version_2.sql +11 -0
- package/sql/vw_sla_approvals.sql +115 -115
- package/sql/vw_sla_my_requests.sql +58 -58
- package/src/data-source.ts +0 -2
- package/src/index.ts +0 -1
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualTrainingPlanRequestModel.ts +156 -156
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HotelApprovalModel.ts +83 -83
- package/src/models/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/LegalConsultationApprovalModel.ts +65 -65
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/NotificationModel.ts +89 -89
- package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
- package/src/models/ScholarshipChatModel.ts +9 -0
- package/src/models/ScholarshipRequestModel.ts +23 -0
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
- package/src/models/ServiceSlaApprovalModel.ts +64 -64
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/SlaApprovalsViewModel.ts +142 -142
- package/src/models/StudyLeaveRequestModel.ts +173 -173
- package/src/models/TrainingRequestModel.ts +169 -169
- package/src/models/TrainingRoomBookingRequestModel.ts +178 -178
- package/src/models/TrainingRoomBookingWorkflowModel.ts +81 -81
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/role.ts +34 -34
- package/src/scripts.ts +20 -20
- package/src/sla/sla-table-sync.service.ts +90 -90
- package/dist/helpers/cancellation-bilingual-persist.helper.d.ts +0 -37
- package/dist/helpers/cancellation-bilingual-persist.helper.js +0 -77
- package/dist/models/HelpContentCategoryModel.d.ts +0 -6
- package/dist/models/HelpContentCategoryModel.js +0 -34
- package/sql/add_help_content_categories_name_arabic.sql +0 -2
- package/src/models/HelpContentCategoryModel.ts +0 -20
|
@@ -0,0 +1,312 @@
|
|
|
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.ServiceExtensionAfterAge60Attachment = exports.ServiceExtensionAfterAge60Chat = exports.ServiceExtensionAfterAge60Workflow = exports.ServiceExtensionAfterAge60WorkFlowStatus = exports.ServiceExtensionAfterAge60Approval = exports.ServiceExtensionAfterAge60ApprovalStatus = exports.ServiceExtensionAfterAge60Request = exports.ServiceExtensionAfterAge60RequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ServiceExtensionAfterAge60RequestStatus;
|
|
16
|
+
(function (ServiceExtensionAfterAge60RequestStatus) {
|
|
17
|
+
ServiceExtensionAfterAge60RequestStatus["Pending"] = "Pending";
|
|
18
|
+
ServiceExtensionAfterAge60RequestStatus["Approved"] = "Approved";
|
|
19
|
+
ServiceExtensionAfterAge60RequestStatus["Rejected"] = "Rejected";
|
|
20
|
+
ServiceExtensionAfterAge60RequestStatus["RFC"] = "RFC";
|
|
21
|
+
})(ServiceExtensionAfterAge60RequestStatus || (exports.ServiceExtensionAfterAge60RequestStatus = ServiceExtensionAfterAge60RequestStatus = {}));
|
|
22
|
+
let ServiceExtensionAfterAge60Request = class ServiceExtensionAfterAge60Request extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.ServiceExtensionAfterAge60Request = ServiceExtensionAfterAge60Request;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], ServiceExtensionAfterAge60Request.prototype, "req_user_department_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], ServiceExtensionAfterAge60Request.prototype, "req_user_section_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ServiceExtensionAfterAge60Request.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ServiceExtensionAfterAge60Request.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ServiceExtensionAfterAge60Request.prototype, "user_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], ServiceExtensionAfterAge60Request.prototype, "date_of_joining", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ServiceExtensionAfterAge60Request.prototype, "grade", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ServiceExtensionAfterAge60Request.prototype, "reason_for_requesting_extension", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ServiceExtensionAfterAge60Request.prototype, "years_of_service", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ServiceExtensionAfterAge60Request.prototype, "requested_extension_duration", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], ServiceExtensionAfterAge60Request.prototype, "proposed_extension_start_date", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
71
|
+
__metadata("design:type", Date)
|
|
72
|
+
], ServiceExtensionAfterAge60Request.prototype, "proposed_extension_end_date", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], ServiceExtensionAfterAge60Request.prototype, "acknowledgment_terms", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ServiceExtensionAfterAge60Request.prototype, "description", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: ServiceExtensionAfterAge60RequestStatus.Pending }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], ServiceExtensionAfterAge60Request.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], ServiceExtensionAfterAge60Request.prototype, "workflow_execution_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], ServiceExtensionAfterAge60Request.prototype, "created_by", void 0);
|
|
93
|
+
exports.ServiceExtensionAfterAge60Request = ServiceExtensionAfterAge60Request = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_age_60_requests" })
|
|
95
|
+
], ServiceExtensionAfterAge60Request);
|
|
96
|
+
var ServiceExtensionAfterAge60ApprovalStatus;
|
|
97
|
+
(function (ServiceExtensionAfterAge60ApprovalStatus) {
|
|
98
|
+
ServiceExtensionAfterAge60ApprovalStatus["Pending"] = "Pending";
|
|
99
|
+
ServiceExtensionAfterAge60ApprovalStatus["InProgress"] = "In Progress";
|
|
100
|
+
ServiceExtensionAfterAge60ApprovalStatus["Approved"] = "Approved";
|
|
101
|
+
ServiceExtensionAfterAge60ApprovalStatus["Rejected"] = "Rejected";
|
|
102
|
+
ServiceExtensionAfterAge60ApprovalStatus["Reassigned"] = "Reassigned";
|
|
103
|
+
})(ServiceExtensionAfterAge60ApprovalStatus || (exports.ServiceExtensionAfterAge60ApprovalStatus = ServiceExtensionAfterAge60ApprovalStatus = {}));
|
|
104
|
+
let ServiceExtensionAfterAge60Approval = class ServiceExtensionAfterAge60Approval extends BaseModel_1.BaseModel {
|
|
105
|
+
};
|
|
106
|
+
exports.ServiceExtensionAfterAge60Approval = ServiceExtensionAfterAge60Approval;
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], ServiceExtensionAfterAge60Approval.prototype, "request_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], ServiceExtensionAfterAge60Approval.prototype, "service_id", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], ServiceExtensionAfterAge60Approval.prototype, "sub_service_id", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], ServiceExtensionAfterAge60Approval.prototype, "level", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], ServiceExtensionAfterAge60Approval.prototype, "approver_user_id", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], ServiceExtensionAfterAge60Approval.prototype, "approver_role_id", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], ServiceExtensionAfterAge60Approval.prototype, "department_id", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], ServiceExtensionAfterAge60Approval.prototype, "section_id", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], ServiceExtensionAfterAge60Approval.prototype, "delegate_user_id", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], ServiceExtensionAfterAge60Approval.prototype, "comment", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: ServiceExtensionAfterAge60ApprovalStatus.Pending }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], ServiceExtensionAfterAge60Approval.prototype, "approval_status", void 0);
|
|
151
|
+
exports.ServiceExtensionAfterAge60Approval = ServiceExtensionAfterAge60Approval = __decorate([
|
|
152
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_age_60_approvals" })
|
|
153
|
+
], ServiceExtensionAfterAge60Approval);
|
|
154
|
+
var ServiceExtensionAfterAge60WorkFlowStatus;
|
|
155
|
+
(function (ServiceExtensionAfterAge60WorkFlowStatus) {
|
|
156
|
+
ServiceExtensionAfterAge60WorkFlowStatus["Pending"] = "Pending";
|
|
157
|
+
ServiceExtensionAfterAge60WorkFlowStatus["InProgress"] = "In Progress";
|
|
158
|
+
ServiceExtensionAfterAge60WorkFlowStatus["Approved"] = "Approved";
|
|
159
|
+
ServiceExtensionAfterAge60WorkFlowStatus["Rejected"] = "Rejected";
|
|
160
|
+
ServiceExtensionAfterAge60WorkFlowStatus["RFC"] = "RFC";
|
|
161
|
+
ServiceExtensionAfterAge60WorkFlowStatus["Completed"] = "Completed";
|
|
162
|
+
})(ServiceExtensionAfterAge60WorkFlowStatus || (exports.ServiceExtensionAfterAge60WorkFlowStatus = ServiceExtensionAfterAge60WorkFlowStatus = {}));
|
|
163
|
+
let ServiceExtensionAfterAge60Workflow = class ServiceExtensionAfterAge60Workflow extends BaseModel_1.BaseModel {
|
|
164
|
+
};
|
|
165
|
+
exports.ServiceExtensionAfterAge60Workflow = ServiceExtensionAfterAge60Workflow;
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
168
|
+
__metadata("design:type", Number)
|
|
169
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "request_id", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "service_id", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "sub_service_id", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
180
|
+
__metadata("design:type", Object)
|
|
181
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "workflow_definition_id", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "current_level", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
188
|
+
__metadata("design:type", Object)
|
|
189
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "content", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "status", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
196
|
+
__metadata("design:type", Object)
|
|
197
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "step_order", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
200
|
+
__metadata("design:type", Object)
|
|
201
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "user_id", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
204
|
+
__metadata("design:type", Object)
|
|
205
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "role_id", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
208
|
+
__metadata("design:type", Object)
|
|
209
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "department_id", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
212
|
+
__metadata("design:type", Object)
|
|
213
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "section_id", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
216
|
+
__metadata("design:type", Object)
|
|
217
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "workflow_data", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
220
|
+
__metadata("design:type", Number)
|
|
221
|
+
], ServiceExtensionAfterAge60Workflow.prototype, "created_by", void 0);
|
|
222
|
+
exports.ServiceExtensionAfterAge60Workflow = ServiceExtensionAfterAge60Workflow = __decorate([
|
|
223
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_age_60_workflow" })
|
|
224
|
+
], ServiceExtensionAfterAge60Workflow);
|
|
225
|
+
let ServiceExtensionAfterAge60Chat = class ServiceExtensionAfterAge60Chat extends BaseModel_1.BaseModel {
|
|
226
|
+
};
|
|
227
|
+
exports.ServiceExtensionAfterAge60Chat = ServiceExtensionAfterAge60Chat;
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
230
|
+
__metadata("design:type", Number)
|
|
231
|
+
], ServiceExtensionAfterAge60Chat.prototype, "request_id", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
234
|
+
__metadata("design:type", Number)
|
|
235
|
+
], ServiceExtensionAfterAge60Chat.prototype, "service_id", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
238
|
+
__metadata("design:type", Number)
|
|
239
|
+
], ServiceExtensionAfterAge60Chat.prototype, "sub_service_id", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
242
|
+
__metadata("design:type", Number)
|
|
243
|
+
], ServiceExtensionAfterAge60Chat.prototype, "user_id", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
246
|
+
__metadata("design:type", Object)
|
|
247
|
+
], ServiceExtensionAfterAge60Chat.prototype, "approver_role_id", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
250
|
+
__metadata("design:type", String)
|
|
251
|
+
], ServiceExtensionAfterAge60Chat.prototype, "message", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: "text" }),
|
|
254
|
+
__metadata("design:type", String)
|
|
255
|
+
], ServiceExtensionAfterAge60Chat.prototype, "message_type", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
258
|
+
__metadata("design:type", Object)
|
|
259
|
+
], ServiceExtensionAfterAge60Chat.prototype, "status", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
262
|
+
__metadata("design:type", Boolean)
|
|
263
|
+
], ServiceExtensionAfterAge60Chat.prototype, "is_internal", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
266
|
+
__metadata("design:type", Number)
|
|
267
|
+
], ServiceExtensionAfterAge60Chat.prototype, "created_by", void 0);
|
|
268
|
+
exports.ServiceExtensionAfterAge60Chat = ServiceExtensionAfterAge60Chat = __decorate([
|
|
269
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_age_60_chat" })
|
|
270
|
+
], ServiceExtensionAfterAge60Chat);
|
|
271
|
+
let ServiceExtensionAfterAge60Attachment = class ServiceExtensionAfterAge60Attachment extends BaseModel_1.BaseModel {
|
|
272
|
+
};
|
|
273
|
+
exports.ServiceExtensionAfterAge60Attachment = ServiceExtensionAfterAge60Attachment;
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
276
|
+
__metadata("design:type", Number)
|
|
277
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "request_id", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
280
|
+
__metadata("design:type", Number)
|
|
281
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "service_id", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
284
|
+
__metadata("design:type", Number)
|
|
285
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "sub_service_id", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 80, nullable: true }),
|
|
288
|
+
__metadata("design:type", Object)
|
|
289
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "attachment_kind", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
292
|
+
__metadata("design:type", String)
|
|
293
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "file_name", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
296
|
+
__metadata("design:type", String)
|
|
297
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "file_url", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120, nullable: true }),
|
|
300
|
+
__metadata("design:type", Object)
|
|
301
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "file_type", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
304
|
+
__metadata("design:type", Object)
|
|
305
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "file_size", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
308
|
+
__metadata("design:type", Number)
|
|
309
|
+
], ServiceExtensionAfterAge60Attachment.prototype, "created_by", void 0);
|
|
310
|
+
exports.ServiceExtensionAfterAge60Attachment = ServiceExtensionAfterAge60Attachment = __decorate([
|
|
311
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_age_60_attachments" })
|
|
312
|
+
], ServiceExtensionAfterAge60Attachment);
|
|
@@ -11,60 +11,60 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SlaApprovalsView = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const VW_SLA_APPROVALS_SQL = `
|
|
15
|
-
SELECT
|
|
16
|
-
sa.id AS sla_approval_id,
|
|
17
|
-
sa.source_approval_id,
|
|
18
|
-
sa.request_id,
|
|
19
|
-
sa.service_id AS service_id,
|
|
20
|
-
sa.sub_service_id AS sub_service_id,
|
|
21
|
-
TRIM(COALESCE(svc.name, ''))::TEXT AS service_name,
|
|
22
|
-
TRIM(COALESCE(subsvc.sub_service_name, ''))::TEXT AS sub_service_name,
|
|
23
|
-
sa.approver_role_id AS approval_role_id,
|
|
24
|
-
TRIM(COALESCE(ar.name, ''))::TEXT AS approval_role_name,
|
|
25
|
-
sa.department_id AS approval_department_id,
|
|
26
|
-
TRIM(COALESCE(adpt.department_name, ''))::TEXT AS approval_department_name,
|
|
27
|
-
sa.section_id AS approval_section_id,
|
|
28
|
-
TRIM(COALESCE(asec.section_name, ''))::TEXT AS approval_section_name,
|
|
29
|
-
sa.approval_status::TEXT AS approval_status,
|
|
30
|
-
sr.status::TEXT AS request_status,
|
|
31
|
-
sa.level AS level,
|
|
32
|
-
sa.approver_user_id AS approver_user_id,
|
|
33
|
-
TRIM(COALESCE(au.employee_name, ''))::TEXT AS approver_user_name,
|
|
34
|
-
sa.delegate_user_id AS delegate_user_id,
|
|
35
|
-
TRIM(COALESCE(du.employee_name, ''))::TEXT AS delegate_user_name,
|
|
36
|
-
sa.approved_by AS approved_by,
|
|
37
|
-
TRIM(COALESCE(ab.employee_name, ''))::TEXT AS approved_by_name,
|
|
38
|
-
sa.comment::TEXT AS comment,
|
|
39
|
-
sa.created_at AS created_at,
|
|
40
|
-
sa.updated_at AS updated_at
|
|
41
|
-
FROM sla_approval sa
|
|
42
|
-
INNER JOIN sla_requests sr
|
|
43
|
-
ON sr.id = (
|
|
44
|
-
SELECT MIN(sr2.id)
|
|
45
|
-
FROM sla_requests sr2
|
|
46
|
-
WHERE sr2.request_id = sa.request_id
|
|
47
|
-
AND COALESCE(sr2.is_deleted, false) = false
|
|
48
|
-
AND (sa.service_id IS NULL OR sr2.service_id = sa.service_id)
|
|
49
|
-
AND (sa.sub_service_id IS NULL OR sr2.sub_service_id = sa.sub_service_id)
|
|
50
|
-
)
|
|
51
|
-
LEFT JOIN caa_services svc
|
|
52
|
-
ON svc.id = sa.service_id AND COALESCE(svc.is_deleted, false) = false
|
|
53
|
-
LEFT JOIN caa_sub_services subsvc
|
|
54
|
-
ON subsvc.id = sa.sub_service_id AND COALESCE(subsvc.is_deleted, false) = false
|
|
55
|
-
LEFT JOIN departments adpt
|
|
56
|
-
ON adpt.id = sa.department_id AND COALESCE(adpt.is_deleted, false) = false
|
|
57
|
-
LEFT JOIN sections asec
|
|
58
|
-
ON asec.id = sa.section_id AND COALESCE(asec.is_deleted, false) = false
|
|
59
|
-
LEFT JOIN role ar
|
|
60
|
-
ON ar.id = sa.approver_role_id AND COALESCE(ar.is_deleted, false) = false
|
|
61
|
-
LEFT JOIN users au
|
|
62
|
-
ON au.id = sa.approver_user_id AND COALESCE(au.is_deleted, false) = false
|
|
63
|
-
LEFT JOIN users du
|
|
64
|
-
ON du.id = sa.delegate_user_id AND COALESCE(du.is_deleted, false) = false
|
|
65
|
-
LEFT JOIN users ab
|
|
66
|
-
ON ab.id = sa.approved_by AND COALESCE(ab.is_deleted, false) = false
|
|
67
|
-
WHERE COALESCE(sa.is_deleted, false) = false
|
|
14
|
+
const VW_SLA_APPROVALS_SQL = `
|
|
15
|
+
SELECT
|
|
16
|
+
sa.id AS sla_approval_id,
|
|
17
|
+
sa.source_approval_id,
|
|
18
|
+
sa.request_id,
|
|
19
|
+
sa.service_id AS service_id,
|
|
20
|
+
sa.sub_service_id AS sub_service_id,
|
|
21
|
+
TRIM(COALESCE(svc.name, ''))::TEXT AS service_name,
|
|
22
|
+
TRIM(COALESCE(subsvc.sub_service_name, ''))::TEXT AS sub_service_name,
|
|
23
|
+
sa.approver_role_id AS approval_role_id,
|
|
24
|
+
TRIM(COALESCE(ar.name, ''))::TEXT AS approval_role_name,
|
|
25
|
+
sa.department_id AS approval_department_id,
|
|
26
|
+
TRIM(COALESCE(adpt.department_name, ''))::TEXT AS approval_department_name,
|
|
27
|
+
sa.section_id AS approval_section_id,
|
|
28
|
+
TRIM(COALESCE(asec.section_name, ''))::TEXT AS approval_section_name,
|
|
29
|
+
sa.approval_status::TEXT AS approval_status,
|
|
30
|
+
sr.status::TEXT AS request_status,
|
|
31
|
+
sa.level AS level,
|
|
32
|
+
sa.approver_user_id AS approver_user_id,
|
|
33
|
+
TRIM(COALESCE(au.employee_name, ''))::TEXT AS approver_user_name,
|
|
34
|
+
sa.delegate_user_id AS delegate_user_id,
|
|
35
|
+
TRIM(COALESCE(du.employee_name, ''))::TEXT AS delegate_user_name,
|
|
36
|
+
sa.approved_by AS approved_by,
|
|
37
|
+
TRIM(COALESCE(ab.employee_name, ''))::TEXT AS approved_by_name,
|
|
38
|
+
sa.comment::TEXT AS comment,
|
|
39
|
+
sa.created_at AS created_at,
|
|
40
|
+
sa.updated_at AS updated_at
|
|
41
|
+
FROM sla_approval sa
|
|
42
|
+
INNER JOIN sla_requests sr
|
|
43
|
+
ON sr.id = (
|
|
44
|
+
SELECT MIN(sr2.id)
|
|
45
|
+
FROM sla_requests sr2
|
|
46
|
+
WHERE sr2.request_id = sa.request_id
|
|
47
|
+
AND COALESCE(sr2.is_deleted, false) = false
|
|
48
|
+
AND (sa.service_id IS NULL OR sr2.service_id = sa.service_id)
|
|
49
|
+
AND (sa.sub_service_id IS NULL OR sr2.sub_service_id = sa.sub_service_id)
|
|
50
|
+
)
|
|
51
|
+
LEFT JOIN caa_services svc
|
|
52
|
+
ON svc.id = sa.service_id AND COALESCE(svc.is_deleted, false) = false
|
|
53
|
+
LEFT JOIN caa_sub_services subsvc
|
|
54
|
+
ON subsvc.id = sa.sub_service_id AND COALESCE(subsvc.is_deleted, false) = false
|
|
55
|
+
LEFT JOIN departments adpt
|
|
56
|
+
ON adpt.id = sa.department_id AND COALESCE(adpt.is_deleted, false) = false
|
|
57
|
+
LEFT JOIN sections asec
|
|
58
|
+
ON asec.id = sa.section_id AND COALESCE(asec.is_deleted, false) = false
|
|
59
|
+
LEFT JOIN role ar
|
|
60
|
+
ON ar.id = sa.approver_role_id AND COALESCE(ar.is_deleted, false) = false
|
|
61
|
+
LEFT JOIN users au
|
|
62
|
+
ON au.id = sa.approver_user_id AND COALESCE(au.is_deleted, false) = false
|
|
63
|
+
LEFT JOIN users du
|
|
64
|
+
ON du.id = sa.delegate_user_id AND COALESCE(du.is_deleted, false) = false
|
|
65
|
+
LEFT JOIN users ab
|
|
66
|
+
ON ab.id = sa.approved_by AND COALESCE(ab.is_deleted, false) = false
|
|
67
|
+
WHERE COALESCE(sa.is_deleted, false) = false
|
|
68
68
|
`;
|
|
69
69
|
/**
|
|
70
70
|
* Read-only view for SLA approvals listings (TypeORM).
|
|
@@ -29,7 +29,7 @@ export declare class StudyLeaveRequest extends BaseModel {
|
|
|
29
29
|
course_start_date: Date;
|
|
30
30
|
course_end_date: Date;
|
|
31
31
|
location: string;
|
|
32
|
-
description: string;
|
|
32
|
+
description: string | null;
|
|
33
33
|
status: StudyLeaveRequestStatus;
|
|
34
34
|
reviewer_user_id: number | null;
|
|
35
35
|
assigned_to_user_id: number | null;
|
|
@@ -46,5 +46,5 @@ export declare class StudyLeaveRequest extends BaseModel {
|
|
|
46
46
|
type_of_leave: TypeOfLeave | null;
|
|
47
47
|
/** Assigned when the request reaches Records approval, e.g. SL00001. */
|
|
48
48
|
reference_number: string | null;
|
|
49
|
-
constructor(user_id: number, course_name: string, institute_name: string, course_start_date: Date, course_end_date: Date, location: string, description: string, status?: StudyLeaveRequestStatus, 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, duration_of_course?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, already_submitted_in_ministry_of_education_system?: boolean | null, area_name?: string | null, country_name?: string | null, qualification_required?: string | null, have_you_ever_received_authority?: boolean | null, scholarship?: string | null);
|
|
49
|
+
constructor(user_id: number, course_name: string, institute_name: string, course_start_date: Date, course_end_date: Date, location: string, description: string | null, status?: StudyLeaveRequestStatus, 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, duration_of_course?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, already_submitted_in_ministry_of_education_system?: boolean | null, area_name?: string | null, country_name?: string | null, qualification_required?: string | null, have_you_ever_received_authority?: boolean | null, scholarship?: string | null);
|
|
50
50
|
}
|
|
@@ -115,8 +115,8 @@ __decorate([
|
|
|
115
115
|
__metadata("design:type", String)
|
|
116
116
|
], StudyLeaveRequest.prototype, "location", void 0);
|
|
117
117
|
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ type: "text", nullable:
|
|
119
|
-
__metadata("design:type",
|
|
118
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
120
|
], StudyLeaveRequest.prototype, "description", void 0);
|
|
121
121
|
__decorate([
|
|
122
122
|
(0, typeorm_1.Column)({
|
|
@@ -186,5 +186,5 @@ __decorate([
|
|
|
186
186
|
exports.StudyLeaveRequest = StudyLeaveRequest = __decorate([
|
|
187
187
|
(0, typeorm_1.Entity)({ name: "study_leave_requests" }),
|
|
188
188
|
__metadata("design:paramtypes", [Number, String, String, Date,
|
|
189
|
-
Date, String,
|
|
189
|
+
Date, String, Object, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
190
190
|
], StudyLeaveRequest);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare abstract class UUIDModel0 {
|
|
2
|
+
jsonIgnore: string[];
|
|
3
|
+
created_by?: string;
|
|
4
|
+
created_at?: Date;
|
|
5
|
+
updated_by?: string;
|
|
6
|
+
updated_at?: Date;
|
|
7
|
+
insertCreated(): void;
|
|
8
|
+
is_deleted?: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class UUIDBaseModel extends UUIDModel0 {
|
|
12
|
+
id: string;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UUIDBaseModel = exports.UUIDModel0 = void 0;
|
|
16
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
class UUIDModel0 {
|
|
19
|
+
insertCreated() {
|
|
20
|
+
const currentTime = (0, moment_timezone_1.default)().utc().tz('Asia/Kolkata').toDate();
|
|
21
|
+
this.created_at = currentTime;
|
|
22
|
+
this.updated_at = currentTime;
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
this.jsonIgnore = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
26
|
+
this.is_deleted = false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UUIDModel0 = UUIDModel0;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UUIDModel0.prototype, "created_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], UUIDModel0.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UUIDModel0.prototype, "updated_by", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], UUIDModel0.prototype, "updated_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", void 0)
|
|
51
|
+
], UUIDModel0.prototype, "insertCreated", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UUIDModel0.prototype, "is_deleted", void 0);
|
|
56
|
+
class UUIDBaseModel extends UUIDModel0 {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
this.id = ''; // This will be set by the database when the entity is saved
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.UUIDBaseModel = UUIDBaseModel;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UUIDBaseModel.prototype, "id", void 0);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum WorkingHoursExtensionRequestStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
Approved = "Approved",
|
|
5
|
+
Rejected = "Rejected",
|
|
6
|
+
RFC = "RFC"
|
|
7
|
+
}
|
|
8
|
+
export declare enum WorkingHoursExtensionWorkflowStatus {
|
|
9
|
+
Pending = "Pending",
|
|
10
|
+
InProgress = "In Progress",
|
|
11
|
+
Completed = "Completed",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected"
|
|
14
|
+
}
|
|
15
|
+
export declare class WorkingHoursExtensionRequest extends BaseModel {
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
req_user_section_id: number | null;
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
user_id: number;
|
|
21
|
+
requested_extension_date: Date;
|
|
22
|
+
requested_start_time: string;
|
|
23
|
+
requested_end_time: string;
|
|
24
|
+
reason_for_extension: string;
|
|
25
|
+
room_or_area: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
status: string;
|
|
28
|
+
workflow_execution_id: string | null;
|
|
29
|
+
created_by: number;
|
|
30
|
+
}
|
|
31
|
+
export declare enum WorkingHoursExtensionApprovalStatus {
|
|
32
|
+
Pending = "Pending",
|
|
33
|
+
InProgress = "In Progress",
|
|
34
|
+
Approved = "Approved",
|
|
35
|
+
Rejected = "Rejected",
|
|
36
|
+
Reassigned = "Reassigned"
|
|
37
|
+
}
|
|
38
|
+
export declare class WorkingHoursExtensionApproval extends BaseModel {
|
|
39
|
+
request_id: number;
|
|
40
|
+
service_id: number | null;
|
|
41
|
+
sub_service_id: number | null;
|
|
42
|
+
level: number;
|
|
43
|
+
approver_user_id: number | null;
|
|
44
|
+
approver_role_id: number | null;
|
|
45
|
+
department_id: number | null;
|
|
46
|
+
section_id: number | null;
|
|
47
|
+
delegate_user_id: number | null;
|
|
48
|
+
comment: string;
|
|
49
|
+
approval_status: string;
|
|
50
|
+
}
|
|
51
|
+
export declare class WorkingHoursExtensionWorkflow extends BaseModel {
|
|
52
|
+
request_id: number;
|
|
53
|
+
service_id: number | null;
|
|
54
|
+
sub_service_id: number | null;
|
|
55
|
+
workflow_definition_id: number | null;
|
|
56
|
+
current_level: number | null;
|
|
57
|
+
content: string | null;
|
|
58
|
+
status: string;
|
|
59
|
+
step_order: number | null;
|
|
60
|
+
user_id: number | null;
|
|
61
|
+
role_id: number | null;
|
|
62
|
+
department_id: number | null;
|
|
63
|
+
section_id: number | null;
|
|
64
|
+
workflow_data: string | null;
|
|
65
|
+
created_by: number;
|
|
66
|
+
}
|
|
67
|
+
export declare class WorkingHoursExtensionChat extends BaseModel {
|
|
68
|
+
request_id: number;
|
|
69
|
+
service_id: number;
|
|
70
|
+
sub_service_id: number;
|
|
71
|
+
user_id: number;
|
|
72
|
+
approver_role_id: number | null;
|
|
73
|
+
message: string;
|
|
74
|
+
message_type: string;
|
|
75
|
+
status: string | null;
|
|
76
|
+
is_internal: boolean;
|
|
77
|
+
created_by: number;
|
|
78
|
+
}
|
|
79
|
+
export declare class WorkingHoursExtensionAttachment extends BaseModel {
|
|
80
|
+
request_id: number;
|
|
81
|
+
service_id: number;
|
|
82
|
+
sub_service_id: number;
|
|
83
|
+
file_name: string;
|
|
84
|
+
file_url: string;
|
|
85
|
+
file_type: string | null;
|
|
86
|
+
file_size: number | null;
|
|
87
|
+
created_by: number;
|
|
88
|
+
}
|