@platform-modules/civil-aviation-authority 2.3.195 → 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/dist/data-source.js +30 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -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/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/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/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/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 +1 -1
- package/src/data-source.ts +419 -389
- package/src/index.ts +431 -414
- package/src/models/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- 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/LegalComplaintApprovalModel.ts +64 -64
- package/src/models/LegalConsultationApprovalModel.ts +65 -65
- package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
- 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/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/dist/data-source.js
CHANGED
|
@@ -189,6 +189,21 @@ const RespondToEnquiriesWorkflowModel_1 = require("./models/RespondToEnquiriesWo
|
|
|
189
189
|
const RespondToEnquiriesApprovalModel_1 = require("./models/RespondToEnquiriesApprovalModel");
|
|
190
190
|
const RespondToEnquiriesChatModel_1 = require("./models/RespondToEnquiriesChatModel");
|
|
191
191
|
const RespondToEnquiriesAttachmentModel_1 = require("./models/RespondToEnquiriesAttachmentModel");
|
|
192
|
+
const ServiceExtensionAfter60RequestModel_1 = require("./models/ServiceExtensionAfter60RequestModel");
|
|
193
|
+
const ServiceExtensionAfter60ApprovalModel_1 = require("./models/ServiceExtensionAfter60ApprovalModel");
|
|
194
|
+
const ServiceExtensionAfter60WorkflowModel_1 = require("./models/ServiceExtensionAfter60WorkflowModel");
|
|
195
|
+
const ServiceExtensionAfter60ChatModel_1 = require("./models/ServiceExtensionAfter60ChatModel");
|
|
196
|
+
const ServiceExtensionAfter60AttachmentModel_1 = require("./models/ServiceExtensionAfter60AttachmentModel");
|
|
197
|
+
const ImportExportMaterialRequestModel_1 = require("./models/ImportExportMaterialRequestModel");
|
|
198
|
+
const ImportExportMaterialApprovalModel_1 = require("./models/ImportExportMaterialApprovalModel");
|
|
199
|
+
const ImportExportMaterialWorkflowModel_1 = require("./models/ImportExportMaterialWorkflowModel");
|
|
200
|
+
const ImportExportMaterialChatModel_1 = require("./models/ImportExportMaterialChatModel");
|
|
201
|
+
const ImportExportMaterialAttachmentModel_1 = require("./models/ImportExportMaterialAttachmentModel");
|
|
202
|
+
const WorkingHoursExtensionRequestModel_1 = require("./models/WorkingHoursExtensionRequestModel");
|
|
203
|
+
const WorkingHoursExtensionApprovalModel_1 = require("./models/WorkingHoursExtensionApprovalModel");
|
|
204
|
+
const WorkingHoursExtensionWorkflowModel_1 = require("./models/WorkingHoursExtensionWorkflowModel");
|
|
205
|
+
const WorkingHoursExtensionChatModel_1 = require("./models/WorkingHoursExtensionChatModel");
|
|
206
|
+
const WorkingHoursExtensionAttachmentModel_1 = require("./models/WorkingHoursExtensionAttachmentModel");
|
|
192
207
|
const RequestATenderRequestModel_1 = require("./models/RequestATenderRequestModel");
|
|
193
208
|
const RequestTenderAnalysisRequestModel_1 = require("./models/RequestTenderAnalysisRequestModel");
|
|
194
209
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
@@ -384,6 +399,21 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
384
399
|
RespondToEnquiriesApprovalModel_1.RespondToEnquiriesApprovalDetails,
|
|
385
400
|
RespondToEnquiriesChatModel_1.RespondToEnquiriesRequestChat,
|
|
386
401
|
RespondToEnquiriesAttachmentModel_1.RespondToEnquiriesRequestAttachment,
|
|
402
|
+
ServiceExtensionAfter60RequestModel_1.ServiceExtensionAfter60Request,
|
|
403
|
+
ServiceExtensionAfter60ApprovalModel_1.ServiceExtensionAfter60Approval,
|
|
404
|
+
ServiceExtensionAfter60WorkflowModel_1.ServiceExtensionAfter60Workflow,
|
|
405
|
+
ServiceExtensionAfter60ChatModel_1.ServiceExtensionAfter60Chat,
|
|
406
|
+
ServiceExtensionAfter60AttachmentModel_1.ServiceExtensionAfter60Attachment,
|
|
407
|
+
ImportExportMaterialRequestModel_1.ImportExportMaterialRequest,
|
|
408
|
+
ImportExportMaterialApprovalModel_1.ImportExportMaterialApproval,
|
|
409
|
+
ImportExportMaterialWorkflowModel_1.ImportExportMaterialWorkflow,
|
|
410
|
+
ImportExportMaterialChatModel_1.ImportExportMaterialChat,
|
|
411
|
+
ImportExportMaterialAttachmentModel_1.ImportExportMaterialAttachment,
|
|
412
|
+
WorkingHoursExtensionRequestModel_1.WorkingHoursExtensionRequest,
|
|
413
|
+
WorkingHoursExtensionApprovalModel_1.WorkingHoursExtensionApproval,
|
|
414
|
+
WorkingHoursExtensionWorkflowModel_1.WorkingHoursExtensionWorkflow,
|
|
415
|
+
WorkingHoursExtensionChatModel_1.WorkingHoursExtensionChat,
|
|
416
|
+
WorkingHoursExtensionAttachmentModel_1.WorkingHoursExtensionAttachment,
|
|
387
417
|
RequestATenderRequestModel_1.RequestATenderRequest,
|
|
388
418
|
RequestTenderAnalysisRequestModel_1.RequestTenderAnalysisRequest
|
|
389
419
|
],
|
package/dist/index.d.ts
CHANGED
|
@@ -321,6 +321,21 @@ export * from './models/LegalComplaintChatModel';
|
|
|
321
321
|
export * from './models/LegalComplaintAttachmentModel';
|
|
322
322
|
export * from './models/AssetApartmentTypeModel';
|
|
323
323
|
export * from './models/AssetUnitLocationModel';
|
|
324
|
+
export * from './models/ServiceExtensionAfter60RequestModel';
|
|
325
|
+
export * from './models/ServiceExtensionAfter60ApprovalModel';
|
|
326
|
+
export * from './models/ServiceExtensionAfter60WorkflowModel';
|
|
327
|
+
export * from './models/ServiceExtensionAfter60ChatModel';
|
|
328
|
+
export * from './models/ServiceExtensionAfter60AttachmentModel';
|
|
329
|
+
export * from './models/ImportExportMaterialRequestModel';
|
|
330
|
+
export * from './models/ImportExportMaterialApprovalModel';
|
|
331
|
+
export * from './models/ImportExportMaterialWorkflowModel';
|
|
332
|
+
export * from './models/ImportExportMaterialChatModel';
|
|
333
|
+
export * from './models/ImportExportMaterialAttachmentModel';
|
|
334
|
+
export * from './models/WorkingHoursExtensionRequestModel';
|
|
335
|
+
export * from './models/WorkingHoursExtensionApprovalModel';
|
|
336
|
+
export * from './models/WorkingHoursExtensionWorkflowModel';
|
|
337
|
+
export * from './models/WorkingHoursExtensionChatModel';
|
|
338
|
+
export * from './models/WorkingHoursExtensionAttachmentModel';
|
|
324
339
|
export * from './models/RespondToEnquiriesRequestModel';
|
|
325
340
|
export { RespondToEnquiriesRequestStatus, RespondToEnquiriesRequest } from './models/RespondToEnquiriesRequestModel';
|
|
326
341
|
export * from './models/RespondToEnquiriesApprovalModel';
|
package/dist/index.js
CHANGED
|
@@ -486,6 +486,22 @@ __exportStar(require("./models/LegalComplaintAttachmentModel"), exports);
|
|
|
486
486
|
// Asset Affairs Admin Configuration
|
|
487
487
|
__exportStar(require("./models/AssetApartmentTypeModel"), exports);
|
|
488
488
|
__exportStar(require("./models/AssetUnitLocationModel"), exports);
|
|
489
|
+
// Service extension after age 60, import/export material, working hours extension
|
|
490
|
+
__exportStar(require("./models/ServiceExtensionAfter60RequestModel"), exports);
|
|
491
|
+
__exportStar(require("./models/ServiceExtensionAfter60ApprovalModel"), exports);
|
|
492
|
+
__exportStar(require("./models/ServiceExtensionAfter60WorkflowModel"), exports);
|
|
493
|
+
__exportStar(require("./models/ServiceExtensionAfter60ChatModel"), exports);
|
|
494
|
+
__exportStar(require("./models/ServiceExtensionAfter60AttachmentModel"), exports);
|
|
495
|
+
__exportStar(require("./models/ImportExportMaterialRequestModel"), exports);
|
|
496
|
+
__exportStar(require("./models/ImportExportMaterialApprovalModel"), exports);
|
|
497
|
+
__exportStar(require("./models/ImportExportMaterialWorkflowModel"), exports);
|
|
498
|
+
__exportStar(require("./models/ImportExportMaterialChatModel"), exports);
|
|
499
|
+
__exportStar(require("./models/ImportExportMaterialAttachmentModel"), exports);
|
|
500
|
+
__exportStar(require("./models/WorkingHoursExtensionRequestModel"), exports);
|
|
501
|
+
__exportStar(require("./models/WorkingHoursExtensionApprovalModel"), exports);
|
|
502
|
+
__exportStar(require("./models/WorkingHoursExtensionWorkflowModel"), exports);
|
|
503
|
+
__exportStar(require("./models/WorkingHoursExtensionChatModel"), exports);
|
|
504
|
+
__exportStar(require("./models/WorkingHoursExtensionAttachmentModel"), exports);
|
|
489
505
|
// Tender — Request a Service to Respond to Enquiries
|
|
490
506
|
__exportStar(require("./models/RespondToEnquiriesRequestModel"), exports);
|
|
491
507
|
var RespondToEnquiriesRequestModel_1 = require("./models/RespondToEnquiriesRequestModel");
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class ImportExportMaterialApproval extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: ImportExportMaterialApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: ImportExportMaterialApprovalStatus, service_id?: number, sub_service_id?: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_allowed?: boolean);
|
|
23
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.ImportExportMaterialApproval = exports.ImportExportMaterialApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialApprovalStatus;
|
|
16
|
+
(function (ImportExportMaterialApprovalStatus) {
|
|
17
|
+
ImportExportMaterialApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
ImportExportMaterialApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ImportExportMaterialApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
ImportExportMaterialApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ImportExportMaterialApprovalStatus || (exports.ImportExportMaterialApprovalStatus = ImportExportMaterialApprovalStatus = {}));
|
|
22
|
+
let ImportExportMaterialApproval = class ImportExportMaterialApproval extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, approver_role_id, level, comment, approval_status, service_id, sub_service_id, department_id, section_id, approver_user_id, delegate_user_id, approved_by, is_allowed) {
|
|
24
|
+
super();
|
|
25
|
+
this.request_id = request_id;
|
|
26
|
+
this.service_id = service_id ?? null;
|
|
27
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
28
|
+
this.level = level;
|
|
29
|
+
this.approver_role_id = approver_role_id;
|
|
30
|
+
this.department_id = department_id ?? null;
|
|
31
|
+
this.section_id = section_id ?? null;
|
|
32
|
+
this.approver_user_id = approver_user_id ?? null;
|
|
33
|
+
this.delegate_user_id = delegate_user_id ?? null;
|
|
34
|
+
this.approved_by = approved_by ?? null;
|
|
35
|
+
this.comment = comment;
|
|
36
|
+
this.approval_status = approval_status;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.ImportExportMaterialApproval = ImportExportMaterialApproval;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ImportExportMaterialApproval.prototype, "request_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ImportExportMaterialApproval.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ImportExportMaterialApproval.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ImportExportMaterialApproval.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ImportExportMaterialApproval.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], ImportExportMaterialApproval.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ImportExportMaterialApproval.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ImportExportMaterialApproval.prototype, "approver_user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ImportExportMaterialApproval.prototype, "delegate_user_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ImportExportMaterialApproval.prototype, "approved_by", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], ImportExportMaterialApproval.prototype, "comment", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({
|
|
87
|
+
type: "enum",
|
|
88
|
+
enum: ImportExportMaterialApprovalStatus,
|
|
89
|
+
default: ImportExportMaterialApprovalStatus.PENDING,
|
|
90
|
+
nullable: false
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], ImportExportMaterialApproval.prototype, "approval_status", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], ImportExportMaterialApproval.prototype, "is_allowed", void 0);
|
|
98
|
+
exports.ImportExportMaterialApproval = ImportExportMaterialApproval = __decorate([
|
|
99
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_approvals" }),
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object, Boolean])
|
|
101
|
+
], ImportExportMaterialApproval);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ImportExportMaterialAttachment 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;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
constructor(request_id: number, file_url: string, service_id?: number, sub_service_id?: number, file_name?: string, file_type?: string, file_size?: number, chat_id?: number);
|
|
12
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.ImportExportMaterialAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportExportMaterialAttachment = class ImportExportMaterialAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, file_url, service_id, sub_service_id, file_name, file_type, file_size, chat_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.request_id = request_id;
|
|
19
|
+
this.service_id = service_id ?? null;
|
|
20
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
21
|
+
this.file_url = file_url;
|
|
22
|
+
this.file_name = file_name ?? "";
|
|
23
|
+
this.file_type = file_type ?? "";
|
|
24
|
+
this.file_size = file_size ?? null;
|
|
25
|
+
this.chat_id = chat_id ?? null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.ImportExportMaterialAttachment = ImportExportMaterialAttachment;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ImportExportMaterialAttachment.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ImportExportMaterialAttachment.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ImportExportMaterialAttachment.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ImportExportMaterialAttachment.prototype, "file_url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ImportExportMaterialAttachment.prototype, "file_name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ImportExportMaterialAttachment.prototype, "file_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], ImportExportMaterialAttachment.prototype, "file_size", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ImportExportMaterialAttachment.prototype, "chat_id", void 0);
|
|
61
|
+
exports.ImportExportMaterialAttachment = ImportExportMaterialAttachment = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_attachments" }),
|
|
63
|
+
__metadata("design:paramtypes", [Number, String, Number, Number, String, String, Number, Number])
|
|
64
|
+
], ImportExportMaterialAttachment);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ImportExportMaterialChatStatus {
|
|
10
|
+
Pending = "Pending",
|
|
11
|
+
Received = "Received",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected",
|
|
14
|
+
InProgress = "In Progress"
|
|
15
|
+
}
|
|
16
|
+
export declare class ImportExportMaterialChat extends BaseModel {
|
|
17
|
+
request_id: number;
|
|
18
|
+
service_id: number;
|
|
19
|
+
sub_service_id: number;
|
|
20
|
+
user_id: number;
|
|
21
|
+
message: string;
|
|
22
|
+
approver_role_id: number | null;
|
|
23
|
+
status: string;
|
|
24
|
+
messageType: ImportExportMaterialMessageType;
|
|
25
|
+
is_internal: boolean;
|
|
26
|
+
created_by: number;
|
|
27
|
+
constructor();
|
|
28
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.ImportExportMaterialChat = exports.ImportExportMaterialChatStatus = exports.ImportExportMaterialMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialMessageType;
|
|
16
|
+
(function (ImportExportMaterialMessageType) {
|
|
17
|
+
ImportExportMaterialMessageType["TEXT"] = "text";
|
|
18
|
+
ImportExportMaterialMessageType["IMAGE"] = "image";
|
|
19
|
+
ImportExportMaterialMessageType["VIDEO"] = "video";
|
|
20
|
+
ImportExportMaterialMessageType["FILE"] = "file";
|
|
21
|
+
ImportExportMaterialMessageType["LINK"] = "link";
|
|
22
|
+
})(ImportExportMaterialMessageType || (exports.ImportExportMaterialMessageType = ImportExportMaterialMessageType = {}));
|
|
23
|
+
var ImportExportMaterialChatStatus;
|
|
24
|
+
(function (ImportExportMaterialChatStatus) {
|
|
25
|
+
ImportExportMaterialChatStatus["Pending"] = "Pending";
|
|
26
|
+
ImportExportMaterialChatStatus["Received"] = "Received";
|
|
27
|
+
ImportExportMaterialChatStatus["Approved"] = "Approved";
|
|
28
|
+
ImportExportMaterialChatStatus["Rejected"] = "Rejected";
|
|
29
|
+
ImportExportMaterialChatStatus["InProgress"] = "In Progress";
|
|
30
|
+
})(ImportExportMaterialChatStatus || (exports.ImportExportMaterialChatStatus = ImportExportMaterialChatStatus = {}));
|
|
31
|
+
let ImportExportMaterialChat = class ImportExportMaterialChat extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.ImportExportMaterialChat = ImportExportMaterialChat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ImportExportMaterialChat.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ImportExportMaterialChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ImportExportMaterialChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ImportExportMaterialChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ImportExportMaterialChat.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ImportExportMaterialChat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false, default: "Pending" }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ImportExportMaterialChat.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({
|
|
67
|
+
type: "enum",
|
|
68
|
+
enum: ImportExportMaterialMessageType,
|
|
69
|
+
default: ImportExportMaterialMessageType.TEXT,
|
|
70
|
+
nullable: false,
|
|
71
|
+
name: "message_type"
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ImportExportMaterialChat.prototype, "messageType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], ImportExportMaterialChat.prototype, "is_internal", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], ImportExportMaterialChat.prototype, "created_by", void 0);
|
|
83
|
+
exports.ImportExportMaterialChat = ImportExportMaterialChat = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_chats" }),
|
|
85
|
+
__metadata("design:paramtypes", [])
|
|
86
|
+
], ImportExportMaterialChat);
|
|
@@ -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
|
+
}
|