@platform-modules/civil-aviation-authority 2.2.94 → 2.2.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -7
- package/package.json +1 -1
- package/src/data-source.ts +5 -1
- package/src/index.ts +2 -0
- package/src/models/GroupModel.ts +31 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/ITRequestChatModel.ts +21 -1
- package/src/models/ItWorkflowModel.ts +17 -1
- package/dist/data-source.d.ts +0 -4
- package/dist/data-source.js +0 -146
- package/dist/helpers/utils/enum.d.ts +0 -75
- package/dist/helpers/utils/enum.js +0 -53
- package/dist/index.d.ts +0 -60
- package/dist/index.js +0 -80
- package/dist/models/AccessCardApprovalModel.d.ts +0 -22
- package/dist/models/AccessCardApprovalModel.js +0 -96
- package/dist/models/AccessCardAttachmentModel.d.ts +0 -12
- package/dist/models/AccessCardAttachmentModel.js +0 -64
- package/dist/models/AccessCardChatModel.d.ts +0 -20
- package/dist/models/AccessCardChatModel.js +0 -78
- package/dist/models/AccessCardRequestModel.d.ts +0 -43
- package/dist/models/AccessCardRequestModel.js +0 -148
- package/dist/models/AccessCardWorkflowModel.d.ts +0 -18
- package/dist/models/AccessCardWorkflowModel.js +0 -80
- package/dist/models/BaseModel.d.ts +0 -14
- package/dist/models/BaseModel.js +0 -66
- package/dist/models/CAAServices.d.ts +0 -8
- package/dist/models/CAAServices.js +0 -44
- package/dist/models/CAASubServices.d.ts +0 -11
- package/dist/models/CAASubServices.js +0 -55
- package/dist/models/DelegateSettingsModel.d.ts +0 -9
- package/dist/models/DelegateSettingsModel.js +0 -50
- package/dist/models/DepartmentsModel.d.ts +0 -7
- package/dist/models/DepartmentsModel.js +0 -39
- package/dist/models/DirectorateModel.d.ts +0 -7
- package/dist/models/DirectorateModel.js +0 -39
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -17
- package/dist/models/HotelChatModel.js +0 -67
- package/dist/models/HotelWorkFlowModel.d.ts +0 -14
- package/dist/models/HotelWorkFlowModel.js +0 -56
- package/dist/models/HotelreservationModel.d.ts +0 -45
- package/dist/models/HotelreservationModel.js +0 -177
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITHelpDeskModel.d.ts +0 -33
- package/dist/models/ITHelpDeskModel.js +0 -136
- package/dist/models/ITRequestAttachmentModel.d.ts +0 -17
- package/dist/models/ITRequestAttachmentModel.js +0 -81
- package/dist/models/ITRequestChatModel.d.ts +0 -12
- package/dist/models/ITRequestChatModel.js +0 -56
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/ItApprovalsModel.d.ts +0 -23
- package/dist/models/ItApprovalsModel.js +0 -92
- package/dist/models/ItWorkflowModel.d.ts +0 -15
- package/dist/models/ItWorkflowModel.js +0 -61
- package/dist/models/LogisticsApprovalModel.d.ts +0 -22
- package/dist/models/LogisticsApprovalModel.js +0 -91
- package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsAttachmentModel.js +0 -64
- package/dist/models/LogisticsChatModel.d.ts +0 -20
- package/dist/models/LogisticsChatModel.js +0 -78
- package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -42
- package/dist/models/LogisticsForeignVehicleModel.js +0 -153
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
- package/dist/models/LogisticsModel.d.ts +0 -57
- package/dist/models/LogisticsModel.js +0 -195
- package/dist/models/LogisticsWorkflowModel.d.ts +0 -18
- package/dist/models/LogisticsWorkflowModel.js +0 -76
- package/dist/models/NotificationModel.d.ts +0 -23
- package/dist/models/NotificationModel.js +0 -92
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/PortalFeedbackModel.js +0 -44
- package/dist/models/PositionModel.d.ts +0 -6
- package/dist/models/PositionModel.js +0 -34
- package/dist/models/SectionModel.d.ts +0 -8
- package/dist/models/SectionModel.js +0 -44
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +0 -22
- package/dist/models/SecurityAwarenessApprovalModel.js +0 -91
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAwarenessAttachmentModel.js +0 -64
- package/dist/models/SecurityAwarenessChatModel.d.ts +0 -20
- package/dist/models/SecurityAwarenessChatModel.js +0 -78
- package/dist/models/SecurityAwarenessRequestModel.d.ts +0 -30
- package/dist/models/SecurityAwarenessRequestModel.js +0 -122
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityAwarenessWorkflowModel.js +0 -76
- package/dist/models/SecurityThreatApprovalModel.d.ts +0 -24
- package/dist/models/SecurityThreatApprovalModel.js +0 -97
- package/dist/models/SecurityThreatAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityThreatAttachmentModel.js +0 -64
- package/dist/models/SecurityThreatChatModel.d.ts +0 -20
- package/dist/models/SecurityThreatChatModel.js +0 -78
- package/dist/models/SecurityThreatRequestModel.d.ts +0 -29
- package/dist/models/SecurityThreatRequestModel.js +0 -104
- package/dist/models/SecurityThreatWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityThreatWorkflowModel.js +0 -76
- package/dist/models/ServiceTypeModel.d.ts +0 -20
- package/dist/models/ServiceTypeModel.js +0 -88
- package/dist/models/VpnApprovalModel.d.ts +0 -21
- package/dist/models/VpnApprovalModel.js +0 -87
- package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
- package/dist/models/VpnRequestAttachmentModel.js +0 -59
- package/dist/models/VpnRequestChatModel.d.ts +0 -26
- package/dist/models/VpnRequestChatModel.js +0 -86
- package/dist/models/VpnRequestModel.d.ts +0 -70
- package/dist/models/VpnRequestModel.js +0 -175
- package/dist/models/VpnWorkflowModel.d.ts +0 -17
- package/dist/models/VpnWorkflowModel.js +0 -71
- package/dist/models/WorkflowDefinitions.d.ts +0 -16
- package/dist/models/WorkflowDefinitions.js +0 -86
- package/dist/models/WorkflowHierarchy.d.ts +0 -17
- package/dist/models/WorkflowHierarchy.js +0 -86
- package/dist/models/WorkflowTask.d.ts +0 -13
- package/dist/models/WorkflowTask.js +0 -78
- package/dist/models/WorkflowTaskNames.d.ts +0 -17
- package/dist/models/WorkflowTaskNames.js +0 -63
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/dist/models/contactInfoModel.d.ts +0 -18
- package/dist/models/contactInfoModel.js +0 -80
- package/dist/models/feedbackModel.d.ts +0 -16
- package/dist/models/feedbackModel.js +0 -61
- package/dist/models/importantLinksModel.d.ts +0 -6
- package/dist/models/importantLinksModel.js +0 -34
- package/dist/models/role.d.ts +0 -16
- package/dist/models/role.js +0 -44
- package/dist/models/roleRightsModel.d.ts +0 -16
- package/dist/models/roleRightsModel.js +0 -44
- package/dist/models/serviceBookmarksModel.d.ts +0 -6
- package/dist/models/serviceBookmarksModel.js +0 -34
- package/dist/models/user-sessions.d.ts +0 -18
- package/dist/models/user-sessions.js +0 -54
- package/dist/models/user.d.ts +0 -47
- package/dist/models/user.js +0 -238
- package/dist/models/userRolesModel.d.ts +0 -19
- package/dist/models/userRolesModel.js +0 -59
- package/dist/scripts.d.ts +0 -1
- package/dist/scripts.js +0 -11
|
@@ -1,76 +0,0 @@
|
|
|
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.SecurityAwarenessWorkFlow = exports.SecurityAwarenessWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SecurityAwarenessWorkFlowStatus;
|
|
16
|
-
(function (SecurityAwarenessWorkFlowStatus) {
|
|
17
|
-
SecurityAwarenessWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
SecurityAwarenessWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
SecurityAwarenessWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(SecurityAwarenessWorkFlowStatus || (exports.SecurityAwarenessWorkFlowStatus = SecurityAwarenessWorkFlowStatus = {}));
|
|
21
|
-
//This model is used to store the security awareness workflow status and activity logs
|
|
22
|
-
let SecurityAwarenessWorkFlow = class SecurityAwarenessWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
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.user_id = user_id || null;
|
|
31
|
-
this.role_id = role_id || null;
|
|
32
|
-
this.department_id = department_id || null;
|
|
33
|
-
this.section_id = section_id || null;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.SecurityAwarenessWorkFlow = SecurityAwarenessWorkFlow;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], SecurityAwarenessWorkFlow.prototype, "request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], SecurityAwarenessWorkFlow.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], SecurityAwarenessWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SecurityAwarenessWorkFlow.prototype, "content", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessWorkFlowStatus, default: SecurityAwarenessWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], SecurityAwarenessWorkFlow.prototype, "status", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], SecurityAwarenessWorkFlow.prototype, "user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], SecurityAwarenessWorkFlow.prototype, "role_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], SecurityAwarenessWorkFlow.prototype, "department_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], SecurityAwarenessWorkFlow.prototype, "section_id", void 0);
|
|
73
|
-
exports.SecurityAwarenessWorkFlow = SecurityAwarenessWorkFlow = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)({ name: 'security_awareness_workflows' }),
|
|
75
|
-
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
-
], SecurityAwarenessWorkFlow);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SecurityThreatApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected",
|
|
7
|
-
CLOSED = "Closed"
|
|
8
|
-
}
|
|
9
|
-
export declare class SecurityThreatApproval extends BaseModel {
|
|
10
|
-
request_id: number;
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
sub_service_id: number | null;
|
|
13
|
-
level: number;
|
|
14
|
-
approver_role_id: number;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
approver_user_id: number | null;
|
|
18
|
-
delegate_user_id: number | null;
|
|
19
|
-
approved_by: number | null;
|
|
20
|
-
comment: string;
|
|
21
|
-
approval_status: SecurityThreatApprovalStatus;
|
|
22
|
-
is_manager: boolean;
|
|
23
|
-
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: SecurityThreatApprovalStatus, level: number, is_manager?: boolean, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number);
|
|
24
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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.SecurityThreatApproval = exports.SecurityThreatApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SecurityThreatApprovalStatus;
|
|
16
|
-
(function (SecurityThreatApprovalStatus) {
|
|
17
|
-
SecurityThreatApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
SecurityThreatApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
SecurityThreatApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
SecurityThreatApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
SecurityThreatApprovalStatus["CLOSED"] = "Closed";
|
|
22
|
-
})(SecurityThreatApprovalStatus || (exports.SecurityThreatApprovalStatus = SecurityThreatApprovalStatus = {}));
|
|
23
|
-
let SecurityThreatApproval = class SecurityThreatApproval extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, is_manager = false, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
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_role_id = approver_role_id;
|
|
30
|
-
this.comment = comment;
|
|
31
|
-
this.approval_status = approval_status;
|
|
32
|
-
this.level = level;
|
|
33
|
-
this.is_manager = is_manager;
|
|
34
|
-
this.department_id = department_id || null;
|
|
35
|
-
this.section_id = section_id || null;
|
|
36
|
-
this.approver_user_id = approver_user_id || null;
|
|
37
|
-
this.delegate_user_id = delegate_user_id || null;
|
|
38
|
-
this.approved_by = approved_by || null;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.SecurityThreatApproval = SecurityThreatApproval;
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], SecurityThreatApproval.prototype, "request_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], SecurityThreatApproval.prototype, "service_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], SecurityThreatApproval.prototype, "sub_service_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], SecurityThreatApproval.prototype, "level", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], SecurityThreatApproval.prototype, "approver_role_id", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
64
|
-
__metadata("design:type", Object)
|
|
65
|
-
], SecurityThreatApproval.prototype, "department_id", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], SecurityThreatApproval.prototype, "section_id", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
72
|
-
__metadata("design:type", Object)
|
|
73
|
-
], SecurityThreatApproval.prototype, "approver_user_id", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
76
|
-
__metadata("design:type", Object)
|
|
77
|
-
], SecurityThreatApproval.prototype, "delegate_user_id", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
80
|
-
__metadata("design:type", Object)
|
|
81
|
-
], SecurityThreatApproval.prototype, "approved_by", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], SecurityThreatApproval.prototype, "comment", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityThreatApprovalStatus, default: SecurityThreatApprovalStatus.PENDING, nullable: false }),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], SecurityThreatApproval.prototype, "approval_status", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: false }),
|
|
92
|
-
__metadata("design:type", Boolean)
|
|
93
|
-
], SecurityThreatApproval.prototype, "is_manager", void 0);
|
|
94
|
-
exports.SecurityThreatApproval = SecurityThreatApproval = __decorate([
|
|
95
|
-
(0, typeorm_1.Entity)({ name: 'security_threat_approvals' }),
|
|
96
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Boolean, Object, Object, Object, Object, Object, Number, Number])
|
|
97
|
-
], SecurityThreatApproval);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class SecurityThreatAttachment extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
service_id: number | null;
|
|
5
|
-
sub_service_id: number | null;
|
|
6
|
-
file_url: string;
|
|
7
|
-
file_name: string;
|
|
8
|
-
file_type: string;
|
|
9
|
-
file_size: number | null;
|
|
10
|
-
chat_id: number | null;
|
|
11
|
-
constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number);
|
|
12
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
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.SecurityThreatAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let SecurityThreatAttachment = class SecurityThreatAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
|
|
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.file_url = file_url;
|
|
22
|
-
this.file_name = file_name || '';
|
|
23
|
-
this.file_type = file_type || '';
|
|
24
|
-
this.file_size = file_size || null;
|
|
25
|
-
this.chat_id = chat_id || null;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.SecurityThreatAttachment = SecurityThreatAttachment;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], SecurityThreatAttachment.prototype, "request_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], SecurityThreatAttachment.prototype, "service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], SecurityThreatAttachment.prototype, "sub_service_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], SecurityThreatAttachment.prototype, "file_url", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], SecurityThreatAttachment.prototype, "file_name", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SecurityThreatAttachment.prototype, "file_type", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], SecurityThreatAttachment.prototype, "file_size", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], SecurityThreatAttachment.prototype, "chat_id", void 0);
|
|
61
|
-
exports.SecurityThreatAttachment = SecurityThreatAttachment = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: 'security_threat_attachments' }),
|
|
63
|
-
__metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
|
|
64
|
-
], SecurityThreatAttachment);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { SecurityThreatApprovalStatus } from './SecurityThreatApprovalModel';
|
|
3
|
-
export declare enum SecurityThreatMessageType {
|
|
4
|
-
TEXT = "text",
|
|
5
|
-
IMAGE = "image",
|
|
6
|
-
VIDEO = "video",
|
|
7
|
-
FILE = "file",
|
|
8
|
-
LINK = "link"
|
|
9
|
-
}
|
|
10
|
-
export declare class SecurityThreatChat extends BaseModel {
|
|
11
|
-
request_id: number;
|
|
12
|
-
service_id: number | null;
|
|
13
|
-
sub_service_id: number | null;
|
|
14
|
-
user_id: number;
|
|
15
|
-
role_id: number;
|
|
16
|
-
message: string;
|
|
17
|
-
messageType: SecurityThreatMessageType;
|
|
18
|
-
status: string;
|
|
19
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: SecurityThreatMessageType, status?: SecurityThreatApprovalStatus);
|
|
20
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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.SecurityThreatChat = exports.SecurityThreatMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const SecurityThreatApprovalModel_1 = require("./SecurityThreatApprovalModel");
|
|
16
|
-
var SecurityThreatMessageType;
|
|
17
|
-
(function (SecurityThreatMessageType) {
|
|
18
|
-
SecurityThreatMessageType["TEXT"] = "text";
|
|
19
|
-
SecurityThreatMessageType["IMAGE"] = "image";
|
|
20
|
-
SecurityThreatMessageType["VIDEO"] = "video";
|
|
21
|
-
SecurityThreatMessageType["FILE"] = "file";
|
|
22
|
-
SecurityThreatMessageType["LINK"] = "link";
|
|
23
|
-
})(SecurityThreatMessageType || (exports.SecurityThreatMessageType = SecurityThreatMessageType = {}));
|
|
24
|
-
let SecurityThreatChat = class SecurityThreatChat extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
-
super();
|
|
27
|
-
this.request_id = request_id;
|
|
28
|
-
this.service_id = service_id || null;
|
|
29
|
-
this.sub_service_id = sub_service_id || null;
|
|
30
|
-
this.user_id = user_id;
|
|
31
|
-
this.role_id = role_id;
|
|
32
|
-
this.message = message;
|
|
33
|
-
this.messageType = messageType || SecurityThreatMessageType.TEXT;
|
|
34
|
-
this.status = status || SecurityThreatApprovalModel_1.SecurityThreatApprovalStatus.PENDING;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.SecurityThreatChat = SecurityThreatChat;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], SecurityThreatChat.prototype, "request_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], SecurityThreatChat.prototype, "service_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], SecurityThreatChat.prototype, "sub_service_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], SecurityThreatChat.prototype, "user_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], SecurityThreatChat.prototype, "role_id", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], SecurityThreatChat.prototype, "message", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({
|
|
64
|
-
type: 'enum',
|
|
65
|
-
enum: SecurityThreatMessageType,
|
|
66
|
-
default: SecurityThreatMessageType.TEXT,
|
|
67
|
-
nullable: false
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], SecurityThreatChat.prototype, "messageType", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], SecurityThreatChat.prototype, "status", void 0);
|
|
75
|
-
exports.SecurityThreatChat = SecurityThreatChat = __decorate([
|
|
76
|
-
(0, typeorm_1.Entity)({ name: 'security_threat_chats' }),
|
|
77
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
-
], SecurityThreatChat);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SecurityThreatRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected",
|
|
7
|
-
CLOSED = "Closed"
|
|
8
|
-
}
|
|
9
|
-
export declare enum SecurityThreatPriority {
|
|
10
|
-
P1_VERY_LOW = "P1-Very Low",
|
|
11
|
-
P2_LOW = "P2\u2013Low",// Note: Using en dash (–) as specified
|
|
12
|
-
P3_MODERATE = "P3-Moderate",
|
|
13
|
-
P4_HIGH = "P4-High",
|
|
14
|
-
P5_VERY_HIGH = "P5-Very High"
|
|
15
|
-
}
|
|
16
|
-
export declare class SecurityThreatRequest extends BaseModel {
|
|
17
|
-
req_user_department_id: number | null;
|
|
18
|
-
req_user_section_id: number | null;
|
|
19
|
-
service_id: number;
|
|
20
|
-
sub_service_id: number;
|
|
21
|
-
user_id: number;
|
|
22
|
-
type_of_threat: number;
|
|
23
|
-
description: string;
|
|
24
|
-
contact_number: string;
|
|
25
|
-
priority: SecurityThreatPriority;
|
|
26
|
-
status: SecurityThreatRequestStatus;
|
|
27
|
-
workflow_execution_id: string | null;
|
|
28
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, type_of_threat: number, description: string, contact_number: string, priority: SecurityThreatPriority, status: SecurityThreatRequestStatus, workflow_execution_id?: string | null);
|
|
29
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
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.SecurityThreatRequest = exports.SecurityThreatPriority = exports.SecurityThreatRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SecurityThreatRequestStatus;
|
|
16
|
-
(function (SecurityThreatRequestStatus) {
|
|
17
|
-
SecurityThreatRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
SecurityThreatRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
SecurityThreatRequestStatus["APPROVED"] = "Approved";
|
|
20
|
-
SecurityThreatRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
-
SecurityThreatRequestStatus["CLOSED"] = "Closed";
|
|
22
|
-
})(SecurityThreatRequestStatus || (exports.SecurityThreatRequestStatus = SecurityThreatRequestStatus = {}));
|
|
23
|
-
var SecurityThreatPriority;
|
|
24
|
-
(function (SecurityThreatPriority) {
|
|
25
|
-
SecurityThreatPriority["P1_VERY_LOW"] = "P1-Very Low";
|
|
26
|
-
SecurityThreatPriority["P2_LOW"] = "P2\u2013Low";
|
|
27
|
-
SecurityThreatPriority["P3_MODERATE"] = "P3-Moderate";
|
|
28
|
-
SecurityThreatPriority["P4_HIGH"] = "P4-High";
|
|
29
|
-
SecurityThreatPriority["P5_VERY_HIGH"] = "P5-Very High";
|
|
30
|
-
})(SecurityThreatPriority || (exports.SecurityThreatPriority = SecurityThreatPriority = {}));
|
|
31
|
-
let SecurityThreatRequest = class SecurityThreatRequest extends BaseModel_1.BaseModel {
|
|
32
|
-
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, type_of_threat, description, contact_number, priority, status, workflow_execution_id) {
|
|
33
|
-
super();
|
|
34
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
35
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
36
|
-
this.service_id = service_id;
|
|
37
|
-
this.sub_service_id = sub_service_id;
|
|
38
|
-
this.user_id = user_id;
|
|
39
|
-
this.type_of_threat = type_of_threat;
|
|
40
|
-
this.description = description;
|
|
41
|
-
this.contact_number = contact_number;
|
|
42
|
-
this.priority = priority;
|
|
43
|
-
this.status = status;
|
|
44
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.SecurityThreatRequest = SecurityThreatRequest;
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], SecurityThreatRequest.prototype, "req_user_department_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], SecurityThreatRequest.prototype, "req_user_section_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], SecurityThreatRequest.prototype, "service_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], SecurityThreatRequest.prototype, "sub_service_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
66
|
-
__metadata("design:type", Number)
|
|
67
|
-
], SecurityThreatRequest.prototype, "user_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
70
|
-
__metadata("design:type", Number)
|
|
71
|
-
], SecurityThreatRequest.prototype, "type_of_threat", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], SecurityThreatRequest.prototype, "description", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], SecurityThreatRequest.prototype, "contact_number", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({
|
|
82
|
-
type: "enum",
|
|
83
|
-
enum: SecurityThreatPriority,
|
|
84
|
-
nullable: false,
|
|
85
|
-
}),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], SecurityThreatRequest.prototype, "priority", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({
|
|
90
|
-
type: "enum",
|
|
91
|
-
enum: SecurityThreatRequestStatus,
|
|
92
|
-
default: SecurityThreatRequestStatus.PENDING,
|
|
93
|
-
nullable: false,
|
|
94
|
-
}),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], SecurityThreatRequest.prototype, "status", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
99
|
-
__metadata("design:type", Object)
|
|
100
|
-
], SecurityThreatRequest.prototype, "workflow_execution_id", void 0);
|
|
101
|
-
exports.SecurityThreatRequest = SecurityThreatRequest = __decorate([
|
|
102
|
-
(0, typeorm_1.Entity)({ name: 'security_threat_requests' }),
|
|
103
|
-
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, Number, String, String, String, String, Object])
|
|
104
|
-
], SecurityThreatRequest);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SecurityThreatWorkFlowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending"
|
|
6
|
-
}
|
|
7
|
-
export declare class SecurityThreatWorkFlow extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
content: string;
|
|
12
|
-
status: SecurityThreatWorkFlowStatus;
|
|
13
|
-
user_id: number | null;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
constructor(request_id: number, content: string, status: SecurityThreatWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
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.SecurityThreatWorkFlow = exports.SecurityThreatWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SecurityThreatWorkFlowStatus;
|
|
16
|
-
(function (SecurityThreatWorkFlowStatus) {
|
|
17
|
-
SecurityThreatWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
SecurityThreatWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
SecurityThreatWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(SecurityThreatWorkFlowStatus || (exports.SecurityThreatWorkFlowStatus = SecurityThreatWorkFlowStatus = {}));
|
|
21
|
-
//This model is used to store the security threat workflow status and activity logs
|
|
22
|
-
let SecurityThreatWorkFlow = class SecurityThreatWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
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.user_id = user_id || null;
|
|
31
|
-
this.role_id = role_id || null;
|
|
32
|
-
this.department_id = department_id || null;
|
|
33
|
-
this.section_id = section_id || null;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.SecurityThreatWorkFlow = SecurityThreatWorkFlow;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], SecurityThreatWorkFlow.prototype, "request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], SecurityThreatWorkFlow.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], SecurityThreatWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SecurityThreatWorkFlow.prototype, "content", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityThreatWorkFlowStatus, default: SecurityThreatWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], SecurityThreatWorkFlow.prototype, "status", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], SecurityThreatWorkFlow.prototype, "user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], SecurityThreatWorkFlow.prototype, "role_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], SecurityThreatWorkFlow.prototype, "department_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], SecurityThreatWorkFlow.prototype, "section_id", void 0);
|
|
73
|
-
exports.SecurityThreatWorkFlow = SecurityThreatWorkFlow = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)({ name: 'security_threat_workflows' }),
|
|
75
|
-
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
-
], SecurityThreatWorkFlow);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { CAAServices } from './CAAServices';
|
|
3
|
-
import { CAASubServices } from './CAASubServices';
|
|
4
|
-
import { Departments } from './DepartmentsModel';
|
|
5
|
-
import { Sections } from './SectionModel';
|
|
6
|
-
export declare class ServiceType extends BaseModel {
|
|
7
|
-
name: string;
|
|
8
|
-
name_in_arabic: string;
|
|
9
|
-
service_id: number;
|
|
10
|
-
service: CAAServices;
|
|
11
|
-
sub_service_id: number;
|
|
12
|
-
sub_service: CAASubServices;
|
|
13
|
-
department_id: number | null;
|
|
14
|
-
department: Departments;
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
section: Sections;
|
|
17
|
-
description: string;
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
constructor(name: string, name_in_arabic: string, service_id: number, sub_service_id: number, description?: string, is_active?: boolean, department_id?: number | null, section_id?: number | null);
|
|
20
|
-
}
|