@platform-modules/civil-aviation-authority 2.2.211 → 2.2.213
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/models/AirportEntryPermitApprovalModel.d.ts +2 -2
- package/dist/models/AirportEntryPermitApprovalModel.js +4 -4
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +2 -1
- package/dist/models/SecurityAwarenessApprovalModel.js +7 -2
- package/dist/models/SecurityThreatRequestModel.d.ts +1 -1
- package/dist/models/SecurityThreatRequestModel.js +2 -2
- package/package.json +1 -1
- package/src/models/AirportEntryPermitApprovalModel.ts +3 -3
- package/src/models/SecurityAwarenessApprovalModel.ts +5 -0
- package/src/models/SecurityThreatRequestModel.ts +2 -2
|
@@ -19,7 +19,7 @@ export declare class AirportEntryPermitApproval extends BaseModel {
|
|
|
19
19
|
approved_by: number | null;
|
|
20
20
|
comment: string;
|
|
21
21
|
approval_status: AirportEntryPermitApprovalStatus;
|
|
22
|
-
is_manager: boolean;
|
|
22
|
+
is_manager: boolean | null;
|
|
23
23
|
is_allowed: boolean;
|
|
24
|
-
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: AirportEntryPermitApprovalStatus, 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
|
+
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
25
|
}
|
|
@@ -21,7 +21,7 @@ var AirportEntryPermitApprovalStatus;
|
|
|
21
21
|
AirportEntryPermitApprovalStatus["RFC"] = "Request For Change";
|
|
22
22
|
})(AirportEntryPermitApprovalStatus || (exports.AirportEntryPermitApprovalStatus = AirportEntryPermitApprovalStatus = {}));
|
|
23
23
|
let AirportEntryPermitApproval = class AirportEntryPermitApproval extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, is_manager =
|
|
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
25
|
super();
|
|
26
26
|
this.request_id = request_id;
|
|
27
27
|
this.service_id = service_id || null;
|
|
@@ -89,8 +89,8 @@ __decorate([
|
|
|
89
89
|
__metadata("design:type", String)
|
|
90
90
|
], AirportEntryPermitApproval.prototype, "approval_status", void 0);
|
|
91
91
|
__decorate([
|
|
92
|
-
(0, typeorm_1.Column)({ type: 'boolean',
|
|
93
|
-
__metadata("design:type",
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
94
|
], AirportEntryPermitApproval.prototype, "is_manager", void 0);
|
|
95
95
|
__decorate([
|
|
96
96
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
@@ -98,5 +98,5 @@ __decorate([
|
|
|
98
98
|
], AirportEntryPermitApproval.prototype, "is_allowed", void 0);
|
|
99
99
|
exports.AirportEntryPermitApproval = AirportEntryPermitApproval = __decorate([
|
|
100
100
|
(0, typeorm_1.Entity)({ name: 'airport_entry_permit_approvals' }),
|
|
101
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number,
|
|
101
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
102
102
|
], AirportEntryPermitApproval);
|
|
@@ -18,6 +18,7 @@ export declare class SecurityAwarenessApproval extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: SecurityAwarenessApprovalStatus;
|
|
21
|
+
is_manager: boolean;
|
|
21
22
|
is_allowed: boolean;
|
|
22
|
-
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: SecurityAwarenessApprovalStatus, 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);
|
|
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);
|
|
23
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, is_allowed) {
|
|
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,6 +29,7 @@ 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;
|
|
@@ -86,11 +87,15 @@ __decorate([
|
|
|
86
87
|
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false }),
|
|
87
88
|
__metadata("design:type", String)
|
|
88
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);
|
|
89
94
|
__decorate([
|
|
90
95
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
96
|
__metadata("design:type", Boolean)
|
|
92
97
|
], SecurityAwarenessApproval.prototype, "is_allowed", void 0);
|
|
93
98
|
exports.SecurityAwarenessApproval = SecurityAwarenessApproval = __decorate([
|
|
94
99
|
(0, typeorm_1.Entity)({ name: 'security_awareness_approvals' }),
|
|
95
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Boolean, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
96
101
|
], SecurityAwarenessApproval);
|
|
@@ -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([
|
package/package.json
CHANGED
|
@@ -47,8 +47,8 @@ export class AirportEntryPermitApproval extends BaseModel {
|
|
|
47
47
|
@Column({ type: 'enum', enum: AirportEntryPermitApprovalStatus, default: AirportEntryPermitApprovalStatus.PENDING, nullable: false })
|
|
48
48
|
approval_status: AirportEntryPermitApprovalStatus;
|
|
49
49
|
|
|
50
|
-
@Column({ type: 'boolean',
|
|
51
|
-
is_manager: boolean;
|
|
50
|
+
@Column({ type: 'boolean', nullable: true })
|
|
51
|
+
is_manager: boolean | null;
|
|
52
52
|
|
|
53
53
|
@Column({ type: 'boolean', default: true, nullable: false })
|
|
54
54
|
is_allowed: boolean;
|
|
@@ -59,7 +59,7 @@ export class AirportEntryPermitApproval extends BaseModel {
|
|
|
59
59
|
comment: string,
|
|
60
60
|
approval_status: AirportEntryPermitApprovalStatus,
|
|
61
61
|
level: number,
|
|
62
|
-
is_manager: boolean =
|
|
62
|
+
is_manager: boolean | null = null,
|
|
63
63
|
department_id?: number | null,
|
|
64
64
|
section_id?: number | null,
|
|
65
65
|
approver_user_id?: number | null,
|
|
@@ -47,6 +47,9 @@ export class SecurityAwarenessApproval extends BaseModel {
|
|
|
47
47
|
@Column({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false })
|
|
48
48
|
approval_status: SecurityAwarenessApprovalStatus;
|
|
49
49
|
|
|
50
|
+
@Column({ type: 'boolean', default: false, nullable: false })
|
|
51
|
+
is_manager: boolean;
|
|
52
|
+
|
|
50
53
|
@Column({ type: 'boolean', default: true, nullable: false })
|
|
51
54
|
is_allowed: boolean;
|
|
52
55
|
|
|
@@ -56,6 +59,7 @@ export class SecurityAwarenessApproval extends BaseModel {
|
|
|
56
59
|
comment: string,
|
|
57
60
|
approval_status: SecurityAwarenessApprovalStatus,
|
|
58
61
|
level: number,
|
|
62
|
+
is_manager: boolean = false,
|
|
59
63
|
department_id?: number | null,
|
|
60
64
|
section_id?: number | null,
|
|
61
65
|
approver_user_id?: number | null,
|
|
@@ -73,6 +77,7 @@ export class SecurityAwarenessApproval extends BaseModel {
|
|
|
73
77
|
this.comment = comment;
|
|
74
78
|
this.approval_status = approval_status;
|
|
75
79
|
this.level = level;
|
|
80
|
+
this.is_manager = is_manager;
|
|
76
81
|
this.department_id = department_id || null;
|
|
77
82
|
this.section_id = section_id || null;
|
|
78
83
|
this.approver_user_id = approver_user_id || null;
|
|
@@ -11,7 +11,7 @@ export enum SecurityThreatRequestStatus {
|
|
|
11
11
|
|
|
12
12
|
export enum SecurityThreatPriority {
|
|
13
13
|
P1_VERY_LOW = "P1-Very Low",
|
|
14
|
-
P2_LOW = "P2
|
|
14
|
+
P2_LOW = "P2-Low", // Note: Using en dash (–) as specified
|
|
15
15
|
P3_MODERATE = "P3-Moderate",
|
|
16
16
|
P4_HIGH = "P4-High",
|
|
17
17
|
P5_VERY_HIGH = "P5-Very High"
|
|
@@ -37,7 +37,7 @@ export class SecurityThreatRequest extends BaseModel {
|
|
|
37
37
|
@Column({ type: 'int', nullable: false })
|
|
38
38
|
type_of_threat: number;
|
|
39
39
|
|
|
40
|
-
@Column({ type: 'text', nullable:
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
41
|
description: string;
|
|
42
42
|
|
|
43
43
|
@Column({ type: 'varchar', length: 50, nullable: false })
|