@platform-modules/civil-aviation-authority 2.2.300 → 2.2.301
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.js +11 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/AccessCardApprovalModel.d.ts +2 -1
- package/dist/models/AccessCardApprovalModel.js +7 -2
- package/dist/models/AccessCardRequestModel.js +1 -1
- package/dist/models/AirportEntryPermitApprovalModel.d.ts +25 -0
- package/dist/models/AirportEntryPermitApprovalModel.js +102 -0
- package/dist/models/AirportEntryPermitAttachmentModel.d.ts +14 -0
- package/dist/models/AirportEntryPermitAttachmentModel.js +74 -0
- package/dist/models/AirportEntryPermitChatModel.d.ts +17 -0
- package/dist/models/AirportEntryPermitChatModel.js +67 -0
- package/dist/models/AirportEntryPermitModel.d.ts +79 -0
- package/dist/models/AirportEntryPermitModel.js +254 -0
- package/dist/models/AirportEntryPermitWorkflowModel.d.ts +18 -0
- package/dist/models/AirportEntryPermitWorkflowModel.js +75 -0
- package/dist/models/HotelApprovalModel.d.ts +2 -1
- package/dist/models/HotelApprovalModel.js +7 -2
- package/dist/models/HotelreservationModel.d.ts +2 -2
- package/dist/models/HotelreservationModel.js +5 -5
- package/dist/models/ItApprovalsModel.d.ts +2 -1
- package/dist/models/ItApprovalsModel.js +7 -2
- package/dist/models/LogisticsApprovalModel.d.ts +2 -1
- package/dist/models/LogisticsApprovalModel.js +7 -2
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +3 -1
- package/dist/models/SecurityAwarenessApprovalModel.js +12 -2
- package/dist/models/SecurityThreatApprovalModel.d.ts +2 -1
- package/dist/models/SecurityThreatApprovalModel.js +7 -2
- package/dist/models/SecurityThreatRequestModel.d.ts +1 -1
- package/dist/models/SecurityThreatRequestModel.js +2 -2
- package/dist/models/ServiceTypeModel.d.ts +2 -2
- package/dist/models/ServiceTypeModel.js +8 -8
- package/dist/models/VpnApprovalModel.d.ts +1 -0
- package/dist/models/VpnApprovalModel.js +4 -0
- package/package.json +1 -1
package/dist/data-source.js
CHANGED
|
@@ -69,6 +69,11 @@ const SecurityAwarenessApprovalModel_1 = require("./models/SecurityAwarenessAppr
|
|
|
69
69
|
const SecurityAwarenessAttachmentModel_1 = require("./models/SecurityAwarenessAttachmentModel");
|
|
70
70
|
const SecurityAwarenessChatModel_1 = require("./models/SecurityAwarenessChatModel");
|
|
71
71
|
const SecurityAwarenessWorkflowModel_1 = require("./models/SecurityAwarenessWorkflowModel");
|
|
72
|
+
const AirportEntryPermitModel_1 = require("./models/AirportEntryPermitModel");
|
|
73
|
+
const AirportEntryPermitApprovalModel_1 = require("./models/AirportEntryPermitApprovalModel");
|
|
74
|
+
const AirportEntryPermitWorkflowModel_1 = require("./models/AirportEntryPermitWorkflowModel");
|
|
75
|
+
const AirportEntryPermitChatModel_1 = require("./models/AirportEntryPermitChatModel");
|
|
76
|
+
const AirportEntryPermitAttachmentModel_1 = require("./models/AirportEntryPermitAttachmentModel");
|
|
72
77
|
const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
73
78
|
const GroupModel_1 = require("./models/GroupModel");
|
|
74
79
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
@@ -145,6 +150,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
145
150
|
SecurityAwarenessChatModel_1.SecurityAwarenessChat,
|
|
146
151
|
SecurityAwarenessWorkflowModel_1.SecurityAwarenessWorkFlow,
|
|
147
152
|
GroupNamesModel_1.GroupNames,
|
|
148
|
-
GroupModel_1.Group
|
|
153
|
+
GroupModel_1.Group,
|
|
154
|
+
AirportEntryPermitModel_1.AirportEntryPermit,
|
|
155
|
+
AirportEntryPermitApprovalModel_1.AirportEntryPermitApproval,
|
|
156
|
+
AirportEntryPermitWorkflowModel_1.AirportEntryPermitWorkFlow,
|
|
157
|
+
AirportEntryPermitChatModel_1.AirportEntryPermitChat,
|
|
158
|
+
AirportEntryPermitAttachmentModel_1.AirportEntryPermitAttachment
|
|
149
159
|
],
|
|
150
160
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -58,5 +58,10 @@ export * from './models/SecurityAwarenessApprovalModel';
|
|
|
58
58
|
export * from './models/SecurityAwarenessAttachmentModel';
|
|
59
59
|
export * from './models/SecurityAwarenessChatModel';
|
|
60
60
|
export * from './models/SecurityAwarenessWorkflowModel';
|
|
61
|
+
export * from './models/AirportEntryPermitModel';
|
|
62
|
+
export * from './models/AirportEntryPermitApprovalModel';
|
|
63
|
+
export * from './models/AirportEntryPermitWorkflowModel';
|
|
64
|
+
export * from './models/AirportEntryPermitChatModel';
|
|
65
|
+
export * from './models/AirportEntryPermitAttachmentModel';
|
|
61
66
|
export * from './models/GroupNamesModel';
|
|
62
67
|
export * from './models/GroupModel';
|
package/dist/index.js
CHANGED
|
@@ -78,5 +78,10 @@ __exportStar(require("./models/SecurityAwarenessApprovalModel"), exports);
|
|
|
78
78
|
__exportStar(require("./models/SecurityAwarenessAttachmentModel"), exports);
|
|
79
79
|
__exportStar(require("./models/SecurityAwarenessChatModel"), exports);
|
|
80
80
|
__exportStar(require("./models/SecurityAwarenessWorkflowModel"), exports);
|
|
81
|
+
__exportStar(require("./models/AirportEntryPermitModel"), exports);
|
|
82
|
+
__exportStar(require("./models/AirportEntryPermitApprovalModel"), exports);
|
|
83
|
+
__exportStar(require("./models/AirportEntryPermitWorkflowModel"), exports);
|
|
84
|
+
__exportStar(require("./models/AirportEntryPermitChatModel"), exports);
|
|
85
|
+
__exportStar(require("./models/AirportEntryPermitAttachmentModel"), exports);
|
|
81
86
|
__exportStar(require("./models/GroupNamesModel"), exports);
|
|
82
87
|
__exportStar(require("./models/GroupModel"), exports);
|
|
@@ -18,5 +18,6 @@ export declare class AccessCardApproval extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: AccessCardApprovalStatus;
|
|
21
|
-
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: AccessCardApprovalStatus, service_id?: number, sub_service_id?: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_allowed?: boolean);
|
|
22
23
|
}
|
|
@@ -20,7 +20,7 @@ var AccessCardApprovalStatus;
|
|
|
20
20
|
AccessCardApprovalStatus["REJECTED"] = "Rejected";
|
|
21
21
|
})(AccessCardApprovalStatus || (exports.AccessCardApprovalStatus = AccessCardApprovalStatus = {}));
|
|
22
22
|
let AccessCardApproval = class AccessCardApproval extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, level, comment, approval_status, service_id, sub_service_id, department_id, section_id, approver_user_id, delegate_user_id, approved_by) {
|
|
23
|
+
constructor(request_id, approver_role_id, level, comment, approval_status, service_id, sub_service_id, department_id, section_id, approver_user_id, delegate_user_id, approved_by, is_allowed) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.service_id = service_id ?? null;
|
|
@@ -34,6 +34,7 @@ let AccessCardApproval = class AccessCardApproval extends BaseModel_1.BaseModel
|
|
|
34
34
|
this.approved_by = approved_by ?? null;
|
|
35
35
|
this.comment = comment;
|
|
36
36
|
this.approval_status = approval_status;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
exports.AccessCardApproval = AccessCardApproval;
|
|
@@ -90,7 +91,11 @@ __decorate([
|
|
|
90
91
|
}),
|
|
91
92
|
__metadata("design:type", String)
|
|
92
93
|
], AccessCardApproval.prototype, "approval_status", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], AccessCardApproval.prototype, "is_allowed", void 0);
|
|
93
98
|
exports.AccessCardApproval = AccessCardApproval = __decorate([
|
|
94
99
|
(0, typeorm_1.Entity)({ name: "access_card_approvals" }),
|
|
95
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object])
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object, Boolean])
|
|
96
101
|
], AccessCardApproval);
|
|
@@ -126,7 +126,7 @@ __decorate([
|
|
|
126
126
|
__metadata("design:type", String)
|
|
127
127
|
], AccessCardRequest.prototype, "reason", void 0);
|
|
128
128
|
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)({ type: "date", nullable:
|
|
129
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
130
130
|
__metadata("design:type", Date)
|
|
131
131
|
], AccessCardRequest.prototype, "request_date", void 0);
|
|
132
132
|
__decorate([
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AirportEntryPermitApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
RFC = "Request For Change"
|
|
8
|
+
}
|
|
9
|
+
export declare class AirportEntryPermitApproval 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: AirportEntryPermitApprovalStatus;
|
|
22
|
+
is_manager: boolean | null;
|
|
23
|
+
is_allowed: boolean;
|
|
24
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: AirportEntryPermitApprovalStatus, level: number, is_manager?: boolean | null, 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, is_allowed?: boolean);
|
|
25
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.AirportEntryPermitApproval = exports.AirportEntryPermitApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AirportEntryPermitApprovalStatus;
|
|
16
|
+
(function (AirportEntryPermitApprovalStatus) {
|
|
17
|
+
AirportEntryPermitApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AirportEntryPermitApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AirportEntryPermitApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AirportEntryPermitApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
AirportEntryPermitApprovalStatus["RFC"] = "Request For Change";
|
|
22
|
+
})(AirportEntryPermitApprovalStatus || (exports.AirportEntryPermitApprovalStatus = AirportEntryPermitApprovalStatus = {}));
|
|
23
|
+
let AirportEntryPermitApproval = class AirportEntryPermitApproval extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, approver_role_id, comment, approval_status, level, is_manager = null, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id, is_allowed) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.service_id = service_id || null;
|
|
28
|
+
this.sub_service_id = sub_service_id || null;
|
|
29
|
+
this.approver_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
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.AirportEntryPermitApproval = AirportEntryPermitApproval;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], AirportEntryPermitApproval.prototype, "request_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AirportEntryPermitApproval.prototype, "service_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], AirportEntryPermitApproval.prototype, "sub_service_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], AirportEntryPermitApproval.prototype, "level", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], AirportEntryPermitApproval.prototype, "approver_role_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], AirportEntryPermitApproval.prototype, "department_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], AirportEntryPermitApproval.prototype, "section_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], AirportEntryPermitApproval.prototype, "approver_user_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], AirportEntryPermitApproval.prototype, "delegate_user_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], AirportEntryPermitApproval.prototype, "approved_by", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], AirportEntryPermitApproval.prototype, "comment", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AirportEntryPermitApprovalStatus, default: AirportEntryPermitApprovalStatus.PENDING, nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], AirportEntryPermitApproval.prototype, "approval_status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], AirportEntryPermitApproval.prototype, "is_manager", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
97
|
+
__metadata("design:type", Boolean)
|
|
98
|
+
], AirportEntryPermitApproval.prototype, "is_allowed", void 0);
|
|
99
|
+
exports.AirportEntryPermitApproval = AirportEntryPermitApproval = __decorate([
|
|
100
|
+
(0, typeorm_1.Entity)({ name: 'airport_entry_permit_approvals' }),
|
|
101
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
102
|
+
], AirportEntryPermitApproval);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class AirportEntryPermitAttachment 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
|
+
uploaded_by: number;
|
|
12
|
+
description: string;
|
|
13
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number, description?: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.AirportEntryPermitAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AirportEntryPermitAttachment = class AirportEntryPermitAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id, description) {
|
|
17
|
+
super();
|
|
18
|
+
this.request_id = request_id;
|
|
19
|
+
this.service_id = service_id || null;
|
|
20
|
+
this.sub_service_id = sub_service_id || null;
|
|
21
|
+
this.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
|
+
this.uploaded_by = uploaded_by;
|
|
27
|
+
this.description = description || '';
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.AirportEntryPermitAttachment = AirportEntryPermitAttachment;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], AirportEntryPermitAttachment.prototype, "request_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], AirportEntryPermitAttachment.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AirportEntryPermitAttachment.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], AirportEntryPermitAttachment.prototype, "file_url", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AirportEntryPermitAttachment.prototype, "file_name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AirportEntryPermitAttachment.prototype, "file_type", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], AirportEntryPermitAttachment.prototype, "file_size", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], AirportEntryPermitAttachment.prototype, "chat_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], AirportEntryPermitAttachment.prototype, "uploaded_by", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], AirportEntryPermitAttachment.prototype, "description", void 0);
|
|
71
|
+
exports.AirportEntryPermitAttachment = AirportEntryPermitAttachment = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)({ name: 'airport_entry_permit_attachments' }),
|
|
73
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, Number, Number, Number, String])
|
|
74
|
+
], AirportEntryPermitAttachment);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AirportEntryPermitMessageTypes {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class AirportEntryPermitChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
message: string;
|
|
15
|
+
messageType: AirportEntryPermitMessageTypes;
|
|
16
|
+
constructor(request_id: number, user_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AirportEntryPermitMessageTypes);
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.AirportEntryPermitChat = exports.AirportEntryPermitMessageTypes = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AirportEntryPermitMessageTypes;
|
|
16
|
+
(function (AirportEntryPermitMessageTypes) {
|
|
17
|
+
AirportEntryPermitMessageTypes["TEXT"] = "text";
|
|
18
|
+
AirportEntryPermitMessageTypes["IMAGE"] = "image";
|
|
19
|
+
AirportEntryPermitMessageTypes["VIDEO"] = "video";
|
|
20
|
+
AirportEntryPermitMessageTypes["FILE"] = "file";
|
|
21
|
+
AirportEntryPermitMessageTypes["LINK"] = "link";
|
|
22
|
+
})(AirportEntryPermitMessageTypes || (exports.AirportEntryPermitMessageTypes = AirportEntryPermitMessageTypes = {}));
|
|
23
|
+
let AirportEntryPermitChat = class AirportEntryPermitChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, user_id, message, service_id, sub_service_id, messageType) {
|
|
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.user_id = user_id;
|
|
30
|
+
this.message = message;
|
|
31
|
+
this.messageType = messageType || AirportEntryPermitMessageTypes.TEXT;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.AirportEntryPermitChat = AirportEntryPermitChat;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], AirportEntryPermitChat.prototype, "request_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AirportEntryPermitChat.prototype, "service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AirportEntryPermitChat.prototype, "sub_service_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], AirportEntryPermitChat.prototype, "user_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AirportEntryPermitChat.prototype, "message", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
type: 'enum',
|
|
58
|
+
enum: AirportEntryPermitMessageTypes,
|
|
59
|
+
default: AirportEntryPermitMessageTypes.TEXT,
|
|
60
|
+
nullable: false
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AirportEntryPermitChat.prototype, "messageType", void 0);
|
|
64
|
+
exports.AirportEntryPermitChat = AirportEntryPermitChat = __decorate([
|
|
65
|
+
(0, typeorm_1.Entity)({ name: 'airport_entry_permit_chat' }),
|
|
66
|
+
__metadata("design:paramtypes", [Number, Number, String, Number, Number, String])
|
|
67
|
+
], AirportEntryPermitChat);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AirportEntryPermitCategory {
|
|
3
|
+
ISSUING_NEW_PERMIT = "Issuing New Permit",
|
|
4
|
+
RENEWAL_OF_PERMIT = "Renewal of Permit",
|
|
5
|
+
AMENDING = "Amending",
|
|
6
|
+
REPLACING_LOST = "Replacing lost",
|
|
7
|
+
CANCELLING_AIRPORT_SECURITY_PERMITS = "Cancelling airport security permits"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AirportEntryPermitType {
|
|
10
|
+
PERMANENT = "Permanent",
|
|
11
|
+
TEMPORARY = "Temporary"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AirportEntryPermitLocation {
|
|
14
|
+
MUSCAT = "Muscat",
|
|
15
|
+
SALALAH = "Salalah",
|
|
16
|
+
MARMUL = "Marmul",
|
|
17
|
+
DURUM = "Durum",
|
|
18
|
+
SOHAR = "Sohar",
|
|
19
|
+
FUHUD = "Fuhud",
|
|
20
|
+
MUKHAZINA = "Mukhazina"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AirportEntryPermitArea {
|
|
23
|
+
PURPLE = "VIP building",
|
|
24
|
+
HEAVENLY = "Cargo Building with import and export sections",
|
|
25
|
+
ORANGE = "[ Arrivals Hall] and Arrivals building",
|
|
26
|
+
GREEN = "[departures Hall ] and departures building",
|
|
27
|
+
YELLOW = "Information centre and control tower building",
|
|
28
|
+
BLUE = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop",
|
|
29
|
+
PINK = "Baggage sorting area",
|
|
30
|
+
GRAY = "Supply building",
|
|
31
|
+
ALL_CIVIL_AIRPORTS = "All Civil Airports"
|
|
32
|
+
}
|
|
33
|
+
export declare enum AirportEntryPermitStatus {
|
|
34
|
+
PENDING = "Pending",
|
|
35
|
+
APPROVED = "Approved",
|
|
36
|
+
REJECTED = "Rejected",
|
|
37
|
+
IN_PROGRESS = "In Progress"
|
|
38
|
+
}
|
|
39
|
+
export declare enum VisitorOption {
|
|
40
|
+
VISA_TYPE = "Visa Type",
|
|
41
|
+
VISA_NO = "Visa No",
|
|
42
|
+
DATE_EXPIRY_VISA = "Date Expiry Visa"
|
|
43
|
+
}
|
|
44
|
+
export declare class AirportEntryPermit extends BaseModel {
|
|
45
|
+
req_user_department_id: number | null;
|
|
46
|
+
req_user_section_id: number | null;
|
|
47
|
+
service_id: number | null;
|
|
48
|
+
sub_service_id: number | null;
|
|
49
|
+
service_type: string | null;
|
|
50
|
+
workflow_execution_id: string | null;
|
|
51
|
+
status: AirportEntryPermitStatus;
|
|
52
|
+
user_id: number;
|
|
53
|
+
request_id: string | null;
|
|
54
|
+
name_full_family_name: string;
|
|
55
|
+
nationality: string;
|
|
56
|
+
dob: Date;
|
|
57
|
+
place: string;
|
|
58
|
+
passport_id_card_no: string;
|
|
59
|
+
category_of_permit: AirportEntryPermitCategory;
|
|
60
|
+
date_of_submission: Date;
|
|
61
|
+
phone_number: string;
|
|
62
|
+
location: AirportEntryPermitLocation;
|
|
63
|
+
type_of_permit: AirportEntryPermitType;
|
|
64
|
+
temporary_start_time: Date | null;
|
|
65
|
+
temporary_duration: string | null;
|
|
66
|
+
permission_to_required_areas: AirportEntryPermitArea[];
|
|
67
|
+
attachment_url: string | null;
|
|
68
|
+
details: string;
|
|
69
|
+
occupation_staff: string;
|
|
70
|
+
for_visitor: VisitorOption[] | null;
|
|
71
|
+
acknowledge_security_policies: boolean;
|
|
72
|
+
acknowledge_disciplinary_action: boolean;
|
|
73
|
+
consent_approve_to_issue_permit: boolean;
|
|
74
|
+
consent_do_not_approve_to_issue_permit: boolean;
|
|
75
|
+
consent_justification: string | null;
|
|
76
|
+
requested_by: string;
|
|
77
|
+
expiration_date: Date | null;
|
|
78
|
+
constructor(name_full_family_name: string, nationality: string, dob: Date, place: string, passport_id_card_no: string, category_of_permit: AirportEntryPermitCategory, date_of_submission: Date, phone_number: string, location: AirportEntryPermitLocation, type_of_permit: AirportEntryPermitType, permission_to_required_areas: AirportEntryPermitArea[], details: string, occupation_staff: string, requested_by: string, user_id: number, status?: AirportEntryPermitStatus, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null, temporary_start_time?: Date | null, temporary_duration?: string | null, for_visitor?: VisitorOption[] | null, acknowledge_security_policies?: boolean, acknowledge_disciplinary_action?: boolean, consent_approve_to_issue_permit?: boolean, consent_do_not_approve_to_issue_permit?: boolean, consent_justification?: string | null, request_id?: string | null, expiration_date?: Date | null);
|
|
79
|
+
}
|
|
@@ -0,0 +1,254 @@
|
|
|
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.AirportEntryPermit = exports.VisitorOption = exports.AirportEntryPermitStatus = exports.AirportEntryPermitArea = exports.AirportEntryPermitLocation = exports.AirportEntryPermitType = exports.AirportEntryPermitCategory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AirportEntryPermitCategory;
|
|
16
|
+
(function (AirportEntryPermitCategory) {
|
|
17
|
+
AirportEntryPermitCategory["ISSUING_NEW_PERMIT"] = "Issuing New Permit";
|
|
18
|
+
AirportEntryPermitCategory["RENEWAL_OF_PERMIT"] = "Renewal of Permit";
|
|
19
|
+
AirportEntryPermitCategory["AMENDING"] = "Amending";
|
|
20
|
+
AirportEntryPermitCategory["REPLACING_LOST"] = "Replacing lost";
|
|
21
|
+
AirportEntryPermitCategory["CANCELLING_AIRPORT_SECURITY_PERMITS"] = "Cancelling airport security permits";
|
|
22
|
+
})(AirportEntryPermitCategory || (exports.AirportEntryPermitCategory = AirportEntryPermitCategory = {}));
|
|
23
|
+
var AirportEntryPermitType;
|
|
24
|
+
(function (AirportEntryPermitType) {
|
|
25
|
+
AirportEntryPermitType["PERMANENT"] = "Permanent";
|
|
26
|
+
AirportEntryPermitType["TEMPORARY"] = "Temporary";
|
|
27
|
+
})(AirportEntryPermitType || (exports.AirportEntryPermitType = AirportEntryPermitType = {}));
|
|
28
|
+
var AirportEntryPermitLocation;
|
|
29
|
+
(function (AirportEntryPermitLocation) {
|
|
30
|
+
AirportEntryPermitLocation["MUSCAT"] = "Muscat";
|
|
31
|
+
AirportEntryPermitLocation["SALALAH"] = "Salalah";
|
|
32
|
+
AirportEntryPermitLocation["MARMUL"] = "Marmul";
|
|
33
|
+
AirportEntryPermitLocation["DURUM"] = "Durum";
|
|
34
|
+
AirportEntryPermitLocation["SOHAR"] = "Sohar";
|
|
35
|
+
AirportEntryPermitLocation["FUHUD"] = "Fuhud";
|
|
36
|
+
AirportEntryPermitLocation["MUKHAZINA"] = "Mukhazina";
|
|
37
|
+
})(AirportEntryPermitLocation || (exports.AirportEntryPermitLocation = AirportEntryPermitLocation = {}));
|
|
38
|
+
var AirportEntryPermitArea;
|
|
39
|
+
(function (AirportEntryPermitArea) {
|
|
40
|
+
AirportEntryPermitArea["PURPLE"] = "VIP building";
|
|
41
|
+
AirportEntryPermitArea["HEAVENLY"] = "Cargo Building with import and export sections";
|
|
42
|
+
AirportEntryPermitArea["ORANGE"] = "[ Arrivals Hall] and Arrivals building";
|
|
43
|
+
AirportEntryPermitArea["GREEN"] = "[departures Hall ] and departures building";
|
|
44
|
+
AirportEntryPermitArea["YELLOW"] = "Information centre and control tower building";
|
|
45
|
+
AirportEntryPermitArea["BLUE"] = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop";
|
|
46
|
+
AirportEntryPermitArea["PINK"] = "Baggage sorting area";
|
|
47
|
+
AirportEntryPermitArea["GRAY"] = "Supply building";
|
|
48
|
+
AirportEntryPermitArea["ALL_CIVIL_AIRPORTS"] = "All Civil Airports";
|
|
49
|
+
})(AirportEntryPermitArea || (exports.AirportEntryPermitArea = AirportEntryPermitArea = {}));
|
|
50
|
+
var AirportEntryPermitStatus;
|
|
51
|
+
(function (AirportEntryPermitStatus) {
|
|
52
|
+
AirportEntryPermitStatus["PENDING"] = "Pending";
|
|
53
|
+
AirportEntryPermitStatus["APPROVED"] = "Approved";
|
|
54
|
+
AirportEntryPermitStatus["REJECTED"] = "Rejected";
|
|
55
|
+
AirportEntryPermitStatus["IN_PROGRESS"] = "In Progress";
|
|
56
|
+
})(AirportEntryPermitStatus || (exports.AirportEntryPermitStatus = AirportEntryPermitStatus = {}));
|
|
57
|
+
var VisitorOption;
|
|
58
|
+
(function (VisitorOption) {
|
|
59
|
+
VisitorOption["VISA_TYPE"] = "Visa Type";
|
|
60
|
+
VisitorOption["VISA_NO"] = "Visa No";
|
|
61
|
+
VisitorOption["DATE_EXPIRY_VISA"] = "Date Expiry Visa";
|
|
62
|
+
})(VisitorOption || (exports.VisitorOption = VisitorOption = {}));
|
|
63
|
+
let AirportEntryPermit = class AirportEntryPermit extends BaseModel_1.BaseModel {
|
|
64
|
+
constructor(name_full_family_name, nationality, dob, place, passport_id_card_no, category_of_permit, date_of_submission, phone_number, location, type_of_permit, permission_to_required_areas, details, occupation_staff, requested_by, user_id, status = AirportEntryPermitStatus.PENDING, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url, temporary_start_time, temporary_duration, for_visitor, acknowledge_security_policies = false, acknowledge_disciplinary_action = false, consent_approve_to_issue_permit = false, consent_do_not_approve_to_issue_permit = false, consent_justification, request_id, expiration_date) {
|
|
65
|
+
super();
|
|
66
|
+
this.name_full_family_name = name_full_family_name;
|
|
67
|
+
this.nationality = nationality;
|
|
68
|
+
this.dob = dob;
|
|
69
|
+
this.place = place;
|
|
70
|
+
this.passport_id_card_no = passport_id_card_no;
|
|
71
|
+
this.category_of_permit = category_of_permit;
|
|
72
|
+
this.date_of_submission = date_of_submission;
|
|
73
|
+
this.phone_number = phone_number;
|
|
74
|
+
this.location = location;
|
|
75
|
+
this.type_of_permit = type_of_permit;
|
|
76
|
+
this.permission_to_required_areas = permission_to_required_areas;
|
|
77
|
+
this.details = details;
|
|
78
|
+
this.occupation_staff = occupation_staff;
|
|
79
|
+
this.requested_by = requested_by;
|
|
80
|
+
this.user_id = user_id;
|
|
81
|
+
this.status = status;
|
|
82
|
+
this.service_id = service_id ?? null;
|
|
83
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
84
|
+
this.service_type = service_type ?? null;
|
|
85
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
86
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
87
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
88
|
+
this.attachment_url = attachment_url ?? null;
|
|
89
|
+
this.temporary_start_time = temporary_start_time ?? null;
|
|
90
|
+
this.temporary_duration = temporary_duration ?? null;
|
|
91
|
+
this.for_visitor = for_visitor ?? null;
|
|
92
|
+
this.acknowledge_security_policies = acknowledge_security_policies;
|
|
93
|
+
this.acknowledge_disciplinary_action = acknowledge_disciplinary_action;
|
|
94
|
+
this.consent_approve_to_issue_permit = consent_approve_to_issue_permit;
|
|
95
|
+
this.consent_do_not_approve_to_issue_permit = consent_do_not_approve_to_issue_permit;
|
|
96
|
+
this.consent_justification = consent_justification ?? null;
|
|
97
|
+
this.request_id = request_id ?? null;
|
|
98
|
+
this.expiration_date = expiration_date ?? null;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
exports.AirportEntryPermit = AirportEntryPermit;
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], AirportEntryPermit.prototype, "req_user_department_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], AirportEntryPermit.prototype, "req_user_section_id", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], AirportEntryPermit.prototype, "service_id", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], AirportEntryPermit.prototype, "sub_service_id", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], AirportEntryPermit.prototype, "service_type", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], AirportEntryPermit.prototype, "workflow_execution_id", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({
|
|
128
|
+
type: "enum",
|
|
129
|
+
enum: AirportEntryPermitStatus,
|
|
130
|
+
default: AirportEntryPermitStatus.PENDING,
|
|
131
|
+
nullable: false,
|
|
132
|
+
}),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], AirportEntryPermit.prototype, "status", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], AirportEntryPermit.prototype, "user_id", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true, unique: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], AirportEntryPermit.prototype, "request_id", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], AirportEntryPermit.prototype, "name_full_family_name", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], AirportEntryPermit.prototype, "nationality", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
153
|
+
__metadata("design:type", Date)
|
|
154
|
+
], AirportEntryPermit.prototype, "dob", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], AirportEntryPermit.prototype, "place", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], AirportEntryPermit.prototype, "passport_id_card_no", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({
|
|
165
|
+
type: "enum",
|
|
166
|
+
enum: AirportEntryPermitCategory,
|
|
167
|
+
nullable: false,
|
|
168
|
+
}),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], AirportEntryPermit.prototype, "category_of_permit", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
173
|
+
__metadata("design:type", Date)
|
|
174
|
+
], AirportEntryPermit.prototype, "date_of_submission", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], AirportEntryPermit.prototype, "phone_number", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({
|
|
181
|
+
type: "enum",
|
|
182
|
+
enum: AirportEntryPermitLocation,
|
|
183
|
+
nullable: false,
|
|
184
|
+
}),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], AirportEntryPermit.prototype, "location", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({
|
|
189
|
+
type: "enum",
|
|
190
|
+
enum: AirportEntryPermitType,
|
|
191
|
+
nullable: false,
|
|
192
|
+
}),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], AirportEntryPermit.prototype, "type_of_permit", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
197
|
+
__metadata("design:type", Object)
|
|
198
|
+
], AirportEntryPermit.prototype, "temporary_start_time", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
201
|
+
__metadata("design:type", Object)
|
|
202
|
+
], AirportEntryPermit.prototype, "temporary_duration", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: false }),
|
|
205
|
+
__metadata("design:type", Array)
|
|
206
|
+
], AirportEntryPermit.prototype, "permission_to_required_areas", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
209
|
+
__metadata("design:type", Object)
|
|
210
|
+
], AirportEntryPermit.prototype, "attachment_url", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
213
|
+
__metadata("design:type", String)
|
|
214
|
+
], AirportEntryPermit.prototype, "details", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], AirportEntryPermit.prototype, "occupation_staff", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
221
|
+
__metadata("design:type", Object)
|
|
222
|
+
], AirportEntryPermit.prototype, "for_visitor", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
225
|
+
__metadata("design:type", Boolean)
|
|
226
|
+
], AirportEntryPermit.prototype, "acknowledge_security_policies", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
229
|
+
__metadata("design:type", Boolean)
|
|
230
|
+
], AirportEntryPermit.prototype, "acknowledge_disciplinary_action", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
233
|
+
__metadata("design:type", Boolean)
|
|
234
|
+
], AirportEntryPermit.prototype, "consent_approve_to_issue_permit", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
237
|
+
__metadata("design:type", Boolean)
|
|
238
|
+
], AirportEntryPermit.prototype, "consent_do_not_approve_to_issue_permit", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
241
|
+
__metadata("design:type", Object)
|
|
242
|
+
], AirportEntryPermit.prototype, "consent_justification", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
245
|
+
__metadata("design:type", String)
|
|
246
|
+
], AirportEntryPermit.prototype, "requested_by", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
249
|
+
__metadata("design:type", Object)
|
|
250
|
+
], AirportEntryPermit.prototype, "expiration_date", void 0);
|
|
251
|
+
exports.AirportEntryPermit = AirportEntryPermit = __decorate([
|
|
252
|
+
(0, typeorm_1.Entity)({ name: 'airport_entry_permits' }),
|
|
253
|
+
__metadata("design:paramtypes", [String, String, Date, String, String, String, Date, String, String, String, Array, String, String, String, Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Boolean, Boolean, Boolean, Boolean, Object, Object, Object])
|
|
254
|
+
], AirportEntryPermit);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AirportEntryPermitWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class AirportEntryPermitWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: AirportEntryPermitWorkFlowStatus;
|
|
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: AirportEntryPermitWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.AirportEntryPermitWorkFlow = exports.AirportEntryPermitWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AirportEntryPermitWorkFlowStatus;
|
|
16
|
+
(function (AirportEntryPermitWorkFlowStatus) {
|
|
17
|
+
AirportEntryPermitWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
AirportEntryPermitWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
AirportEntryPermitWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(AirportEntryPermitWorkFlowStatus || (exports.AirportEntryPermitWorkFlowStatus = AirportEntryPermitWorkFlowStatus = {}));
|
|
21
|
+
let AirportEntryPermitWorkFlow = class AirportEntryPermitWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
23
|
+
super();
|
|
24
|
+
this.request_id = request_id;
|
|
25
|
+
this.service_id = service_id || null;
|
|
26
|
+
this.sub_service_id = sub_service_id || null;
|
|
27
|
+
this.content = content;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.user_id = user_id || null;
|
|
30
|
+
this.role_id = role_id || null;
|
|
31
|
+
this.department_id = department_id || null;
|
|
32
|
+
this.section_id = section_id || null;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.AirportEntryPermitWorkFlow = AirportEntryPermitWorkFlow;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], AirportEntryPermitWorkFlow.prototype, "request_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], AirportEntryPermitWorkFlow.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], AirportEntryPermitWorkFlow.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AirportEntryPermitWorkFlow.prototype, "content", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AirportEntryPermitWorkFlowStatus, default: AirportEntryPermitWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AirportEntryPermitWorkFlow.prototype, "status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], AirportEntryPermitWorkFlow.prototype, "user_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], AirportEntryPermitWorkFlow.prototype, "role_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], AirportEntryPermitWorkFlow.prototype, "department_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], AirportEntryPermitWorkFlow.prototype, "section_id", void 0);
|
|
72
|
+
exports.AirportEntryPermitWorkFlow = AirportEntryPermitWorkFlow = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)({ name: 'airport_entry_permit_workflows' }),
|
|
74
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
75
|
+
], AirportEntryPermitWorkFlow);
|
|
@@ -18,5 +18,6 @@ export declare class HotelApprovalDetails extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: HotelApprovalStatus;
|
|
21
|
-
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: HotelApprovalStatus, level: number, 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, is_allowed?: boolean);
|
|
22
23
|
}
|
|
@@ -20,7 +20,7 @@ var HotelApprovalStatus;
|
|
|
20
20
|
HotelApprovalStatus["REJECTED"] = "Rejected";
|
|
21
21
|
})(HotelApprovalStatus || (exports.HotelApprovalStatus = HotelApprovalStatus = {}));
|
|
22
22
|
let HotelApprovalDetails = class HotelApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
23
|
+
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id, is_allowed) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.service_id = service_id || null;
|
|
@@ -34,6 +34,7 @@ let HotelApprovalDetails = class HotelApprovalDetails extends BaseModel_1.BaseMo
|
|
|
34
34
|
this.approver_user_id = approver_user_id || null;
|
|
35
35
|
this.delegate_user_id = delegate_user_id || null;
|
|
36
36
|
this.approved_by = approved_by || null;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
exports.HotelApprovalDetails = HotelApprovalDetails;
|
|
@@ -85,7 +86,11 @@ __decorate([
|
|
|
85
86
|
(0, typeorm_1.Column)({ type: 'enum', enum: HotelApprovalStatus, default: HotelApprovalStatus.PENDING, nullable: false }),
|
|
86
87
|
__metadata("design:type", String)
|
|
87
88
|
], HotelApprovalDetails.prototype, "approval_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], HotelApprovalDetails.prototype, "is_allowed", void 0);
|
|
88
93
|
exports.HotelApprovalDetails = HotelApprovalDetails = __decorate([
|
|
89
94
|
(0, typeorm_1.Entity)({ name: 'hotelapprovals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
95
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
91
96
|
], HotelApprovalDetails);
|
|
@@ -38,8 +38,8 @@ export declare class HotelReservation extends BaseModel {
|
|
|
38
38
|
description: string;
|
|
39
39
|
attachment_url: string | null;
|
|
40
40
|
requested_by: string;
|
|
41
|
-
|
|
41
|
+
purpose_of_visit: string | null;
|
|
42
42
|
hr_approval: boolean;
|
|
43
43
|
pr_approval: boolean;
|
|
44
|
-
constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string,
|
|
44
|
+
constructor(type_of_accommodation: string, price: number, meal: MealType[], service: ServiceTypes[], date_of_request: Date, hotel_name: string, check_in_date: Date, booking_date: Date | null, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, purpose_of_visit: string | null, user_id: number, status?: HotelReservationStatus, hr_approval?: boolean, pr_approval?: boolean, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null);
|
|
45
45
|
}
|
|
@@ -31,7 +31,7 @@ var HotelReservationStatus;
|
|
|
31
31
|
HotelReservationStatus["IN_PROGRESS"] = "In Progress";
|
|
32
32
|
})(HotelReservationStatus || (exports.HotelReservationStatus = HotelReservationStatus = {}));
|
|
33
33
|
let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
34
|
-
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, booking_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by,
|
|
34
|
+
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, booking_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, purpose_of_visit, user_id, status = HotelReservationStatus.PENDING, hr_approval = false, pr_approval = false, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url) {
|
|
35
35
|
super();
|
|
36
36
|
this.type_of_accommodation = type_of_accommodation;
|
|
37
37
|
this.price = price;
|
|
@@ -46,7 +46,7 @@ let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
|
46
46
|
this.number_of_guests = number_of_guests;
|
|
47
47
|
this.description = description;
|
|
48
48
|
this.requested_by = requested_by;
|
|
49
|
-
this.
|
|
49
|
+
this.purpose_of_visit = purpose_of_visit;
|
|
50
50
|
this.user_id = user_id;
|
|
51
51
|
this.status = status;
|
|
52
52
|
this.hr_approval = hr_approval;
|
|
@@ -160,9 +160,9 @@ __decorate([
|
|
|
160
160
|
__metadata("design:type", String)
|
|
161
161
|
], HotelReservation.prototype, "requested_by", void 0);
|
|
162
162
|
__decorate([
|
|
163
|
-
(0, typeorm_1.Column)({ type: '
|
|
163
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
164
164
|
__metadata("design:type", Object)
|
|
165
|
-
], HotelReservation.prototype, "
|
|
165
|
+
], HotelReservation.prototype, "purpose_of_visit", void 0);
|
|
166
166
|
__decorate([
|
|
167
167
|
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
168
168
|
__metadata("design:type", Boolean)
|
|
@@ -173,5 +173,5 @@ __decorate([
|
|
|
173
173
|
], HotelReservation.prototype, "pr_approval", void 0);
|
|
174
174
|
exports.HotelReservation = HotelReservation = __decorate([
|
|
175
175
|
(0, typeorm_1.Entity)({ name: 'hotelreservations' }),
|
|
176
|
-
__metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String,
|
|
176
|
+
__metadata("design:paramtypes", [String, Number, Array, Array, Date, String, Date, Object, String, Date, String, Number, String, String, Object, Number, String, Boolean, Boolean, Object, Object, Object, Object, Object, Object, Object])
|
|
177
177
|
], HotelReservation);
|
|
@@ -19,5 +19,6 @@ export declare class ItApprovalDetails extends BaseModel {
|
|
|
19
19
|
approved_by: number | null;
|
|
20
20
|
comment: string;
|
|
21
21
|
approval_status: ApprovalStatus;
|
|
22
|
-
|
|
22
|
+
is_allowed: boolean;
|
|
23
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, service_id?: number | null, sub_service_id?: number | null, delegation_user_id?: number | null, is_allowed?: boolean);
|
|
23
24
|
}
|
|
@@ -21,7 +21,7 @@ var ApprovalStatus;
|
|
|
21
21
|
ApprovalStatus["REASSIGNED"] = "Reassigned";
|
|
22
22
|
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
23
23
|
let ItApprovalDetails = class ItApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by, service_id, sub_service_id, delegation_user_id) {
|
|
24
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by, service_id, sub_service_id, delegation_user_id, is_allowed) {
|
|
25
25
|
super();
|
|
26
26
|
this.request_id = request_id;
|
|
27
27
|
this.approver_user_id = approver_user_id;
|
|
@@ -35,6 +35,7 @@ let ItApprovalDetails = class ItApprovalDetails extends BaseModel_1.BaseModel {
|
|
|
35
35
|
this.service_id = service_id ?? null;
|
|
36
36
|
this.sub_service_id = sub_service_id ?? null;
|
|
37
37
|
this.delegation_user_id = delegation_user_id || null;
|
|
38
|
+
this.is_allowed = is_allowed ?? true;
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
exports.ItApprovalDetails = ItApprovalDetails;
|
|
@@ -86,7 +87,11 @@ __decorate([
|
|
|
86
87
|
(0, typeorm_1.Column)({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING, nullable: false }),
|
|
87
88
|
__metadata("design:type", String)
|
|
88
89
|
], ItApprovalDetails.prototype, "approval_status", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
92
|
+
__metadata("design:type", Boolean)
|
|
93
|
+
], ItApprovalDetails.prototype, "is_allowed", void 0);
|
|
89
94
|
exports.ItApprovalDetails = ItApprovalDetails = __decorate([
|
|
90
95
|
(0, typeorm_1.Entity)({ name: 'it_approvals' }),
|
|
91
|
-
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object])
|
|
96
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean])
|
|
92
97
|
], ItApprovalDetails);
|
|
@@ -18,5 +18,6 @@ export declare class LogisticsApprovalDetails extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: LogisticsApprovalStatus;
|
|
21
|
-
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: LogisticsApprovalStatus, level: number, 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, is_allowed?: boolean);
|
|
22
23
|
}
|
|
@@ -20,7 +20,7 @@ var LogisticsApprovalStatus;
|
|
|
20
20
|
LogisticsApprovalStatus["REJECTED"] = "Rejected";
|
|
21
21
|
})(LogisticsApprovalStatus || (exports.LogisticsApprovalStatus = LogisticsApprovalStatus = {}));
|
|
22
22
|
let LogisticsApprovalDetails = class LogisticsApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
23
|
+
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id, is_allowed) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.service_id = service_id || null;
|
|
@@ -34,6 +34,7 @@ let LogisticsApprovalDetails = class LogisticsApprovalDetails extends BaseModel_
|
|
|
34
34
|
this.approver_user_id = approver_user_id || null;
|
|
35
35
|
this.delegate_user_id = delegate_user_id || null;
|
|
36
36
|
this.approved_by = approved_by || null;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
exports.LogisticsApprovalDetails = LogisticsApprovalDetails;
|
|
@@ -85,7 +86,11 @@ __decorate([
|
|
|
85
86
|
(0, typeorm_1.Column)({ type: 'enum', enum: LogisticsApprovalStatus, default: LogisticsApprovalStatus.PENDING, nullable: false }),
|
|
86
87
|
__metadata("design:type", String)
|
|
87
88
|
], LogisticsApprovalDetails.prototype, "approval_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], LogisticsApprovalDetails.prototype, "is_allowed", void 0);
|
|
88
93
|
exports.LogisticsApprovalDetails = LogisticsApprovalDetails = __decorate([
|
|
89
94
|
(0, typeorm_1.Entity)({ name: 'logistics_approvals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
95
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
91
96
|
], LogisticsApprovalDetails);
|
|
@@ -18,5 +18,7 @@ export declare class SecurityAwarenessApproval extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: SecurityAwarenessApprovalStatus;
|
|
21
|
-
|
|
21
|
+
is_manager: boolean;
|
|
22
|
+
is_allowed: boolean;
|
|
23
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: SecurityAwarenessApprovalStatus, 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, is_allowed?: boolean);
|
|
22
24
|
}
|
|
@@ -20,7 +20,7 @@ var SecurityAwarenessApprovalStatus;
|
|
|
20
20
|
SecurityAwarenessApprovalStatus["REJECTED"] = "Rejected";
|
|
21
21
|
})(SecurityAwarenessApprovalStatus || (exports.SecurityAwarenessApprovalStatus = SecurityAwarenessApprovalStatus = {}));
|
|
22
22
|
let SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
23
|
+
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, is_allowed) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.service_id = service_id || null;
|
|
@@ -29,11 +29,13 @@ let SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseMode
|
|
|
29
29
|
this.comment = comment;
|
|
30
30
|
this.approval_status = approval_status;
|
|
31
31
|
this.level = level;
|
|
32
|
+
this.is_manager = is_manager;
|
|
32
33
|
this.department_id = department_id || null;
|
|
33
34
|
this.section_id = section_id || null;
|
|
34
35
|
this.approver_user_id = approver_user_id || null;
|
|
35
36
|
this.delegate_user_id = delegate_user_id || null;
|
|
36
37
|
this.approved_by = approved_by || null;
|
|
38
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
exports.SecurityAwarenessApproval = SecurityAwarenessApproval;
|
|
@@ -85,7 +87,15 @@ __decorate([
|
|
|
85
87
|
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false }),
|
|
86
88
|
__metadata("design:type", String)
|
|
87
89
|
], SecurityAwarenessApproval.prototype, "approval_status", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: false }),
|
|
92
|
+
__metadata("design:type", Boolean)
|
|
93
|
+
], SecurityAwarenessApproval.prototype, "is_manager", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], SecurityAwarenessApproval.prototype, "is_allowed", void 0);
|
|
88
98
|
exports.SecurityAwarenessApproval = SecurityAwarenessApproval = __decorate([
|
|
89
99
|
(0, typeorm_1.Entity)({ name: 'security_awareness_approvals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Boolean, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
91
101
|
], SecurityAwarenessApproval);
|
|
@@ -20,5 +20,6 @@ export declare class SecurityThreatApproval extends BaseModel {
|
|
|
20
20
|
comment: string;
|
|
21
21
|
approval_status: SecurityThreatApprovalStatus;
|
|
22
22
|
is_manager: boolean;
|
|
23
|
-
|
|
23
|
+
is_allowed: boolean;
|
|
24
|
+
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, is_allowed?: boolean);
|
|
24
25
|
}
|
|
@@ -21,7 +21,7 @@ var SecurityThreatApprovalStatus;
|
|
|
21
21
|
SecurityThreatApprovalStatus["CLOSED"] = "Closed";
|
|
22
22
|
})(SecurityThreatApprovalStatus || (exports.SecurityThreatApprovalStatus = SecurityThreatApprovalStatus = {}));
|
|
23
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) {
|
|
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, is_allowed) {
|
|
25
25
|
super();
|
|
26
26
|
this.request_id = request_id;
|
|
27
27
|
this.service_id = service_id || null;
|
|
@@ -36,6 +36,7 @@ let SecurityThreatApproval = class SecurityThreatApproval extends BaseModel_1.Ba
|
|
|
36
36
|
this.approver_user_id = approver_user_id || null;
|
|
37
37
|
this.delegate_user_id = delegate_user_id || null;
|
|
38
38
|
this.approved_by = approved_by || null;
|
|
39
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
exports.SecurityThreatApproval = SecurityThreatApproval;
|
|
@@ -91,7 +92,11 @@ __decorate([
|
|
|
91
92
|
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: false }),
|
|
92
93
|
__metadata("design:type", Boolean)
|
|
93
94
|
], SecurityThreatApproval.prototype, "is_manager", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
97
|
+
__metadata("design:type", Boolean)
|
|
98
|
+
], SecurityThreatApproval.prototype, "is_allowed", void 0);
|
|
94
99
|
exports.SecurityThreatApproval = SecurityThreatApproval = __decorate([
|
|
95
100
|
(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])
|
|
101
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Boolean, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
97
102
|
], SecurityThreatApproval);
|
|
@@ -8,7 +8,7 @@ export declare enum SecurityThreatRequestStatus {
|
|
|
8
8
|
}
|
|
9
9
|
export declare enum SecurityThreatPriority {
|
|
10
10
|
P1_VERY_LOW = "P1-Very Low",
|
|
11
|
-
P2_LOW = "P2
|
|
11
|
+
P2_LOW = "P2-Low",// Note: Using en dash (–) as specified
|
|
12
12
|
P3_MODERATE = "P3-Moderate",
|
|
13
13
|
P4_HIGH = "P4-High",
|
|
14
14
|
P5_VERY_HIGH = "P5-Very High"
|
|
@@ -23,7 +23,7 @@ var SecurityThreatRequestStatus;
|
|
|
23
23
|
var SecurityThreatPriority;
|
|
24
24
|
(function (SecurityThreatPriority) {
|
|
25
25
|
SecurityThreatPriority["P1_VERY_LOW"] = "P1-Very Low";
|
|
26
|
-
SecurityThreatPriority["P2_LOW"] = "P2
|
|
26
|
+
SecurityThreatPriority["P2_LOW"] = "P2-Low";
|
|
27
27
|
SecurityThreatPriority["P3_MODERATE"] = "P3-Moderate";
|
|
28
28
|
SecurityThreatPriority["P4_HIGH"] = "P4-High";
|
|
29
29
|
SecurityThreatPriority["P5_VERY_HIGH"] = "P5-Very High";
|
|
@@ -70,7 +70,7 @@ __decorate([
|
|
|
70
70
|
__metadata("design:type", Number)
|
|
71
71
|
], SecurityThreatRequest.prototype, "type_of_threat", void 0);
|
|
72
72
|
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'text', nullable:
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], SecurityThreatRequest.prototype, "description", void 0);
|
|
76
76
|
__decorate([
|
|
@@ -5,7 +5,7 @@ import { Departments } from './DepartmentsModel';
|
|
|
5
5
|
import { Sections } from './SectionModel';
|
|
6
6
|
export declare class ServiceType extends BaseModel {
|
|
7
7
|
name: string;
|
|
8
|
-
name_in_arabic: string;
|
|
8
|
+
name_in_arabic: string | null;
|
|
9
9
|
service_id: number;
|
|
10
10
|
service: CAAServices;
|
|
11
11
|
sub_service_id: number;
|
|
@@ -16,5 +16,5 @@ export declare class ServiceType extends BaseModel {
|
|
|
16
16
|
section: Sections;
|
|
17
17
|
description: string;
|
|
18
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);
|
|
19
|
+
constructor(name: string, name_in_arabic: string | null, service_id: number, sub_service_id: number, description?: string, is_active?: boolean, department_id?: number | null, section_id?: number | null);
|
|
20
20
|
}
|
|
@@ -20,7 +20,7 @@ let ServiceType = class ServiceType extends BaseModel_1.BaseModel {
|
|
|
20
20
|
constructor(name, name_in_arabic, service_id, sub_service_id, description, is_active, department_id, section_id) {
|
|
21
21
|
super();
|
|
22
22
|
this.name = name;
|
|
23
|
-
this.name_in_arabic = name_in_arabic;
|
|
23
|
+
this.name_in_arabic = name_in_arabic || '';
|
|
24
24
|
this.service_id = service_id;
|
|
25
25
|
this.sub_service_id = sub_service_id;
|
|
26
26
|
this.description = description || '';
|
|
@@ -31,15 +31,15 @@ let ServiceType = class ServiceType extends BaseModel_1.BaseModel {
|
|
|
31
31
|
};
|
|
32
32
|
exports.ServiceType = ServiceType;
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], ServiceType.prototype, "name", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ nullable:
|
|
39
|
-
__metadata("design:type",
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
40
|
], ServiceType.prototype, "name_in_arabic", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], ServiceType.prototype, "service_id", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", CAAServices_1.CAAServices)
|
|
49
49
|
], ServiceType.prototype, "service", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
53
|
], ServiceType.prototype, "sub_service_id", void 0);
|
|
54
54
|
__decorate([
|
|
@@ -75,7 +75,7 @@ __decorate([
|
|
|
75
75
|
__metadata("design:type", SectionModel_1.Sections)
|
|
76
76
|
], ServiceType.prototype, "section", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
79
79
|
__metadata("design:type", String)
|
|
80
80
|
], ServiceType.prototype, "description", void 0);
|
|
81
81
|
__decorate([
|
|
@@ -84,5 +84,5 @@ __decorate([
|
|
|
84
84
|
], ServiceType.prototype, "is_active", void 0);
|
|
85
85
|
exports.ServiceType = ServiceType = __decorate([
|
|
86
86
|
(0, typeorm_1.Entity)({ name: 'service_types' }),
|
|
87
|
-
__metadata("design:paramtypes", [String,
|
|
87
|
+
__metadata("design:paramtypes", [String, Object, Number, Number, String, Boolean, Object, Object])
|
|
88
88
|
], ServiceType);
|
|
@@ -17,5 +17,6 @@ export declare class VpnApprovalDetails extends BaseModel {
|
|
|
17
17
|
comment: string;
|
|
18
18
|
approval_status: VpnApprovalStatus;
|
|
19
19
|
is_manager: boolean;
|
|
20
|
+
is_allowed: boolean;
|
|
20
21
|
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
22
|
}
|
|
@@ -81,6 +81,10 @@ __decorate([
|
|
|
81
81
|
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
82
82
|
__metadata("design:type", Boolean)
|
|
83
83
|
], VpnApprovalDetails.prototype, "is_manager", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
86
|
+
__metadata("design:type", Boolean)
|
|
87
|
+
], VpnApprovalDetails.prototype, "is_allowed", void 0);
|
|
84
88
|
exports.VpnApprovalDetails = VpnApprovalDetails = __decorate([
|
|
85
89
|
(0, typeorm_1.Entity)({ name: "vpn_approvals" }),
|
|
86
90
|
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Boolean])
|