@platform-modules/civil-aviation-authority 2.3.126 → 2.3.127
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 +9 -1
- package/dist/index.js +18 -1
- package/dist/models/InformationSecurityApprovalModel.d.ts +27 -0
- package/dist/models/InformationSecurityApprovalModel.js +117 -0
- package/dist/models/InformationSecurityAttachmentModel.d.ts +13 -0
- package/dist/models/InformationSecurityAttachmentModel.js +69 -0
- package/dist/models/InformationSecurityChatModel.d.ts +29 -0
- package/dist/models/InformationSecurityChatModel.js +97 -0
- package/dist/models/InformationSecurityWorkflowModel.d.ts +19 -0
- package/dist/models/InformationSecurityWorkflowModel.js +81 -0
- package/package.json +1 -1
- package/src/index.ts +9 -1
- package/src/models/InformationSecurityApprovalModel.ts +103 -0
- package/src/models/InformationSecurityAttachmentModel.ts +55 -0
- package/src/models/InformationSecurityChatModel.ts +83 -0
- package/src/models/InformationSecurityWorkflowModel.ts +67 -0
package/dist/index.d.ts
CHANGED
|
@@ -184,7 +184,15 @@ export { AssignTasksEmpMessageType } from './models/AssignTasksEmpChatModel';
|
|
|
184
184
|
export * from './models/ShiftAllowanceRequestModel';
|
|
185
185
|
export { ShiftAllowanceRequestStatus, ShiftAllowanceValue } from './models/ShiftAllowanceRequestModel';
|
|
186
186
|
export * from './models/RequestForProjectApprovalModel';
|
|
187
|
-
export { RequestForProjectApprovalStatus } from './models/RequestForProjectApprovalModel';
|
|
187
|
+
export { RequestForProjectApprovalStatus, RequestForProjectApproval } from './models/RequestForProjectApprovalModel';
|
|
188
|
+
export * from './models/InformationSecurityApprovalModel';
|
|
189
|
+
export { InformationSecurityApprovalStatus, InformationSecurityApprovalDetails } from './models/InformationSecurityApprovalModel';
|
|
190
|
+
export * from './models/InformationSecurityChatModel';
|
|
191
|
+
export { InformationSecurityMessageType, InformationSecurityChatStatus, InformationSecurityRequestChat } from './models/InformationSecurityChatModel';
|
|
192
|
+
export * from './models/InformationSecurityWorkflowModel';
|
|
193
|
+
export { InformationSecurityWorkFlowStatus, InformationSecurityWorkFlow } from './models/InformationSecurityWorkflowModel';
|
|
194
|
+
export * from './models/InformationSecurityAttachmentModel';
|
|
195
|
+
export { InformationSecurityRequestAttachment } from './models/InformationSecurityAttachmentModel';
|
|
188
196
|
export * from './models/JobTransferRequestModel';
|
|
189
197
|
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
190
198
|
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.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.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);
|
|
@@ -273,6 +273,23 @@ Object.defineProperty(exports, "ShiftAllowanceValue", { enumerable: true, get: f
|
|
|
273
273
|
__exportStar(require("./models/RequestForProjectApprovalModel"), exports);
|
|
274
274
|
var RequestForProjectApprovalModel_1 = require("./models/RequestForProjectApprovalModel");
|
|
275
275
|
Object.defineProperty(exports, "RequestForProjectApprovalStatus", { enumerable: true, get: function () { return RequestForProjectApprovalModel_1.RequestForProjectApprovalStatus; } });
|
|
276
|
+
Object.defineProperty(exports, "RequestForProjectApproval", { enumerable: true, get: function () { return RequestForProjectApprovalModel_1.RequestForProjectApproval; } });
|
|
277
|
+
__exportStar(require("./models/InformationSecurityApprovalModel"), exports);
|
|
278
|
+
var InformationSecurityApprovalModel_1 = require("./models/InformationSecurityApprovalModel");
|
|
279
|
+
Object.defineProperty(exports, "InformationSecurityApprovalStatus", { enumerable: true, get: function () { return InformationSecurityApprovalModel_1.InformationSecurityApprovalStatus; } });
|
|
280
|
+
Object.defineProperty(exports, "InformationSecurityApprovalDetails", { enumerable: true, get: function () { return InformationSecurityApprovalModel_1.InformationSecurityApprovalDetails; } });
|
|
281
|
+
__exportStar(require("./models/InformationSecurityChatModel"), exports);
|
|
282
|
+
var InformationSecurityChatModel_1 = require("./models/InformationSecurityChatModel");
|
|
283
|
+
Object.defineProperty(exports, "InformationSecurityMessageType", { enumerable: true, get: function () { return InformationSecurityChatModel_1.InformationSecurityMessageType; } });
|
|
284
|
+
Object.defineProperty(exports, "InformationSecurityChatStatus", { enumerable: true, get: function () { return InformationSecurityChatModel_1.InformationSecurityChatStatus; } });
|
|
285
|
+
Object.defineProperty(exports, "InformationSecurityRequestChat", { enumerable: true, get: function () { return InformationSecurityChatModel_1.InformationSecurityRequestChat; } });
|
|
286
|
+
__exportStar(require("./models/InformationSecurityWorkflowModel"), exports);
|
|
287
|
+
var InformationSecurityWorkflowModel_1 = require("./models/InformationSecurityWorkflowModel");
|
|
288
|
+
Object.defineProperty(exports, "InformationSecurityWorkFlowStatus", { enumerable: true, get: function () { return InformationSecurityWorkflowModel_1.InformationSecurityWorkFlowStatus; } });
|
|
289
|
+
Object.defineProperty(exports, "InformationSecurityWorkFlow", { enumerable: true, get: function () { return InformationSecurityWorkflowModel_1.InformationSecurityWorkFlow; } });
|
|
290
|
+
__exportStar(require("./models/InformationSecurityAttachmentModel"), exports);
|
|
291
|
+
var InformationSecurityAttachmentModel_1 = require("./models/InformationSecurityAttachmentModel");
|
|
292
|
+
Object.defineProperty(exports, "InformationSecurityRequestAttachment", { enumerable: true, get: function () { return InformationSecurityAttachmentModel_1.InformationSecurityRequestAttachment; } });
|
|
276
293
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
277
294
|
__exportStar(require("./models/JobTransferRequestModel"), exports);
|
|
278
295
|
var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum InformationSecurityApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class InformationSecurityApprovalDetails 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: InformationSecurityApprovalStatus;
|
|
22
|
+
is_manager: boolean;
|
|
23
|
+
is_president: boolean;
|
|
24
|
+
is_replace: boolean;
|
|
25
|
+
is_allowed: boolean;
|
|
26
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: InformationSecurityApprovalStatus, level: number, service_id?: number | null, sub_service_id?: number | null, department_id?: number | null, section_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_manager?: boolean, is_president?: boolean, is_replace?: boolean, is_allowed?: boolean);
|
|
27
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InformationSecurityApprovalDetails = exports.InformationSecurityApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InformationSecurityApprovalStatus;
|
|
16
|
+
(function (InformationSecurityApprovalStatus) {
|
|
17
|
+
InformationSecurityApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
InformationSecurityApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InformationSecurityApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
InformationSecurityApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
InformationSecurityApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(InformationSecurityApprovalStatus || (exports.InformationSecurityApprovalStatus = InformationSecurityApprovalStatus = {}));
|
|
23
|
+
let InformationSecurityApprovalDetails = class InformationSecurityApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, service_id, sub_service_id, department_id, section_id, delegate_user_id, approved_by, is_manager, is_president, is_replace, is_allowed) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.service_id = service_id || null;
|
|
28
|
+
this.sub_service_id = sub_service_id || null;
|
|
29
|
+
this.approver_user_id = approver_user_id;
|
|
30
|
+
this.approver_role_id = approver_role_id;
|
|
31
|
+
this.comment = comment;
|
|
32
|
+
this.approval_status = approval_status;
|
|
33
|
+
this.level = level;
|
|
34
|
+
this.department_id = department_id || null;
|
|
35
|
+
this.section_id = section_id || null;
|
|
36
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
37
|
+
this.approved_by = approved_by || null;
|
|
38
|
+
this.is_manager = is_manager ?? false;
|
|
39
|
+
this.is_president = is_president ?? false;
|
|
40
|
+
this.is_replace = is_replace ?? false;
|
|
41
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.InformationSecurityApprovalDetails = InformationSecurityApprovalDetails;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], InformationSecurityApprovalDetails.prototype, "request_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], InformationSecurityApprovalDetails.prototype, "service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], InformationSecurityApprovalDetails.prototype, "sub_service_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], InformationSecurityApprovalDetails.prototype, "level", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], InformationSecurityApprovalDetails.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], InformationSecurityApprovalDetails.prototype, "approver_role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], InformationSecurityApprovalDetails.prototype, "department_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], InformationSecurityApprovalDetails.prototype, "section_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], InformationSecurityApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], InformationSecurityApprovalDetails.prototype, "approved_by", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], InformationSecurityApprovalDetails.prototype, "comment", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({
|
|
91
|
+
type: "enum",
|
|
92
|
+
enum: InformationSecurityApprovalStatus,
|
|
93
|
+
default: InformationSecurityApprovalStatus.PENDING,
|
|
94
|
+
nullable: false
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], InformationSecurityApprovalDetails.prototype, "approval_status", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "boolean", default: null, nullable: true }),
|
|
100
|
+
__metadata("design:type", Boolean)
|
|
101
|
+
], InformationSecurityApprovalDetails.prototype, "is_manager", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], InformationSecurityApprovalDetails.prototype, "is_president", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
108
|
+
__metadata("design:type", Boolean)
|
|
109
|
+
], InformationSecurityApprovalDetails.prototype, "is_replace", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], InformationSecurityApprovalDetails.prototype, "is_allowed", void 0);
|
|
114
|
+
exports.InformationSecurityApprovalDetails = InformationSecurityApprovalDetails = __decorate([
|
|
115
|
+
(0, typeorm_1.Entity)({ name: "information_security_approvals" }),
|
|
116
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean, Boolean, Boolean])
|
|
117
|
+
], InformationSecurityApprovalDetails);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class InformationSecurityRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
uploaded_by: number;
|
|
7
|
+
file_url: string;
|
|
8
|
+
file_name: string;
|
|
9
|
+
file_type: string;
|
|
10
|
+
file_size: number | null;
|
|
11
|
+
description: string;
|
|
12
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, service_id?: number | null, sub_service_id?: number | null, file_name?: string, file_type?: string, file_size?: number, description?: string);
|
|
13
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.InformationSecurityRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let InformationSecurityRequestAttachment = class InformationSecurityRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, uploaded_by, file_url, service_id, sub_service_id, file_name, file_type, file_size, description) {
|
|
17
|
+
super();
|
|
18
|
+
this.request_id = request_id;
|
|
19
|
+
this.service_id = service_id || null;
|
|
20
|
+
this.sub_service_id = sub_service_id || null;
|
|
21
|
+
this.uploaded_by = uploaded_by;
|
|
22
|
+
this.file_url = file_url;
|
|
23
|
+
this.file_name = file_name || "";
|
|
24
|
+
this.file_type = file_type || "";
|
|
25
|
+
this.file_size = file_size || null;
|
|
26
|
+
this.description = description || "";
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.InformationSecurityRequestAttachment = InformationSecurityRequestAttachment;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], InformationSecurityRequestAttachment.prototype, "request_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InformationSecurityRequestAttachment.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], InformationSecurityRequestAttachment.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], InformationSecurityRequestAttachment.prototype, "uploaded_by", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], InformationSecurityRequestAttachment.prototype, "file_url", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], InformationSecurityRequestAttachment.prototype, "file_name", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], InformationSecurityRequestAttachment.prototype, "file_type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], InformationSecurityRequestAttachment.prototype, "file_size", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], InformationSecurityRequestAttachment.prototype, "description", void 0);
|
|
66
|
+
exports.InformationSecurityRequestAttachment = InformationSecurityRequestAttachment = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: "information_security_request_attachments" }),
|
|
68
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, String, Number, String])
|
|
69
|
+
], InformationSecurityRequestAttachment);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum InformationSecurityMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum InformationSecurityChatStatus {
|
|
10
|
+
SUBMITTED = "Submitted",
|
|
11
|
+
COMPLETED = "Completed",
|
|
12
|
+
PENDING = "Pending",
|
|
13
|
+
REJECTED = "Rejected",
|
|
14
|
+
ASSIGNED = "Assigned",
|
|
15
|
+
APPROVED = "Approved",
|
|
16
|
+
RECEIVED = "Received"
|
|
17
|
+
}
|
|
18
|
+
export declare class InformationSecurityRequestChat extends BaseModel {
|
|
19
|
+
request_id: number;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
user_id: number;
|
|
23
|
+
message: string;
|
|
24
|
+
approver_role_id: number | null;
|
|
25
|
+
messageType: InformationSecurityMessageType;
|
|
26
|
+
is_internal: boolean;
|
|
27
|
+
status: InformationSecurityChatStatus;
|
|
28
|
+
constructor(request_id: number, user_id: number, message: string, service_id?: number | null, sub_service_id?: number | null, messageType?: InformationSecurityMessageType, is_internal?: boolean, status?: InformationSecurityChatStatus, approver_role_id?: number);
|
|
29
|
+
}
|
|
@@ -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.InformationSecurityRequestChat = exports.InformationSecurityChatStatus = exports.InformationSecurityMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InformationSecurityMessageType;
|
|
16
|
+
(function (InformationSecurityMessageType) {
|
|
17
|
+
InformationSecurityMessageType["TEXT"] = "text";
|
|
18
|
+
InformationSecurityMessageType["IMAGE"] = "image";
|
|
19
|
+
InformationSecurityMessageType["VIDEO"] = "video";
|
|
20
|
+
InformationSecurityMessageType["FILE"] = "file";
|
|
21
|
+
InformationSecurityMessageType["LINK"] = "link";
|
|
22
|
+
})(InformationSecurityMessageType || (exports.InformationSecurityMessageType = InformationSecurityMessageType = {}));
|
|
23
|
+
var InformationSecurityChatStatus;
|
|
24
|
+
(function (InformationSecurityChatStatus) {
|
|
25
|
+
InformationSecurityChatStatus["SUBMITTED"] = "Submitted";
|
|
26
|
+
InformationSecurityChatStatus["COMPLETED"] = "Completed";
|
|
27
|
+
InformationSecurityChatStatus["PENDING"] = "Pending";
|
|
28
|
+
InformationSecurityChatStatus["REJECTED"] = "Rejected";
|
|
29
|
+
InformationSecurityChatStatus["ASSIGNED"] = "Assigned";
|
|
30
|
+
InformationSecurityChatStatus["APPROVED"] = "Approved";
|
|
31
|
+
InformationSecurityChatStatus["RECEIVED"] = "Received";
|
|
32
|
+
})(InformationSecurityChatStatus || (exports.InformationSecurityChatStatus = InformationSecurityChatStatus = {}));
|
|
33
|
+
let InformationSecurityRequestChat = class InformationSecurityRequestChat extends BaseModel_1.BaseModel {
|
|
34
|
+
constructor(request_id, user_id, message, service_id, sub_service_id, messageType, is_internal, status, approver_role_id) {
|
|
35
|
+
super();
|
|
36
|
+
this.request_id = request_id;
|
|
37
|
+
this.service_id = service_id || null;
|
|
38
|
+
this.sub_service_id = sub_service_id || null;
|
|
39
|
+
this.user_id = user_id;
|
|
40
|
+
this.message = message;
|
|
41
|
+
this.messageType = messageType || InformationSecurityMessageType.TEXT;
|
|
42
|
+
this.is_internal = is_internal || false;
|
|
43
|
+
this.status = status || InformationSecurityChatStatus.PENDING;
|
|
44
|
+
this.approver_role_id = approver_role_id || null;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.InformationSecurityRequestChat = InformationSecurityRequestChat;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], InformationSecurityRequestChat.prototype, "request_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], InformationSecurityRequestChat.prototype, "service_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], InformationSecurityRequestChat.prototype, "sub_service_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], InformationSecurityRequestChat.prototype, "user_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], InformationSecurityRequestChat.prototype, "message", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], InformationSecurityRequestChat.prototype, "approver_role_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({
|
|
74
|
+
type: "enum",
|
|
75
|
+
enum: InformationSecurityMessageType,
|
|
76
|
+
default: InformationSecurityMessageType.TEXT,
|
|
77
|
+
nullable: false
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], InformationSecurityRequestChat.prototype, "messageType", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], InformationSecurityRequestChat.prototype, "is_internal", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({
|
|
87
|
+
type: "enum",
|
|
88
|
+
enum: InformationSecurityChatStatus,
|
|
89
|
+
default: InformationSecurityChatStatus.PENDING,
|
|
90
|
+
nullable: false
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], InformationSecurityRequestChat.prototype, "status", void 0);
|
|
94
|
+
exports.InformationSecurityRequestChat = InformationSecurityRequestChat = __decorate([
|
|
95
|
+
(0, typeorm_1.Entity)({ name: "information_security_request_chat" }),
|
|
96
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, Boolean, String, Number])
|
|
97
|
+
], InformationSecurityRequestChat);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum InformationSecurityWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class InformationSecurityWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
order: number | null;
|
|
13
|
+
content: string;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
status: InformationSecurityWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: InformationSecurityWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
|
|
19
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.InformationSecurityWorkFlow = exports.InformationSecurityWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InformationSecurityWorkFlowStatus;
|
|
16
|
+
(function (InformationSecurityWorkFlowStatus) {
|
|
17
|
+
InformationSecurityWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
InformationSecurityWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
InformationSecurityWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
InformationSecurityWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(InformationSecurityWorkFlowStatus || (exports.InformationSecurityWorkFlowStatus = InformationSecurityWorkFlowStatus = {}));
|
|
22
|
+
let InformationSecurityWorkFlow = class InformationSecurityWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
|
|
24
|
+
super();
|
|
25
|
+
this.request_id = request_id;
|
|
26
|
+
this.service_id = service_id || null;
|
|
27
|
+
this.sub_service_id = sub_service_id || null;
|
|
28
|
+
this.content = content;
|
|
29
|
+
this.status = status;
|
|
30
|
+
this.order = order || null;
|
|
31
|
+
this.approver_role_id = approver_role_id || null;
|
|
32
|
+
this.approver_user_id = approver_user_id || null;
|
|
33
|
+
this.approved_by = approved_by || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.InformationSecurityWorkFlow = InformationSecurityWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], InformationSecurityWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], InformationSecurityWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], InformationSecurityWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], InformationSecurityWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], InformationSecurityWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], InformationSecurityWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], InformationSecurityWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], InformationSecurityWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: InformationSecurityWorkFlowStatus,
|
|
73
|
+
default: InformationSecurityWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], InformationSecurityWorkFlow.prototype, "status", void 0);
|
|
78
|
+
exports.InformationSecurityWorkFlow = InformationSecurityWorkFlow = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: "information_security_work_flows" }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
+
], InformationSecurityWorkFlow);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -193,7 +193,15 @@ export {ShiftAllowanceRequestStatus, ShiftAllowanceValue} from './models/ShiftAl
|
|
|
193
193
|
|
|
194
194
|
// Request for Project Approval (RFP) Service
|
|
195
195
|
export * from './models/RequestForProjectApprovalModel';
|
|
196
|
-
export {RequestForProjectApprovalStatus} from './models/RequestForProjectApprovalModel';
|
|
196
|
+
export {RequestForProjectApprovalStatus, RequestForProjectApproval} from './models/RequestForProjectApprovalModel';
|
|
197
|
+
export * from './models/InformationSecurityApprovalModel';
|
|
198
|
+
export {InformationSecurityApprovalStatus, InformationSecurityApprovalDetails} from './models/InformationSecurityApprovalModel';
|
|
199
|
+
export * from './models/InformationSecurityChatModel';
|
|
200
|
+
export {InformationSecurityMessageType, InformationSecurityChatStatus, InformationSecurityRequestChat} from './models/InformationSecurityChatModel';
|
|
201
|
+
export * from './models/InformationSecurityWorkflowModel';
|
|
202
|
+
export {InformationSecurityWorkFlowStatus, InformationSecurityWorkFlow} from './models/InformationSecurityWorkflowModel';
|
|
203
|
+
export * from './models/InformationSecurityAttachmentModel';
|
|
204
|
+
export {InformationSecurityRequestAttachment} from './models/InformationSecurityAttachmentModel';
|
|
197
205
|
|
|
198
206
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
199
207
|
export * from './models/JobTransferRequestModel';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum InformationSecurityApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "information_security_approvals" })
|
|
13
|
+
export class InformationSecurityApprovalDetails extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: false })
|
|
24
|
+
level: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
approver_user_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: true })
|
|
30
|
+
approver_role_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
department_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
section_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: true })
|
|
39
|
+
delegate_user_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
approved_by: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "varchar", length: 255, nullable: true, default: "" })
|
|
45
|
+
comment: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: InformationSecurityApprovalStatus,
|
|
50
|
+
default: InformationSecurityApprovalStatus.PENDING,
|
|
51
|
+
nullable: false
|
|
52
|
+
})
|
|
53
|
+
approval_status: InformationSecurityApprovalStatus;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "boolean", default: null, nullable: true })
|
|
56
|
+
is_manager: boolean;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
59
|
+
is_president: boolean;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
62
|
+
is_replace: boolean;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
65
|
+
is_allowed: boolean;
|
|
66
|
+
|
|
67
|
+
constructor(
|
|
68
|
+
request_id: number,
|
|
69
|
+
approver_user_id: number | null,
|
|
70
|
+
approver_role_id: number | null,
|
|
71
|
+
comment: string,
|
|
72
|
+
approval_status: InformationSecurityApprovalStatus,
|
|
73
|
+
level: number,
|
|
74
|
+
service_id?: number | null,
|
|
75
|
+
sub_service_id?: number | null,
|
|
76
|
+
department_id?: number | null,
|
|
77
|
+
section_id?: number | null,
|
|
78
|
+
delegate_user_id?: number | null,
|
|
79
|
+
approved_by?: number | null,
|
|
80
|
+
is_manager?: boolean,
|
|
81
|
+
is_president?: boolean,
|
|
82
|
+
is_replace?: boolean,
|
|
83
|
+
is_allowed?: boolean
|
|
84
|
+
) {
|
|
85
|
+
super();
|
|
86
|
+
this.request_id = request_id;
|
|
87
|
+
this.service_id = service_id || null;
|
|
88
|
+
this.sub_service_id = sub_service_id || null;
|
|
89
|
+
this.approver_user_id = approver_user_id;
|
|
90
|
+
this.approver_role_id = approver_role_id;
|
|
91
|
+
this.comment = comment;
|
|
92
|
+
this.approval_status = approval_status;
|
|
93
|
+
this.level = level;
|
|
94
|
+
this.department_id = department_id || null;
|
|
95
|
+
this.section_id = section_id || null;
|
|
96
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
97
|
+
this.approved_by = approved_by || null;
|
|
98
|
+
this.is_manager = is_manager ?? false;
|
|
99
|
+
this.is_president = is_president ?? false;
|
|
100
|
+
this.is_replace = is_replace ?? false;
|
|
101
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "information_security_request_attachments" })
|
|
5
|
+
export class InformationSecurityRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "integer", nullable: false })
|
|
16
|
+
uploaded_by: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
19
|
+
file_url: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
22
|
+
file_name: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
25
|
+
file_type: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "bigint", nullable: true })
|
|
28
|
+
file_size: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "text", nullable: true })
|
|
31
|
+
description: string;
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
request_id: number,
|
|
35
|
+
uploaded_by: number,
|
|
36
|
+
file_url: string,
|
|
37
|
+
service_id?: number | null,
|
|
38
|
+
sub_service_id?: number | null,
|
|
39
|
+
file_name?: string,
|
|
40
|
+
file_type?: string,
|
|
41
|
+
file_size?: number,
|
|
42
|
+
description?: string
|
|
43
|
+
) {
|
|
44
|
+
super();
|
|
45
|
+
this.request_id = request_id;
|
|
46
|
+
this.service_id = service_id || null;
|
|
47
|
+
this.sub_service_id = sub_service_id || null;
|
|
48
|
+
this.uploaded_by = uploaded_by;
|
|
49
|
+
this.file_url = file_url;
|
|
50
|
+
this.file_name = file_name || "";
|
|
51
|
+
this.file_type = file_type || "";
|
|
52
|
+
this.file_size = file_size || null;
|
|
53
|
+
this.description = description || "";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum InformationSecurityMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum InformationSecurityChatStatus {
|
|
13
|
+
SUBMITTED = "Submitted",
|
|
14
|
+
COMPLETED = "Completed",
|
|
15
|
+
PENDING = "Pending",
|
|
16
|
+
REJECTED = "Rejected",
|
|
17
|
+
ASSIGNED = "Assigned",
|
|
18
|
+
APPROVED = "Approved",
|
|
19
|
+
RECEIVED = "Received"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@Entity({ name: "information_security_request_chat" })
|
|
23
|
+
export class InformationSecurityRequestChat extends BaseModel {
|
|
24
|
+
@Column({ type: "integer", nullable: false })
|
|
25
|
+
request_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
sub_service_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: false })
|
|
34
|
+
user_id: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "text", nullable: false })
|
|
37
|
+
message: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
approver_role_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({
|
|
43
|
+
type: "enum",
|
|
44
|
+
enum: InformationSecurityMessageType,
|
|
45
|
+
default: InformationSecurityMessageType.TEXT,
|
|
46
|
+
nullable: false
|
|
47
|
+
})
|
|
48
|
+
messageType: InformationSecurityMessageType;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "boolean", default: false })
|
|
51
|
+
is_internal: boolean;
|
|
52
|
+
|
|
53
|
+
@Column({
|
|
54
|
+
type: "enum",
|
|
55
|
+
enum: InformationSecurityChatStatus,
|
|
56
|
+
default: InformationSecurityChatStatus.PENDING,
|
|
57
|
+
nullable: false
|
|
58
|
+
})
|
|
59
|
+
status: InformationSecurityChatStatus;
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
request_id: number,
|
|
63
|
+
user_id: number,
|
|
64
|
+
message: string,
|
|
65
|
+
service_id?: number | null,
|
|
66
|
+
sub_service_id?: number | null,
|
|
67
|
+
messageType?: InformationSecurityMessageType,
|
|
68
|
+
is_internal?: boolean,
|
|
69
|
+
status?: InformationSecurityChatStatus,
|
|
70
|
+
approver_role_id?: number
|
|
71
|
+
) {
|
|
72
|
+
super();
|
|
73
|
+
this.request_id = request_id;
|
|
74
|
+
this.service_id = service_id || null;
|
|
75
|
+
this.sub_service_id = sub_service_id || null;
|
|
76
|
+
this.user_id = user_id;
|
|
77
|
+
this.message = message;
|
|
78
|
+
this.messageType = messageType || InformationSecurityMessageType.TEXT;
|
|
79
|
+
this.is_internal = is_internal || false;
|
|
80
|
+
this.status = status || InformationSecurityChatStatus.PENDING;
|
|
81
|
+
this.approver_role_id = approver_role_id || null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum InformationSecurityWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "information_security_work_flows" })
|
|
12
|
+
export class InformationSecurityWorkFlow extends BaseModel {
|
|
13
|
+
@Column({ type: "int", nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "integer", nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
order: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
26
|
+
content: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
approver_role_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
approver_user_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
approved_by: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({
|
|
38
|
+
type: "enum",
|
|
39
|
+
enum: InformationSecurityWorkFlowStatus,
|
|
40
|
+
default: InformationSecurityWorkFlowStatus.PENDING,
|
|
41
|
+
nullable: false
|
|
42
|
+
})
|
|
43
|
+
status: InformationSecurityWorkFlowStatus;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
request_id: number,
|
|
47
|
+
content: string,
|
|
48
|
+
status: InformationSecurityWorkFlowStatus,
|
|
49
|
+
service_id?: number | null,
|
|
50
|
+
sub_service_id?: number | null,
|
|
51
|
+
order?: number,
|
|
52
|
+
approver_role_id?: number | null,
|
|
53
|
+
approver_user_id?: number | null,
|
|
54
|
+
approved_by?: number | null
|
|
55
|
+
) {
|
|
56
|
+
super();
|
|
57
|
+
this.request_id = request_id;
|
|
58
|
+
this.service_id = service_id || null;
|
|
59
|
+
this.sub_service_id = sub_service_id || null;
|
|
60
|
+
this.content = content;
|
|
61
|
+
this.status = status;
|
|
62
|
+
this.order = order || null;
|
|
63
|
+
this.approver_role_id = approver_role_id || null;
|
|
64
|
+
this.approver_user_id = approver_user_id || null;
|
|
65
|
+
this.approved_by = approved_by || null;
|
|
66
|
+
}
|
|
67
|
+
}
|