@platform-modules/civil-aviation-authority 2.3.338 → 2.3.339
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 +19 -10
- 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/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/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,307 @@
|
|
|
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.ImportExportMaterialPermissionAttachment = exports.ImportExportMaterialPermissionChat = exports.ImportExportMaterialPermissionWorkflow = exports.ImportExportMaterialPermissionApproval = exports.ImportExportMaterialApprovalStatus = exports.ImportExportMaterialPermissionRequest = exports.ImportExportMaterialWorkflowStatus = exports.ImportExportMaterialRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialRequestStatus;
|
|
16
|
+
(function (ImportExportMaterialRequestStatus) {
|
|
17
|
+
ImportExportMaterialRequestStatus["Pending"] = "Pending";
|
|
18
|
+
ImportExportMaterialRequestStatus["Approved"] = "Approved";
|
|
19
|
+
ImportExportMaterialRequestStatus["Rejected"] = "Rejected";
|
|
20
|
+
ImportExportMaterialRequestStatus["RFC"] = "RFC";
|
|
21
|
+
})(ImportExportMaterialRequestStatus || (exports.ImportExportMaterialRequestStatus = ImportExportMaterialRequestStatus = {}));
|
|
22
|
+
var ImportExportMaterialWorkflowStatus;
|
|
23
|
+
(function (ImportExportMaterialWorkflowStatus) {
|
|
24
|
+
ImportExportMaterialWorkflowStatus["Pending"] = "Pending";
|
|
25
|
+
ImportExportMaterialWorkflowStatus["InProgress"] = "In Progress";
|
|
26
|
+
ImportExportMaterialWorkflowStatus["Completed"] = "Completed";
|
|
27
|
+
ImportExportMaterialWorkflowStatus["Approved"] = "Approved";
|
|
28
|
+
ImportExportMaterialWorkflowStatus["Rejected"] = "Rejected";
|
|
29
|
+
})(ImportExportMaterialWorkflowStatus || (exports.ImportExportMaterialWorkflowStatus = ImportExportMaterialWorkflowStatus = {}));
|
|
30
|
+
let ImportExportMaterialPermissionRequest = class ImportExportMaterialPermissionRequest extends BaseModel_1.BaseModel {
|
|
31
|
+
};
|
|
32
|
+
exports.ImportExportMaterialPermissionRequest = ImportExportMaterialPermissionRequest;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ImportExportMaterialPermissionRequest.prototype, "req_user_department_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ImportExportMaterialPermissionRequest.prototype, "req_user_section_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], ImportExportMaterialPermissionRequest.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ImportExportMaterialPermissionRequest.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ImportExportMaterialPermissionRequest.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], ImportExportMaterialPermissionRequest.prototype, "date_of_request", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ImportExportMaterialPermissionRequest.prototype, "request_type", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], ImportExportMaterialPermissionRequest.prototype, "requested_material_movement_date", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ImportExportMaterialPermissionRequest.prototype, "hazardous_or_sensitive_details", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ImportExportMaterialPermissionRequest.prototype, "purpose", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], ImportExportMaterialPermissionRequest.prototype, "material_name_description", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120, nullable: false }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ImportExportMaterialPermissionRequest.prototype, "mode_of_transport", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 80, nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], ImportExportMaterialPermissionRequest.prototype, "vehicle_number", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], ImportExportMaterialPermissionRequest.prototype, "description", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: ImportExportMaterialRequestStatus.Pending }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], ImportExportMaterialPermissionRequest.prototype, "status", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], ImportExportMaterialPermissionRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], ImportExportMaterialPermissionRequest.prototype, "created_by", void 0);
|
|
101
|
+
exports.ImportExportMaterialPermissionRequest = ImportExportMaterialPermissionRequest = __decorate([
|
|
102
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_permission_requests" })
|
|
103
|
+
], ImportExportMaterialPermissionRequest);
|
|
104
|
+
var ImportExportMaterialApprovalStatus;
|
|
105
|
+
(function (ImportExportMaterialApprovalStatus) {
|
|
106
|
+
ImportExportMaterialApprovalStatus["Pending"] = "Pending";
|
|
107
|
+
ImportExportMaterialApprovalStatus["InProgress"] = "In Progress";
|
|
108
|
+
ImportExportMaterialApprovalStatus["Approved"] = "Approved";
|
|
109
|
+
ImportExportMaterialApprovalStatus["Rejected"] = "Rejected";
|
|
110
|
+
ImportExportMaterialApprovalStatus["Reassigned"] = "Reassigned";
|
|
111
|
+
})(ImportExportMaterialApprovalStatus || (exports.ImportExportMaterialApprovalStatus = ImportExportMaterialApprovalStatus = {}));
|
|
112
|
+
let ImportExportMaterialPermissionApproval = class ImportExportMaterialPermissionApproval extends BaseModel_1.BaseModel {
|
|
113
|
+
};
|
|
114
|
+
exports.ImportExportMaterialPermissionApproval = ImportExportMaterialPermissionApproval;
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], ImportExportMaterialPermissionApproval.prototype, "request_id", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], ImportExportMaterialPermissionApproval.prototype, "service_id", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], ImportExportMaterialPermissionApproval.prototype, "sub_service_id", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], ImportExportMaterialPermissionApproval.prototype, "level", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], ImportExportMaterialPermissionApproval.prototype, "approver_user_id", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], ImportExportMaterialPermissionApproval.prototype, "approver_role_id", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], ImportExportMaterialPermissionApproval.prototype, "department_id", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], ImportExportMaterialPermissionApproval.prototype, "section_id", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], ImportExportMaterialPermissionApproval.prototype, "delegate_user_id", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], ImportExportMaterialPermissionApproval.prototype, "comment", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: ImportExportMaterialApprovalStatus.Pending }),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], ImportExportMaterialPermissionApproval.prototype, "approval_status", void 0);
|
|
159
|
+
exports.ImportExportMaterialPermissionApproval = ImportExportMaterialPermissionApproval = __decorate([
|
|
160
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_permission_approvals" })
|
|
161
|
+
], ImportExportMaterialPermissionApproval);
|
|
162
|
+
let ImportExportMaterialPermissionWorkflow = class ImportExportMaterialPermissionWorkflow extends BaseModel_1.BaseModel {
|
|
163
|
+
};
|
|
164
|
+
exports.ImportExportMaterialPermissionWorkflow = ImportExportMaterialPermissionWorkflow;
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
167
|
+
__metadata("design:type", Number)
|
|
168
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "request_id", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "service_id", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
175
|
+
__metadata("design:type", Object)
|
|
176
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "sub_service_id", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "workflow_definition_id", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "current_level", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
187
|
+
__metadata("design:type", Object)
|
|
188
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "content", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "status", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "step_order", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
199
|
+
__metadata("design:type", Object)
|
|
200
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "user_id", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
203
|
+
__metadata("design:type", Object)
|
|
204
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "role_id", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "department_id", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
211
|
+
__metadata("design:type", Object)
|
|
212
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "section_id", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
215
|
+
__metadata("design:type", Object)
|
|
216
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "workflow_data", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
219
|
+
__metadata("design:type", Number)
|
|
220
|
+
], ImportExportMaterialPermissionWorkflow.prototype, "created_by", void 0);
|
|
221
|
+
exports.ImportExportMaterialPermissionWorkflow = ImportExportMaterialPermissionWorkflow = __decorate([
|
|
222
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_permission_workflow" })
|
|
223
|
+
], ImportExportMaterialPermissionWorkflow);
|
|
224
|
+
let ImportExportMaterialPermissionChat = class ImportExportMaterialPermissionChat extends BaseModel_1.BaseModel {
|
|
225
|
+
};
|
|
226
|
+
exports.ImportExportMaterialPermissionChat = ImportExportMaterialPermissionChat;
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
229
|
+
__metadata("design:type", Number)
|
|
230
|
+
], ImportExportMaterialPermissionChat.prototype, "request_id", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
233
|
+
__metadata("design:type", Number)
|
|
234
|
+
], ImportExportMaterialPermissionChat.prototype, "service_id", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
237
|
+
__metadata("design:type", Number)
|
|
238
|
+
], ImportExportMaterialPermissionChat.prototype, "sub_service_id", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
241
|
+
__metadata("design:type", Number)
|
|
242
|
+
], ImportExportMaterialPermissionChat.prototype, "user_id", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
245
|
+
__metadata("design:type", Object)
|
|
246
|
+
], ImportExportMaterialPermissionChat.prototype, "approver_role_id", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], ImportExportMaterialPermissionChat.prototype, "message", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: "text" }),
|
|
253
|
+
__metadata("design:type", String)
|
|
254
|
+
], ImportExportMaterialPermissionChat.prototype, "message_type", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
257
|
+
__metadata("design:type", Object)
|
|
258
|
+
], ImportExportMaterialPermissionChat.prototype, "status", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
261
|
+
__metadata("design:type", Boolean)
|
|
262
|
+
], ImportExportMaterialPermissionChat.prototype, "is_internal", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
265
|
+
__metadata("design:type", Number)
|
|
266
|
+
], ImportExportMaterialPermissionChat.prototype, "created_by", void 0);
|
|
267
|
+
exports.ImportExportMaterialPermissionChat = ImportExportMaterialPermissionChat = __decorate([
|
|
268
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_permission_chat" })
|
|
269
|
+
], ImportExportMaterialPermissionChat);
|
|
270
|
+
let ImportExportMaterialPermissionAttachment = class ImportExportMaterialPermissionAttachment extends BaseModel_1.BaseModel {
|
|
271
|
+
};
|
|
272
|
+
exports.ImportExportMaterialPermissionAttachment = ImportExportMaterialPermissionAttachment;
|
|
273
|
+
__decorate([
|
|
274
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
275
|
+
__metadata("design:type", Number)
|
|
276
|
+
], ImportExportMaterialPermissionAttachment.prototype, "request_id", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
279
|
+
__metadata("design:type", Number)
|
|
280
|
+
], ImportExportMaterialPermissionAttachment.prototype, "service_id", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
283
|
+
__metadata("design:type", Number)
|
|
284
|
+
], ImportExportMaterialPermissionAttachment.prototype, "sub_service_id", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], ImportExportMaterialPermissionAttachment.prototype, "file_name", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
291
|
+
__metadata("design:type", String)
|
|
292
|
+
], ImportExportMaterialPermissionAttachment.prototype, "file_url", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 120, nullable: true }),
|
|
295
|
+
__metadata("design:type", Object)
|
|
296
|
+
], ImportExportMaterialPermissionAttachment.prototype, "file_type", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
299
|
+
__metadata("design:type", Object)
|
|
300
|
+
], ImportExportMaterialPermissionAttachment.prototype, "file_size", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
303
|
+
__metadata("design:type", Number)
|
|
304
|
+
], ImportExportMaterialPermissionAttachment.prototype, "created_by", void 0);
|
|
305
|
+
exports.ImportExportMaterialPermissionAttachment = ImportExportMaterialPermissionAttachment = __decorate([
|
|
306
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_permission_attachments" })
|
|
307
|
+
], ImportExportMaterialPermissionAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Role } from './role';
|
|
2
|
+
import { UUIDBaseModel } from './UUIDBaseModel';
|
|
3
|
+
export declare enum PermissionType {
|
|
4
|
+
VIEW = "view",
|
|
5
|
+
UPLOAD = "upload",
|
|
6
|
+
UPDATE = "update",
|
|
7
|
+
DELETE = "delete",
|
|
8
|
+
PUBLISH = "publish"
|
|
9
|
+
}
|
|
10
|
+
export declare class Permission extends UUIDBaseModel {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
type: PermissionType;
|
|
14
|
+
description?: string;
|
|
15
|
+
is_active: boolean;
|
|
16
|
+
roles: Role[];
|
|
17
|
+
constructor(name: string, code: string, type: PermissionType, created_by: string, description?: string, is_active?: boolean);
|
|
18
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.Permission = exports.PermissionType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const role_1 = require("./role");
|
|
15
|
+
const UUIDBaseModel_1 = require("./UUIDBaseModel");
|
|
16
|
+
var PermissionType;
|
|
17
|
+
(function (PermissionType) {
|
|
18
|
+
PermissionType["VIEW"] = "view";
|
|
19
|
+
PermissionType["UPLOAD"] = "upload";
|
|
20
|
+
PermissionType["UPDATE"] = "update";
|
|
21
|
+
PermissionType["DELETE"] = "delete";
|
|
22
|
+
PermissionType["PUBLISH"] = "publish";
|
|
23
|
+
})(PermissionType || (exports.PermissionType = PermissionType = {}));
|
|
24
|
+
let Permission = class Permission extends UUIDBaseModel_1.UUIDBaseModel {
|
|
25
|
+
constructor(name, code, type, created_by, description, is_active = true) {
|
|
26
|
+
super();
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.code = code;
|
|
29
|
+
this.type = type;
|
|
30
|
+
this.created_by = created_by;
|
|
31
|
+
this.description = description;
|
|
32
|
+
this.is_active = is_active;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.Permission = Permission;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Permission.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Permission.prototype, "code", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: PermissionType }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Permission.prototype, "type", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Permission.prototype, "description", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], Permission.prototype, "is_active", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToMany)(() => role_1.Role),
|
|
58
|
+
(0, typeorm_1.JoinTable)({
|
|
59
|
+
name: 'role_permissions',
|
|
60
|
+
joinColumn: { name: 'permission_id', referencedColumnName: 'id' },
|
|
61
|
+
inverseJoinColumn: { name: 'role_id', referencedColumnName: 'id' },
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], Permission.prototype, "roles", void 0);
|
|
65
|
+
exports.Permission = Permission = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'permissions' }),
|
|
67
|
+
__metadata("design:paramtypes", [String, String, String, String, String, Boolean])
|
|
68
|
+
], Permission);
|
|
@@ -17,4 +17,7 @@ export declare class ScholarshipRequestChat extends BaseModel {
|
|
|
17
17
|
messageType: ScholarshipMessageType;
|
|
18
18
|
status: string | null;
|
|
19
19
|
status_ar: string | null;
|
|
20
|
+
training_attachments: any[] | null;
|
|
21
|
+
decision_record_english: string | null;
|
|
22
|
+
decision_record_arabic: string | null;
|
|
20
23
|
}
|
|
@@ -68,6 +68,18 @@ __decorate([
|
|
|
68
68
|
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
69
69
|
__metadata("design:type", Object)
|
|
70
70
|
], ScholarshipRequestChat.prototype, "status_ar", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], ScholarshipRequestChat.prototype, "training_attachments", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], ScholarshipRequestChat.prototype, "decision_record_english", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], ScholarshipRequestChat.prototype, "decision_record_arabic", void 0);
|
|
71
83
|
exports.ScholarshipRequestChat = ScholarshipRequestChat = __decorate([
|
|
72
84
|
(0, typeorm_1.Entity)({ name: "scholarship_chats" })
|
|
73
85
|
], ScholarshipRequestChat);
|
|
@@ -11,6 +11,10 @@ export declare enum ScholarshipType {
|
|
|
11
11
|
PLANNED = "Planned",
|
|
12
12
|
UNPLANNED = "Unplanned"
|
|
13
13
|
}
|
|
14
|
+
export declare enum ScholarshipPlaceType {
|
|
15
|
+
INSIDE = "Inside",
|
|
16
|
+
OUTSIDE = "Outside"
|
|
17
|
+
}
|
|
14
18
|
export declare class ScholarshipRequests extends BaseModel {
|
|
15
19
|
req_user_department_id: number | null;
|
|
16
20
|
req_user_section_id: number | null;
|
|
@@ -31,12 +35,18 @@ export declare class ScholarshipRequests extends BaseModel {
|
|
|
31
35
|
end_date: string | null;
|
|
32
36
|
number_of_attendees: number | null;
|
|
33
37
|
place: string | null;
|
|
38
|
+
place_type: ScholarshipPlaceType | null;
|
|
39
|
+
annual_plan_id: number | null;
|
|
34
40
|
is_confirm: boolean;
|
|
35
41
|
training_entity: string | null;
|
|
36
42
|
media_coverage: "Yes" | "No" | null;
|
|
37
43
|
training_start_date: string | null;
|
|
38
44
|
training_end_date: string | null;
|
|
45
|
+
media_start_date: string | null;
|
|
46
|
+
media_end_date: string | null;
|
|
39
47
|
travel_date: string | null;
|
|
40
48
|
return_date: string | null;
|
|
49
|
+
decision_number: string | null;
|
|
50
|
+
reference_number: string | null;
|
|
41
51
|
comment: string | null;
|
|
42
52
|
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ScholarshipRequests = exports.ScholarshipType = exports.ScholarshipRequestStatus = void 0;
|
|
12
|
+
exports.ScholarshipRequests = exports.ScholarshipPlaceType = exports.ScholarshipType = exports.ScholarshipRequestStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var ScholarshipRequestStatus;
|
|
@@ -26,6 +26,11 @@ var ScholarshipType;
|
|
|
26
26
|
ScholarshipType["PLANNED"] = "Planned";
|
|
27
27
|
ScholarshipType["UNPLANNED"] = "Unplanned";
|
|
28
28
|
})(ScholarshipType || (exports.ScholarshipType = ScholarshipType = {}));
|
|
29
|
+
var ScholarshipPlaceType;
|
|
30
|
+
(function (ScholarshipPlaceType) {
|
|
31
|
+
ScholarshipPlaceType["INSIDE"] = "Inside";
|
|
32
|
+
ScholarshipPlaceType["OUTSIDE"] = "Outside";
|
|
33
|
+
})(ScholarshipPlaceType || (exports.ScholarshipPlaceType = ScholarshipPlaceType = {}));
|
|
29
34
|
let ScholarshipRequests = class ScholarshipRequests extends BaseModel_1.BaseModel {
|
|
30
35
|
};
|
|
31
36
|
exports.ScholarshipRequests = ScholarshipRequests;
|
|
@@ -101,6 +106,14 @@ __decorate([
|
|
|
101
106
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
102
107
|
__metadata("design:type", Object)
|
|
103
108
|
], ScholarshipRequests.prototype, "place", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipPlaceType, nullable: true }),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], ScholarshipRequests.prototype, "place_type", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], ScholarshipRequests.prototype, "annual_plan_id", void 0);
|
|
104
117
|
__decorate([
|
|
105
118
|
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
106
119
|
__metadata("design:type", Boolean)
|
|
@@ -121,6 +134,14 @@ __decorate([
|
|
|
121
134
|
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
122
135
|
__metadata("design:type", Object)
|
|
123
136
|
], ScholarshipRequests.prototype, "training_end_date", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], ScholarshipRequests.prototype, "media_start_date", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
143
|
+
__metadata("design:type", Object)
|
|
144
|
+
], ScholarshipRequests.prototype, "media_end_date", void 0);
|
|
124
145
|
__decorate([
|
|
125
146
|
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
126
147
|
__metadata("design:type", Object)
|
|
@@ -129,6 +150,14 @@ __decorate([
|
|
|
129
150
|
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
130
151
|
__metadata("design:type", Object)
|
|
131
152
|
], ScholarshipRequests.prototype, "return_date", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
155
|
+
__metadata("design:type", Object)
|
|
156
|
+
], ScholarshipRequests.prototype, "decision_number", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true, unique: true }),
|
|
159
|
+
__metadata("design:type", Object)
|
|
160
|
+
], ScholarshipRequests.prototype, "reference_number", void 0);
|
|
132
161
|
__decorate([
|
|
133
162
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
163
|
__metadata("design:type", Object)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum SecurityAccessApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
RFC = "RFC",
|
|
8
|
+
REASSIGNED = "Reassigned"
|
|
9
|
+
}
|
|
10
|
+
export declare class SecurityAccessApproval extends BaseModel {
|
|
11
|
+
request_id: number;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
level: number;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approver_role_id: number | null;
|
|
17
|
+
department_id: number | null;
|
|
18
|
+
section_id: number | null;
|
|
19
|
+
delegate_user_id: number | null;
|
|
20
|
+
approved_by: number | null;
|
|
21
|
+
comment: string;
|
|
22
|
+
approval_status: SecurityAccessApprovalStatus;
|
|
23
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.SecurityAccessApproval = exports.SecurityAccessApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var SecurityAccessApprovalStatus;
|
|
16
|
+
(function (SecurityAccessApprovalStatus) {
|
|
17
|
+
SecurityAccessApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
SecurityAccessApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
SecurityAccessApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
SecurityAccessApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
SecurityAccessApprovalStatus["RFC"] = "RFC";
|
|
22
|
+
SecurityAccessApprovalStatus["REASSIGNED"] = "Reassigned";
|
|
23
|
+
})(SecurityAccessApprovalStatus || (exports.SecurityAccessApprovalStatus = SecurityAccessApprovalStatus = {}));
|
|
24
|
+
let SecurityAccessApproval = class SecurityAccessApproval extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.SecurityAccessApproval = SecurityAccessApproval;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], SecurityAccessApproval.prototype, "request_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], SecurityAccessApproval.prototype, "service_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], SecurityAccessApproval.prototype, "sub_service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], SecurityAccessApproval.prototype, "level", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], SecurityAccessApproval.prototype, "approver_user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], SecurityAccessApproval.prototype, "approver_role_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], SecurityAccessApproval.prototype, "department_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], SecurityAccessApproval.prototype, "section_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], SecurityAccessApproval.prototype, "delegate_user_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], SecurityAccessApproval.prototype, "approved_by", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SecurityAccessApproval.prototype, "comment", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: SecurityAccessApprovalStatus,
|
|
75
|
+
default: SecurityAccessApprovalStatus.PENDING,
|
|
76
|
+
nullable: false,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], SecurityAccessApproval.prototype, "approval_status", void 0);
|
|
80
|
+
exports.SecurityAccessApproval = SecurityAccessApproval = __decorate([
|
|
81
|
+
(0, typeorm_1.Entity)({ name: "security_access_approvals" })
|
|
82
|
+
], SecurityAccessApproval);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class SecurityAccessRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string | null;
|
|
8
|
+
file_type: string | null;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
attachment_kind: string | null;
|
|
11
|
+
uploaded_by: number | null;
|
|
12
|
+
}
|