@platform-modules/civil-aviation-authority 2.3.141 → 2.3.145
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 +17 -9
- package/dist/data-source.js +10 -10
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -5
- 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/LegalComplaintApprovalModel.d.ts +24 -0
- package/dist/models/LegalComplaintApprovalModel.js +89 -0
- package/dist/models/LegalComplaintAttachmentModel.d.ts +15 -0
- package/dist/models/LegalComplaintAttachmentModel.js +60 -0
- package/dist/models/LegalComplaintChatModel.d.ts +17 -0
- package/dist/models/LegalComplaintChatModel.js +68 -0
- package/dist/models/LegalComplaintRequestModel.d.ts +30 -0
- package/dist/models/LegalComplaintRequestModel.js +99 -0
- package/dist/models/LegalComplaintWorkflowModel.d.ts +25 -0
- package/dist/models/LegalComplaintWorkflowModel.js +88 -0
- package/dist/models/LegalConsultationApprovalModel.d.ts +3 -1
- package/dist/models/LegalConsultationApprovalModel.js +2 -0
- package/dist/models/LegalConsultationRequestModel.d.ts +0 -2
- package/dist/models/LegalConsultationRequestModel.js +0 -4
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +327 -327
- package/src/index.ts +357 -355
- 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/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalComplaintApprovalModel.ts +61 -0
- package/src/models/LegalComplaintAttachmentModel.ts +39 -0
- package/src/models/LegalComplaintChatModel.ts +43 -0
- package/src/models/LegalComplaintRequestModel.ts +70 -0
- package/src/models/LegalComplaintWorkflowModel.ts +59 -0
- package/src/models/LegalConsultationApprovalModel.ts +2 -0
- package/src/models/LegalConsultationRequestModel.ts +0 -4
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/ScholarshipApprovalModel.d.ts +0 -22
- package/dist/models/ScholarshipApprovalModel.js +0 -84
- package/dist/models/ScholarshipAttachmentModel.d.ts +0 -12
- package/dist/models/ScholarshipAttachmentModel.js +0 -56
- package/dist/models/ScholarshipChatModel.d.ts +0 -18
- package/dist/models/ScholarshipChatModel.js +0 -65
- package/dist/models/ScholarshipRequestModel.d.ts +0 -30
- package/dist/models/ScholarshipRequestModel.js +0 -94
- package/dist/models/ScholarshipWorkflowModel.d.ts +0 -19
- package/dist/models/ScholarshipWorkflowModel.js +0 -66
- package/src/models/ScholarshipApprovalModel.ts +0 -56
- package/src/models/ScholarshipAttachmentModel.ts +0 -32
- package/src/models/ScholarshipChatModel.ts +0 -42
- package/src/models/ScholarshipRequestModel.ts +0 -64
- package/src/models/ScholarshipWorkflowModel.ts +0 -42
|
@@ -0,0 +1,60 @@
|
|
|
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.LegalComplaintAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let LegalComplaintAttachment = class LegalComplaintAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.LegalComplaintAttachment = LegalComplaintAttachment;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], LegalComplaintAttachment.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], LegalComplaintAttachment.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], LegalComplaintAttachment.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 32, nullable: false, default: 'primary' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], LegalComplaintAttachment.prototype, "attachment_kind", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LegalComplaintAttachment.prototype, "file_name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LegalComplaintAttachment.prototype, "file_url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LegalComplaintAttachment.prototype, "file_type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], LegalComplaintAttachment.prototype, "file_size", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], LegalComplaintAttachment.prototype, "created_by", void 0);
|
|
57
|
+
exports.LegalComplaintAttachment = LegalComplaintAttachment = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)({ name: 'legal_complaint_attachments' }),
|
|
59
|
+
__metadata("design:paramtypes", [])
|
|
60
|
+
], LegalComplaintAttachment);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LegalComplaintMessageType {
|
|
3
|
+
text = "text"
|
|
4
|
+
}
|
|
5
|
+
export declare class LegalComplaintChat extends BaseModel {
|
|
6
|
+
request_id: number;
|
|
7
|
+
service_id: number;
|
|
8
|
+
sub_service_id: number;
|
|
9
|
+
user_id: number;
|
|
10
|
+
approver_role_id: number;
|
|
11
|
+
message: string;
|
|
12
|
+
message_type: string;
|
|
13
|
+
status: string;
|
|
14
|
+
is_internal: boolean;
|
|
15
|
+
created_by: number;
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
@@ -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.LegalComplaintChat = exports.LegalComplaintMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalComplaintMessageType;
|
|
16
|
+
(function (LegalComplaintMessageType) {
|
|
17
|
+
LegalComplaintMessageType["text"] = "text";
|
|
18
|
+
})(LegalComplaintMessageType || (exports.LegalComplaintMessageType = LegalComplaintMessageType = {}));
|
|
19
|
+
let LegalComplaintChat = class LegalComplaintChat extends BaseModel_1.BaseModel {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.LegalComplaintChat = LegalComplaintChat;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], LegalComplaintChat.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], LegalComplaintChat.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], LegalComplaintChat.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LegalComplaintChat.prototype, "user_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], LegalComplaintChat.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LegalComplaintChat.prototype, "message", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false, default: 'text' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LegalComplaintChat.prototype, "message_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LegalComplaintChat.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], LegalComplaintChat.prototype, "is_internal", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], LegalComplaintChat.prototype, "created_by", void 0);
|
|
65
|
+
exports.LegalComplaintChat = LegalComplaintChat = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'legal_complaint_chat' }),
|
|
67
|
+
__metadata("design:paramtypes", [])
|
|
68
|
+
], LegalComplaintChat);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LegalComplaintRequestStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
Approved = "Approved",
|
|
5
|
+
Rejected = "Rejected",
|
|
6
|
+
RFC = "RFC"
|
|
7
|
+
}
|
|
8
|
+
export declare class LegalComplaintRequest extends BaseModel {
|
|
9
|
+
complaint_date: Date;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
/** Times, dates, locations, individuals, events, etc. */
|
|
13
|
+
complaint_details: string;
|
|
14
|
+
/** Name / Position / Employee ID / Directorate / Department / Section (structured text or JSON) */
|
|
15
|
+
complainant_details: string;
|
|
16
|
+
/** Subject of complaint: Name / Position / Salary Grade / Directorate / Department / Section */
|
|
17
|
+
complained_employee_details: string;
|
|
18
|
+
req_user_department_id: number | null;
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
status: string;
|
|
21
|
+
user_id: number;
|
|
22
|
+
workflow_execution_id: string;
|
|
23
|
+
created_by: number;
|
|
24
|
+
approved_by: number;
|
|
25
|
+
approved_at: Date;
|
|
26
|
+
approver_comment: string;
|
|
27
|
+
service_id: number;
|
|
28
|
+
sub_service_id: number;
|
|
29
|
+
constructor();
|
|
30
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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.LegalComplaintRequest = exports.LegalComplaintRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalComplaintRequestStatus;
|
|
16
|
+
(function (LegalComplaintRequestStatus) {
|
|
17
|
+
LegalComplaintRequestStatus["Pending"] = "Pending";
|
|
18
|
+
LegalComplaintRequestStatus["Approved"] = "Approved";
|
|
19
|
+
LegalComplaintRequestStatus["Rejected"] = "Rejected";
|
|
20
|
+
LegalComplaintRequestStatus["RFC"] = "RFC";
|
|
21
|
+
})(LegalComplaintRequestStatus || (exports.LegalComplaintRequestStatus = LegalComplaintRequestStatus = {}));
|
|
22
|
+
let LegalComplaintRequest = class LegalComplaintRequest extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.LegalComplaintRequest = LegalComplaintRequest;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], LegalComplaintRequest.prototype, "complaint_date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], LegalComplaintRequest.prototype, "title", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], LegalComplaintRequest.prototype, "description", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LegalComplaintRequest.prototype, "complaint_details", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], LegalComplaintRequest.prototype, "complainant_details", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], LegalComplaintRequest.prototype, "complained_employee_details", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], LegalComplaintRequest.prototype, "req_user_department_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], LegalComplaintRequest.prototype, "req_user_section_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false, default: 'Pending' }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], LegalComplaintRequest.prototype, "status", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], LegalComplaintRequest.prototype, "user_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], LegalComplaintRequest.prototype, "workflow_execution_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], LegalComplaintRequest.prototype, "created_by", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], LegalComplaintRequest.prototype, "approved_by", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], LegalComplaintRequest.prototype, "approved_at", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], LegalComplaintRequest.prototype, "approver_comment", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], LegalComplaintRequest.prototype, "service_id", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], LegalComplaintRequest.prototype, "sub_service_id", void 0);
|
|
96
|
+
exports.LegalComplaintRequest = LegalComplaintRequest = __decorate([
|
|
97
|
+
(0, typeorm_1.Entity)({ name: 'legal_complaint_requests' }),
|
|
98
|
+
__metadata("design:paramtypes", [])
|
|
99
|
+
], LegalComplaintRequest);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LegalComplaintWorkFlowStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
InProgress = "In Progress",
|
|
5
|
+
Approved = "Approved",
|
|
6
|
+
Rejected = "Rejected",
|
|
7
|
+
RFC = "RFC"
|
|
8
|
+
}
|
|
9
|
+
export declare class LegalComplaintWorkflow extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
workflow_definition_id: number;
|
|
14
|
+
current_level: number;
|
|
15
|
+
content: string;
|
|
16
|
+
status: string;
|
|
17
|
+
step_order: number;
|
|
18
|
+
user_id: number;
|
|
19
|
+
role_id: number;
|
|
20
|
+
department_id: number;
|
|
21
|
+
section_id: number;
|
|
22
|
+
workflow_data: string;
|
|
23
|
+
created_by: number;
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.LegalComplaintWorkflow = exports.LegalComplaintWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalComplaintWorkFlowStatus;
|
|
16
|
+
(function (LegalComplaintWorkFlowStatus) {
|
|
17
|
+
LegalComplaintWorkFlowStatus["Pending"] = "Pending";
|
|
18
|
+
LegalComplaintWorkFlowStatus["InProgress"] = "In Progress";
|
|
19
|
+
LegalComplaintWorkFlowStatus["Approved"] = "Approved";
|
|
20
|
+
LegalComplaintWorkFlowStatus["Rejected"] = "Rejected";
|
|
21
|
+
LegalComplaintWorkFlowStatus["RFC"] = "RFC";
|
|
22
|
+
})(LegalComplaintWorkFlowStatus || (exports.LegalComplaintWorkFlowStatus = LegalComplaintWorkFlowStatus = {}));
|
|
23
|
+
let LegalComplaintWorkflow = class LegalComplaintWorkflow extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.LegalComplaintWorkflow = LegalComplaintWorkflow;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], LegalComplaintWorkflow.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], LegalComplaintWorkflow.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LegalComplaintWorkflow.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], LegalComplaintWorkflow.prototype, "workflow_definition_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], LegalComplaintWorkflow.prototype, "current_level", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LegalComplaintWorkflow.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LegalComplaintWorkflow.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], LegalComplaintWorkflow.prototype, "step_order", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], LegalComplaintWorkflow.prototype, "user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], LegalComplaintWorkflow.prototype, "role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], LegalComplaintWorkflow.prototype, "department_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], LegalComplaintWorkflow.prototype, "section_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], LegalComplaintWorkflow.prototype, "workflow_data", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], LegalComplaintWorkflow.prototype, "created_by", void 0);
|
|
85
|
+
exports.LegalComplaintWorkflow = LegalComplaintWorkflow = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)({ name: 'legal_complaint_workflow' }),
|
|
87
|
+
__metadata("design:paramtypes", [])
|
|
88
|
+
], LegalComplaintWorkflow);
|
|
@@ -3,7 +3,9 @@ export declare enum LegalConsultationApprovalStatus {
|
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
IN_PROGRESS = "In Progress",
|
|
5
5
|
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
/** Current step completed by assigning the next approver (user/dept/section/role). */
|
|
8
|
+
REASSIGNED = "Reassigned"
|
|
7
9
|
}
|
|
8
10
|
export declare class LegalConsultationApproval extends BaseModel {
|
|
9
11
|
request_id: number;
|
|
@@ -18,6 +18,8 @@ var LegalConsultationApprovalStatus;
|
|
|
18
18
|
LegalConsultationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
19
|
LegalConsultationApprovalStatus["APPROVED"] = "Approved";
|
|
20
20
|
LegalConsultationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
/** Current step completed by assigning the next approver (user/dept/section/role). */
|
|
22
|
+
LegalConsultationApprovalStatus["REASSIGNED"] = "Reassigned";
|
|
21
23
|
})(LegalConsultationApprovalStatus || (exports.LegalConsultationApprovalStatus = LegalConsultationApprovalStatus = {}));
|
|
22
24
|
let LegalConsultationApproval = class LegalConsultationApproval extends BaseModel_1.BaseModel {
|
|
23
25
|
constructor() {
|
|
@@ -6,8 +6,6 @@ export declare enum LegalConsultationRequestStatus {
|
|
|
6
6
|
RFC = "RFC"
|
|
7
7
|
}
|
|
8
8
|
export declare class LegalConsultationRequest extends BaseModel {
|
|
9
|
-
/** Business reference (populated by create worker / workflow) */
|
|
10
|
-
request_id: string | null;
|
|
11
9
|
request_date: Date;
|
|
12
10
|
title: string;
|
|
13
11
|
description: string;
|
|
@@ -25,10 +25,6 @@ let LegalConsultationRequest = class LegalConsultationRequest extends BaseModel_
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
exports.LegalConsultationRequest = LegalConsultationRequest;
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], LegalConsultationRequest.prototype, "request_id", void 0);
|
|
32
28
|
__decorate([
|
|
33
29
|
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
34
30
|
__metadata("design:type", Date)
|
|
@@ -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,14 @@
|
|
|
1
|
+
export declare abstract class UUIDModel0 {
|
|
2
|
+
jsonIgnore: string[];
|
|
3
|
+
created_by?: string;
|
|
4
|
+
created_at?: Date;
|
|
5
|
+
updated_by?: string;
|
|
6
|
+
updated_at?: Date;
|
|
7
|
+
insertCreated(): void;
|
|
8
|
+
is_deleted?: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class UUIDBaseModel extends UUIDModel0 {
|
|
12
|
+
id: string;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UUIDBaseModel = exports.UUIDModel0 = void 0;
|
|
16
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
class UUIDModel0 {
|
|
19
|
+
insertCreated() {
|
|
20
|
+
const currentTime = (0, moment_timezone_1.default)().utc().tz('Asia/Kolkata').toDate();
|
|
21
|
+
this.created_at = currentTime;
|
|
22
|
+
this.updated_at = currentTime;
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
this.jsonIgnore = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
26
|
+
this.is_deleted = false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UUIDModel0 = UUIDModel0;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UUIDModel0.prototype, "created_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], UUIDModel0.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UUIDModel0.prototype, "updated_by", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], UUIDModel0.prototype, "updated_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", void 0)
|
|
51
|
+
], UUIDModel0.prototype, "insertCreated", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UUIDModel0.prototype, "is_deleted", void 0);
|
|
56
|
+
class UUIDBaseModel extends UUIDModel0 {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
this.id = ''; // This will be set by the database when the entity is saved
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.UUIDBaseModel = UUIDBaseModel;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UUIDBaseModel.prototype, "id", void 0);
|