@platform-modules/civil-aviation-authority 2.3.135 → 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 +12 -0
- package/dist/index.js +23 -1
- package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.d.ts +39 -0
- package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.js +142 -0
- package/dist/models/CyberSecurityRiskManagementRequestModel.d.ts +24 -0
- package/dist/models/CyberSecurityRiskManagementRequestModel.js +86 -0
- package/dist/models/CyberSecurityRiskManagementRiskModel.d.ts +34 -0
- package/dist/models/CyberSecurityRiskManagementRiskModel.js +115 -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 +39 -14
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +101 -0
- package/src/models/CyberSecurityRiskManagementRequestModel.ts +58 -0
- package/src/models/CyberSecurityRiskManagementRiskModel.ts +79 -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
|
@@ -197,6 +197,18 @@ export * from './models/RequestForVaptRequestModel';
|
|
|
197
197
|
export { RequestForVaptRequest, RequestForVaptStatus, RequestForVaptType, RequestForVaptClassification } from './models/RequestForVaptRequestModel';
|
|
198
198
|
export * from './models/CyberSecurityAuditRequestModel';
|
|
199
199
|
export { CyberSecurityAuditRequest, CyberSecurityAuditRequestStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplicationType } from './models/CyberSecurityAuditRequestModel';
|
|
200
|
+
export * from './models/CyberSecurityRiskManagementRequestModel';
|
|
201
|
+
export { CyberSecurityRiskManagementRequest, CyberSecurityRiskManagementRequestStatus } from './models/CyberSecurityRiskManagementRequestModel';
|
|
202
|
+
export * from './models/CyberSecurityRiskManagementRiskModel';
|
|
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';
|
|
200
212
|
export * from './models/JobTransferRequestModel';
|
|
201
213
|
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
202
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);
|
|
@@ -302,6 +303,27 @@ Object.defineProperty(exports, "CyberSecurityAuditRequest", { enumerable: true,
|
|
|
302
303
|
Object.defineProperty(exports, "CyberSecurityAuditRequestStatus", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditRequestStatus; } });
|
|
303
304
|
Object.defineProperty(exports, "CyberSecurityAuditClassification", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditClassification; } });
|
|
304
305
|
Object.defineProperty(exports, "CyberSecurityAuditApplicationType", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditApplicationType; } });
|
|
306
|
+
__exportStar(require("./models/CyberSecurityRiskManagementRequestModel"), exports);
|
|
307
|
+
var CyberSecurityRiskManagementRequestModel_1 = require("./models/CyberSecurityRiskManagementRequestModel");
|
|
308
|
+
Object.defineProperty(exports, "CyberSecurityRiskManagementRequest", { enumerable: true, get: function () { return CyberSecurityRiskManagementRequestModel_1.CyberSecurityRiskManagementRequest; } });
|
|
309
|
+
Object.defineProperty(exports, "CyberSecurityRiskManagementRequestStatus", { enumerable: true, get: function () { return CyberSecurityRiskManagementRequestModel_1.CyberSecurityRiskManagementRequestStatus; } });
|
|
310
|
+
__exportStar(require("./models/CyberSecurityRiskManagementRiskModel"), exports);
|
|
311
|
+
var CyberSecurityRiskManagementRiskModel_1 = require("./models/CyberSecurityRiskManagementRiskModel");
|
|
312
|
+
Object.defineProperty(exports, "CyberSecurityRiskManagementRisk", { enumerable: true, get: function () { return CyberSecurityRiskManagementRiskModel_1.CyberSecurityRiskManagementRisk; } });
|
|
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; } });
|
|
305
327
|
// export * from './models/CyberSecurityAuditRequestModel';
|
|
306
328
|
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
307
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,24 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum CyberSecurityRiskManagementRequestStatus {
|
|
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 CyberSecurityRiskManagementRequest 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
|
+
description: string | null;
|
|
18
|
+
status: CyberSecurityRiskManagementRequestStatus;
|
|
19
|
+
reviewer_user_id: number | null;
|
|
20
|
+
assigned_to_user_id: number | null;
|
|
21
|
+
assigned_at: Date | null;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
request_id: string | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CyberSecurityRiskManagementRequest = exports.CyberSecurityRiskManagementRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var CyberSecurityRiskManagementRequestStatus;
|
|
16
|
+
(function (CyberSecurityRiskManagementRequestStatus) {
|
|
17
|
+
CyberSecurityRiskManagementRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
CyberSecurityRiskManagementRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
CyberSecurityRiskManagementRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
CyberSecurityRiskManagementRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
CyberSecurityRiskManagementRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
CyberSecurityRiskManagementRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(CyberSecurityRiskManagementRequestStatus || (exports.CyberSecurityRiskManagementRequestStatus = CyberSecurityRiskManagementRequestStatus = {}));
|
|
24
|
+
let CyberSecurityRiskManagementRequest = class CyberSecurityRiskManagementRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.CyberSecurityRiskManagementRequest = CyberSecurityRiskManagementRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], CyberSecurityRiskManagementRequest.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], CyberSecurityRiskManagementRequest.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], CyberSecurityRiskManagementRequest.prototype, "req_user_position_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], CyberSecurityRiskManagementRequest.prototype, "service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], CyberSecurityRiskManagementRequest.prototype, "sub_service_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], CyberSecurityRiskManagementRequest.prototype, "user_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], CyberSecurityRiskManagementRequest.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
type: "enum",
|
|
58
|
+
enum: CyberSecurityRiskManagementRequestStatus,
|
|
59
|
+
default: CyberSecurityRiskManagementRequestStatus.PENDING,
|
|
60
|
+
nullable: false
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CyberSecurityRiskManagementRequest.prototype, "status", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], CyberSecurityRiskManagementRequest.prototype, "reviewer_user_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], CyberSecurityRiskManagementRequest.prototype, "assigned_to_user_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], CyberSecurityRiskManagementRequest.prototype, "assigned_at", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], CyberSecurityRiskManagementRequest.prototype, "workflow_execution_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], CyberSecurityRiskManagementRequest.prototype, "request_id", void 0);
|
|
84
|
+
exports.CyberSecurityRiskManagementRequest = CyberSecurityRiskManagementRequest = __decorate([
|
|
85
|
+
(0, typeorm_1.Entity)({ name: "cyber_security_risk_management_requests" })
|
|
86
|
+
], CyberSecurityRiskManagementRequest);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum CyberSecurityRiskImpactedCategory {
|
|
3
|
+
PEOPLE = "People",
|
|
4
|
+
TECHNOLOGY = "Technology",
|
|
5
|
+
PROCESS = "Process",
|
|
6
|
+
PLACE = "Place"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Child rows for a Cyber Security Risk Management request.
|
|
10
|
+
* Risk value is stored after applying the CAA composite formula (see computeCaaCyberRiskValue in IT service).
|
|
11
|
+
*/
|
|
12
|
+
export declare class CyberSecurityRiskManagementRisk extends BaseModel {
|
|
13
|
+
request_id: number;
|
|
14
|
+
risk_no: string;
|
|
15
|
+
impacted_category: CyberSecurityRiskImpactedCategory;
|
|
16
|
+
impact_area: string;
|
|
17
|
+
threat: string;
|
|
18
|
+
vulnerability: string;
|
|
19
|
+
risk_description: string;
|
|
20
|
+
risk_owner: string;
|
|
21
|
+
asset_cia_impact: number;
|
|
22
|
+
asset_value: number | null;
|
|
23
|
+
likelihood: number;
|
|
24
|
+
business_impact: number;
|
|
25
|
+
risk_value: number;
|
|
26
|
+
existing_controls: string;
|
|
27
|
+
start_date: Date;
|
|
28
|
+
end_date: Date;
|
|
29
|
+
iso_control_reference: string | null;
|
|
30
|
+
risk_treatment_plan: string;
|
|
31
|
+
confidentiality: number | null;
|
|
32
|
+
integrity: number | null;
|
|
33
|
+
availability: number | null;
|
|
34
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.CyberSecurityRiskManagementRisk = exports.CyberSecurityRiskImpactedCategory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var CyberSecurityRiskImpactedCategory;
|
|
16
|
+
(function (CyberSecurityRiskImpactedCategory) {
|
|
17
|
+
CyberSecurityRiskImpactedCategory["PEOPLE"] = "People";
|
|
18
|
+
CyberSecurityRiskImpactedCategory["TECHNOLOGY"] = "Technology";
|
|
19
|
+
CyberSecurityRiskImpactedCategory["PROCESS"] = "Process";
|
|
20
|
+
CyberSecurityRiskImpactedCategory["PLACE"] = "Place";
|
|
21
|
+
})(CyberSecurityRiskImpactedCategory || (exports.CyberSecurityRiskImpactedCategory = CyberSecurityRiskImpactedCategory = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Child rows for a Cyber Security Risk Management request.
|
|
24
|
+
* Risk value is stored after applying the CAA composite formula (see computeCaaCyberRiskValue in IT service).
|
|
25
|
+
*/
|
|
26
|
+
let CyberSecurityRiskManagementRisk = class CyberSecurityRiskManagementRisk extends BaseModel_1.BaseModel {
|
|
27
|
+
};
|
|
28
|
+
exports.CyberSecurityRiskManagementRisk = CyberSecurityRiskManagementRisk;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CyberSecurityRiskManagementRisk.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CyberSecurityRiskManagementRisk.prototype, "risk_no", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityRiskImpactedCategory, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CyberSecurityRiskManagementRisk.prototype, "impacted_category", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CyberSecurityRiskManagementRisk.prototype, "impact_area", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CyberSecurityRiskManagementRisk.prototype, "threat", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CyberSecurityRiskManagementRisk.prototype, "vulnerability", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CyberSecurityRiskManagementRisk.prototype, "risk_description", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CyberSecurityRiskManagementRisk.prototype, "risk_owner", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], CyberSecurityRiskManagementRisk.prototype, "asset_cia_impact", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], CyberSecurityRiskManagementRisk.prototype, "asset_value", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], CyberSecurityRiskManagementRisk.prototype, "likelihood", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], CyberSecurityRiskManagementRisk.prototype, "business_impact", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], CyberSecurityRiskManagementRisk.prototype, "risk_value", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CyberSecurityRiskManagementRisk.prototype, "existing_controls", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], CyberSecurityRiskManagementRisk.prototype, "start_date", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
91
|
+
__metadata("design:type", Date)
|
|
92
|
+
], CyberSecurityRiskManagementRisk.prototype, "end_date", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], CyberSecurityRiskManagementRisk.prototype, "iso_control_reference", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CyberSecurityRiskManagementRisk.prototype, "risk_treatment_plan", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], CyberSecurityRiskManagementRisk.prototype, "confidentiality", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], CyberSecurityRiskManagementRisk.prototype, "integrity", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], CyberSecurityRiskManagementRisk.prototype, "availability", void 0);
|
|
113
|
+
exports.CyberSecurityRiskManagementRisk = CyberSecurityRiskManagementRisk = __decorate([
|
|
114
|
+
(0, typeorm_1.Entity)({ name: "cyber_security_risk_management_risks" })
|
|
115
|
+
], CyberSecurityRiskManagementRisk);
|
|
@@ -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);
|