@platform-modules/civil-aviation-authority 2.3.193 → 2.3.200
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 +8 -0
- package/dist/data-source.js +30 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -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/HousingContractCancelApprovalModel.d.ts +1 -0
- package/dist/models/HousingContractCancelApprovalModel.js +4 -0
- package/dist/models/HousingContractRenewalApprovalModel.d.ts +1 -0
- package/dist/models/HousingContractRenewalApprovalModel.js +4 -0
- package/dist/models/ImportExportMaterialApprovalModel.d.ts +23 -0
- package/dist/models/ImportExportMaterialApprovalModel.js +101 -0
- package/dist/models/ImportExportMaterialAttachmentModel.d.ts +12 -0
- package/dist/models/ImportExportMaterialAttachmentModel.js +64 -0
- package/dist/models/ImportExportMaterialChatModel.d.ts +28 -0
- package/dist/models/ImportExportMaterialChatModel.js +86 -0
- package/dist/models/ImportExportMaterialModels.d.ts +92 -0
- package/dist/models/ImportExportMaterialModels.js +307 -0
- package/dist/models/ImportExportMaterialRequestModel.d.ts +33 -0
- package/dist/models/ImportExportMaterialRequestModel.js +118 -0
- package/dist/models/ImportExportMaterialWorkflowModel.d.ts +18 -0
- package/dist/models/ImportExportMaterialWorkflowModel.js +80 -0
- package/dist/models/LegalComplaintApprovalModel.d.ts +1 -0
- package/dist/models/LegalComplaintApprovalModel.js +4 -0
- package/dist/models/LegalConsultationApprovalModel.d.ts +1 -0
- package/dist/models/LegalConsultationApprovalModel.js +4 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +1 -0
- package/dist/models/ResidentialUnitRentalApprovalModel.js +4 -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/ServiceExtensionAfter60ApprovalModel.d.ts +23 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.js +101 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.d.ts +12 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.js +64 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.js +86 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.js +108 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.d.ts +18 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.js +80 -0
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
- package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.d.ts +23 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.js +101 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.d.ts +12 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.js +64 -0
- package/dist/models/WorkingHoursExtensionChatModel.d.ts +28 -0
- package/dist/models/WorkingHoursExtensionChatModel.js +86 -0
- package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
- package/dist/models/WorkingHoursExtensionModels.js +295 -0
- package/dist/models/WorkingHoursExtensionRequestModel.d.ts +25 -0
- package/dist/models/WorkingHoursExtensionRequestModel.js +96 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.d.ts +18 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.js +80 -0
- package/package.json +24 -24
- package/src/data-source.ts +419 -389
- package/src/index.ts +431 -414
- 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 -61
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -61
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -0
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -0
- package/src/models/ImportExportMaterialChatModel.ts +61 -0
- package/src/models/ImportExportMaterialRequestModel.ts +85 -0
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -0
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalComplaintApprovalModel.ts +64 -61
- package/src/models/LegalConsultationApprovalModel.ts +65 -62
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -140
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -0
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -0
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -0
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -0
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- 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/WorkingHoursExtensionApprovalModel.ts +87 -0
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -0
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -0
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -0
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -0
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/platform-modules-civil-aviation-authority-2.3.193.tgz +0 -0
|
@@ -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,33 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ImportExportMaterialRequestType {
|
|
9
|
+
IMPORT = "Import",
|
|
10
|
+
EXPORT = "Export",
|
|
11
|
+
BOTH = "Both"
|
|
12
|
+
}
|
|
13
|
+
export declare class ImportExportMaterialRequest extends BaseModel {
|
|
14
|
+
req_user_department_id: number | null;
|
|
15
|
+
req_user_section_id: number | null;
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
sub_service_id: number | null;
|
|
18
|
+
user_id: number;
|
|
19
|
+
status: ImportExportMaterialRequestStatus;
|
|
20
|
+
workflow_execution_id: string | null;
|
|
21
|
+
request_date: Date | null;
|
|
22
|
+
request_type: ImportExportMaterialRequestType;
|
|
23
|
+
material_movement_date: Date | null;
|
|
24
|
+
hazardous_details: string | null;
|
|
25
|
+
purpose: string;
|
|
26
|
+
material_description: string;
|
|
27
|
+
transport_mode: string | null;
|
|
28
|
+
vehicle_number: string | null;
|
|
29
|
+
description: string | null;
|
|
30
|
+
created_by: number;
|
|
31
|
+
reference_number: string | null;
|
|
32
|
+
constructor();
|
|
33
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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.ImportExportMaterialRequest = exports.ImportExportMaterialRequestType = 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["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ImportExportMaterialRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
ImportExportMaterialRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ImportExportMaterialRequestStatus || (exports.ImportExportMaterialRequestStatus = ImportExportMaterialRequestStatus = {}));
|
|
22
|
+
var ImportExportMaterialRequestType;
|
|
23
|
+
(function (ImportExportMaterialRequestType) {
|
|
24
|
+
ImportExportMaterialRequestType["IMPORT"] = "Import";
|
|
25
|
+
ImportExportMaterialRequestType["EXPORT"] = "Export";
|
|
26
|
+
ImportExportMaterialRequestType["BOTH"] = "Both";
|
|
27
|
+
})(ImportExportMaterialRequestType || (exports.ImportExportMaterialRequestType = ImportExportMaterialRequestType = {}));
|
|
28
|
+
let ImportExportMaterialRequest = class ImportExportMaterialRequest extends BaseModel_1.BaseModel {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.ImportExportMaterialRequest = ImportExportMaterialRequest;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ImportExportMaterialRequest.prototype, "req_user_department_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ImportExportMaterialRequest.prototype, "req_user_section_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], ImportExportMaterialRequest.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], ImportExportMaterialRequest.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ImportExportMaterialRequest.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({
|
|
56
|
+
type: "enum",
|
|
57
|
+
enum: ImportExportMaterialRequestStatus,
|
|
58
|
+
default: ImportExportMaterialRequestStatus.PENDING,
|
|
59
|
+
nullable: false
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ImportExportMaterialRequest.prototype, "status", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], ImportExportMaterialRequest.prototype, "workflow_execution_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], ImportExportMaterialRequest.prototype, "request_date", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: ImportExportMaterialRequestType,
|
|
75
|
+
nullable: false
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], ImportExportMaterialRequest.prototype, "request_type", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], ImportExportMaterialRequest.prototype, "material_movement_date", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], ImportExportMaterialRequest.prototype, "hazardous_details", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], ImportExportMaterialRequest.prototype, "purpose", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], ImportExportMaterialRequest.prototype, "material_description", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], ImportExportMaterialRequest.prototype, "transport_mode", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], ImportExportMaterialRequest.prototype, "vehicle_number", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], ImportExportMaterialRequest.prototype, "description", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], ImportExportMaterialRequest.prototype, "created_by", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], ImportExportMaterialRequest.prototype, "reference_number", void 0);
|
|
115
|
+
exports.ImportExportMaterialRequest = ImportExportMaterialRequest = __decorate([
|
|
116
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_requests" }),
|
|
117
|
+
__metadata("design:paramtypes", [])
|
|
118
|
+
], ImportExportMaterialRequest);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ImportExportMaterialWorkflow extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
workflow_definition_id: number;
|
|
7
|
+
current_level: number;
|
|
8
|
+
content: string;
|
|
9
|
+
status: string;
|
|
10
|
+
step_order: number;
|
|
11
|
+
user_id: number;
|
|
12
|
+
role_id: number;
|
|
13
|
+
department_id: number;
|
|
14
|
+
section_id: number;
|
|
15
|
+
workflow_data: string;
|
|
16
|
+
created_by: number;
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.ImportExportMaterialWorkflow = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportExportMaterialWorkflow = class ImportExportMaterialWorkflow extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.ImportExportMaterialWorkflow = ImportExportMaterialWorkflow;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ImportExportMaterialWorkflow.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ImportExportMaterialWorkflow.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ImportExportMaterialWorkflow.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ImportExportMaterialWorkflow.prototype, "workflow_definition_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ImportExportMaterialWorkflow.prototype, "current_level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ImportExportMaterialWorkflow.prototype, "content", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ImportExportMaterialWorkflow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ImportExportMaterialWorkflow.prototype, "step_order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ImportExportMaterialWorkflow.prototype, "user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ImportExportMaterialWorkflow.prototype, "role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], ImportExportMaterialWorkflow.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], ImportExportMaterialWorkflow.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ImportExportMaterialWorkflow.prototype, "workflow_data", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], ImportExportMaterialWorkflow.prototype, "created_by", void 0);
|
|
77
|
+
exports.ImportExportMaterialWorkflow = ImportExportMaterialWorkflow = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_workflow" }),
|
|
79
|
+
__metadata("design:paramtypes", [])
|
|
80
|
+
], ImportExportMaterialWorkflow);
|
|
@@ -79,6 +79,10 @@ __decorate([
|
|
|
79
79
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], LegalComplaintApproval.prototype, "comment", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
84
|
+
__metadata("design:type", Boolean)
|
|
85
|
+
], LegalComplaintApproval.prototype, "is_allowed", void 0);
|
|
82
86
|
__decorate([
|
|
83
87
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
84
88
|
__metadata("design:type", Number)
|
|
@@ -80,6 +80,10 @@ __decorate([
|
|
|
80
80
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
81
81
|
__metadata("design:type", String)
|
|
82
82
|
], LegalConsultationApproval.prototype, "comment", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], LegalConsultationApproval.prototype, "is_allowed", void 0);
|
|
83
87
|
__decorate([
|
|
84
88
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
85
89
|
__metadata("design:type", Number)
|
|
@@ -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
|
+
}
|