@platform-modules/civil-aviation-authority 2.2.86 → 2.2.87

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.
Files changed (58) hide show
  1. package/.env +10 -4
  2. package/dist/data-source.js +10 -10
  3. package/dist/index.d.ts +5 -5
  4. package/dist/index.js +5 -5
  5. package/dist/models/AccessCardChatModel.d.ts +4 -1
  6. package/dist/models/AccessCardChatModel.js +16 -5
  7. package/dist/models/AccessCardWorkflowModel.d.ts +5 -1
  8. package/dist/models/AccessCardWorkflowModel.js +22 -2
  9. package/dist/models/LogisticsWorkflowModel.d.ts +5 -1
  10. package/dist/models/LogisticsWorkflowModel.js +22 -2
  11. package/dist/models/{AirportEntryPermitApprovalModel.d.ts → SecurityAwarenessApprovalModel.d.ts} +4 -4
  12. package/dist/models/{AirportEntryPermitApprovalModel.js → SecurityAwarenessApprovalModel.js} +27 -27
  13. package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
  14. package/dist/models/{AirportEntryPermitAttachmentModel.js → SecurityAwarenessAttachmentModel.js} +16 -26
  15. package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
  16. package/dist/models/SecurityAwarenessChatModel.js +78 -0
  17. package/dist/models/SecurityAwarenessRequestModel.d.ts +29 -0
  18. package/dist/models/SecurityAwarenessRequestModel.js +117 -0
  19. package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
  20. package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
  21. package/dist/models/SecurityThreatApprovalModel.js +1 -1
  22. package/dist/models/SecurityThreatChatModel.d.ts +4 -1
  23. package/dist/models/SecurityThreatChatModel.js +13 -2
  24. package/dist/models/SecurityThreatWorkflowModel.d.ts +5 -1
  25. package/dist/models/SecurityThreatWorkflowModel.js +22 -2
  26. package/dist/models/VpnRequestChatModel.d.ts +2 -1
  27. package/dist/models/VpnRequestChatModel.js +7 -2
  28. package/dist/models/VpnWorkflowModel.d.ts +4 -1
  29. package/dist/models/VpnWorkflowModel.js +17 -2
  30. package/package.json +1 -1
  31. package/src/data-source.ts +10 -10
  32. package/src/index.ts +5 -5
  33. package/src/models/AccessCardChatModel.ts +15 -4
  34. package/src/models/AccessCardWorkflowModel.ts +21 -1
  35. package/src/models/LogisticsWorkflowModel.ts +21 -1
  36. package/src/models/{AirportEntryPermitApprovalModel.ts → SecurityAwarenessApprovalModel.ts} +11 -10
  37. package/src/models/SecurityAwarenessAttachmentModel.ts +52 -0
  38. package/src/models/SecurityAwarenessChatModel.ts +66 -0
  39. package/src/models/SecurityAwarenessRequestModel.ts +105 -0
  40. package/src/models/SecurityAwarenessWorkflowModel.ts +63 -0
  41. package/src/models/SecurityThreatApprovalModel.ts +1 -1
  42. package/src/models/SecurityThreatChatModel.ts +12 -1
  43. package/src/models/SecurityThreatWorkflowModel.ts +21 -1
  44. package/src/models/VpnRequestChatModel.ts +6 -1
  45. package/src/models/VpnWorkflowModel.ts +16 -1
  46. package/dist/models/AirportEntryPermitAttachmentModel.d.ts +0 -14
  47. package/dist/models/AirportEntryPermitChatModel.d.ts +0 -17
  48. package/dist/models/AirportEntryPermitChatModel.js +0 -67
  49. package/dist/models/AirportEntryPermitModel.d.ts +0 -75
  50. package/dist/models/AirportEntryPermitModel.js +0 -253
  51. package/dist/models/AirportEntryPermitWorkflowModel.d.ts +0 -14
  52. package/dist/models/AirportEntryPermitWorkflowModel.js +0 -55
  53. package/dist/models/HotelreservationModal.d.ts +0 -30
  54. package/dist/models/HotelreservationModal.js +0 -119
  55. package/src/models/AirportEntryPermitAttachmentModel.ts +0 -62
  56. package/src/models/AirportEntryPermitChatModel.ts +0 -55
  57. package/src/models/AirportEntryPermitModel.ts +0 -246
  58. package/src/models/AirportEntryPermitWorkflowModel.ts +0 -42
