@platform-modules/civil-aviation-authority 2.2.300 → 2.2.302
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/src/models/ItApprovalsModel.ts +84 -84
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
|
+
}
|