@platform-modules/civil-aviation-authority 2.3.127 → 2.3.129
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 +4 -0
- package/dist/index.js +15 -1
- package/dist/models/CyberSecurityAuditRequestModel.d.ts +39 -0
- package/dist/models/CyberSecurityAuditRequestModel.js +130 -0
- package/dist/models/HousingContractCancelChatModel.d.ts +10 -0
- package/dist/models/HousingContractCancelChatModel.js +21 -1
- package/dist/models/HousingContractRenewalChatModel.d.ts +13 -0
- package/dist/models/HousingContractRenewalChatModel.js +22 -1
- package/dist/models/RequestForVaptRequestModel.d.ts +40 -0
- package/dist/models/RequestForVaptRequestModel.js +143 -0
- package/dist/models/ResidentialUnitRentalChatModel.d.ts +10 -0
- package/dist/models/ResidentialUnitRentalChatModel.js +29 -9
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/models/CyberSecurityAuditRequestModel.ts +116 -0
- package/src/models/HousingContractCancelChatModel.ts +17 -0
- package/src/models/HousingContractRenewalChatModel.ts +20 -0
- package/src/models/RequestForVaptRequestModel.ts +132 -0
- package/src/models/ResidentialUnitRentalChatModel.ts +42 -75
package/dist/index.d.ts
CHANGED
|
@@ -193,6 +193,10 @@ export * from './models/InformationSecurityWorkflowModel';
|
|
|
193
193
|
export { InformationSecurityWorkFlowStatus, InformationSecurityWorkFlow } from './models/InformationSecurityWorkflowModel';
|
|
194
194
|
export * from './models/InformationSecurityAttachmentModel';
|
|
195
195
|
export { InformationSecurityRequestAttachment } from './models/InformationSecurityAttachmentModel';
|
|
196
|
+
export * from './models/RequestForVaptRequestModel';
|
|
197
|
+
export { RequestForVaptRequest, RequestForVaptStatus, RequestForVaptType, RequestForVaptClassification } from './models/RequestForVaptRequestModel';
|
|
198
|
+
export * from './models/CyberSecurityAuditRequestModel';
|
|
199
|
+
export { CyberSecurityAuditRequest, CyberSecurityAuditRequestStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplicationType } from './models/CyberSecurityAuditRequestModel';
|
|
196
200
|
export * from './models/JobTransferRequestModel';
|
|
197
201
|
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
198
202
|
export * from './models/NewResourceRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ 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.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = 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;
|
|
18
|
+
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = 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
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -290,6 +290,20 @@ Object.defineProperty(exports, "InformationSecurityWorkFlow", { enumerable: true
|
|
|
290
290
|
__exportStar(require("./models/InformationSecurityAttachmentModel"), exports);
|
|
291
291
|
var InformationSecurityAttachmentModel_1 = require("./models/InformationSecurityAttachmentModel");
|
|
292
292
|
Object.defineProperty(exports, "InformationSecurityRequestAttachment", { enumerable: true, get: function () { return InformationSecurityAttachmentModel_1.InformationSecurityRequestAttachment; } });
|
|
293
|
+
__exportStar(require("./models/RequestForVaptRequestModel"), exports);
|
|
294
|
+
var RequestForVaptRequestModel_1 = require("./models/RequestForVaptRequestModel");
|
|
295
|
+
Object.defineProperty(exports, "RequestForVaptRequest", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptRequest; } });
|
|
296
|
+
Object.defineProperty(exports, "RequestForVaptStatus", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptStatus; } });
|
|
297
|
+
Object.defineProperty(exports, "RequestForVaptType", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptType; } });
|
|
298
|
+
Object.defineProperty(exports, "RequestForVaptClassification", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptClassification; } });
|
|
299
|
+
__exportStar(require("./models/CyberSecurityAuditRequestModel"), exports);
|
|
300
|
+
var CyberSecurityAuditRequestModel_1 = require("./models/CyberSecurityAuditRequestModel");
|
|
301
|
+
Object.defineProperty(exports, "CyberSecurityAuditRequest", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditRequest; } });
|
|
302
|
+
Object.defineProperty(exports, "CyberSecurityAuditRequestStatus", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditRequestStatus; } });
|
|
303
|
+
Object.defineProperty(exports, "CyberSecurityAuditClassification", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditClassification; } });
|
|
304
|
+
Object.defineProperty(exports, "CyberSecurityAuditApplicationType", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditApplicationType; } });
|
|
305
|
+
// export * from './models/CyberSecurityAuditRequestModel';
|
|
306
|
+
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
293
307
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
294
308
|
__exportStar(require("./models/JobTransferRequestModel"), exports);
|
|
295
309
|
var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum CyberSecurityAuditRequestStatus {
|
|
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 CyberSecurityAuditClassification {
|
|
11
|
+
NEW = "New",
|
|
12
|
+
REVIEW = "Review"
|
|
13
|
+
}
|
|
14
|
+
export declare enum CyberSecurityAuditApplicationType {
|
|
15
|
+
ISO27001 = "ISO27001",
|
|
16
|
+
ICOA_REGULATION = "ICOA Regulation",
|
|
17
|
+
NATIONAL_REGULATION_AND_CIRCULATION = "National Regulation and Circulation",
|
|
18
|
+
OTHERS = "Others"
|
|
19
|
+
}
|
|
20
|
+
export declare class CyberSecurityAuditRequest extends BaseModel {
|
|
21
|
+
req_user_department_id: number | null;
|
|
22
|
+
req_user_section_id: number | null;
|
|
23
|
+
req_user_position_id: number | null;
|
|
24
|
+
service_id: number | null;
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
user_id: number;
|
|
27
|
+
description: string | null;
|
|
28
|
+
status: CyberSecurityAuditRequestStatus;
|
|
29
|
+
reviewer_user_id: number | null;
|
|
30
|
+
assigned_to_user_id: number | null;
|
|
31
|
+
assigned_at: Date | null;
|
|
32
|
+
workflow_execution_id: string | null;
|
|
33
|
+
request_id: string | null;
|
|
34
|
+
request_classification: CyberSecurityAuditClassification;
|
|
35
|
+
application_to_be_audited: CyberSecurityAuditApplicationType;
|
|
36
|
+
application_to_be_audited_other: string | null;
|
|
37
|
+
submission_date: Date;
|
|
38
|
+
constructor(user_id: number, request_classification: CyberSecurityAuditClassification, application_to_be_audited: CyberSecurityAuditApplicationType, submission_date: Date, status?: CyberSecurityAuditRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, application_to_be_audited_other?: string | null);
|
|
39
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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.CyberSecurityAuditRequest = exports.CyberSecurityAuditApplicationType = exports.CyberSecurityAuditClassification = exports.CyberSecurityAuditRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var CyberSecurityAuditRequestStatus;
|
|
16
|
+
(function (CyberSecurityAuditRequestStatus) {
|
|
17
|
+
CyberSecurityAuditRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
CyberSecurityAuditRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
CyberSecurityAuditRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
CyberSecurityAuditRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
CyberSecurityAuditRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
CyberSecurityAuditRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(CyberSecurityAuditRequestStatus || (exports.CyberSecurityAuditRequestStatus = CyberSecurityAuditRequestStatus = {}));
|
|
24
|
+
var CyberSecurityAuditClassification;
|
|
25
|
+
(function (CyberSecurityAuditClassification) {
|
|
26
|
+
CyberSecurityAuditClassification["NEW"] = "New";
|
|
27
|
+
CyberSecurityAuditClassification["REVIEW"] = "Review";
|
|
28
|
+
})(CyberSecurityAuditClassification || (exports.CyberSecurityAuditClassification = CyberSecurityAuditClassification = {}));
|
|
29
|
+
var CyberSecurityAuditApplicationType;
|
|
30
|
+
(function (CyberSecurityAuditApplicationType) {
|
|
31
|
+
CyberSecurityAuditApplicationType["ISO27001"] = "ISO27001";
|
|
32
|
+
CyberSecurityAuditApplicationType["ICOA_REGULATION"] = "ICOA Regulation";
|
|
33
|
+
CyberSecurityAuditApplicationType["NATIONAL_REGULATION_AND_CIRCULATION"] = "National Regulation and Circulation";
|
|
34
|
+
CyberSecurityAuditApplicationType["OTHERS"] = "Others";
|
|
35
|
+
})(CyberSecurityAuditApplicationType || (exports.CyberSecurityAuditApplicationType = CyberSecurityAuditApplicationType = {}));
|
|
36
|
+
let CyberSecurityAuditRequest = class CyberSecurityAuditRequest extends BaseModel_1.BaseModel {
|
|
37
|
+
constructor(user_id, request_classification, application_to_be_audited, submission_date, status = CyberSecurityAuditRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, application_to_be_audited_other) {
|
|
38
|
+
super();
|
|
39
|
+
this.user_id = user_id;
|
|
40
|
+
this.request_classification = request_classification;
|
|
41
|
+
this.application_to_be_audited = application_to_be_audited;
|
|
42
|
+
this.submission_date = submission_date;
|
|
43
|
+
this.status = status;
|
|
44
|
+
this.service_id = service_id || null;
|
|
45
|
+
this.sub_service_id = sub_service_id || null;
|
|
46
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
47
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
48
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
49
|
+
this.description = description || null;
|
|
50
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
51
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
52
|
+
this.assigned_at = assigned_at || null;
|
|
53
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
54
|
+
this.request_id = request_id || null;
|
|
55
|
+
this.application_to_be_audited_other = application_to_be_audited_other || null;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], CyberSecurityAuditRequest.prototype, "req_user_department_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], CyberSecurityAuditRequest.prototype, "req_user_section_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], CyberSecurityAuditRequest.prototype, "req_user_position_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], CyberSecurityAuditRequest.prototype, "service_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], CyberSecurityAuditRequest.prototype, "sub_service_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], CyberSecurityAuditRequest.prototype, "user_id", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CyberSecurityAuditRequest.prototype, "description", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditRequestStatus, default: CyberSecurityAuditRequestStatus.PENDING, nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CyberSecurityAuditRequest.prototype, "status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], CyberSecurityAuditRequest.prototype, "reviewer_user_id", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], CyberSecurityAuditRequest.prototype, "assigned_to_user_id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], CyberSecurityAuditRequest.prototype, "assigned_at", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], CyberSecurityAuditRequest.prototype, "workflow_execution_id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], CyberSecurityAuditRequest.prototype, "request_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditClassification, nullable: false }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], CyberSecurityAuditRequest.prototype, "request_classification", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditApplicationType, nullable: false }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], CyberSecurityAuditRequest.prototype, "application_to_be_audited", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], CyberSecurityAuditRequest.prototype, "application_to_be_audited_other", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
125
|
+
__metadata("design:type", Date)
|
|
126
|
+
], CyberSecurityAuditRequest.prototype, "submission_date", void 0);
|
|
127
|
+
exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest = __decorate([
|
|
128
|
+
(0, typeorm_1.Entity)({ name: "cyber_security_audit_requests" }),
|
|
129
|
+
__metadata("design:paramtypes", [Number, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
130
|
+
], CyberSecurityAuditRequest);
|
|
@@ -6,11 +6,21 @@ export declare enum HousingContractCancelMessageType {
|
|
|
6
6
|
file = "file",
|
|
7
7
|
link = "link"
|
|
8
8
|
}
|
|
9
|
+
export declare enum HousingContractCancelChatStatus {
|
|
10
|
+
Pending = "Pending",
|
|
11
|
+
Received = "Received",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected",
|
|
14
|
+
InProgress = "In Progress"
|
|
15
|
+
}
|
|
9
16
|
export declare class HousingContractCancelChat extends BaseModel {
|
|
10
17
|
request_id: number;
|
|
11
18
|
service_id: number;
|
|
12
19
|
sub_service_id: number;
|
|
20
|
+
user_id: number;
|
|
13
21
|
message: string;
|
|
22
|
+
approver_role_id: number | null;
|
|
23
|
+
status: string;
|
|
14
24
|
message_type: string;
|
|
15
25
|
is_internal: boolean;
|
|
16
26
|
created_by: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HousingContractCancelChat = exports.HousingContractCancelMessageType = void 0;
|
|
12
|
+
exports.HousingContractCancelChat = exports.HousingContractCancelChatStatus = exports.HousingContractCancelMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var HousingContractCancelMessageType;
|
|
@@ -20,6 +20,14 @@ var HousingContractCancelMessageType;
|
|
|
20
20
|
HousingContractCancelMessageType["file"] = "file";
|
|
21
21
|
HousingContractCancelMessageType["link"] = "link";
|
|
22
22
|
})(HousingContractCancelMessageType || (exports.HousingContractCancelMessageType = HousingContractCancelMessageType = {}));
|
|
23
|
+
var HousingContractCancelChatStatus;
|
|
24
|
+
(function (HousingContractCancelChatStatus) {
|
|
25
|
+
HousingContractCancelChatStatus["Pending"] = "Pending";
|
|
26
|
+
HousingContractCancelChatStatus["Received"] = "Received";
|
|
27
|
+
HousingContractCancelChatStatus["Approved"] = "Approved";
|
|
28
|
+
HousingContractCancelChatStatus["Rejected"] = "Rejected";
|
|
29
|
+
HousingContractCancelChatStatus["InProgress"] = "In Progress";
|
|
30
|
+
})(HousingContractCancelChatStatus || (exports.HousingContractCancelChatStatus = HousingContractCancelChatStatus = {}));
|
|
23
31
|
let HousingContractCancelChat = class HousingContractCancelChat extends BaseModel_1.BaseModel {
|
|
24
32
|
constructor() {
|
|
25
33
|
super();
|
|
@@ -38,10 +46,22 @@ __decorate([
|
|
|
38
46
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
47
|
__metadata("design:type", Number)
|
|
40
48
|
], HousingContractCancelChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], HousingContractCancelChat.prototype, "user_id", void 0);
|
|
41
53
|
__decorate([
|
|
42
54
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
43
55
|
__metadata("design:type", String)
|
|
44
56
|
], HousingContractCancelChat.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], HousingContractCancelChat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false, default: 'Pending' }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], HousingContractCancelChat.prototype, "status", void 0);
|
|
45
65
|
__decorate([
|
|
46
66
|
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
47
67
|
__metadata("design:type", String)
|
|
@@ -6,11 +6,24 @@ export declare enum HousingContractRenewalMessageType {
|
|
|
6
6
|
file = "file",
|
|
7
7
|
link = "link"
|
|
8
8
|
}
|
|
9
|
+
/** Aligns with request-for-coverage / accommodation chat `status` usage */
|
|
10
|
+
export declare enum HousingContractRenewalChatStatus {
|
|
11
|
+
Pending = "Pending",
|
|
12
|
+
Received = "Received",
|
|
13
|
+
Approved = "Approved",
|
|
14
|
+
Rejected = "Rejected",
|
|
15
|
+
InProgress = "In Progress"
|
|
16
|
+
}
|
|
9
17
|
export declare class HousingContractRenewalChat extends BaseModel {
|
|
10
18
|
request_id: number;
|
|
11
19
|
service_id: number;
|
|
12
20
|
sub_service_id: number;
|
|
21
|
+
/** Message author (same pattern as request_for_coverage_request_chat.user_id) */
|
|
22
|
+
user_id: number;
|
|
13
23
|
message: string;
|
|
24
|
+
/** Role context for the chat line (e.g. active role when message was posted) */
|
|
25
|
+
approver_role_id: number | null;
|
|
26
|
+
status: string;
|
|
14
27
|
message_type: string;
|
|
15
28
|
is_internal: boolean;
|
|
16
29
|
created_by: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HousingContractRenewalChat = exports.HousingContractRenewalMessageType = void 0;
|
|
12
|
+
exports.HousingContractRenewalChat = exports.HousingContractRenewalChatStatus = exports.HousingContractRenewalMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var HousingContractRenewalMessageType;
|
|
@@ -20,6 +20,15 @@ var HousingContractRenewalMessageType;
|
|
|
20
20
|
HousingContractRenewalMessageType["file"] = "file";
|
|
21
21
|
HousingContractRenewalMessageType["link"] = "link";
|
|
22
22
|
})(HousingContractRenewalMessageType || (exports.HousingContractRenewalMessageType = HousingContractRenewalMessageType = {}));
|
|
23
|
+
/** Aligns with request-for-coverage / accommodation chat `status` usage */
|
|
24
|
+
var HousingContractRenewalChatStatus;
|
|
25
|
+
(function (HousingContractRenewalChatStatus) {
|
|
26
|
+
HousingContractRenewalChatStatus["Pending"] = "Pending";
|
|
27
|
+
HousingContractRenewalChatStatus["Received"] = "Received";
|
|
28
|
+
HousingContractRenewalChatStatus["Approved"] = "Approved";
|
|
29
|
+
HousingContractRenewalChatStatus["Rejected"] = "Rejected";
|
|
30
|
+
HousingContractRenewalChatStatus["InProgress"] = "In Progress";
|
|
31
|
+
})(HousingContractRenewalChatStatus || (exports.HousingContractRenewalChatStatus = HousingContractRenewalChatStatus = {}));
|
|
23
32
|
let HousingContractRenewalChat = class HousingContractRenewalChat extends BaseModel_1.BaseModel {
|
|
24
33
|
constructor() {
|
|
25
34
|
super();
|
|
@@ -38,10 +47,22 @@ __decorate([
|
|
|
38
47
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
48
|
__metadata("design:type", Number)
|
|
40
49
|
], HousingContractRenewalChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], HousingContractRenewalChat.prototype, "user_id", void 0);
|
|
41
54
|
__decorate([
|
|
42
55
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
43
56
|
__metadata("design:type", String)
|
|
44
57
|
], HousingContractRenewalChat.prototype, "message", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], HousingContractRenewalChat.prototype, "approver_role_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false, default: 'Pending' }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], HousingContractRenewalChat.prototype, "status", void 0);
|
|
45
66
|
__decorate([
|
|
46
67
|
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
47
68
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum RequestForVaptStatus {
|
|
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 RequestForVaptType {
|
|
11
|
+
VAPT = "VAPT",
|
|
12
|
+
INFRASTRUCTURE_REVIEW = "Infrastructure Review"
|
|
13
|
+
}
|
|
14
|
+
export declare enum RequestForVaptClassification {
|
|
15
|
+
NEW = "New",
|
|
16
|
+
REVIEW = "Review"
|
|
17
|
+
}
|
|
18
|
+
export declare class RequestForVaptRequest extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
req_user_position_id: number | null;
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
user_id: number;
|
|
25
|
+
remarks: string | null;
|
|
26
|
+
status: RequestForVaptStatus;
|
|
27
|
+
reviewer_user_id: number | null;
|
|
28
|
+
assigned_to_user_id: number | null;
|
|
29
|
+
assigned_at: Date | null;
|
|
30
|
+
workflow_execution_id: string | null;
|
|
31
|
+
request_id: string | null;
|
|
32
|
+
type_of_request: RequestForVaptType;
|
|
33
|
+
request_classification: RequestForVaptClassification;
|
|
34
|
+
application_name: string;
|
|
35
|
+
link: string | null;
|
|
36
|
+
ip_address: string | null;
|
|
37
|
+
application_url: string | null;
|
|
38
|
+
submission_date: Date;
|
|
39
|
+
constructor(user_id: number, type_of_request: RequestForVaptType, request_classification: RequestForVaptClassification, application_name: string, submission_date: Date, status?: RequestForVaptStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, link?: string | null, ip_address?: string | null, application_url?: string | null);
|
|
40
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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.RequestForVaptRequest = exports.RequestForVaptClassification = exports.RequestForVaptType = exports.RequestForVaptStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RequestForVaptStatus;
|
|
16
|
+
(function (RequestForVaptStatus) {
|
|
17
|
+
RequestForVaptStatus["PENDING"] = "Pending";
|
|
18
|
+
RequestForVaptStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
RequestForVaptStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
RequestForVaptStatus["COMPLETED"] = "Completed";
|
|
21
|
+
RequestForVaptStatus["APPROVED"] = "Approved";
|
|
22
|
+
RequestForVaptStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(RequestForVaptStatus || (exports.RequestForVaptStatus = RequestForVaptStatus = {}));
|
|
24
|
+
var RequestForVaptType;
|
|
25
|
+
(function (RequestForVaptType) {
|
|
26
|
+
RequestForVaptType["VAPT"] = "VAPT";
|
|
27
|
+
RequestForVaptType["INFRASTRUCTURE_REVIEW"] = "Infrastructure Review";
|
|
28
|
+
})(RequestForVaptType || (exports.RequestForVaptType = RequestForVaptType = {}));
|
|
29
|
+
var RequestForVaptClassification;
|
|
30
|
+
(function (RequestForVaptClassification) {
|
|
31
|
+
RequestForVaptClassification["NEW"] = "New";
|
|
32
|
+
RequestForVaptClassification["REVIEW"] = "Review";
|
|
33
|
+
})(RequestForVaptClassification || (exports.RequestForVaptClassification = RequestForVaptClassification = {}));
|
|
34
|
+
let RequestForVaptRequest = class RequestForVaptRequest extends BaseModel_1.BaseModel {
|
|
35
|
+
constructor(user_id, type_of_request, request_classification, application_name, submission_date, status = RequestForVaptStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, link, ip_address, application_url) {
|
|
36
|
+
super();
|
|
37
|
+
this.user_id = user_id;
|
|
38
|
+
this.type_of_request = type_of_request;
|
|
39
|
+
this.request_classification = request_classification;
|
|
40
|
+
this.application_name = application_name;
|
|
41
|
+
this.submission_date = submission_date;
|
|
42
|
+
this.status = status;
|
|
43
|
+
this.service_id = service_id || null;
|
|
44
|
+
this.sub_service_id = sub_service_id || null;
|
|
45
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
46
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
47
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
48
|
+
this.remarks = remarks || null;
|
|
49
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
50
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
51
|
+
this.assigned_at = assigned_at || null;
|
|
52
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
53
|
+
this.request_id = request_id || null;
|
|
54
|
+
this.link = link || null;
|
|
55
|
+
this.ip_address = ip_address || null;
|
|
56
|
+
this.application_url = application_url || null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
exports.RequestForVaptRequest = RequestForVaptRequest;
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], RequestForVaptRequest.prototype, "req_user_department_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], RequestForVaptRequest.prototype, "req_user_section_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], RequestForVaptRequest.prototype, "req_user_position_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], RequestForVaptRequest.prototype, "service_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], RequestForVaptRequest.prototype, "sub_service_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], RequestForVaptRequest.prototype, "user_id", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], RequestForVaptRequest.prototype, "remarks", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptStatus, default: RequestForVaptStatus.PENDING, nullable: false }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], RequestForVaptRequest.prototype, "status", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], RequestForVaptRequest.prototype, "reviewer_user_id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], RequestForVaptRequest.prototype, "assigned_to_user_id", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], RequestForVaptRequest.prototype, "assigned_at", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], RequestForVaptRequest.prototype, "workflow_execution_id", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], RequestForVaptRequest.prototype, "request_id", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptType, nullable: false }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], RequestForVaptRequest.prototype, "type_of_request", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptClassification, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], RequestForVaptRequest.prototype, "request_classification", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], RequestForVaptRequest.prototype, "application_name", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], RequestForVaptRequest.prototype, "link", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], RequestForVaptRequest.prototype, "ip_address", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], RequestForVaptRequest.prototype, "application_url", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
138
|
+
__metadata("design:type", Date)
|
|
139
|
+
], RequestForVaptRequest.prototype, "submission_date", void 0);
|
|
140
|
+
exports.RequestForVaptRequest = RequestForVaptRequest = __decorate([
|
|
141
|
+
(0, typeorm_1.Entity)({ name: "request_for_vapt_requests" }),
|
|
142
|
+
__metadata("design:paramtypes", [Number, String, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
143
|
+
], RequestForVaptRequest);
|
|
@@ -6,11 +6,21 @@ export declare enum ResidentialUnitRentalMessageType {
|
|
|
6
6
|
file = "file",
|
|
7
7
|
link = "link"
|
|
8
8
|
}
|
|
9
|
+
export declare enum ResidentialUnitRentalChatStatus {
|
|
10
|
+
Pending = "Pending",
|
|
11
|
+
Received = "Received",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected",
|
|
14
|
+
InProgress = "In Progress"
|
|
15
|
+
}
|
|
9
16
|
export declare class ResidentialUnitRentalChat extends BaseModel {
|
|
10
17
|
request_id: number;
|
|
11
18
|
service_id: number;
|
|
12
19
|
sub_service_id: number;
|
|
20
|
+
user_id: number;
|
|
13
21
|
message: string;
|
|
22
|
+
approver_role_id: number | null;
|
|
23
|
+
status: string;
|
|
14
24
|
message_type: string;
|
|
15
25
|
is_internal: boolean;
|
|
16
26
|
created_by: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResidentialUnitRentalChat = exports.ResidentialUnitRentalMessageType = void 0;
|
|
12
|
+
exports.ResidentialUnitRentalChat = exports.ResidentialUnitRentalChatStatus = exports.ResidentialUnitRentalMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var ResidentialUnitRentalMessageType;
|
|
@@ -20,6 +20,14 @@ var ResidentialUnitRentalMessageType;
|
|
|
20
20
|
ResidentialUnitRentalMessageType["file"] = "file";
|
|
21
21
|
ResidentialUnitRentalMessageType["link"] = "link";
|
|
22
22
|
})(ResidentialUnitRentalMessageType || (exports.ResidentialUnitRentalMessageType = ResidentialUnitRentalMessageType = {}));
|
|
23
|
+
var ResidentialUnitRentalChatStatus;
|
|
24
|
+
(function (ResidentialUnitRentalChatStatus) {
|
|
25
|
+
ResidentialUnitRentalChatStatus["Pending"] = "Pending";
|
|
26
|
+
ResidentialUnitRentalChatStatus["Received"] = "Received";
|
|
27
|
+
ResidentialUnitRentalChatStatus["Approved"] = "Approved";
|
|
28
|
+
ResidentialUnitRentalChatStatus["Rejected"] = "Rejected";
|
|
29
|
+
ResidentialUnitRentalChatStatus["InProgress"] = "In Progress";
|
|
30
|
+
})(ResidentialUnitRentalChatStatus || (exports.ResidentialUnitRentalChatStatus = ResidentialUnitRentalChatStatus = {}));
|
|
23
31
|
let ResidentialUnitRentalChat = class ResidentialUnitRentalChat extends BaseModel_1.BaseModel {
|
|
24
32
|
constructor() {
|
|
25
33
|
super();
|
|
@@ -27,34 +35,46 @@ let ResidentialUnitRentalChat = class ResidentialUnitRentalChat extends BaseMode
|
|
|
27
35
|
};
|
|
28
36
|
exports.ResidentialUnitRentalChat = ResidentialUnitRentalChat;
|
|
29
37
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type:
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
31
39
|
__metadata("design:type", Number)
|
|
32
40
|
], ResidentialUnitRentalChat.prototype, "request_id", void 0);
|
|
33
41
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type:
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
35
43
|
__metadata("design:type", Number)
|
|
36
44
|
], ResidentialUnitRentalChat.prototype, "service_id", void 0);
|
|
37
45
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type:
|
|
46
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
47
|
__metadata("design:type", Number)
|
|
40
48
|
], ResidentialUnitRentalChat.prototype, "sub_service_id", void 0);
|
|
41
49
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type:
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ResidentialUnitRentalChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
43
55
|
__metadata("design:type", String)
|
|
44
56
|
], ResidentialUnitRentalChat.prototype, "message", void 0);
|
|
45
57
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type:
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ResidentialUnitRentalChat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false, default: "Pending" }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ResidentialUnitRentalChat.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
47
67
|
__metadata("design:type", String)
|
|
48
68
|
], ResidentialUnitRentalChat.prototype, "message_type", void 0);
|
|
49
69
|
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type:
|
|
70
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
51
71
|
__metadata("design:type", Boolean)
|
|
52
72
|
], ResidentialUnitRentalChat.prototype, "is_internal", void 0);
|
|
53
73
|
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type:
|
|
74
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
55
75
|
__metadata("design:type", Number)
|
|
56
76
|
], ResidentialUnitRentalChat.prototype, "created_by", void 0);
|
|
57
77
|
exports.ResidentialUnitRentalChat = ResidentialUnitRentalChat = __decorate([
|
|
58
|
-
(0, typeorm_1.Entity)({ name:
|
|
78
|
+
(0, typeorm_1.Entity)({ name: "residential_unit_rental_chat" }),
|
|
59
79
|
__metadata("design:paramtypes", [])
|
|
60
80
|
], ResidentialUnitRentalChat);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -202,6 +202,12 @@ export * from './models/InformationSecurityWorkflowModel';
|
|
|
202
202
|
export {InformationSecurityWorkFlowStatus, InformationSecurityWorkFlow} from './models/InformationSecurityWorkflowModel';
|
|
203
203
|
export * from './models/InformationSecurityAttachmentModel';
|
|
204
204
|
export {InformationSecurityRequestAttachment} from './models/InformationSecurityAttachmentModel';
|
|
205
|
+
export * from './models/RequestForVaptRequestModel';
|
|
206
|
+
export {RequestForVaptRequest, RequestForVaptStatus, RequestForVaptType, RequestForVaptClassification} from './models/RequestForVaptRequestModel';
|
|
207
|
+
export * from './models/CyberSecurityAuditRequestModel';
|
|
208
|
+
export {CyberSecurityAuditRequest, CyberSecurityAuditRequestStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplicationType} from './models/CyberSecurityAuditRequestModel';
|
|
209
|
+
// export * from './models/CyberSecurityAuditRequestModel';
|
|
210
|
+
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
205
211
|
|
|
206
212
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
207
213
|
export * from './models/JobTransferRequestModel';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum CyberSecurityAuditRequestStatus {
|
|
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 CyberSecurityAuditClassification {
|
|
14
|
+
NEW = "New",
|
|
15
|
+
REVIEW = "Review"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum CyberSecurityAuditApplicationType {
|
|
19
|
+
ISO27001 = "ISO27001",
|
|
20
|
+
ICOA_REGULATION = "ICOA Regulation",
|
|
21
|
+
NATIONAL_REGULATION_AND_CIRCULATION = "National Regulation and Circulation",
|
|
22
|
+
OTHERS = "Others"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@Entity({ name: "cyber_security_audit_requests" })
|
|
26
|
+
export class CyberSecurityAuditRequest extends BaseModel {
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
req_user_department_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
req_user_section_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: true })
|
|
34
|
+
req_user_position_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
service_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
sub_service_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "integer", nullable: false })
|
|
43
|
+
user_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "text", nullable: true })
|
|
46
|
+
description: string | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "enum", enum: CyberSecurityAuditRequestStatus, default: CyberSecurityAuditRequestStatus.PENDING, nullable: false })
|
|
49
|
+
status: CyberSecurityAuditRequestStatus;
|
|
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: "enum", enum: CyberSecurityAuditClassification, nullable: false })
|
|
67
|
+
request_classification: CyberSecurityAuditClassification;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "enum", enum: CyberSecurityAuditApplicationType, nullable: false })
|
|
70
|
+
application_to_be_audited: CyberSecurityAuditApplicationType;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
73
|
+
application_to_be_audited_other: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: "date", nullable: false })
|
|
76
|
+
submission_date: Date;
|
|
77
|
+
|
|
78
|
+
constructor(
|
|
79
|
+
user_id: number,
|
|
80
|
+
request_classification: CyberSecurityAuditClassification,
|
|
81
|
+
application_to_be_audited: CyberSecurityAuditApplicationType,
|
|
82
|
+
submission_date: Date,
|
|
83
|
+
status: CyberSecurityAuditRequestStatus = CyberSecurityAuditRequestStatus.PENDING,
|
|
84
|
+
service_id?: number | null,
|
|
85
|
+
sub_service_id?: number | null,
|
|
86
|
+
req_user_department_id?: number | null,
|
|
87
|
+
req_user_section_id?: number | null,
|
|
88
|
+
req_user_position_id?: number | null,
|
|
89
|
+
description?: string | null,
|
|
90
|
+
reviewer_user_id?: number | null,
|
|
91
|
+
assigned_to_user_id?: number | null,
|
|
92
|
+
assigned_at?: Date | null,
|
|
93
|
+
workflow_execution_id?: string | null,
|
|
94
|
+
request_id?: string | null,
|
|
95
|
+
application_to_be_audited_other?: string | null
|
|
96
|
+
) {
|
|
97
|
+
super();
|
|
98
|
+
this.user_id = user_id;
|
|
99
|
+
this.request_classification = request_classification;
|
|
100
|
+
this.application_to_be_audited = application_to_be_audited;
|
|
101
|
+
this.submission_date = submission_date;
|
|
102
|
+
this.status = status;
|
|
103
|
+
this.service_id = service_id || null;
|
|
104
|
+
this.sub_service_id = sub_service_id || null;
|
|
105
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
106
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
107
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
108
|
+
this.description = description || null;
|
|
109
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
110
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
111
|
+
this.assigned_at = assigned_at || null;
|
|
112
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
113
|
+
this.request_id = request_id || null;
|
|
114
|
+
this.application_to_be_audited_other = application_to_be_audited_other || null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -9,6 +9,14 @@ export enum HousingContractCancelMessageType {
|
|
|
9
9
|
link = 'link'
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export enum HousingContractCancelChatStatus {
|
|
13
|
+
Pending = 'Pending',
|
|
14
|
+
Received = 'Received',
|
|
15
|
+
Approved = 'Approved',
|
|
16
|
+
Rejected = 'Rejected',
|
|
17
|
+
InProgress = 'In Progress',
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
@Entity({ name: 'housing_contract_cancel_chat' })
|
|
13
21
|
export class HousingContractCancelChat extends BaseModel {
|
|
14
22
|
|
|
@@ -21,9 +29,18 @@ export class HousingContractCancelChat extends BaseModel {
|
|
|
21
29
|
@Column({ type: 'int', nullable: false })
|
|
22
30
|
sub_service_id: number;
|
|
23
31
|
|
|
32
|
+
@Column({ type: 'int', nullable: false })
|
|
33
|
+
user_id: number;
|
|
34
|
+
|
|
24
35
|
@Column({ type: 'text', nullable: false })
|
|
25
36
|
message: string;
|
|
26
37
|
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
approver_role_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 255, nullable: false, default: 'Pending' })
|
|
42
|
+
status: string;
|
|
43
|
+
|
|
27
44
|
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
28
45
|
message_type: string;
|
|
29
46
|
|
|
@@ -9,6 +9,15 @@ export enum HousingContractRenewalMessageType {
|
|
|
9
9
|
link = 'link'
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/** Aligns with request-for-coverage / accommodation chat `status` usage */
|
|
13
|
+
export enum HousingContractRenewalChatStatus {
|
|
14
|
+
Pending = 'Pending',
|
|
15
|
+
Received = 'Received',
|
|
16
|
+
Approved = 'Approved',
|
|
17
|
+
Rejected = 'Rejected',
|
|
18
|
+
InProgress = 'In Progress',
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
@Entity({ name: 'housing_contract_renewal_chat' })
|
|
13
22
|
export class HousingContractRenewalChat extends BaseModel {
|
|
14
23
|
|
|
@@ -21,9 +30,20 @@ export class HousingContractRenewalChat extends BaseModel {
|
|
|
21
30
|
@Column({ type: 'int', nullable: false })
|
|
22
31
|
sub_service_id: number;
|
|
23
32
|
|
|
33
|
+
/** Message author (same pattern as request_for_coverage_request_chat.user_id) */
|
|
34
|
+
@Column({ type: 'int', nullable: false })
|
|
35
|
+
user_id: number;
|
|
36
|
+
|
|
24
37
|
@Column({ type: 'text', nullable: false })
|
|
25
38
|
message: string;
|
|
26
39
|
|
|
40
|
+
/** Role context for the chat line (e.g. active role when message was posted) */
|
|
41
|
+
@Column({ type: 'int', nullable: true })
|
|
42
|
+
approver_role_id: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 255, nullable: false, default: 'Pending' })
|
|
45
|
+
status: string;
|
|
46
|
+
|
|
27
47
|
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
28
48
|
message_type: string;
|
|
29
49
|
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum RequestForVaptStatus {
|
|
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 RequestForVaptType {
|
|
14
|
+
VAPT = "VAPT",
|
|
15
|
+
INFRASTRUCTURE_REVIEW = "Infrastructure Review"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum RequestForVaptClassification {
|
|
19
|
+
NEW = "New",
|
|
20
|
+
REVIEW = "Review"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Entity({ name: "request_for_vapt_requests" })
|
|
24
|
+
export class RequestForVaptRequest extends BaseModel {
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
req_user_department_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
req_user_section_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
req_user_position_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
service_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
sub_service_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: false })
|
|
41
|
+
user_id: number;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "text", nullable: true })
|
|
44
|
+
remarks: string | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: "enum", enum: RequestForVaptStatus, default: RequestForVaptStatus.PENDING, nullable: false })
|
|
47
|
+
status: RequestForVaptStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: "integer", nullable: true })
|
|
50
|
+
reviewer_user_id: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "integer", nullable: true })
|
|
53
|
+
assigned_to_user_id: number | null;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "timestamp", nullable: true })
|
|
56
|
+
assigned_at: Date | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
59
|
+
workflow_execution_id: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
62
|
+
request_id: string | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "enum", enum: RequestForVaptType, nullable: false })
|
|
65
|
+
type_of_request: RequestForVaptType;
|
|
66
|
+
|
|
67
|
+
@Column({ type: "enum", enum: RequestForVaptClassification, nullable: false })
|
|
68
|
+
request_classification: RequestForVaptClassification;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
71
|
+
application_name: string;
|
|
72
|
+
|
|
73
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
74
|
+
link: string | null;
|
|
75
|
+
|
|
76
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
77
|
+
ip_address: string | null;
|
|
78
|
+
|
|
79
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
80
|
+
application_url: string | null;
|
|
81
|
+
|
|
82
|
+
// Business rule: must be created at least two weeks before the planned/submission date
|
|
83
|
+
// We will enforce submission_date >= now + 14 days in service.
|
|
84
|
+
@Column({ type: "date", nullable: false })
|
|
85
|
+
submission_date: Date;
|
|
86
|
+
|
|
87
|
+
constructor(
|
|
88
|
+
user_id: number,
|
|
89
|
+
type_of_request: RequestForVaptType,
|
|
90
|
+
request_classification: RequestForVaptClassification,
|
|
91
|
+
application_name: string,
|
|
92
|
+
submission_date: Date,
|
|
93
|
+
status: RequestForVaptStatus = RequestForVaptStatus.PENDING,
|
|
94
|
+
service_id?: number | null,
|
|
95
|
+
sub_service_id?: number | null,
|
|
96
|
+
req_user_department_id?: number | null,
|
|
97
|
+
req_user_section_id?: number | null,
|
|
98
|
+
req_user_position_id?: number | null,
|
|
99
|
+
remarks?: string | null,
|
|
100
|
+
reviewer_user_id?: number | null,
|
|
101
|
+
assigned_to_user_id?: number | null,
|
|
102
|
+
assigned_at?: Date | null,
|
|
103
|
+
workflow_execution_id?: string | null,
|
|
104
|
+
request_id?: string | null,
|
|
105
|
+
link?: string | null,
|
|
106
|
+
ip_address?: string | null,
|
|
107
|
+
application_url?: string | null
|
|
108
|
+
) {
|
|
109
|
+
super();
|
|
110
|
+
this.user_id = user_id;
|
|
111
|
+
this.type_of_request = type_of_request;
|
|
112
|
+
this.request_classification = request_classification;
|
|
113
|
+
this.application_name = application_name;
|
|
114
|
+
this.submission_date = submission_date;
|
|
115
|
+
this.status = status;
|
|
116
|
+
this.service_id = service_id || null;
|
|
117
|
+
this.sub_service_id = sub_service_id || null;
|
|
118
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
119
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
120
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
121
|
+
this.remarks = remarks || null;
|
|
122
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
123
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
124
|
+
this.assigned_at = assigned_at || null;
|
|
125
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
126
|
+
this.request_id = request_id || null;
|
|
127
|
+
this.link = link || null;
|
|
128
|
+
this.ip_address = ip_address || null;
|
|
129
|
+
this.application_url = application_url || null;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -1,89 +1,56 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
2
|
|
|
3
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { BaseModel } from "./BaseModel";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export enum ResidentialUnitRentalMessageType {
|
|
6
|
+
text = "text",
|
|
7
|
+
image = "image",
|
|
8
|
+
video = "video",
|
|
9
|
+
file = "file",
|
|
10
|
+
link = "link",
|
|
11
|
+
}
|
|
7
12
|
|
|
8
|
-
export enum
|
|
13
|
+
export enum ResidentialUnitRentalChatStatus {
|
|
14
|
+
Pending = "Pending",
|
|
15
|
+
Received = "Received",
|
|
16
|
+
Approved = "Approved",
|
|
17
|
+
Rejected = "Rejected",
|
|
18
|
+
InProgress = "In Progress",
|
|
19
|
+
}
|
|
9
20
|
|
|
10
|
-
|
|
21
|
+
@Entity({ name: "residential_unit_rental_chat" })
|
|
22
|
+
export class ResidentialUnitRentalChat extends BaseModel {
|
|
23
|
+
@Column({ type: "int", nullable: false })
|
|
24
|
+
request_id: number;
|
|
11
25
|
|
|
12
|
-
|
|
26
|
+
@Column({ type: "int", nullable: false })
|
|
27
|
+
service_id: number;
|
|
13
28
|
|
|
14
|
-
|
|
29
|
+
@Column({ type: "int", nullable: false })
|
|
30
|
+
sub_service_id: number;
|
|
15
31
|
|
|
16
|
-
|
|
32
|
+
@Column({ type: "int", nullable: false })
|
|
33
|
+
user_id: number;
|
|
17
34
|
|
|
18
|
-
|
|
35
|
+
@Column({ type: "text", nullable: false })
|
|
36
|
+
message: string;
|
|
19
37
|
|
|
20
|
-
}
|
|
38
|
+
@Column({ type: "int", nullable: true })
|
|
39
|
+
approver_role_id: number | null;
|
|
21
40
|
|
|
22
|
-
|
|
23
|
-
|
|
41
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
42
|
+
status: string;
|
|
24
43
|
|
|
25
|
-
@
|
|
44
|
+
@Column({ type: "varchar", length: 20, nullable: false })
|
|
45
|
+
message_type: string;
|
|
26
46
|
|
|
27
|
-
|
|
47
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
48
|
+
is_internal: boolean;
|
|
28
49
|
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
@Column({ type: "int", nullable: false })
|
|
51
|
+
created_by: number;
|
|
31
52
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'int', nullable: false })
|
|
40
|
-
|
|
41
|
-
service_id: number;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'int', nullable: false })
|
|
47
|
-
|
|
48
|
-
sub_service_id: number;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@Column({ type: 'text', nullable: false })
|
|
54
|
-
|
|
55
|
-
message: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
61
|
-
|
|
62
|
-
message_type: string; // text, image, video, file, link
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
@Column({ type: 'boolean', nullable: false, default: false })
|
|
68
|
-
|
|
69
|
-
is_internal: boolean;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
@Column({ type: 'int', nullable: false })
|
|
75
|
-
|
|
76
|
-
created_by: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
constructor() {
|
|
82
|
-
|
|
83
|
-
super();
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
}
|
|
56
|
+
}
|