@@ -1,246 +0,0 @@
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
- @Entity({ name: 'airport_entry_permits' })
47
- export class AirportEntryPermit extends BaseModel {
48
- // Workflow fields
49
- @Column({ type: 'int', nullable: true })
50
- req_user_department_id: number | null;
51
-
52
- @Column({ type: 'int', nullable: true })
53
- req_user_section_id: number | null;
54
-
55
- @Column({ type: 'int', nullable: true })
56
- service_id: number | null;
57
-
58
- @Column({ type: 'int', nullable: true })
59
- sub_service_id: number | null;
60
-
61
- @Column({ type: 'varchar', length: 20, nullable: true })
62
- service_type: string | null;
63
-
64
- @Column({ type: 'varchar', nullable: true })
65
- workflow_execution_id: string | null;
66
-
67
- @Column({
68
- type: "enum",
69
- enum: AirportEntryPermitStatus,
70
- default: AirportEntryPermitStatus.PENDING,
71
- nullable: false,
72
- })
73
- status: AirportEntryPermitStatus;
74
-
75
- @Column({ nullable: false })
76
- user_id: number;
77
-
78
- // Request ID - Auto generated
79
- @Column({ type: 'varchar', length: 50, nullable: true, unique: true })
80
- request_id: string | null;
81
-
82
- // User fields from requirements
83
- @Column({ type: 'varchar', length: 255, nullable: false })
84
- name_full_family_name: string;
85
-
86
- @Column({ type: 'varchar', length: 100, nullable: false })
87
- nationality: string;
88
-
89
- @Column({ type: 'date', nullable: false })
90
- dob: Date;
91
-
92
- @Column({ type: 'varchar', length: 255, nullable: false })
93
- place: string;
94
-
95
- @Column({ type: 'varchar', length: 50, nullable: false })
96
- passport_id_card_no: string;
97
-
98
- @Column({
99
- type: "enum",
100
- enum: AirportEntryPermitCategory,
101
- nullable: false,
102
- })
103
- category_of_permit: AirportEntryPermitCategory;
104
-
105
- @Column({ type: 'date', nullable: false })
106
- date_of_submission: Date;
107
-
108
- @Column({ type: 'varchar', length: 20, nullable: false })
109
- phone_number: string;
110
-
111
- @Column({
112
- type: "enum",
113
- enum: AirportEntryPermitLocation,
114
- nullable: false,
115
- })
116
- location: AirportEntryPermitLocation;
117
-
118
- @Column({
119
- type: "enum",
120
- enum: AirportEntryPermitType,
121
- nullable: false,
122
- })
123
- type_of_permit: AirportEntryPermitType;
124
-
125
- @Column({ type: 'time', nullable: true })
126
- temporary_start_time: string | null;
127
-
128
- @Column({ type: 'varchar', length: 100, nullable: true })
129
- temporary_duration: string | null;
130
-
131
- @Column({ type: 'text', array: true, nullable: false })
132
- permission_to_required_areas: AirportEntryPermitArea[];
133
-
134
- @Column({ type: 'text', nullable: true })
135
- attachment_url: string | null;
136
-
137
- @Column({ type: 'text', nullable: false })
138
- details: string;
139
-
140
- @Column({ type: 'varchar', length: 255, nullable: false })
141
- occupation_staff: string;
142
-
143
- // Visitor fields (optional)
144
- @Column({ type: 'varchar', length: 50, nullable: true })
145
- visitor_visa_type: string | null;
146
-
147
- @Column({ type: 'varchar', length: 50, nullable: true })
148
- visitor_visa_no: string | null;
149
-
150
- @Column({ type: 'date', nullable: true })
151
- visitor_visa_expiry_date: Date | 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
- visitor_visa_type?: string | null,
200
- visitor_visa_no?: string | null,
201
- visitor_visa_expiry_date?: Date | null,
202
- acknowledge_security_policies: boolean = false,
203
- acknowledge_disciplinary_action: boolean = false,
204
- consent_approve_to_issue_permit: boolean = false,
205
- consent_do_not_approve_to_issue_permit: boolean = false,
206
- consent_justification?: string | null,
207
- request_id?: string | null
208
- ) {
209
- super();
210
- this.name_full_family_name = name_full_family_name;
211
- this.nationality = nationality;
212
- this.dob = dob;
213
- this.place = place;
214
- this.passport_id_card_no = passport_id_card_no;
215
- this.category_of_permit = category_of_permit;
216
- this.date_of_submission = date_of_submission;
217
- this.phone_number = phone_number;
218
- this.location = location;
219
- this.type_of_permit = type_of_permit;
220
- this.permission_to_required_areas = permission_to_required_areas;
221
- this.details = details;
222
- this.occupation_staff = occupation_staff;
223
- this.requested_by = requested_by;
224
- this.user_id = user_id;
225
- this.status = status;
226
- this.service_id = service_id ?? null;
227
- this.sub_service_id = sub_service_id ?? null;
228
- this.service_type = service_type ?? null;
229
- this.workflow_execution_id = workflow_execution_id ?? null;
230
- this.req_user_department_id = req_user_department_id ?? null;
231
- this.req_user_section_id = req_user_section_id ?? null;
232
- this.attachment_url = attachment_url ?? null;
233
- this.temporary_start_time = temporary_start_time ?? null;
234
- this.temporary_duration = temporary_duration ?? null;
235
- this.visitor_visa_type = visitor_visa_type ?? null;
236
- this.visitor_visa_no = visitor_visa_no ?? null;
237
- this.visitor_visa_expiry_date = visitor_visa_expiry_date ?? null;
238
- this.acknowledge_security_policies = acknowledge_security_policies;
239
- this.acknowledge_disciplinary_action = acknowledge_disciplinary_action;
240
- this.consent_approve_to_issue_permit = consent_approve_to_issue_permit;
241
- this.consent_do_not_approve_to_issue_permit = consent_do_not_approve_to_issue_permit;
242
- this.consent_justification = consent_justification ?? null;
243
- this.request_id = request_id ?? null;
244
- }
245
- }
246
-
@@ -1,42 +0,0 @@
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
-