@platform-modules/civil-aviation-authority 2.1.40 → 2.2.21
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/data-source.d.ts +4 -0
- package/dist/data-source.js +116 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +65 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/HotelApprovalModel.d.ts +22 -0
- package/dist/models/HotelApprovalModel.js +91 -0
- package/dist/models/HotelAttachedModel.d.ts +14 -0
- package/dist/models/HotelAttachedModel.js +74 -0
- package/dist/models/HotelChatModel.d.ts +17 -0
- package/dist/models/HotelChatModel.js +67 -0
- package/dist/models/HotelWorkFlowModel.d.ts +14 -0
- package/dist/models/HotelWorkFlowModel.js +56 -0
- package/dist/models/HotelreservationModal.d.ts +30 -0
- package/dist/models/HotelreservationModal.js +119 -0
- package/dist/models/HotelreservationModel.d.ts +45 -0
- package/dist/models/HotelreservationModel.js +177 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +12 -0
- package/dist/models/ITRequestChatModel.js +56 -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/ItApprovalsModel.d.ts +21 -0
- package/dist/models/ItApprovalsModel.js +90 -0
- package/dist/models/ItWorkflowModel.d.ts +15 -0
- package/dist/models/ItWorkflowModel.js +61 -0
- package/dist/models/LogisticsApprovalModel.d.ts +22 -0
- package/dist/models/LogisticsApprovalModel.js +91 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +17 -0
- package/dist/models/LogisticsChatModel.js +67 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +42 -0
- package/dist/models/LogisticsForeignVehicleModel.js +153 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +57 -0
- package/dist/models/LogisticsModel.js +195 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +14 -0
- package/dist/models/LogisticsWorkflowModel.js +56 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/ServiceTypeModel.d.ts +14 -0
- package/dist/models/ServiceTypeModel.js +66 -0
- package/dist/models/VpnApprovalModel.d.ts +21 -0
- package/dist/models/VpnApprovalModel.js +87 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +16 -0
- package/dist/models/VpnRequestChatModel.js +62 -0
- package/dist/models/VpnRequestModel.d.ts +70 -0
- package/dist/models/VpnRequestModel.js +175 -0
- package/dist/models/VpnWorkflowModel.d.ts +13 -0
- package/dist/models/VpnWorkflowModel.js +55 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +1 -1
- package/src/data-source.ts +11 -1
- package/src/index.ts +5 -0
- package/src/models/HotelApprovalModel.ts +79 -0
- package/src/models/HotelAttachedModel.ts +64 -0
- package/src/models/HotelChatModel.ts +55 -0
- package/src/models/HotelWorkFlowModel.ts +42 -0
- package/src/models/HotelreservationModel.ts +166 -0
- package/src/models/ServiceTypeModel.ts +1 -21
|
@@ -0,0 +1,44 @@
|
|
|
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.PortalFeedback = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const feedbackModel_1 = require("./feedbackModel");
|
|
16
|
+
let PortalFeedback = class PortalFeedback extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(comment, rating, user_Id) {
|
|
18
|
+
super();
|
|
19
|
+
this.comment = comment,
|
|
20
|
+
this.rating = rating,
|
|
21
|
+
this.user_Id = user_Id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.PortalFeedback = PortalFeedback;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PortalFeedback.prototype, "comment", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({
|
|
31
|
+
type: "enum",
|
|
32
|
+
enum: feedbackModel_1.Rating,
|
|
33
|
+
nullable: true,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], PortalFeedback.prototype, "rating", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], PortalFeedback.prototype, "user_Id", void 0);
|
|
41
|
+
exports.PortalFeedback = PortalFeedback = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'portal_feedback' }),
|
|
43
|
+
__metadata("design:paramtypes", [String, Number, Number])
|
|
44
|
+
], PortalFeedback);
|
|
@@ -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.Position = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let Position = class Position extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, is_deleted) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.is_deleted = is_deleted;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.Position = Position;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Position.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], Position.prototype, "is_deleted", void 0);
|
|
31
|
+
exports.Position = Position = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'position' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, Boolean])
|
|
34
|
+
], Position);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Sections extends BaseModel {
|
|
3
|
+
section_name: string;
|
|
4
|
+
section_code: string;
|
|
5
|
+
section_description: string;
|
|
6
|
+
department_id: number;
|
|
7
|
+
constructor(section_name: string, section_code: string, section_description: string, department_id: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.Sections = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let Sections = class Sections extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(section_name, section_code, section_description, department_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.section_name = section_name;
|
|
19
|
+
this.section_code = section_code;
|
|
20
|
+
this.section_description = section_description;
|
|
21
|
+
this.department_id = department_id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.Sections = Sections;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Sections.prototype, "section_name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Sections.prototype, "section_code", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Sections.prototype, "section_description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Sections.prototype, "department_id", void 0);
|
|
41
|
+
exports.Sections = Sections = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'sections' }),
|
|
43
|
+
__metadata("design:paramtypes", [String, String, String, Number])
|
|
44
|
+
], Sections);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { CAAServices } from './CAAServices';
|
|
3
|
+
import { CAASubServices } from './CAASubServices';
|
|
4
|
+
export declare class ServiceType extends BaseModel {
|
|
5
|
+
name: string;
|
|
6
|
+
name_in_arabic: string;
|
|
7
|
+
service_id: number;
|
|
8
|
+
service: CAAServices;
|
|
9
|
+
sub_service_id: number;
|
|
10
|
+
sub_service: CAASubServices;
|
|
11
|
+
description: string;
|
|
12
|
+
is_active: boolean;
|
|
13
|
+
constructor(name: string, name_in_arabic: string, service_id: number, sub_service_id: number, description?: string, is_active?: boolean);
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.ServiceType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const CAAServices_1 = require("./CAAServices");
|
|
16
|
+
const CAASubServices_1 = require("./CAASubServices");
|
|
17
|
+
let ServiceType = class ServiceType extends BaseModel_1.BaseModel {
|
|
18
|
+
constructor(name, name_in_arabic, service_id, sub_service_id, description, is_active) {
|
|
19
|
+
super();
|
|
20
|
+
this.name = name;
|
|
21
|
+
this.name_in_arabic = name_in_arabic;
|
|
22
|
+
this.service_id = service_id;
|
|
23
|
+
this.sub_service_id = sub_service_id;
|
|
24
|
+
this.description = description || '';
|
|
25
|
+
this.is_active = is_active !== undefined ? is_active : true;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.ServiceType = ServiceType;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ServiceType.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ServiceType.prototype, "name_in_arabic", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ServiceType.prototype, "service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => CAAServices_1.CAAServices),
|
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: 'service_id' }),
|
|
44
|
+
__metadata("design:type", CAAServices_1.CAAServices)
|
|
45
|
+
], ServiceType.prototype, "service", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ServiceType.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => CAASubServices_1.CAASubServices),
|
|
52
|
+
(0, typeorm_1.JoinColumn)({ name: 'sub_service_id' }),
|
|
53
|
+
__metadata("design:type", CAASubServices_1.CAASubServices)
|
|
54
|
+
], ServiceType.prototype, "sub_service", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ServiceType.prototype, "description", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], ServiceType.prototype, "is_active", void 0);
|
|
63
|
+
exports.ServiceType = ServiceType = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'service_types' }),
|
|
65
|
+
__metadata("design:paramtypes", [String, String, Number, Number, String, Boolean])
|
|
66
|
+
], ServiceType);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VpnApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class VpnApprovalDetails extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
level: number;
|
|
12
|
+
approver_user_id: number | null;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
comment: string;
|
|
18
|
+
approval_status: VpnApprovalStatus;
|
|
19
|
+
is_manager: boolean;
|
|
20
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, is_manager?: boolean);
|
|
21
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.VpnApprovalDetails = exports.VpnApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VpnApprovalStatus;
|
|
16
|
+
(function (VpnApprovalStatus) {
|
|
17
|
+
VpnApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
VpnApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
VpnApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
VpnApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
VpnApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(VpnApprovalStatus || (exports.VpnApprovalStatus = VpnApprovalStatus = {}));
|
|
23
|
+
let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by, is_manager) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.approver_user_id = approver_user_id;
|
|
28
|
+
this.approver_role_id = approver_role_id;
|
|
29
|
+
this.comment = comment;
|
|
30
|
+
this.approval_status = approval_status;
|
|
31
|
+
this.level = level;
|
|
32
|
+
this.department_id = department_id || null;
|
|
33
|
+
this.section_id = section_id || null;
|
|
34
|
+
this.approved_by = approved_by || null;
|
|
35
|
+
this.is_manager = is_manager ?? false;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.VpnApprovalDetails = VpnApprovalDetails;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], VpnApprovalDetails.prototype, "request_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], VpnApprovalDetails.prototype, "level", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], VpnApprovalDetails.prototype, "approver_user_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], VpnApprovalDetails.prototype, "approver_role_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], VpnApprovalDetails.prototype, "department_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], VpnApprovalDetails.prototype, "section_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], VpnApprovalDetails.prototype, "approved_by", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], VpnApprovalDetails.prototype, "comment", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: VpnApprovalStatus,
|
|
75
|
+
default: VpnApprovalStatus.PENDING,
|
|
76
|
+
nullable: false
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], VpnApprovalDetails.prototype, "approval_status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], VpnApprovalDetails.prototype, "is_manager", void 0);
|
|
84
|
+
exports.VpnApprovalDetails = VpnApprovalDetails = __decorate([
|
|
85
|
+
(0, typeorm_1.Entity)({ name: "vpn_approvals" }),
|
|
86
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Boolean])
|
|
87
|
+
], VpnApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class VpnRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
uploaded_by: number;
|
|
5
|
+
file_url: string;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_type: string;
|
|
8
|
+
file_size: number | null;
|
|
9
|
+
description: string;
|
|
10
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, description?: string);
|
|
11
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.VpnRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let VpnRequestAttachment = class VpnRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, description) {
|
|
17
|
+
super();
|
|
18
|
+
this.request_id = request_id;
|
|
19
|
+
this.uploaded_by = uploaded_by;
|
|
20
|
+
this.file_url = file_url;
|
|
21
|
+
this.file_name = file_name || "";
|
|
22
|
+
this.file_type = file_type || "";
|
|
23
|
+
this.file_size = file_size || null;
|
|
24
|
+
this.description = description || "";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.VpnRequestAttachment = VpnRequestAttachment;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], VpnRequestAttachment.prototype, "request_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], VpnRequestAttachment.prototype, "uploaded_by", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], VpnRequestAttachment.prototype, "file_url", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VpnRequestAttachment.prototype, "file_name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], VpnRequestAttachment.prototype, "file_type", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], VpnRequestAttachment.prototype, "file_size", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], VpnRequestAttachment.prototype, "description", void 0);
|
|
56
|
+
exports.VpnRequestAttachment = VpnRequestAttachment = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: "vpn_request_attachments" }),
|
|
58
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, String])
|
|
59
|
+
], VpnRequestAttachment);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VpnMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class VpnRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
user_id: number;
|
|
12
|
+
message: string;
|
|
13
|
+
messageType: VpnMessageType;
|
|
14
|
+
is_internal: boolean;
|
|
15
|
+
constructor(request_id: number, user_id: number, message: string, messageType?: VpnMessageType, is_internal?: boolean);
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.VpnRequestChat = exports.VpnMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VpnMessageType;
|
|
16
|
+
(function (VpnMessageType) {
|
|
17
|
+
VpnMessageType["TEXT"] = "text";
|
|
18
|
+
VpnMessageType["IMAGE"] = "image";
|
|
19
|
+
VpnMessageType["VIDEO"] = "video";
|
|
20
|
+
VpnMessageType["FILE"] = "file";
|
|
21
|
+
VpnMessageType["LINK"] = "link";
|
|
22
|
+
})(VpnMessageType || (exports.VpnMessageType = VpnMessageType = {}));
|
|
23
|
+
let VpnRequestChat = class VpnRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, user_id, message, messageType, is_internal) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.user_id = user_id;
|
|
28
|
+
this.message = message;
|
|
29
|
+
this.messageType = messageType || VpnMessageType.TEXT;
|
|
30
|
+
this.is_internal = is_internal || false;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.VpnRequestChat = VpnRequestChat;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], VpnRequestChat.prototype, "request_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], VpnRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], VpnRequestChat.prototype, "message", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: VpnMessageType,
|
|
50
|
+
default: VpnMessageType.TEXT,
|
|
51
|
+
nullable: false
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], VpnRequestChat.prototype, "messageType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], VpnRequestChat.prototype, "is_internal", void 0);
|
|
59
|
+
exports.VpnRequestChat = VpnRequestChat = __decorate([
|
|
60
|
+
(0, typeorm_1.Entity)({ name: "vpn_request_chat" }),
|
|
61
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Boolean])
|
|
62
|
+
], VpnRequestChat);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VpnRequestType {
|
|
3
|
+
CAA_STAFF = "CAA_STAFF",
|
|
4
|
+
CONTRACTOR = "CONTRACTOR"
|
|
5
|
+
}
|
|
6
|
+
export declare enum VpnReasonForRequest {
|
|
7
|
+
REMOTE_WORK = "REMOTE_WORK",
|
|
8
|
+
ACCESS_INTERNAL_SYSTEMS = "ACCESS_INTERNAL_SYSTEMS",
|
|
9
|
+
THIRD_PARTY_VENDOR = "THIRD_PARTY_VENDOR",
|
|
10
|
+
PROJECT_SPECIFIC = "PROJECT_SPECIFIC",
|
|
11
|
+
RENEWAL = "RENEWAL"
|
|
12
|
+
}
|
|
13
|
+
export declare enum VpnSystemsAccess {
|
|
14
|
+
INTERNAL_DATABASES = "INTERNAL_DATABASES",
|
|
15
|
+
FILE_SERVERS = "FILE_SERVERS",
|
|
16
|
+
SHARED_SERVERS = "SHARED_SERVERS",
|
|
17
|
+
UFUQ = "UFUQ",
|
|
18
|
+
ERP = "ERP",
|
|
19
|
+
OTHERS = "OTHERS"
|
|
20
|
+
}
|
|
21
|
+
export declare enum VpnSourceIpType {
|
|
22
|
+
PRIVATE = "PRIVATE",
|
|
23
|
+
PUBLIC = "PUBLIC"
|
|
24
|
+
}
|
|
25
|
+
export declare enum VpnAccessType {
|
|
26
|
+
ONE_TIME = "ONE_TIME",
|
|
27
|
+
PERMANENT = "PERMANENT"
|
|
28
|
+
}
|
|
29
|
+
export declare enum VpnDeviceType {
|
|
30
|
+
CAA_LAPTOP = "CAA_LAPTOP",
|
|
31
|
+
PERSONAL_DEVICE = "PERSONAL_DEVICE",
|
|
32
|
+
MOBILE_DEVICE = "MOBILE_DEVICE"
|
|
33
|
+
}
|
|
34
|
+
export declare enum VpnRequestStatus {
|
|
35
|
+
PENDING = "PENDING",
|
|
36
|
+
ASSIGNED = "ASSIGNED",
|
|
37
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
38
|
+
COMPLETED = "COMPLETED",
|
|
39
|
+
APPROVED = "APPROVED",
|
|
40
|
+
REJECTED = "REJECTED"
|
|
41
|
+
}
|
|
42
|
+
export declare class VpnRequest extends BaseModel {
|
|
43
|
+
job_title: string;
|
|
44
|
+
req_user_department_id: number | null;
|
|
45
|
+
req_user_section_id: number | null;
|
|
46
|
+
req_user_position_id: number | null;
|
|
47
|
+
service_id: number | null;
|
|
48
|
+
sub_service_id: number | null;
|
|
49
|
+
user_id: number;
|
|
50
|
+
request_for: VpnRequestType;
|
|
51
|
+
employee_identifier: string;
|
|
52
|
+
employee_email: string;
|
|
53
|
+
phone_number: string;
|
|
54
|
+
reason_for_request: VpnReasonForRequest[];
|
|
55
|
+
description: string | null;
|
|
56
|
+
systems_to_access: VpnSystemsAccess[];
|
|
57
|
+
source_ip_type: VpnSourceIpType | null;
|
|
58
|
+
source_ip_address: string | null;
|
|
59
|
+
country: string;
|
|
60
|
+
start_date: Date;
|
|
61
|
+
end_date: Date | null;
|
|
62
|
+
access_type: VpnAccessType;
|
|
63
|
+
device_type: VpnDeviceType[];
|
|
64
|
+
acknowledgement: boolean;
|
|
65
|
+
status: VpnRequestStatus;
|
|
66
|
+
reviewer_user_id: number | null;
|
|
67
|
+
assigned_to_user_id: number | null;
|
|
68
|
+
assigned_at: Date | null;
|
|
69
|
+
workflow_execution_id: string | null;
|
|
70
|
+
}
|