@platform-modules/civil-aviation-authority 2.3.228 → 2.3.230
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 +15 -0
- 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/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/SlaRequestModel.d.ts +1 -1
- package/dist/models/SlaRequestModel.js +4 -2
- 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/src/data-source.ts +495 -495
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- 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/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
- package/src/models/ServiceSlaApprovalModel.ts +52 -52
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/SlaRequestModel.ts +65 -64
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/src/sla/sla-table-sync.service.ts +87 -87
|
@@ -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);
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.SecurityAccessRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let SecurityAccessRequestAttachment = class SecurityAccessRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], SecurityAccessRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], SecurityAccessRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], SecurityAccessRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 512, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SecurityAccessRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], SecurityAccessRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], SecurityAccessRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], SecurityAccessRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], SecurityAccessRequestAttachment.prototype, "attachment_kind", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], SecurityAccessRequestAttachment.prototype, "uploaded_by", void 0);
|
|
54
|
+
exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)({ name: "security_access_request_attachments" })
|
|
56
|
+
], SecurityAccessRequestAttachment);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class SecurityAccessRequestChat extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
user_id: number;
|
|
7
|
+
message: string;
|
|
8
|
+
message_type: string;
|
|
9
|
+
is_internal: boolean;
|
|
10
|
+
status: string;
|
|
11
|
+
approver_role_id: number | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.SecurityAccessRequestChat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let SecurityAccessRequestChat = class SecurityAccessRequestChat extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.SecurityAccessRequestChat = SecurityAccessRequestChat;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], SecurityAccessRequestChat.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], SecurityAccessRequestChat.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], SecurityAccessRequestChat.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], SecurityAccessRequestChat.prototype, "user_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SecurityAccessRequestChat.prototype, "message", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 32, nullable: false, default: "text" }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], SecurityAccessRequestChat.prototype, "message_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], SecurityAccessRequestChat.prototype, "is_internal", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: false, default: "Pending" }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], SecurityAccessRequestChat.prototype, "status", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], SecurityAccessRequestChat.prototype, "approver_role_id", void 0);
|
|
54
|
+
exports.SecurityAccessRequestChat = SecurityAccessRequestChat = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)({ name: "security_access_request_chat" })
|
|
56
|
+
], SecurityAccessRequestChat);
|