@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
|
@@ -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([
|