@platform-modules/civil-aviation-authority 2.3.128 → 2.3.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +9 -17
- package/dist/index.d.ts +4 -0
- package/dist/index.js +15 -1
- package/dist/models/CyberSecurityAuditRequestModel.d.ts +39 -0
- package/dist/models/CyberSecurityAuditRequestModel.js +130 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/RequestForVaptRequestModel.d.ts +40 -0
- package/dist/models/RequestForVaptRequestModel.js +143 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +303 -303
- package/src/index.ts +310 -304
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +116 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PerformanceCyclePeriodModel.ts +23 -23
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +36 -36
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/RequestForVaptRequestModel.ts +132 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
package/.env
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
DB_HOST=164.52.222.169
|
|
2
|
-
DB_PORT=5432
|
|
3
|
-
DB_USER=postgres_admin_user
|
|
4
|
-
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
-
DB_NAME=CAA
|
|
6
|
-
|
|
7
|
-
# DB_HOST=216.48.187.46
|
|
1
|
+
# DB_HOST=164.52.222.169
|
|
8
2
|
# DB_PORT=5432
|
|
9
|
-
# DB_USER=
|
|
10
|
-
# DB_PASS=
|
|
11
|
-
# DB_NAME=
|
|
12
|
-
|
|
3
|
+
# DB_USER=postgres_admin_user
|
|
4
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
# DB_NAME=CAA
|
|
13
6
|
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# DB_NAME=CAA
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=stevejobs
|
|
12
|
+
DB_NAME=CAA
|
package/dist/index.d.ts
CHANGED
|
@@ -193,6 +193,10 @@ export * from './models/InformationSecurityWorkflowModel';
|
|
|
193
193
|
export { InformationSecurityWorkFlowStatus, InformationSecurityWorkFlow } from './models/InformationSecurityWorkflowModel';
|
|
194
194
|
export * from './models/InformationSecurityAttachmentModel';
|
|
195
195
|
export { InformationSecurityRequestAttachment } from './models/InformationSecurityAttachmentModel';
|
|
196
|
+
export * from './models/RequestForVaptRequestModel';
|
|
197
|
+
export { RequestForVaptRequest, RequestForVaptStatus, RequestForVaptType, RequestForVaptClassification } from './models/RequestForVaptRequestModel';
|
|
198
|
+
export * from './models/CyberSecurityAuditRequestModel';
|
|
199
|
+
export { CyberSecurityAuditRequest, CyberSecurityAuditRequestStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplicationType } from './models/CyberSecurityAuditRequestModel';
|
|
196
200
|
export * from './models/JobTransferRequestModel';
|
|
197
201
|
export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
198
202
|
export * from './models/NewResourceRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.InformationSecurityRequestAttachment = exports.InformationSecurityWorkFlow = exports.InformationSecurityWorkFlowStatus = exports.InformationSecurityRequestChat = exports.InformationSecurityChatStatus = exports.InformationSecurityMessageType = exports.InformationSecurityApprovalDetails = exports.InformationSecurityApprovalStatus = exports.RequestForProjectApproval = exports.RequestForProjectApprovalStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
18
|
+
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.CyberSecurityAuditApplicationType = exports.CyberSecurityAuditClassification = exports.CyberSecurityAuditRequestStatus = exports.CyberSecurityAuditRequest = exports.RequestForVaptClassification = exports.RequestForVaptType = exports.RequestForVaptStatus = exports.RequestForVaptRequest = exports.InformationSecurityRequestAttachment = exports.InformationSecurityWorkFlow = exports.InformationSecurityWorkFlowStatus = exports.InformationSecurityRequestChat = exports.InformationSecurityChatStatus = exports.InformationSecurityMessageType = exports.InformationSecurityApprovalDetails = exports.InformationSecurityApprovalStatus = exports.RequestForProjectApproval = exports.RequestForProjectApprovalStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -290,6 +290,20 @@ Object.defineProperty(exports, "InformationSecurityWorkFlow", { enumerable: true
|
|
|
290
290
|
__exportStar(require("./models/InformationSecurityAttachmentModel"), exports);
|
|
291
291
|
var InformationSecurityAttachmentModel_1 = require("./models/InformationSecurityAttachmentModel");
|
|
292
292
|
Object.defineProperty(exports, "InformationSecurityRequestAttachment", { enumerable: true, get: function () { return InformationSecurityAttachmentModel_1.InformationSecurityRequestAttachment; } });
|
|
293
|
+
__exportStar(require("./models/RequestForVaptRequestModel"), exports);
|
|
294
|
+
var RequestForVaptRequestModel_1 = require("./models/RequestForVaptRequestModel");
|
|
295
|
+
Object.defineProperty(exports, "RequestForVaptRequest", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptRequest; } });
|
|
296
|
+
Object.defineProperty(exports, "RequestForVaptStatus", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptStatus; } });
|
|
297
|
+
Object.defineProperty(exports, "RequestForVaptType", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptType; } });
|
|
298
|
+
Object.defineProperty(exports, "RequestForVaptClassification", { enumerable: true, get: function () { return RequestForVaptRequestModel_1.RequestForVaptClassification; } });
|
|
299
|
+
__exportStar(require("./models/CyberSecurityAuditRequestModel"), exports);
|
|
300
|
+
var CyberSecurityAuditRequestModel_1 = require("./models/CyberSecurityAuditRequestModel");
|
|
301
|
+
Object.defineProperty(exports, "CyberSecurityAuditRequest", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditRequest; } });
|
|
302
|
+
Object.defineProperty(exports, "CyberSecurityAuditRequestStatus", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditRequestStatus; } });
|
|
303
|
+
Object.defineProperty(exports, "CyberSecurityAuditClassification", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditClassification; } });
|
|
304
|
+
Object.defineProperty(exports, "CyberSecurityAuditApplicationType", { enumerable: true, get: function () { return CyberSecurityAuditRequestModel_1.CyberSecurityAuditApplicationType; } });
|
|
305
|
+
// export * from './models/CyberSecurityAuditRequestModel';
|
|
306
|
+
// export {CyberSecurityAuditRequest, CyberSecurityAuditStatus, CyberSecurityAuditClassification, CyberSecurityAuditApplication} from './models/CyberSecurityAuditRequestModel';
|
|
293
307
|
// Job Transfer (Transfer from One Job to Another Job Nature) Service
|
|
294
308
|
__exportStar(require("./models/JobTransferRequestModel"), exports);
|
|
295
309
|
var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum CyberSecurityAuditRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum CyberSecurityAuditClassification {
|
|
11
|
+
NEW = "New",
|
|
12
|
+
REVIEW = "Review"
|
|
13
|
+
}
|
|
14
|
+
export declare enum CyberSecurityAuditApplicationType {
|
|
15
|
+
ISO27001 = "ISO27001",
|
|
16
|
+
ICOA_REGULATION = "ICOA Regulation",
|
|
17
|
+
NATIONAL_REGULATION_AND_CIRCULATION = "National Regulation and Circulation",
|
|
18
|
+
OTHERS = "Others"
|
|
19
|
+
}
|
|
20
|
+
export declare class CyberSecurityAuditRequest extends BaseModel {
|
|
21
|
+
req_user_department_id: number | null;
|
|
22
|
+
req_user_section_id: number | null;
|
|
23
|
+
req_user_position_id: number | null;
|
|
24
|
+
service_id: number | null;
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
user_id: number;
|
|
27
|
+
description: string | null;
|
|
28
|
+
status: CyberSecurityAuditRequestStatus;
|
|
29
|
+
reviewer_user_id: number | null;
|
|
30
|
+
assigned_to_user_id: number | null;
|
|
31
|
+
assigned_at: Date | null;
|
|
32
|
+
workflow_execution_id: string | null;
|
|
33
|
+
request_id: string | null;
|
|
34
|
+
request_classification: CyberSecurityAuditClassification;
|
|
35
|
+
application_to_be_audited: CyberSecurityAuditApplicationType;
|
|
36
|
+
application_to_be_audited_other: string | null;
|
|
37
|
+
submission_date: Date;
|
|
38
|
+
constructor(user_id: number, request_classification: CyberSecurityAuditClassification, application_to_be_audited: CyberSecurityAuditApplicationType, submission_date: Date, status?: CyberSecurityAuditRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, application_to_be_audited_other?: string | null);
|
|
39
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CyberSecurityAuditRequest = exports.CyberSecurityAuditApplicationType = exports.CyberSecurityAuditClassification = exports.CyberSecurityAuditRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var CyberSecurityAuditRequestStatus;
|
|
16
|
+
(function (CyberSecurityAuditRequestStatus) {
|
|
17
|
+
CyberSecurityAuditRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
CyberSecurityAuditRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
CyberSecurityAuditRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
CyberSecurityAuditRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
CyberSecurityAuditRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
CyberSecurityAuditRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(CyberSecurityAuditRequestStatus || (exports.CyberSecurityAuditRequestStatus = CyberSecurityAuditRequestStatus = {}));
|
|
24
|
+
var CyberSecurityAuditClassification;
|
|
25
|
+
(function (CyberSecurityAuditClassification) {
|
|
26
|
+
CyberSecurityAuditClassification["NEW"] = "New";
|
|
27
|
+
CyberSecurityAuditClassification["REVIEW"] = "Review";
|
|
28
|
+
})(CyberSecurityAuditClassification || (exports.CyberSecurityAuditClassification = CyberSecurityAuditClassification = {}));
|
|
29
|
+
var CyberSecurityAuditApplicationType;
|
|
30
|
+
(function (CyberSecurityAuditApplicationType) {
|
|
31
|
+
CyberSecurityAuditApplicationType["ISO27001"] = "ISO27001";
|
|
32
|
+
CyberSecurityAuditApplicationType["ICOA_REGULATION"] = "ICOA Regulation";
|
|
33
|
+
CyberSecurityAuditApplicationType["NATIONAL_REGULATION_AND_CIRCULATION"] = "National Regulation and Circulation";
|
|
34
|
+
CyberSecurityAuditApplicationType["OTHERS"] = "Others";
|
|
35
|
+
})(CyberSecurityAuditApplicationType || (exports.CyberSecurityAuditApplicationType = CyberSecurityAuditApplicationType = {}));
|
|
36
|
+
let CyberSecurityAuditRequest = class CyberSecurityAuditRequest extends BaseModel_1.BaseModel {
|
|
37
|
+
constructor(user_id, request_classification, application_to_be_audited, submission_date, status = CyberSecurityAuditRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, application_to_be_audited_other) {
|
|
38
|
+
super();
|
|
39
|
+
this.user_id = user_id;
|
|
40
|
+
this.request_classification = request_classification;
|
|
41
|
+
this.application_to_be_audited = application_to_be_audited;
|
|
42
|
+
this.submission_date = submission_date;
|
|
43
|
+
this.status = status;
|
|
44
|
+
this.service_id = service_id || null;
|
|
45
|
+
this.sub_service_id = sub_service_id || null;
|
|
46
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
47
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
48
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
49
|
+
this.description = description || null;
|
|
50
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
51
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
52
|
+
this.assigned_at = assigned_at || null;
|
|
53
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
54
|
+
this.request_id = request_id || null;
|
|
55
|
+
this.application_to_be_audited_other = application_to_be_audited_other || null;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], CyberSecurityAuditRequest.prototype, "req_user_department_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], CyberSecurityAuditRequest.prototype, "req_user_section_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], CyberSecurityAuditRequest.prototype, "req_user_position_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], CyberSecurityAuditRequest.prototype, "service_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], CyberSecurityAuditRequest.prototype, "sub_service_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], CyberSecurityAuditRequest.prototype, "user_id", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CyberSecurityAuditRequest.prototype, "description", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditRequestStatus, default: CyberSecurityAuditRequestStatus.PENDING, nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CyberSecurityAuditRequest.prototype, "status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], CyberSecurityAuditRequest.prototype, "reviewer_user_id", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], CyberSecurityAuditRequest.prototype, "assigned_to_user_id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], CyberSecurityAuditRequest.prototype, "assigned_at", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], CyberSecurityAuditRequest.prototype, "workflow_execution_id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], CyberSecurityAuditRequest.prototype, "request_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditClassification, nullable: false }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], CyberSecurityAuditRequest.prototype, "request_classification", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: "enum", enum: CyberSecurityAuditApplicationType, nullable: false }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], CyberSecurityAuditRequest.prototype, "application_to_be_audited", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], CyberSecurityAuditRequest.prototype, "application_to_be_audited_other", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
125
|
+
__metadata("design:type", Date)
|
|
126
|
+
], CyberSecurityAuditRequest.prototype, "submission_date", void 0);
|
|
127
|
+
exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest = __decorate([
|
|
128
|
+
(0, typeorm_1.Entity)({ name: "cyber_security_audit_requests" }),
|
|
129
|
+
__metadata("design:paramtypes", [Number, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
130
|
+
], CyberSecurityAuditRequest);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ITApprovalSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.level = level;
|
|
19
|
+
this.approval_role_id = approval_role_id;
|
|
20
|
+
this.workflow_id = workflow_id;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
+
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
+
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
+
], ITApprovalSettings);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesMuscat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesMuscat);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesSalalah = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesSalalah);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum RequestForVaptStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum RequestForVaptType {
|
|
11
|
+
VAPT = "VAPT",
|
|
12
|
+
INFRASTRUCTURE_REVIEW = "Infrastructure Review"
|
|
13
|
+
}
|
|
14
|
+
export declare enum RequestForVaptClassification {
|
|
15
|
+
NEW = "New",
|
|
16
|
+
REVIEW = "Review"
|
|
17
|
+
}
|
|
18
|
+
export declare class RequestForVaptRequest extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
req_user_position_id: number | null;
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
user_id: number;
|
|
25
|
+
remarks: string | null;
|
|
26
|
+
status: RequestForVaptStatus;
|
|
27
|
+
reviewer_user_id: number | null;
|
|
28
|
+
assigned_to_user_id: number | null;
|
|
29
|
+
assigned_at: Date | null;
|
|
30
|
+
workflow_execution_id: string | null;
|
|
31
|
+
request_id: string | null;
|
|
32
|
+
type_of_request: RequestForVaptType;
|
|
33
|
+
request_classification: RequestForVaptClassification;
|
|
34
|
+
application_name: string;
|
|
35
|
+
link: string | null;
|
|
36
|
+
ip_address: string | null;
|
|
37
|
+
application_url: string | null;
|
|
38
|
+
submission_date: Date;
|
|
39
|
+
constructor(user_id: number, type_of_request: RequestForVaptType, request_classification: RequestForVaptClassification, application_name: string, submission_date: Date, status?: RequestForVaptStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, link?: string | null, ip_address?: string | null, application_url?: string | null);
|
|
40
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RequestForVaptRequest = exports.RequestForVaptClassification = exports.RequestForVaptType = exports.RequestForVaptStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RequestForVaptStatus;
|
|
16
|
+
(function (RequestForVaptStatus) {
|
|
17
|
+
RequestForVaptStatus["PENDING"] = "Pending";
|
|
18
|
+
RequestForVaptStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
RequestForVaptStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
RequestForVaptStatus["COMPLETED"] = "Completed";
|
|
21
|
+
RequestForVaptStatus["APPROVED"] = "Approved";
|
|
22
|
+
RequestForVaptStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(RequestForVaptStatus || (exports.RequestForVaptStatus = RequestForVaptStatus = {}));
|
|
24
|
+
var RequestForVaptType;
|
|
25
|
+
(function (RequestForVaptType) {
|
|
26
|
+
RequestForVaptType["VAPT"] = "VAPT";
|
|
27
|
+
RequestForVaptType["INFRASTRUCTURE_REVIEW"] = "Infrastructure Review";
|
|
28
|
+
})(RequestForVaptType || (exports.RequestForVaptType = RequestForVaptType = {}));
|
|
29
|
+
var RequestForVaptClassification;
|
|
30
|
+
(function (RequestForVaptClassification) {
|
|
31
|
+
RequestForVaptClassification["NEW"] = "New";
|
|
32
|
+
RequestForVaptClassification["REVIEW"] = "Review";
|
|
33
|
+
})(RequestForVaptClassification || (exports.RequestForVaptClassification = RequestForVaptClassification = {}));
|
|
34
|
+
let RequestForVaptRequest = class RequestForVaptRequest extends BaseModel_1.BaseModel {
|
|
35
|
+
constructor(user_id, type_of_request, request_classification, application_name, submission_date, status = RequestForVaptStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, link, ip_address, application_url) {
|
|
36
|
+
super();
|
|
37
|
+
this.user_id = user_id;
|
|
38
|
+
this.type_of_request = type_of_request;
|
|
39
|
+
this.request_classification = request_classification;
|
|
40
|
+
this.application_name = application_name;
|
|
41
|
+
this.submission_date = submission_date;
|
|
42
|
+
this.status = status;
|
|
43
|
+
this.service_id = service_id || null;
|
|
44
|
+
this.sub_service_id = sub_service_id || null;
|
|
45
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
46
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
47
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
48
|
+
this.remarks = remarks || null;
|
|
49
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
50
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
51
|
+
this.assigned_at = assigned_at || null;
|
|
52
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
53
|
+
this.request_id = request_id || null;
|
|
54
|
+
this.link = link || null;
|
|
55
|
+
this.ip_address = ip_address || null;
|
|
56
|
+
this.application_url = application_url || null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
exports.RequestForVaptRequest = RequestForVaptRequest;
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], RequestForVaptRequest.prototype, "req_user_department_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], RequestForVaptRequest.prototype, "req_user_section_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], RequestForVaptRequest.prototype, "req_user_position_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], RequestForVaptRequest.prototype, "service_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], RequestForVaptRequest.prototype, "sub_service_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], RequestForVaptRequest.prototype, "user_id", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], RequestForVaptRequest.prototype, "remarks", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptStatus, default: RequestForVaptStatus.PENDING, nullable: false }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], RequestForVaptRequest.prototype, "status", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], RequestForVaptRequest.prototype, "reviewer_user_id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], RequestForVaptRequest.prototype, "assigned_to_user_id", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], RequestForVaptRequest.prototype, "assigned_at", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], RequestForVaptRequest.prototype, "workflow_execution_id", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], RequestForVaptRequest.prototype, "request_id", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptType, nullable: false }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], RequestForVaptRequest.prototype, "type_of_request", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RequestForVaptClassification, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], RequestForVaptRequest.prototype, "request_classification", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], RequestForVaptRequest.prototype, "application_name", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], RequestForVaptRequest.prototype, "link", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], RequestForVaptRequest.prototype, "ip_address", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], RequestForVaptRequest.prototype, "application_url", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
138
|
+
__metadata("design:type", Date)
|
|
139
|
+
], RequestForVaptRequest.prototype, "submission_date", void 0);
|
|
140
|
+
exports.RequestForVaptRequest = RequestForVaptRequest = __decorate([
|
|
141
|
+
(0, typeorm_1.Entity)({ name: "request_for_vapt_requests" }),
|
|
142
|
+
__metadata("design:paramtypes", [Number, String, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
143
|
+
], RequestForVaptRequest);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Workflows extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
request_for: string;
|
|
7
|
+
levels: number;
|
|
8
|
+
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { Column, Entity, Unique } from "typeorm";
|
|
3
|
+
// import { BaseModel } from './BaseModel';
|
|
4
|
+
// @Entity({ name: 'workflows' })
|
|
5
|
+
// @Unique(['service_id', 'sub_service_id', 'request_for'])
|
|
6
|
+
// export class Workflows extends BaseModel {
|
|
7
|
+
// @Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
|
+
// name: string;
|
|
9
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
10
|
+
// service_id: number;
|
|
11
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
12
|
+
// sub_service_id: number;
|
|
13
|
+
// @Column({ type: 'varchar', length: 20, nullable: false })
|
|
14
|
+
// request_for: string; // 'Self' | 'Behalf of' | 'Internal'
|
|
15
|
+
// @Column({ type: 'int', nullable: false })
|
|
16
|
+
// levels: number;
|
|
17
|
+
// constructor(
|
|
18
|
+
// name: string,
|
|
19
|
+
// service_id: number,
|
|
20
|
+
// sub_service_id: number,
|
|
21
|
+
// request_for: string,
|
|
22
|
+
// levels: number,
|
|
23
|
+
// ) {
|
|
24
|
+
// super();
|
|
25
|
+
// this.name = name;
|
|
26
|
+
// this.service_id = service_id;
|
|
27
|
+
// this.sub_service_id = sub_service_id;
|
|
28
|
+
// this.request_for = request_for;
|
|
29
|
+
// this.levels = levels;
|
|
30
|
+
// }
|
|
31
|
+
// }
|