@platform-modules/civil-aviation-authority 2.2.100 → 2.2.101
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 +4 -4
- package/dist/data-source.d.ts +4 -0
- package/dist/data-source.js +156 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.js +85 -0
- package/dist/models/AccessCardApprovalModel.d.ts +22 -0
- package/dist/models/AccessCardApprovalModel.js +96 -0
- package/dist/models/AccessCardAttachmentModel.d.ts +12 -0
- package/dist/models/AccessCardAttachmentModel.js +64 -0
- package/dist/models/AccessCardChatModel.d.ts +20 -0
- package/dist/models/AccessCardChatModel.js +78 -0
- package/dist/models/AccessCardRequestModel.d.ts +43 -0
- package/dist/models/AccessCardRequestModel.js +148 -0
- package/dist/models/AccessCardWorkflowModel.d.ts +18 -0
- package/dist/models/AccessCardWorkflowModel.js +80 -0
- package/dist/models/AirportEntryPermitApprovalModel.d.ts +23 -0
- package/dist/models/AirportEntryPermitApprovalModel.js +92 -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 +78 -0
- package/dist/models/AirportEntryPermitModel.js +249 -0
- package/dist/models/AirportEntryPermitWorkflowModel.d.ts +14 -0
- package/dist/models/AirportEntryPermitWorkflowModel.js +55 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/HotelApprovalModel.d.ts +22 -0
- package/dist/models/HotelApprovalModel.js +91 -0
- package/dist/models/HotelAttachedModel.d.ts +14 -0
- package/dist/models/HotelAttachedModel.js +74 -0
- package/dist/models/HotelChatModel.d.ts +17 -0
- package/dist/models/HotelChatModel.js +67 -0
- package/dist/models/HotelWorkFlowModel.d.ts +14 -0
- package/dist/models/HotelWorkFlowModel.js +56 -0
- package/dist/models/HotelreservationModal.d.ts +30 -0
- package/dist/models/HotelreservationModal.js +119 -0
- package/dist/models/HotelreservationModel.d.ts +45 -0
- package/dist/models/HotelreservationModel.js +177 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +12 -0
- package/dist/models/ITRequestChatModel.js +56 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/ItApprovalsModel.d.ts +23 -0
- package/dist/models/ItApprovalsModel.js +92 -0
- package/dist/models/ItWorkflowModel.d.ts +15 -0
- package/dist/models/ItWorkflowModel.js +61 -0
- package/dist/models/LogisticsApprovalModel.d.ts +22 -0
- package/dist/models/LogisticsApprovalModel.js +91 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +20 -0
- package/dist/models/LogisticsChatModel.js +78 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +42 -0
- package/dist/models/LogisticsForeignVehicleModel.js +153 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +57 -0
- package/dist/models/LogisticsModel.js +195 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsWorkflowModel.js +76 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +22 -0
- package/dist/models/SecurityAwarenessApprovalModel.js +91 -0
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAwarenessAttachmentModel.js +64 -0
- package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
- package/dist/models/SecurityAwarenessChatModel.js +78 -0
- package/dist/models/SecurityAwarenessRequestModel.d.ts +29 -0
- package/dist/models/SecurityAwarenessRequestModel.js +117 -0
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
- package/dist/models/SecurityThreatApprovalModel.d.ts +24 -0
- package/dist/models/SecurityThreatApprovalModel.js +97 -0
- package/dist/models/SecurityThreatAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityThreatAttachmentModel.js +64 -0
- package/dist/models/SecurityThreatChatModel.d.ts +20 -0
- package/dist/models/SecurityThreatChatModel.js +78 -0
- package/dist/models/SecurityThreatRequestModel.d.ts +29 -0
- package/dist/models/SecurityThreatRequestModel.js +104 -0
- package/dist/models/SecurityThreatWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityThreatWorkflowModel.js +76 -0
- package/dist/models/ServiceTypeModel.d.ts +20 -0
- package/dist/models/ServiceTypeModel.js +88 -0
- package/dist/models/VpnApprovalModel.d.ts +21 -0
- package/dist/models/VpnApprovalModel.js +87 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +26 -0
- package/dist/models/VpnRequestChatModel.js +86 -0
- package/dist/models/VpnRequestModel.d.ts +70 -0
- package/dist/models/VpnRequestModel.js +175 -0
- package/dist/models/VpnWorkflowModel.d.ts +17 -0
- package/dist/models/VpnWorkflowModel.js +71 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -4
- package/src/index.ts +5 -2
- package/src/models/AccessCardApprovalModel.ts +1 -1
- package/src/models/AirportEntryPermitApprovalModel.ts +79 -0
- package/src/models/AirportEntryPermitAttachmentModel.ts +62 -0
- package/src/models/AirportEntryPermitChatModel.ts +55 -0
- package/src/models/AirportEntryPermitModel.ts +242 -0
- package/src/models/AirportEntryPermitWorkflowModel.ts +42 -0
- package/src/models/ITRequestChatModel.ts +1 -21
- package/src/models/ItWorkflowModel.ts +1 -17
- package/src/models/SecurityAwarenessRequestModel.ts +4 -9
- package/src/models/GroupModel.ts +0 -31
- package/src/models/GroupNamesModel.ts +0 -22
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { Entity, Column } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AirportEntryPermitCategory {
|
|
5
|
+
ISSUING_NEW_PERMIT = "Issuing New Permit",
|
|
6
|
+
RENEWAL_OF_PERMIT = "Renewal of Permit",
|
|
7
|
+
AMENDING = "Amending",
|
|
8
|
+
REPLACING_LOST = "Replacing lost",
|
|
9
|
+
CANCELLING_AIRPORT_SECURITY_PERMITS = "Cancelling airport security permits"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum AirportEntryPermitType {
|
|
13
|
+
PERMANENT = "Permanent",
|
|
14
|
+
TEMPORARY = "Temporary"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum AirportEntryPermitLocation {
|
|
18
|
+
MUSCAT = "Muscat",
|
|
19
|
+
SALALAH = "Salalah",
|
|
20
|
+
MARMUL = "Marmul",
|
|
21
|
+
DURUM = "Durum",
|
|
22
|
+
SOHAR = "Sohar",
|
|
23
|
+
FUHUD = "Fuhud",
|
|
24
|
+
MUKHAZINA = "Mukhazina"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum AirportEntryPermitArea {
|
|
28
|
+
PURPLE = "VIP building",
|
|
29
|
+
HEAVENLY = "Cargo Building with import and export sections",
|
|
30
|
+
ORANGE = "[ Arrivals Hall] and Arrivals building",
|
|
31
|
+
GREEN = "[departures Hall ] and departures building",
|
|
32
|
+
YELLOW = "Information centre and control tower building",
|
|
33
|
+
BLUE = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop",
|
|
34
|
+
PINK = "Baggage sorting area",
|
|
35
|
+
GRAY = "Supply building",
|
|
36
|
+
ALL_CIVIL_AIRPORTS = "All Civil Airports"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum AirportEntryPermitStatus {
|
|
40
|
+
PENDING = "Pending",
|
|
41
|
+
APPROVED = "Approved",
|
|
42
|
+
REJECTED = "Rejected",
|
|
43
|
+
IN_PROGRESS = "In Progress"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum VisitorOption {
|
|
47
|
+
VISA_TYPE = "Visa Type",
|
|
48
|
+
VISA_NO = "Visa No",
|
|
49
|
+
DATE_EXPIRY_VISA = "Date Expiry Visa"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@Entity({ name: 'airport_entry_permits' })
|
|
53
|
+
export class AirportEntryPermit extends BaseModel {
|
|
54
|
+
// Workflow fields
|
|
55
|
+
@Column({ type: 'int', nullable: true })
|
|
56
|
+
req_user_department_id: number | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'int', nullable: true })
|
|
59
|
+
req_user_section_id: number | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'int', nullable: true })
|
|
62
|
+
service_id: number | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'int', nullable: true })
|
|
65
|
+
sub_service_id: number | null;
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
68
|
+
service_type: string | null;
|
|
69
|
+
|
|
70
|
+
@Column({ type: 'varchar', nullable: true })
|
|
71
|
+
workflow_execution_id: string | null;
|
|
72
|
+
|
|
73
|
+
@Column({
|
|
74
|
+
type: "enum",
|
|
75
|
+
enum: AirportEntryPermitStatus,
|
|
76
|
+
default: AirportEntryPermitStatus.PENDING,
|
|
77
|
+
nullable: false,
|
|
78
|
+
})
|
|
79
|
+
status: AirportEntryPermitStatus;
|
|
80
|
+
|
|
81
|
+
@Column({ nullable: false })
|
|
82
|
+
user_id: number;
|
|
83
|
+
|
|
84
|
+
// Request ID - Auto generated
|
|
85
|
+
@Column({ type: 'varchar', length: 50, nullable: true, unique: true })
|
|
86
|
+
request_id: string | null;
|
|
87
|
+
|
|
88
|
+
// User fields from requirements
|
|
89
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
90
|
+
name_full_family_name: string;
|
|
91
|
+
|
|
92
|
+
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
93
|
+
nationality: string;
|
|
94
|
+
|
|
95
|
+
@Column({ type: 'date', nullable: false })
|
|
96
|
+
dob: Date;
|
|
97
|
+
|
|
98
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
99
|
+
place: string;
|
|
100
|
+
|
|
101
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
102
|
+
passport_id_card_no: string;
|
|
103
|
+
|
|
104
|
+
@Column({
|
|
105
|
+
type: "enum",
|
|
106
|
+
enum: AirportEntryPermitCategory,
|
|
107
|
+
nullable: false,
|
|
108
|
+
})
|
|
109
|
+
category_of_permit: AirportEntryPermitCategory;
|
|
110
|
+
|
|
111
|
+
@Column({ type: 'date', nullable: false })
|
|
112
|
+
date_of_submission: Date;
|
|
113
|
+
|
|
114
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
115
|
+
phone_number: string;
|
|
116
|
+
|
|
117
|
+
@Column({
|
|
118
|
+
type: "enum",
|
|
119
|
+
enum: AirportEntryPermitLocation,
|
|
120
|
+
nullable: false,
|
|
121
|
+
})
|
|
122
|
+
location: AirportEntryPermitLocation;
|
|
123
|
+
|
|
124
|
+
@Column({
|
|
125
|
+
type: "enum",
|
|
126
|
+
enum: AirportEntryPermitType,
|
|
127
|
+
nullable: false,
|
|
128
|
+
})
|
|
129
|
+
type_of_permit: AirportEntryPermitType;
|
|
130
|
+
|
|
131
|
+
@Column({ type: 'time', nullable: true })
|
|
132
|
+
temporary_start_time: string | null;
|
|
133
|
+
|
|
134
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
135
|
+
temporary_duration: string | null;
|
|
136
|
+
|
|
137
|
+
@Column({ type: 'text', array: true, nullable: false })
|
|
138
|
+
permission_to_required_areas: AirportEntryPermitArea[];
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'text', nullable: true })
|
|
141
|
+
attachment_url: string | null;
|
|
142
|
+
|
|
143
|
+
@Column({ type: 'text', nullable: false })
|
|
144
|
+
details: string;
|
|
145
|
+
|
|
146
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
147
|
+
occupation_staff: string;
|
|
148
|
+
|
|
149
|
+
// Visitor fields (optional)
|
|
150
|
+
@Column({ type: 'text', array: true, nullable: true })
|
|
151
|
+
for_visitor: VisitorOption[] | null;
|
|
152
|
+
|
|
153
|
+
// Acknowledgement fields (from form checkboxes)
|
|
154
|
+
@Column({ type: 'boolean', default: false })
|
|
155
|
+
acknowledge_security_policies: boolean;
|
|
156
|
+
|
|
157
|
+
@Column({ type: 'boolean', default: false })
|
|
158
|
+
acknowledge_disciplinary_action: boolean;
|
|
159
|
+
|
|
160
|
+
// Consent fields (for approvers - not in create form)
|
|
161
|
+
@Column({ type: 'boolean', default: false })
|
|
162
|
+
consent_approve_to_issue_permit: boolean;
|
|
163
|
+
|
|
164
|
+
@Column({ type: 'boolean', default: false })
|
|
165
|
+
consent_do_not_approve_to_issue_permit: boolean;
|
|
166
|
+
|
|
167
|
+
@Column({ type: 'text', nullable: true })
|
|
168
|
+
consent_justification: string | null;
|
|
169
|
+
|
|
170
|
+
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
171
|
+
requested_by: string;
|
|
172
|
+
|
|
173
|
+
constructor(
|
|
174
|
+
name_full_family_name: string,
|
|
175
|
+
nationality: string,
|
|
176
|
+
dob: Date,
|
|
177
|
+
place: string,
|
|
178
|
+
passport_id_card_no: string,
|
|
179
|
+
category_of_permit: AirportEntryPermitCategory,
|
|
180
|
+
date_of_submission: Date,
|
|
181
|
+
phone_number: string,
|
|
182
|
+
location: AirportEntryPermitLocation,
|
|
183
|
+
type_of_permit: AirportEntryPermitType,
|
|
184
|
+
permission_to_required_areas: AirportEntryPermitArea[],
|
|
185
|
+
details: string,
|
|
186
|
+
occupation_staff: string,
|
|
187
|
+
requested_by: string,
|
|
188
|
+
user_id: number,
|
|
189
|
+
status: AirportEntryPermitStatus = AirportEntryPermitStatus.PENDING,
|
|
190
|
+
service_id?: number | null,
|
|
191
|
+
sub_service_id?: number | null,
|
|
192
|
+
service_type?: string | null,
|
|
193
|
+
workflow_execution_id?: string | null,
|
|
194
|
+
req_user_department_id?: number | null,
|
|
195
|
+
req_user_section_id?: number | null,
|
|
196
|
+
attachment_url?: string | null,
|
|
197
|
+
temporary_start_time?: string | null,
|
|
198
|
+
temporary_duration?: string | null,
|
|
199
|
+
for_visitor?: VisitorOption[] | null,
|
|
200
|
+
acknowledge_security_policies: boolean = false,
|
|
201
|
+
acknowledge_disciplinary_action: boolean = false,
|
|
202
|
+
consent_approve_to_issue_permit: boolean = false,
|
|
203
|
+
consent_do_not_approve_to_issue_permit: boolean = false,
|
|
204
|
+
consent_justification?: string | null,
|
|
205
|
+
request_id?: string | null
|
|
206
|
+
) {
|
|
207
|
+
super();
|
|
208
|
+
this.name_full_family_name = name_full_family_name;
|
|
209
|
+
this.nationality = nationality;
|
|
210
|
+
this.dob = dob;
|
|
211
|
+
this.place = place;
|
|
212
|
+
this.passport_id_card_no = passport_id_card_no;
|
|
213
|
+
this.category_of_permit = category_of_permit;
|
|
214
|
+
this.date_of_submission = date_of_submission;
|
|
215
|
+
this.phone_number = phone_number;
|
|
216
|
+
this.location = location;
|
|
217
|
+
this.type_of_permit = type_of_permit;
|
|
218
|
+
this.permission_to_required_areas = permission_to_required_areas;
|
|
219
|
+
this.details = details;
|
|
220
|
+
this.occupation_staff = occupation_staff;
|
|
221
|
+
this.requested_by = requested_by;
|
|
222
|
+
this.user_id = user_id;
|
|
223
|
+
this.status = status;
|
|
224
|
+
this.service_id = service_id ?? null;
|
|
225
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
226
|
+
this.service_type = service_type ?? null;
|
|
227
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
228
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
229
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
230
|
+
this.attachment_url = attachment_url ?? null;
|
|
231
|
+
this.temporary_start_time = temporary_start_time ?? null;
|
|
232
|
+
this.temporary_duration = temporary_duration ?? null;
|
|
233
|
+
this.for_visitor = for_visitor ?? null;
|
|
234
|
+
this.acknowledge_security_policies = acknowledge_security_policies;
|
|
235
|
+
this.acknowledge_disciplinary_action = acknowledge_disciplinary_action;
|
|
236
|
+
this.consent_approve_to_issue_permit = consent_approve_to_issue_permit;
|
|
237
|
+
this.consent_do_not_approve_to_issue_permit = consent_do_not_approve_to_issue_permit;
|
|
238
|
+
this.consent_justification = consent_justification ?? null;
|
|
239
|
+
this.request_id = request_id ?? null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AirportEntryPermitWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'airport_entry_permit_workflows' })
|
|
11
|
+
export class AirportEntryPermitWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: AirportEntryPermitWorkFlowStatus, default: AirportEntryPermitWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: AirportEntryPermitWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
request_id: number,
|
|
29
|
+
content: string,
|
|
30
|
+
status: AirportEntryPermitWorkFlowStatus,
|
|
31
|
+
service_id?: number,
|
|
32
|
+
sub_service_id?: number
|
|
33
|
+
) {
|
|
34
|
+
super();
|
|
35
|
+
this.request_id = request_id;
|
|
36
|
+
this.service_id = service_id || null;
|
|
37
|
+
this.sub_service_id = sub_service_id || null;
|
|
38
|
+
this.content = content;
|
|
39
|
+
this.status = status;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -13,12 +13,6 @@ export class ITRequestChat extends BaseModel {
|
|
|
13
13
|
@JoinColumn({ name: 'request_id' })
|
|
14
14
|
request: ITHelpDeskRequests;
|
|
15
15
|
|
|
16
|
-
@Column({ type: 'integer', nullable: true })
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'integer', nullable: true })
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
|
|
22
16
|
@Column({ type: 'integer', nullable: false })
|
|
23
17
|
user_id: number;
|
|
24
18
|
|
|
@@ -26,15 +20,9 @@ export class ITRequestChat extends BaseModel {
|
|
|
26
20
|
@JoinColumn({ name: 'user_id' })
|
|
27
21
|
user: User;
|
|
28
22
|
|
|
29
|
-
@Column({ type: 'integer', nullable: true })
|
|
30
|
-
role_id: number | null;
|
|
31
|
-
|
|
32
23
|
@Column({ type: 'text', nullable: false })
|
|
33
24
|
message: string;
|
|
34
25
|
|
|
35
|
-
@Column({ type: 'text', nullable: true })
|
|
36
|
-
status: string | null;
|
|
37
|
-
|
|
38
26
|
@Column({ type: 'boolean', default: false })
|
|
39
27
|
is_internal: boolean;
|
|
40
28
|
|
|
@@ -42,20 +30,12 @@ export class ITRequestChat extends BaseModel {
|
|
|
42
30
|
request_id: number,
|
|
43
31
|
user_id: number,
|
|
44
32
|
message: string,
|
|
45
|
-
is_internal?: boolean
|
|
46
|
-
service_id?: number | null,
|
|
47
|
-
sub_service_id?: number | null,
|
|
48
|
-
role_id?: number | null,
|
|
49
|
-
status?: string | null
|
|
33
|
+
is_internal?: boolean
|
|
50
34
|
) {
|
|
51
35
|
super();
|
|
52
36
|
this.request_id = request_id;
|
|
53
|
-
this.service_id = service_id || null;
|
|
54
|
-
this.sub_service_id = sub_service_id || null;
|
|
55
37
|
this.user_id = user_id;
|
|
56
|
-
this.role_id = role_id || null;
|
|
57
38
|
this.message = message;
|
|
58
|
-
this.status = status || null;
|
|
59
39
|
this.is_internal = is_internal || false;
|
|
60
40
|
}
|
|
61
41
|
}
|
|
@@ -28,19 +28,7 @@ export class ItWorkFlow extends BaseModel {
|
|
|
28
28
|
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
29
29
|
status: workFlowStatus;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
user_id: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'integer', nullable: true })
|
|
35
|
-
role_id: number | null;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'integer', nullable: true })
|
|
38
|
-
department_id: number | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'integer', nullable: true })
|
|
41
|
-
section_id: number | null;
|
|
42
|
-
|
|
43
|
-
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
31
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null) {
|
|
44
32
|
super();
|
|
45
33
|
this.request_id = request_id;
|
|
46
34
|
this.content = content;
|
|
@@ -48,9 +36,5 @@ export class ItWorkFlow extends BaseModel {
|
|
|
48
36
|
this.order = order || null;
|
|
49
37
|
this.service_id = service_id ?? null;
|
|
50
38
|
this.sub_service_id = sub_service_id ?? null;
|
|
51
|
-
this.user_id = user_id || null;
|
|
52
|
-
this.role_id = role_id || null;
|
|
53
|
-
this.department_id = department_id || null;
|
|
54
|
-
this.section_id = section_id || null;
|
|
55
39
|
}
|
|
56
40
|
}
|
|
@@ -47,11 +47,8 @@ export class SecurityAwarenessRequest extends BaseModel {
|
|
|
47
47
|
@Column({ type: "text", nullable: true })
|
|
48
48
|
description: string | null;
|
|
49
49
|
|
|
50
|
-
@Column({ type: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@Column({ type: "time", nullable: true })
|
|
54
|
-
event_time: string | null;
|
|
50
|
+
@Column({ type: "timestamp", nullable: true })
|
|
51
|
+
event_date_time: Date | null;
|
|
55
52
|
|
|
56
53
|
@Column({
|
|
57
54
|
type: "enum",
|
|
@@ -83,8 +80,7 @@ export class SecurityAwarenessRequest extends BaseModel {
|
|
|
83
80
|
phone_number: string,
|
|
84
81
|
place: string | null,
|
|
85
82
|
description: string | null,
|
|
86
|
-
|
|
87
|
-
event_time: string | null,
|
|
83
|
+
event_date_time: Date | null,
|
|
88
84
|
media_coverage_required: MediaCoverageRequired,
|
|
89
85
|
status: SecurityAwarenessRequestStatus,
|
|
90
86
|
workflow_execution_id?: string | null,
|
|
@@ -100,8 +96,7 @@ export class SecurityAwarenessRequest extends BaseModel {
|
|
|
100
96
|
this.phone_number = phone_number;
|
|
101
97
|
this.place = place ?? null;
|
|
102
98
|
this.description = description ?? null;
|
|
103
|
-
this.
|
|
104
|
-
this.event_time = event_time ?? null;
|
|
99
|
+
this.event_date_time = event_date_time ?? null;
|
|
105
100
|
this.media_coverage_required = media_coverage_required;
|
|
106
101
|
this.status = status;
|
|
107
102
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
package/src/models/GroupModel.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** *
|
|
2
|
-
@author
|
|
3
|
-
Amnet Digital
|
|
4
|
-
@date
|
|
5
|
-
2024-05-20
|
|
6
|
-
@Model
|
|
7
|
-
Group
|
|
8
|
-
@usage
|
|
9
|
-
Group Information will store
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { Column, Entity } from "typeorm";
|
|
13
|
-
import { BaseModel } from './BaseModel';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@Entity({ name: 'Groups' })
|
|
17
|
-
export class Group extends BaseModel {
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'bigint', nullable: false })
|
|
20
|
-
group_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'bigint', nullable: false })
|
|
23
|
-
user_id: number;
|
|
24
|
-
|
|
25
|
-
constructor(group_id: number, user_id: number) {
|
|
26
|
-
super();
|
|
27
|
-
this.group_id = group_id
|
|
28
|
-
this.user_id = user_id
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'group_names' })
|
|
5
|
-
export class GroupNames extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ nullable: false })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Column({ nullable: false })
|
|
11
|
-
description: string;
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
14
|
-
name: string,
|
|
15
|
-
description: string
|
|
16
|
-
) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.description = description;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|