@platform-modules/civil-aviation-authority 2.3.136 → 2.3.137
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/index.d.ts +8 -0
- package/dist/index.js +15 -1
- package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.d.ts +39 -0
- package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.js +142 -0
- package/dist/models/LegalContractReviewApprovalModel.d.ts +26 -0
- package/dist/models/LegalContractReviewApprovalModel.js +97 -0
- package/dist/models/LegalContractReviewAttachmentModel.d.ts +14 -0
- package/dist/models/LegalContractReviewAttachmentModel.js +64 -0
- package/dist/models/LegalContractReviewChatModel.d.ts +28 -0
- package/dist/models/LegalContractReviewChatModel.js +84 -0
- package/dist/models/LegalContractReviewRequestModel.d.ts +38 -0
- package/dist/models/LegalContractReviewRequestModel.js +117 -0
- package/dist/models/LegalContractReviewWorkflowModel.d.ts +18 -0
- package/dist/models/LegalContractReviewWorkflowModel.js +68 -0
- package/package.json +1 -1
- package/src/index.ts +15 -0
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +101 -0
- package/src/models/LegalContractReviewApprovalModel.ts +66 -0
- package/src/models/LegalContractReviewAttachmentModel.ts +38 -0
- package/src/models/LegalContractReviewChatModel.ts +60 -0
- package/src/models/LegalContractReviewRequestModel.ts +85 -0
- package/src/models/LegalContractReviewWorkflowModel.ts +44 -0
package/dist/index.d.ts
CHANGED
|
@@ -201,6 +201,14 @@ export * from './models/CyberSecurityRiskManagementRequestModel';
|
|
|
201
201
|
export { CyberSecurityRiskManagementRequest, CyberSecurityRiskManagementRequestStatus } from './models/CyberSecurityRiskManagementRequestModel';
|
|
202
202
|
export * from './models/CyberSecurityRiskManagementRiskModel';
|
|
203
203
|
export { CyberSecurityRiskManagementRisk, CyberSecurityRiskImpactedCategory } from './models/CyberSecurityRiskManagementRiskModel';
|
|
204
|
+
export * from './models/LegalContractReviewRequestModel';
|
|
205
|
+
export { LegalContractReviewRequest, LegalContractReviewRequestStatus, LegalContractReviewRequestType } from './models/LegalContractReviewRequestModel';
|
|
206
|
+
export * from './models/LegalContractReviewApprovalModel';
|
|
207
|
+
export * from './models/LegalContractReviewWorkflowModel';
|
|
208
|
+
export * from './models/LegalContractReviewChatModel';
|
|
209
|
+
export * from './models/LegalContractReviewAttachmentModel';
|
|
210
|
+
export * from './models/AppealAgainstAdministrativeDecisionRequestModel';
|
|
211
|
+
export { AppealAgainstAdministrativeDecisionRequest, AppealAgainstAdministrativeDecisionRequestStatus } from './models/AppealAgainstAdministrativeDecisionRequestModel';
|
|
204
212
|
export * from './models/JobTransferRequestModel';
|
|
205
213
|
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
206
214
|
export * from './models/NewResourceRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.
|
|
18
|
+
exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.AppealAgainstAdministrativeDecisionRequestStatus = exports.AppealAgainstAdministrativeDecisionRequest = exports.LegalContractReviewRequestType = exports.LegalContractReviewRequestStatus = exports.LegalContractReviewRequest = exports.CyberSecurityRiskImpactedCategory = exports.CyberSecurityRiskManagementRisk = exports.CyberSecurityRiskManagementRequestStatus = exports.CyberSecurityRiskManagementRequest = exports.CyberSecurityAuditApplicationType = exports.CyberSecurityAuditClassification = exports.CyberSecurityAuditRequestStatus = exports.CyberSecurityAuditRequest = exports.RequestForVaptClassification = exports.RequestForVaptType = exports.RequestForVaptStatus = exports.RequestForVaptRequest = exports.InformationSecurityRequestAttachment = exports.InformationSecurityWorkFlow = exports.InformationSecurityWorkFlowStatus = exports.InformationSecurityRequestChat = exports.InformationSecurityChatStatus = exports.InformationSecurityMessageType = exports.InformationSecurityApprovalDetails = exports.InformationSecurityApprovalStatus = exports.RequestForProjectApproval = exports.RequestForProjectApprovalStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
|
+
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = void 0;
|
|
19
20
|
__exportStar(require("./models/user"), exports);
|
|
20
21
|
__exportStar(require("./models/role"), exports);
|
|
21
22
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -310,6 +311,19 @@ __exportStar(require("./models/CyberSecurityRiskManagementRiskModel"), exports);
|
|
|
310
311
|
var CyberSecurityRiskManagementRiskModel_1 = require("./models/CyberSecurityRiskManagementRiskModel");
|
|
311
312
|
Object.defineProperty(exports, "CyberSecurityRiskManagementRisk", { enumerable: true, get: function () { return CyberSecurityRiskManagementRiskModel_1.CyberSecurityRiskManagementRisk; } });
|
|
312
313
|
Object.defineProperty(exports, "CyberSecurityRiskImpactedCategory", { enumerable: true, get: function () { return CyberSecurityRiskManagementRiskModel_1.CyberSecurityRiskImpactedCategory; } });
|
|
314
|
+
__exportStar(require("./models/LegalContractReviewRequestModel"), exports);
|
|
315
|
+
var LegalContractReviewRequestModel_1 = require("./models/LegalContractReviewRequestModel");
|
|
316
|
+
Object.defineProperty(exports, "LegalContractReviewRequest", { enumerable: true, get: function () { return LegalContractReviewRequestModel_1.LegalContractReviewRequest; } });
|
|
317
|
+
Object.defineProperty(exports, "LegalContractReviewRequestStatus", { enumerable: true, get: function () { return LegalContractReviewRequestModel_1.LegalContractReviewRequestStatus; } });
|
|
318
|
+
Object.defineProperty(exports, "LegalContractReviewRequestType", { enumerable: true, get: function () { return LegalContractReviewRequestModel_1.LegalContractReviewRequestType; } });
|
|
319
|
+
__exportStar(require("./models/LegalContractReviewApprovalModel"), exports);
|
|
320
|
+
__exportStar(require("./models/LegalContractReviewWorkflowModel"), exports);
|
|
321
|
+
__exportStar(require("./models/LegalContractReviewChatModel"), exports);
|
|
322
|
+
__exportStar(require("./models/LegalContractReviewAttachmentModel"), exports);
|
|
323
|
+
__exportStar(require("./models/AppealAgainstAdministrativeDecisionRequestModel"), exports);
|
|
324
|
+
var AppealAgainstAdministrativeDecisionRequestModel_1 = require("./models/AppealAgainstAdministrativeDecisionRequestModel");
|
|
325
|
+
Object.defineProperty(exports, "AppealAgainstAdministrativeDecisionRequest", { enumerable: true, get: function () { return AppealAgainstAdministrativeDecisionRequestModel_1.AppealAgainstAdministrativeDecisionRequest; } });
|
|
326
|
+
Object.defineProperty(exports, "AppealAgainstAdministrativeDecisionRequestStatus", { enumerable: true, get: function () { return AppealAgainstAdministrativeDecisionRequestModel_1.AppealAgainstAdministrativeDecisionRequestStatus; } });
|
|
313
327
|
// export * from './models/CyberSecurityAuditRequestModel';
|
|
314
328
|
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
315
329
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AppealAgainstAdministrativeDecisionRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
req_user_position_id: number | null;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
user_id: number;
|
|
17
|
+
status: AppealAgainstAdministrativeDecisionRequestStatus;
|
|
18
|
+
reviewer_user_id: number | null;
|
|
19
|
+
assigned_to_user_id: number | null;
|
|
20
|
+
assigned_at: Date | null;
|
|
21
|
+
workflow_execution_id: string | null;
|
|
22
|
+
/** Display reference e.g. AAD-2026-0001 */
|
|
23
|
+
request_id: string | null;
|
|
24
|
+
submission_date: Date;
|
|
25
|
+
title_of_complaint: string;
|
|
26
|
+
appeal_against_decision: string;
|
|
27
|
+
description: string;
|
|
28
|
+
decision_number: string;
|
|
29
|
+
decision_date: Date;
|
|
30
|
+
decision_subject: string;
|
|
31
|
+
grievance_details: string;
|
|
32
|
+
grievant_name: string;
|
|
33
|
+
grievant_employee_number: string;
|
|
34
|
+
grievant_directorate_id: number | null;
|
|
35
|
+
grievant_department_id: number | null;
|
|
36
|
+
grievant_section_id: number | null;
|
|
37
|
+
grievant_relationship_to_matter: string;
|
|
38
|
+
declaration_acknowledged: boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
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.AppealAgainstAdministrativeDecisionRequest = exports.AppealAgainstAdministrativeDecisionRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AppealAgainstAdministrativeDecisionRequestStatus;
|
|
16
|
+
(function (AppealAgainstAdministrativeDecisionRequestStatus) {
|
|
17
|
+
AppealAgainstAdministrativeDecisionRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
AppealAgainstAdministrativeDecisionRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
AppealAgainstAdministrativeDecisionRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
AppealAgainstAdministrativeDecisionRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
AppealAgainstAdministrativeDecisionRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
AppealAgainstAdministrativeDecisionRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(AppealAgainstAdministrativeDecisionRequestStatus || (exports.AppealAgainstAdministrativeDecisionRequestStatus = AppealAgainstAdministrativeDecisionRequestStatus = {}));
|
|
24
|
+
let AppealAgainstAdministrativeDecisionRequest = class AppealAgainstAdministrativeDecisionRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.AppealAgainstAdministrativeDecisionRequest = AppealAgainstAdministrativeDecisionRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "req_user_position_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "sub_service_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "user_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({
|
|
53
|
+
type: "enum",
|
|
54
|
+
enum: AppealAgainstAdministrativeDecisionRequestStatus,
|
|
55
|
+
default: AppealAgainstAdministrativeDecisionRequestStatus.PENDING,
|
|
56
|
+
nullable: false
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "reviewer_user_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "assigned_to_user_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "assigned_at", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "workflow_execution_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "request_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "submission_date", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "title_of_complaint", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "appeal_against_decision", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "description", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_number", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
102
|
+
__metadata("design:type", Date)
|
|
103
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_date", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_subject", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievance_details", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_name", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_employee_number", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_directorate_id", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_department_id", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_section_id", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_relationship_to_matter", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
138
|
+
__metadata("design:type", Boolean)
|
|
139
|
+
], AppealAgainstAdministrativeDecisionRequest.prototype, "declaration_acknowledged", void 0);
|
|
140
|
+
exports.AppealAgainstAdministrativeDecisionRequest = AppealAgainstAdministrativeDecisionRequest = __decorate([
|
|
141
|
+
(0, typeorm_1.Entity)({ name: "appeal_against_administrative_decision_requests" })
|
|
142
|
+
], AppealAgainstAdministrativeDecisionRequest);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum LegalContractReviewApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class LegalContractReviewApproval extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
level: number;
|
|
14
|
+
approver_user_id: number | null;
|
|
15
|
+
approver_role_id: number | null;
|
|
16
|
+
department_id: number | null;
|
|
17
|
+
section_id: number | null;
|
|
18
|
+
delegate_user_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
comment: string;
|
|
21
|
+
approval_status: LegalContractReviewApprovalStatus;
|
|
22
|
+
is_manager: boolean | null;
|
|
23
|
+
is_president: boolean | null;
|
|
24
|
+
is_replace: boolean | null;
|
|
25
|
+
is_allowed: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.LegalContractReviewApproval = exports.LegalContractReviewApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalContractReviewApprovalStatus;
|
|
16
|
+
(function (LegalContractReviewApprovalStatus) {
|
|
17
|
+
LegalContractReviewApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
LegalContractReviewApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
LegalContractReviewApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
LegalContractReviewApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
LegalContractReviewApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(LegalContractReviewApprovalStatus || (exports.LegalContractReviewApprovalStatus = LegalContractReviewApprovalStatus = {}));
|
|
23
|
+
let LegalContractReviewApproval = class LegalContractReviewApproval extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.LegalContractReviewApproval = LegalContractReviewApproval;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], LegalContractReviewApproval.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], LegalContractReviewApproval.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], LegalContractReviewApproval.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], LegalContractReviewApproval.prototype, "level", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], LegalContractReviewApproval.prototype, "approver_user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LegalContractReviewApproval.prototype, "approver_role_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], LegalContractReviewApproval.prototype, "department_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], LegalContractReviewApproval.prototype, "section_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], LegalContractReviewApproval.prototype, "delegate_user_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], LegalContractReviewApproval.prototype, "approved_by", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], LegalContractReviewApproval.prototype, "comment", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({
|
|
72
|
+
type: "enum",
|
|
73
|
+
enum: LegalContractReviewApprovalStatus,
|
|
74
|
+
default: LegalContractReviewApprovalStatus.PENDING,
|
|
75
|
+
nullable: false
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], LegalContractReviewApproval.prototype, "approval_status", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "boolean", default: null, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], LegalContractReviewApproval.prototype, "is_manager", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], LegalContractReviewApproval.prototype, "is_president", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], LegalContractReviewApproval.prototype, "is_replace", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], LegalContractReviewApproval.prototype, "is_allowed", void 0);
|
|
95
|
+
exports.LegalContractReviewApproval = LegalContractReviewApproval = __decorate([
|
|
96
|
+
(0, typeorm_1.Entity)({ name: "legal_contract_review_approvals" })
|
|
97
|
+
], LegalContractReviewApproval);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class LegalContractReviewRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
uploaded_by: number;
|
|
7
|
+
file_url: string;
|
|
8
|
+
file_name: string;
|
|
9
|
+
file_type: string;
|
|
10
|
+
file_size: number | null;
|
|
11
|
+
mime_type: string | null;
|
|
12
|
+
file_path: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
}
|
|
@@ -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.LegalContractReviewRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let LegalContractReviewRequestAttachment = class LegalContractReviewRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.LegalContractReviewRequestAttachment = LegalContractReviewRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], LegalContractReviewRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], LegalContractReviewRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], LegalContractReviewRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], LegalContractReviewRequestAttachment.prototype, "uploaded_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], LegalContractReviewRequestAttachment.prototype, "file_url", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], LegalContractReviewRequestAttachment.prototype, "file_name", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], LegalContractReviewRequestAttachment.prototype, "file_type", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LegalContractReviewRequestAttachment.prototype, "file_size", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], LegalContractReviewRequestAttachment.prototype, "mime_type", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], LegalContractReviewRequestAttachment.prototype, "file_path", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], LegalContractReviewRequestAttachment.prototype, "description", void 0);
|
|
62
|
+
exports.LegalContractReviewRequestAttachment = LegalContractReviewRequestAttachment = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)({ name: "legal_contract_review_request_attachments" })
|
|
64
|
+
], LegalContractReviewRequestAttachment);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum LegalContractReviewMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum LegalContractReviewChatStatus {
|
|
10
|
+
SUBMITTED = "Submitted",
|
|
11
|
+
COMPLETED = "Completed",
|
|
12
|
+
PENDING = "Pending",
|
|
13
|
+
REJECTED = "Rejected",
|
|
14
|
+
ASSIGNED = "Assigned",
|
|
15
|
+
APPROVED = "Approved",
|
|
16
|
+
RECEIVED = "Received"
|
|
17
|
+
}
|
|
18
|
+
export declare class LegalContractReviewRequestChat extends BaseModel {
|
|
19
|
+
request_id: number;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
user_id: number;
|
|
23
|
+
message: string;
|
|
24
|
+
approver_role_id: number | null;
|
|
25
|
+
messageType: LegalContractReviewMessageType;
|
|
26
|
+
is_internal: boolean;
|
|
27
|
+
status: LegalContractReviewChatStatus;
|
|
28
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.LegalContractReviewRequestChat = exports.LegalContractReviewChatStatus = exports.LegalContractReviewMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalContractReviewMessageType;
|
|
16
|
+
(function (LegalContractReviewMessageType) {
|
|
17
|
+
LegalContractReviewMessageType["TEXT"] = "text";
|
|
18
|
+
LegalContractReviewMessageType["IMAGE"] = "image";
|
|
19
|
+
LegalContractReviewMessageType["VIDEO"] = "video";
|
|
20
|
+
LegalContractReviewMessageType["FILE"] = "file";
|
|
21
|
+
LegalContractReviewMessageType["LINK"] = "link";
|
|
22
|
+
})(LegalContractReviewMessageType || (exports.LegalContractReviewMessageType = LegalContractReviewMessageType = {}));
|
|
23
|
+
var LegalContractReviewChatStatus;
|
|
24
|
+
(function (LegalContractReviewChatStatus) {
|
|
25
|
+
LegalContractReviewChatStatus["SUBMITTED"] = "Submitted";
|
|
26
|
+
LegalContractReviewChatStatus["COMPLETED"] = "Completed";
|
|
27
|
+
LegalContractReviewChatStatus["PENDING"] = "Pending";
|
|
28
|
+
LegalContractReviewChatStatus["REJECTED"] = "Rejected";
|
|
29
|
+
LegalContractReviewChatStatus["ASSIGNED"] = "Assigned";
|
|
30
|
+
LegalContractReviewChatStatus["APPROVED"] = "Approved";
|
|
31
|
+
LegalContractReviewChatStatus["RECEIVED"] = "Received";
|
|
32
|
+
})(LegalContractReviewChatStatus || (exports.LegalContractReviewChatStatus = LegalContractReviewChatStatus = {}));
|
|
33
|
+
let LegalContractReviewRequestChat = class LegalContractReviewRequestChat extends BaseModel_1.BaseModel {
|
|
34
|
+
};
|
|
35
|
+
exports.LegalContractReviewRequestChat = LegalContractReviewRequestChat;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], LegalContractReviewRequestChat.prototype, "request_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], LegalContractReviewRequestChat.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], LegalContractReviewRequestChat.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], LegalContractReviewRequestChat.prototype, "user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], LegalContractReviewRequestChat.prototype, "message", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], LegalContractReviewRequestChat.prototype, "approver_role_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({
|
|
62
|
+
type: "enum",
|
|
63
|
+
enum: LegalContractReviewMessageType,
|
|
64
|
+
default: LegalContractReviewMessageType.TEXT,
|
|
65
|
+
nullable: false
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], LegalContractReviewRequestChat.prototype, "messageType", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], LegalContractReviewRequestChat.prototype, "is_internal", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({
|
|
75
|
+
type: "enum",
|
|
76
|
+
enum: LegalContractReviewChatStatus,
|
|
77
|
+
default: LegalContractReviewChatStatus.PENDING,
|
|
78
|
+
nullable: false
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], LegalContractReviewRequestChat.prototype, "status", void 0);
|
|
82
|
+
exports.LegalContractReviewRequestChat = LegalContractReviewRequestChat = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: "legal_contract_review_request_chat" })
|
|
84
|
+
], LegalContractReviewRequestChat);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum LegalContractReviewRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum LegalContractReviewRequestType {
|
|
11
|
+
CONTRACT = "Contract",
|
|
12
|
+
PROJECT_REPORT = "Project Report",
|
|
13
|
+
AGREEMENT = "Agreement",
|
|
14
|
+
OTHER = "Other"
|
|
15
|
+
}
|
|
16
|
+
export declare class LegalContractReviewRequest extends BaseModel {
|
|
17
|
+
req_user_department_id: number | null;
|
|
18
|
+
req_user_section_id: number | null;
|
|
19
|
+
req_user_position_id: number | null;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
user_id: number;
|
|
23
|
+
description: string;
|
|
24
|
+
status: LegalContractReviewRequestStatus;
|
|
25
|
+
reviewer_user_id: number | null;
|
|
26
|
+
assigned_to_user_id: number | null;
|
|
27
|
+
assigned_at: Date | null;
|
|
28
|
+
workflow_execution_id: string | null;
|
|
29
|
+
request_id: string | null;
|
|
30
|
+
submission_date: Date;
|
|
31
|
+
request_title: string;
|
|
32
|
+
request_type: LegalContractReviewRequestType;
|
|
33
|
+
/** Optional override: department selected manually instead of profile only */
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
/** Display name for HOS / department (profile-derived or manual) */
|
|
36
|
+
hos_or_department_name: string;
|
|
37
|
+
acknowledgement: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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.LegalContractReviewRequest = exports.LegalContractReviewRequestType = exports.LegalContractReviewRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalContractReviewRequestStatus;
|
|
16
|
+
(function (LegalContractReviewRequestStatus) {
|
|
17
|
+
LegalContractReviewRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
LegalContractReviewRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
LegalContractReviewRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
LegalContractReviewRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
LegalContractReviewRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
LegalContractReviewRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(LegalContractReviewRequestStatus || (exports.LegalContractReviewRequestStatus = LegalContractReviewRequestStatus = {}));
|
|
24
|
+
var LegalContractReviewRequestType;
|
|
25
|
+
(function (LegalContractReviewRequestType) {
|
|
26
|
+
LegalContractReviewRequestType["CONTRACT"] = "Contract";
|
|
27
|
+
LegalContractReviewRequestType["PROJECT_REPORT"] = "Project Report";
|
|
28
|
+
LegalContractReviewRequestType["AGREEMENT"] = "Agreement";
|
|
29
|
+
LegalContractReviewRequestType["OTHER"] = "Other";
|
|
30
|
+
})(LegalContractReviewRequestType || (exports.LegalContractReviewRequestType = LegalContractReviewRequestType = {}));
|
|
31
|
+
let LegalContractReviewRequest = class LegalContractReviewRequest extends BaseModel_1.BaseModel {
|
|
32
|
+
};
|
|
33
|
+
exports.LegalContractReviewRequest = LegalContractReviewRequest;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], LegalContractReviewRequest.prototype, "req_user_department_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], LegalContractReviewRequest.prototype, "req_user_section_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], LegalContractReviewRequest.prototype, "req_user_position_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LegalContractReviewRequest.prototype, "service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], LegalContractReviewRequest.prototype, "sub_service_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], LegalContractReviewRequest.prototype, "user_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], LegalContractReviewRequest.prototype, "description", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: "enum",
|
|
65
|
+
enum: LegalContractReviewRequestStatus,
|
|
66
|
+
default: LegalContractReviewRequestStatus.PENDING,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], LegalContractReviewRequest.prototype, "status", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], LegalContractReviewRequest.prototype, "reviewer_user_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], LegalContractReviewRequest.prototype, "assigned_to_user_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], LegalContractReviewRequest.prototype, "assigned_at", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], LegalContractReviewRequest.prototype, "workflow_execution_id", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], LegalContractReviewRequest.prototype, "request_id", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
93
|
+
__metadata("design:type", Date)
|
|
94
|
+
], LegalContractReviewRequest.prototype, "submission_date", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], LegalContractReviewRequest.prototype, "request_title", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "enum", enum: LegalContractReviewRequestType, nullable: false }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], LegalContractReviewRequest.prototype, "request_type", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], LegalContractReviewRequest.prototype, "department_id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], LegalContractReviewRequest.prototype, "hos_or_department_name", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], LegalContractReviewRequest.prototype, "acknowledgement", void 0);
|
|
115
|
+
exports.LegalContractReviewRequest = LegalContractReviewRequest = __decorate([
|
|
116
|
+
(0, typeorm_1.Entity)({ name: "legal_contract_review_requests" })
|
|
117
|
+
], LegalContractReviewRequest);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum LegalContractReviewWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class LegalContractReviewWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
order: number | null;
|
|
13
|
+
content: string;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
status: LegalContractReviewWorkFlowStatus;
|
|
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.LegalContractReviewWorkFlow = exports.LegalContractReviewWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LegalContractReviewWorkFlowStatus;
|
|
16
|
+
(function (LegalContractReviewWorkFlowStatus) {
|
|
17
|
+
LegalContractReviewWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
LegalContractReviewWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
LegalContractReviewWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
LegalContractReviewWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(LegalContractReviewWorkFlowStatus || (exports.LegalContractReviewWorkFlowStatus = LegalContractReviewWorkFlowStatus = {}));
|
|
22
|
+
let LegalContractReviewWorkFlow = class LegalContractReviewWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.LegalContractReviewWorkFlow = LegalContractReviewWorkFlow;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], LegalContractReviewWorkFlow.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], LegalContractReviewWorkFlow.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], LegalContractReviewWorkFlow.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], LegalContractReviewWorkFlow.prototype, "order", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LegalContractReviewWorkFlow.prototype, "content", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LegalContractReviewWorkFlow.prototype, "approver_role_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LegalContractReviewWorkFlow.prototype, "approver_user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LegalContractReviewWorkFlow.prototype, "approved_by", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({
|
|
59
|
+
type: "enum",
|
|
60
|
+
enum: LegalContractReviewWorkFlowStatus,
|
|
61
|
+
default: LegalContractReviewWorkFlowStatus.PENDING,
|
|
62
|
+
nullable: false
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], LegalContractReviewWorkFlow.prototype, "status", void 0);
|
|
66
|
+
exports.LegalContractReviewWorkFlow = LegalContractReviewWorkFlow = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: "legal_contract_review_work_flows" })
|
|
68
|
+
], LegalContractReviewWorkFlow);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -216,6 +216,21 @@ export {
|
|
|
216
216
|
CyberSecurityRiskManagementRisk,
|
|
217
217
|
CyberSecurityRiskImpactedCategory
|
|
218
218
|
} from './models/CyberSecurityRiskManagementRiskModel';
|
|
219
|
+
export * from './models/LegalContractReviewRequestModel';
|
|
220
|
+
export {
|
|
221
|
+
LegalContractReviewRequest,
|
|
222
|
+
LegalContractReviewRequestStatus,
|
|
223
|
+
LegalContractReviewRequestType
|
|
224
|
+
} from './models/LegalContractReviewRequestModel';
|
|
225
|
+
export * from './models/LegalContractReviewApprovalModel';
|
|
226
|
+
export * from './models/LegalContractReviewWorkflowModel';
|
|
227
|
+
export * from './models/LegalContractReviewChatModel';
|
|
228
|
+
export * from './models/LegalContractReviewAttachmentModel';
|
|
229
|
+
export * from './models/AppealAgainstAdministrativeDecisionRequestModel';
|
|
230
|
+
export {
|
|
231
|
+
AppealAgainstAdministrativeDecisionRequest,
|
|
232
|
+
AppealAgainstAdministrativeDecisionRequestStatus
|
|
233
|
+
} from './models/AppealAgainstAdministrativeDecisionRequestModel';
|
|
219
234
|
// export * from './models/CyberSecurityAuditRequestModel';
|
|
220
235
|
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
221
236
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AppealAgainstAdministrativeDecisionRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: "appeal_against_administrative_decision_requests" })
|
|
14
|
+
export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
|
|
15
|
+
@Column({ type: "integer", nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "integer", nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "integer", nullable: true })
|
|
22
|
+
req_user_position_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
sub_service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: false })
|
|
31
|
+
user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({
|
|
34
|
+
type: "enum",
|
|
35
|
+
enum: AppealAgainstAdministrativeDecisionRequestStatus,
|
|
36
|
+
default: AppealAgainstAdministrativeDecisionRequestStatus.PENDING,
|
|
37
|
+
nullable: false
|
|
38
|
+
})
|
|
39
|
+
status: AppealAgainstAdministrativeDecisionRequestStatus;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
reviewer_user_id: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "integer", nullable: true })
|
|
45
|
+
assigned_to_user_id: number | null;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "timestamp", nullable: true })
|
|
48
|
+
assigned_at: Date | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
51
|
+
workflow_execution_id: string | null;
|
|
52
|
+
|
|
53
|
+
/** Display reference e.g. AAD-2026-0001 */
|
|
54
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
55
|
+
request_id: string | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "date", nullable: false })
|
|
58
|
+
submission_date: Date;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
61
|
+
title_of_complaint: string;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "text", nullable: false })
|
|
64
|
+
appeal_against_decision: string;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "text", nullable: false })
|
|
67
|
+
description: string;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
70
|
+
decision_number: string;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "date", nullable: false })
|
|
73
|
+
decision_date: Date;
|
|
74
|
+
|
|
75
|
+
@Column({ type: "text", nullable: false })
|
|
76
|
+
decision_subject: string;
|
|
77
|
+
|
|
78
|
+
@Column({ type: "text", nullable: false })
|
|
79
|
+
grievance_details: string;
|
|
80
|
+
|
|
81
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
82
|
+
grievant_name: string;
|
|
83
|
+
|
|
84
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
85
|
+
grievant_employee_number: string;
|
|
86
|
+
|
|
87
|
+
@Column({ type: "integer", nullable: true })
|
|
88
|
+
grievant_directorate_id: number | null;
|
|
89
|
+
|
|
90
|
+
@Column({ type: "integer", nullable: true })
|
|
91
|
+
grievant_department_id: number | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: "integer", nullable: true })
|
|
94
|
+
grievant_section_id: number | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: "text", nullable: false })
|
|
97
|
+
grievant_relationship_to_matter: string;
|
|
98
|
+
|
|
99
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
100
|
+
declaration_acknowledged: boolean;
|
|
101
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum LegalContractReviewApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "legal_contract_review_approvals" })
|
|
13
|
+
export class LegalContractReviewApproval extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: false })
|
|
24
|
+
level: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
approver_user_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: true })
|
|
30
|
+
approver_role_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
department_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
section_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: true })
|
|
39
|
+
delegate_user_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
approved_by: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "varchar", length: 255, nullable: true, default: "" })
|
|
45
|
+
comment: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: LegalContractReviewApprovalStatus,
|
|
50
|
+
default: LegalContractReviewApprovalStatus.PENDING,
|
|
51
|
+
nullable: false
|
|
52
|
+
})
|
|
53
|
+
approval_status: LegalContractReviewApprovalStatus;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "boolean", default: null, nullable: true })
|
|
56
|
+
is_manager: boolean | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
59
|
+
is_president: boolean | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
62
|
+
is_replace: boolean | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
65
|
+
is_allowed: boolean;
|
|
66
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "legal_contract_review_request_attachments" })
|
|
5
|
+
export class LegalContractReviewRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "integer", nullable: false })
|
|
16
|
+
uploaded_by: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
19
|
+
file_url: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
22
|
+
file_name: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
25
|
+
file_type: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "bigint", nullable: true })
|
|
28
|
+
file_size: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
31
|
+
mime_type: string | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
34
|
+
file_path: string | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "text", nullable: true })
|
|
37
|
+
description: string | null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum LegalContractReviewMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum LegalContractReviewChatStatus {
|
|
13
|
+
SUBMITTED = "Submitted",
|
|
14
|
+
COMPLETED = "Completed",
|
|
15
|
+
PENDING = "Pending",
|
|
16
|
+
REJECTED = "Rejected",
|
|
17
|
+
ASSIGNED = "Assigned",
|
|
18
|
+
APPROVED = "Approved",
|
|
19
|
+
RECEIVED = "Received"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@Entity({ name: "legal_contract_review_request_chat" })
|
|
23
|
+
export class LegalContractReviewRequestChat extends BaseModel {
|
|
24
|
+
@Column({ type: "integer", nullable: false })
|
|
25
|
+
request_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
sub_service_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: false })
|
|
34
|
+
user_id: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "text", nullable: false })
|
|
37
|
+
message: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
approver_role_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({
|
|
43
|
+
type: "enum",
|
|
44
|
+
enum: LegalContractReviewMessageType,
|
|
45
|
+
default: LegalContractReviewMessageType.TEXT,
|
|
46
|
+
nullable: false
|
|
47
|
+
})
|
|
48
|
+
messageType: LegalContractReviewMessageType;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "boolean", default: false })
|
|
51
|
+
is_internal: boolean;
|
|
52
|
+
|
|
53
|
+
@Column({
|
|
54
|
+
type: "enum",
|
|
55
|
+
enum: LegalContractReviewChatStatus,
|
|
56
|
+
default: LegalContractReviewChatStatus.PENDING,
|
|
57
|
+
nullable: false
|
|
58
|
+
})
|
|
59
|
+
status: LegalContractReviewChatStatus;
|
|
60
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum LegalContractReviewRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum LegalContractReviewRequestType {
|
|
14
|
+
CONTRACT = "Contract",
|
|
15
|
+
PROJECT_REPORT = "Project Report",
|
|
16
|
+
AGREEMENT = "Agreement",
|
|
17
|
+
OTHER = "Other"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Entity({ name: "legal_contract_review_requests" })
|
|
21
|
+
export class LegalContractReviewRequest extends BaseModel {
|
|
22
|
+
@Column({ type: "integer", nullable: true })
|
|
23
|
+
req_user_department_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
req_user_section_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
req_user_position_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
service_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
sub_service_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: false })
|
|
38
|
+
user_id: number;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "text", nullable: false })
|
|
41
|
+
description: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
type: "enum",
|
|
45
|
+
enum: LegalContractReviewRequestStatus,
|
|
46
|
+
default: LegalContractReviewRequestStatus.PENDING,
|
|
47
|
+
nullable: false
|
|
48
|
+
})
|
|
49
|
+
status: LegalContractReviewRequestStatus;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "integer", nullable: true })
|
|
52
|
+
reviewer_user_id: number | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "integer", nullable: true })
|
|
55
|
+
assigned_to_user_id: number | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "timestamp", nullable: true })
|
|
58
|
+
assigned_at: Date | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
61
|
+
workflow_execution_id: string | null;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
64
|
+
request_id: string | null;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "date", nullable: false })
|
|
67
|
+
submission_date: Date;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
70
|
+
request_title: string;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "enum", enum: LegalContractReviewRequestType, nullable: false })
|
|
73
|
+
request_type: LegalContractReviewRequestType;
|
|
74
|
+
|
|
75
|
+
/** Optional override: department selected manually instead of profile only */
|
|
76
|
+
@Column({ type: "integer", nullable: true })
|
|
77
|
+
department_id: number | null;
|
|
78
|
+
|
|
79
|
+
/** Display name for HOS / department (profile-derived or manual) */
|
|
80
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
81
|
+
hos_or_department_name: string;
|
|
82
|
+
|
|
83
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
84
|
+
acknowledgement: boolean;
|
|
85
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum LegalContractReviewWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "legal_contract_review_work_flows" })
|
|
12
|
+
export class LegalContractReviewWorkFlow extends BaseModel {
|
|
13
|
+
@Column({ type: "int", nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "integer", nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
order: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
26
|
+
content: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
approver_role_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
approver_user_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
approved_by: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({
|
|
38
|
+
type: "enum",
|
|
39
|
+
enum: LegalContractReviewWorkFlowStatus,
|
|
40
|
+
default: LegalContractReviewWorkFlowStatus.PENDING,
|
|
41
|
+
nullable: false
|
|
42
|
+
})
|
|
43
|
+
status: LegalContractReviewWorkFlowStatus;
|
|
44
|
+
}
|