@platform-modules/civil-aviation-authority 2.2.203 → 2.2.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +10 -10
- package/dist/models/AccessCardApprovalModel.d.ts +2 -1
- package/dist/models/AccessCardApprovalModel.js +7 -2
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +2 -1
- package/dist/models/SecurityAwarenessApprovalModel.js +7 -2
- package/dist/models/SecurityThreatApprovalModel.d.ts +2 -1
- package/dist/models/SecurityThreatApprovalModel.js +7 -2
- package/package.json +1 -1
- package/src/models/AccessCardApprovalModel.ts +6 -1
- package/src/models/SecurityAwarenessApprovalModel.ts +6 -1
- package/src/models/SecurityThreatApprovalModel.ts +6 -1
package/.env
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
# DB_PASS=123
|
|
5
5
|
# DB_NAME=CAA
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
# DB_PORT=5432
|
|
9
|
-
# DB_USER=postgres_admin_user
|
|
10
|
-
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
-
# DB_NAME=CAA
|
|
12
|
-
|
|
13
|
-
DB_HOST=216.48.187.46
|
|
7
|
+
DB_HOST=164.52.222.169
|
|
14
8
|
DB_PORT=5432
|
|
15
|
-
DB_USER=
|
|
16
|
-
DB_PASS=
|
|
17
|
-
DB_NAME=
|
|
9
|
+
DB_USER=postgres_admin_user
|
|
10
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
+
DB_NAME=CAA
|
|
12
|
+
|
|
13
|
+
# DB_HOST=216.48.187.46
|
|
14
|
+
# DB_PORT=5432
|
|
15
|
+
# DB_USER=adminuser
|
|
16
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
17
|
+
# DB_NAME=CAA_QA
|
|
@@ -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);
|
|
@@ -18,5 +18,6 @@ export declare class SecurityAwarenessApproval extends BaseModel {
|
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
20
|
approval_status: SecurityAwarenessApprovalStatus;
|
|
21
|
-
|
|
21
|
+
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);
|
|
22
23
|
}
|
|
@@ -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, 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 SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseMode
|
|
|
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.SecurityAwarenessApproval = SecurityAwarenessApproval;
|
|
@@ -85,7 +86,11 @@ __decorate([
|
|
|
85
86
|
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false }),
|
|
86
87
|
__metadata("design:type", String)
|
|
87
88
|
], SecurityAwarenessApproval.prototype, "approval_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], SecurityAwarenessApproval.prototype, "is_allowed", void 0);
|
|
88
93
|
exports.SecurityAwarenessApproval = SecurityAwarenessApproval = __decorate([
|
|
89
94
|
(0, typeorm_1.Entity)({ name: 'security_awareness_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
|
], 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);
|
package/package.json
CHANGED
|
@@ -51,6 +51,9 @@ export class AccessCardApproval extends BaseModel {
|
|
|
51
51
|
})
|
|
52
52
|
approval_status: AccessCardApprovalStatus;
|
|
53
53
|
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
|
|
54
57
|
constructor(
|
|
55
58
|
request_id: number,
|
|
56
59
|
approver_role_id: number,
|
|
@@ -63,7 +66,8 @@ export class AccessCardApproval extends BaseModel {
|
|
|
63
66
|
section_id?: number | null,
|
|
64
67
|
approver_user_id?: number | null,
|
|
65
68
|
delegate_user_id?: number | null,
|
|
66
|
-
approved_by?: number | null
|
|
69
|
+
approved_by?: number | null,
|
|
70
|
+
is_allowed?: boolean
|
|
67
71
|
) {
|
|
68
72
|
super();
|
|
69
73
|
this.request_id = request_id;
|
|
@@ -78,6 +82,7 @@ export class AccessCardApproval extends BaseModel {
|
|
|
78
82
|
this.approved_by = approved_by ?? null;
|
|
79
83
|
this.comment = comment;
|
|
80
84
|
this.approval_status = approval_status;
|
|
85
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
81
86
|
}
|
|
82
87
|
}
|
|
83
88
|
|
|
@@ -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: true, nullable: false })
|
|
51
|
+
is_allowed: boolean;
|
|
52
|
+
|
|
50
53
|
constructor(
|
|
51
54
|
request_id: number,
|
|
52
55
|
approver_role_id: number,
|
|
@@ -59,7 +62,8 @@ export class SecurityAwarenessApproval extends BaseModel {
|
|
|
59
62
|
delegate_user_id?: number | null,
|
|
60
63
|
approved_by?: number | null,
|
|
61
64
|
service_id?: number,
|
|
62
|
-
sub_service_id?: number
|
|
65
|
+
sub_service_id?: number,
|
|
66
|
+
is_allowed?: boolean
|
|
63
67
|
) {
|
|
64
68
|
super();
|
|
65
69
|
this.request_id = request_id;
|
|
@@ -74,6 +78,7 @@ export class SecurityAwarenessApproval extends BaseModel {
|
|
|
74
78
|
this.approver_user_id = approver_user_id || null;
|
|
75
79
|
this.delegate_user_id = delegate_user_id || null;
|
|
76
80
|
this.approved_by = approved_by || null;
|
|
81
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
|
|
@@ -50,6 +50,9 @@ export class SecurityThreatApproval extends BaseModel {
|
|
|
50
50
|
@Column({ type: 'boolean', default: false, nullable: false })
|
|
51
51
|
is_manager: boolean;
|
|
52
52
|
|
|
53
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
54
|
+
is_allowed: boolean;
|
|
55
|
+
|
|
53
56
|
constructor(
|
|
54
57
|
request_id: number,
|
|
55
58
|
approver_role_id: number,
|
|
@@ -63,7 +66,8 @@ export class SecurityThreatApproval extends BaseModel {
|
|
|
63
66
|
delegate_user_id?: number | null,
|
|
64
67
|
approved_by?: number | null,
|
|
65
68
|
service_id?: number,
|
|
66
|
-
sub_service_id?: number
|
|
69
|
+
sub_service_id?: number,
|
|
70
|
+
is_allowed?: boolean
|
|
67
71
|
) {
|
|
68
72
|
super();
|
|
69
73
|
this.request_id = request_id;
|
|
@@ -79,6 +83,7 @@ export class SecurityThreatApproval extends BaseModel {
|
|
|
79
83
|
this.approver_user_id = approver_user_id || null;
|
|
80
84
|
this.delegate_user_id = delegate_user_id || null;
|
|
81
85
|
this.approved_by = approved_by || null;
|
|
86
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
|