@platform-modules/civil-aviation-authority 2.3.290 → 2.3.291

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 (103) hide show
  1. package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.d.ts +4 -4
  2. package/dist/models/AppealAgainstAdministrativeDecisionRequestModel.js +8 -8
  3. package/dist/models/CyberSecurityAuditRequestModel.d.ts +2 -0
  4. package/dist/models/CyberSecurityAuditRequestModel.js +8 -0
  5. package/dist/models/CyberSecurityRiskManagementRiskModel.d.ts +2 -0
  6. package/dist/models/CyberSecurityRiskManagementRiskModel.js +8 -0
  7. package/dist/models/MaintenanceRequestModel.d.ts +3 -1
  8. package/dist/models/MaintenanceRequestModel.js +2 -0
  9. package/dist/models/RequestATenderRequestModel.d.ts +2 -0
  10. package/dist/models/RequestATenderRequestModel.js +8 -0
  11. package/dist/models/ResidentialUnitRentalRequestModel.d.ts +1 -1
  12. package/dist/models/ResidentialUnitRentalRequestModel.js +2 -2
  13. package/package.json +1 -1
  14. package/sql/add_all_workflow_chat_arabic_columns.sql +1 -1
  15. package/sql/caa_api_payload_changes_2026_07.sql +32 -0
  16. package/src/models/AccessCardChatModel.ts +6 -6
  17. package/src/models/AccessCardWorkflowModel.ts +6 -6
  18. package/src/models/AccommodationChatModel.ts +6 -6
  19. package/src/models/AccommodationWorkflowModel.ts +6 -6
  20. package/src/models/AirportEntryPermitChatModel.ts +6 -6
  21. package/src/models/AirportEntryPermitWorkflowModel.ts +6 -6
  22. package/src/models/AnnualTrainingPlanChatModel.ts +6 -6
  23. package/src/models/AnnualTrainingPlanWorkflowModel.ts +6 -6
  24. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +8 -8
  25. package/src/models/AssignTasksEmpChatModel.ts +6 -6
  26. package/src/models/AssignTasksEmpWorkflowModel.ts +6 -6
  27. package/src/models/ComplaintLostPropertyReportChatModel.ts +6 -6
  28. package/src/models/ComplaintLostPropertyReportWorkflowModel.ts +6 -6
  29. package/src/models/CyberSecurityAuditRequestModel.ts +6 -0
  30. package/src/models/CyberSecurityRiskManagementRiskModel.ts +6 -0
  31. package/src/models/DutyMissionChatModel.ts +6 -6
  32. package/src/models/DutyMissionWorkflowModel.ts +6 -6
  33. package/src/models/EventSupportChatModel.ts +6 -6
  34. package/src/models/EventSupportWorkflowModel.ts +6 -6
  35. package/src/models/FollowUpReportChatModel.ts +6 -6
  36. package/src/models/FollowUpReportWorkflowModel.ts +6 -6
  37. package/src/models/FoodChatModel.ts +6 -6
  38. package/src/models/FoodWorkflowModel.ts +6 -6
  39. package/src/models/HallChatModel.ts +6 -6
  40. package/src/models/HallWorkflowModel.ts +6 -6
  41. package/src/models/HotelChatModel.ts +6 -6
  42. package/src/models/HotelWorkFlowModel.ts +6 -6
  43. package/src/models/HousingContractCancelChatModel.ts +6 -6
  44. package/src/models/HousingContractCancelWorkflowModel.ts +6 -6
  45. package/src/models/HousingContractRenewalChatModel.ts +6 -6
  46. package/src/models/HousingContractRenewalWorkflowModel.ts +6 -6
  47. package/src/models/HrServiceChatModel.ts +6 -6
  48. package/src/models/HrServiceWorkflowModel.ts +6 -6
  49. package/src/models/ITRequestChatModel.ts +6 -6
  50. package/src/models/ImportExportMaterialChatModel.ts +6 -6
  51. package/src/models/ImportExportMaterialWorkflowModel.ts +6 -6
  52. package/src/models/InformationSecurityChatModel.ts +6 -6
  53. package/src/models/InformationSecurityWorkflowModel.ts +6 -6
  54. package/src/models/ItWorkflowModel.ts +6 -6
  55. package/src/models/LegalComplaintChatModel.ts +6 -6
  56. package/src/models/LegalComplaintWorkflowModel.ts +6 -6
  57. package/src/models/LegalConsultationChatModel.ts +6 -6
  58. package/src/models/LegalConsultationWorkflowModel.ts +6 -6
  59. package/src/models/LegalContractReviewChatModel.ts +6 -6
  60. package/src/models/LegalContractReviewWorkflowModel.ts +6 -6
  61. package/src/models/LogisticsChatModel.ts +6 -6
  62. package/src/models/LogisticsVehicleMaintenanceChatModel.ts +6 -6
  63. package/src/models/LogisticsVehicleMaintenanceWorkflowModel.ts +6 -6
  64. package/src/models/LogisticsWorkflowModel.ts +6 -6
  65. package/src/models/MaintenanceChatModel.ts +6 -6
  66. package/src/models/MaintenanceExternalStationsChatModel.ts +6 -6
  67. package/src/models/MaintenanceExternalStationsWorkflowModel.ts +6 -6
  68. package/src/models/MaintenanceRequestModel.ts +2 -0
  69. package/src/models/MaintenanceWorkflowModel.ts +6 -6
  70. package/src/models/MediaPublicationsChatModel.ts +6 -6
  71. package/src/models/MediaPublicationsWorkflowModel.ts +6 -6
  72. package/src/models/MultiPurposeHallChatModel.ts +6 -6
  73. package/src/models/MultiPurposeHallWorkflowModel.ts +6 -6
  74. package/src/models/RequestATenderRequestModel.ts +6 -0
  75. package/src/models/RequestForCoverageChatModel.ts +6 -6
  76. package/src/models/RequestForCoverageWorkflowModel.ts +6 -6
  77. package/src/models/RequestForPresidentsCoverageChatModel.ts +6 -6
  78. package/src/models/RequestForPresidentsCoverageWorkflowModel.ts +6 -6
  79. package/src/models/ResidentialUnitRentalChatModel.ts +6 -6
  80. package/src/models/ResidentialUnitRentalRequestModel.ts +2 -2
  81. package/src/models/ResidentialUnitRentalWorkflowModel.ts +6 -6
  82. package/src/models/RespondToEnquiriesChatModel.ts +6 -6
  83. package/src/models/RespondToEnquiriesWorkflowModel.ts +6 -6
  84. package/src/models/ScholarshipChatModel.ts +6 -6
  85. package/src/models/ScholarshipWorkflowModel.ts +6 -6
  86. package/src/models/SecurityAwarenessChatModel.ts +6 -6
  87. package/src/models/SecurityAwarenessWorkflowModel.ts +6 -6
  88. package/src/models/SecurityThreatChatModel.ts +6 -6
  89. package/src/models/SecurityThreatWorkflowModel.ts +6 -6
  90. package/src/models/ServiceExtensionAfter60ChatModel.ts +6 -6
  91. package/src/models/ServiceExtensionAfter60WorkflowModel.ts +6 -6
  92. package/src/models/StudyLeaveChatModel.ts +6 -6
  93. package/src/models/StudyLeaveWorkflowModel.ts +6 -6
  94. package/src/models/TrainingChatModel.ts +6 -6
  95. package/src/models/TrainingRoomBookingChatModel.ts +6 -6
  96. package/src/models/TrainingRoomBookingWorkflowModel.ts +6 -6
  97. package/src/models/TrainingWorkflowModel.ts +6 -6
  98. package/src/models/VipHallChatModel.ts +6 -6
  99. package/src/models/VipHallWorkflowModel.ts +6 -6
  100. package/src/models/VpnRequestChatModel.ts +6 -6
  101. package/src/models/VpnWorkflowModel.ts +6 -6
  102. package/src/models/WorkingHoursExtensionChatModel.ts +6 -6
  103. package/src/models/WorkingHoursExtensionWorkflowModel.ts +6 -6
@@ -24,18 +24,18 @@ export declare class AppealAgainstAdministrativeDecisionRequest extends BaseMode
24
24
  submission_date: Date;
25
25
  title_of_complaint: string;
26
26
  appeal_against_decision: string;
27
- description: string;
27
+ description: string | null;
28
28
  decision_number: string;
29
- decision_date: Date;
29
+ decision_date: Date | null;
30
30
  decision_subject: string;
31
- grievance_details: string;
31
+ grievance_details: string | null;
32
32
  individuals_involved: string[] | null;
33
33
  times: string[] | null;
34
34
  dates: Date | null;
35
35
  location: string | null;
36
36
  requests: string[] | null;
37
37
  events: string[] | null;
38
- grievant_name: string;
38
+ grievant_name: string | null;
39
39
  grievant_employee_number: string;
40
40
  grievant_directorate_id: number | null;
41
41
  grievant_department_id: number | null;
@@ -90,24 +90,24 @@ __decorate([
90
90
  __metadata("design:type", String)
91
91
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "appeal_against_decision", void 0);
92
92
  __decorate([
93
- (0, typeorm_1.Column)({ type: "text", nullable: false }),
94
- __metadata("design:type", String)
93
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
94
+ __metadata("design:type", Object)
95
95
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "description", void 0);
96
96
  __decorate([
97
97
  (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
98
98
  __metadata("design:type", String)
99
99
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_number", void 0);
100
100
  __decorate([
101
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
102
- __metadata("design:type", Date)
101
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
102
+ __metadata("design:type", Object)
103
103
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_date", void 0);
104
104
  __decorate([
105
105
  (0, typeorm_1.Column)({ type: "text", nullable: false }),
106
106
  __metadata("design:type", String)
107
107
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "decision_subject", void 0);
108
108
  __decorate([
109
- (0, typeorm_1.Column)({ type: "text", nullable: false }),
110
- __metadata("design:type", String)
109
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
110
+ __metadata("design:type", Object)
111
111
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "grievance_details", void 0);
112
112
  __decorate([
113
113
  (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
@@ -134,8 +134,8 @@ __decorate([
134
134
  __metadata("design:type", Object)
135
135
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "events", void 0);
136
136
  __decorate([
137
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
138
- __metadata("design:type", String)
137
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
138
+ __metadata("design:type", Object)
139
139
  ], AppealAgainstAdministrativeDecisionRequest.prototype, "grievant_name", void 0);
140
140
  __decorate([
141
141
  (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
@@ -37,5 +37,7 @@ export declare class CyberSecurityAuditRequest extends BaseModel {
37
37
  application_to_be_audited: CyberSecurityAuditApplicationType;
38
38
  application_to_be_audited_other: string | null;
39
39
  submission_date: Date;
40
+ date: Date | null;
41
+ time: string | null;
40
42
  constructor(user_id: number, request_classification: CyberSecurityAuditClassification, application_to_be_audited: CyberSecurityAuditApplicationType, submission_date: Date, status?: CyberSecurityAuditRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, requesting_to_department_id?: number | null, requesting_to_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, application_to_be_audited_other?: string | null);
41
43
  }
@@ -134,6 +134,14 @@ __decorate([
134
134
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
135
135
  __metadata("design:type", Date)
136
136
  ], CyberSecurityAuditRequest.prototype, "submission_date", void 0);
137
+ __decorate([
138
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
139
+ __metadata("design:type", Object)
140
+ ], CyberSecurityAuditRequest.prototype, "date", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.Column)({ type: "varchar", length: 8, nullable: true }),
143
+ __metadata("design:type", Object)
144
+ ], CyberSecurityAuditRequest.prototype, "time", void 0);
137
145
  exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest = __decorate([
138
146
  (0, typeorm_1.Entity)({ name: "cyber_security_audit_requests" }),
139
147
  __metadata("design:paramtypes", [Number, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
@@ -28,6 +28,8 @@ export declare class CyberSecurityRiskManagementRisk extends BaseModel {
28
28
  end_date: Date;
29
29
  iso_control_reference: string | null;
30
30
  risk_treatment_plan: string;
31
+ treatment: string | null;
32
+ action: string | null;
31
33
  confidentiality: number | null;
32
34
  integrity: number | null;
33
35
  availability: number | null;
@@ -98,6 +98,14 @@ __decorate([
98
98
  (0, typeorm_1.Column)({ type: "text", nullable: false }),
99
99
  __metadata("design:type", String)
100
100
  ], CyberSecurityRiskManagementRisk.prototype, "risk_treatment_plan", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
103
+ __metadata("design:type", Object)
104
+ ], CyberSecurityRiskManagementRisk.prototype, "treatment", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
107
+ __metadata("design:type", Object)
108
+ ], CyberSecurityRiskManagementRisk.prototype, "action", void 0);
101
109
  __decorate([
102
110
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
103
111
  __metadata("design:type", Object)
@@ -3,7 +3,9 @@ export declare enum AssetMaintenanceCategory {
3
3
  BUILDING = "Building",
4
4
  EQUIPMENT = "Equipment",
5
5
  RESIDENTIAL = "Residential",
6
- STATION = "Station"
6
+ STATION = "Station",
7
+ PLOT_OF_LAND = "Plot of land",
8
+ OTHER = "Other"
7
9
  }
8
10
  export declare enum AssetMaintenanceSubCategory {
9
11
  ELECTRICAL = "Electrical",
@@ -18,6 +18,8 @@ var AssetMaintenanceCategory;
18
18
  AssetMaintenanceCategory["EQUIPMENT"] = "Equipment";
19
19
  AssetMaintenanceCategory["RESIDENTIAL"] = "Residential";
20
20
  AssetMaintenanceCategory["STATION"] = "Station";
21
+ AssetMaintenanceCategory["PLOT_OF_LAND"] = "Plot of land";
22
+ AssetMaintenanceCategory["OTHER"] = "Other";
21
23
  })(AssetMaintenanceCategory || (exports.MaintenanceCategory = exports.AssetMaintenanceCategory = AssetMaintenanceCategory = {}));
22
24
  var AssetMaintenanceSubCategory;
23
25
  (function (AssetMaintenanceSubCategory) {
@@ -18,6 +18,8 @@ export declare class RequestATenderRequest extends BaseModel {
18
18
  scope_of_work: string;
19
19
  type_of_request: RequestATenderType;
20
20
  date_of_submission: Date;
21
+ date: Date | null;
22
+ time: string | null;
21
23
  phone: string;
22
24
  budget_code: string | null;
23
25
  estimated_cost: string;
@@ -69,6 +69,14 @@ __decorate([
69
69
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
70
70
  __metadata("design:type", Date)
71
71
  ], RequestATenderRequest.prototype, "date_of_submission", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
74
+ __metadata("design:type", Object)
75
+ ], RequestATenderRequest.prototype, "date", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ type: "varchar", length: 8, nullable: true }),
78
+ __metadata("design:type", Object)
79
+ ], RequestATenderRequest.prototype, "time", void 0);
72
80
  __decorate([
73
81
  (0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: false }),
74
82
  __metadata("design:type", String)
@@ -19,7 +19,7 @@ export declare class ResidentialUnitRentalRequest extends BaseModel {
19
19
  three_room?: boolean;
20
20
  };
21
21
  extension_number: string;
22
- preferred_start_date: Date;
22
+ preferred_start_date: Date | null;
23
23
  family_size: number;
24
24
  phone_number: string;
25
25
  location_of_unit: string;
@@ -54,8 +54,8 @@ __decorate([
54
54
  __metadata("design:type", String)
55
55
  ], ResidentialUnitRentalRequest.prototype, "extension_number", void 0);
56
56
  __decorate([
57
- (0, typeorm_1.Column)({ type: 'date', nullable: false }),
58
- __metadata("design:type", Date)
57
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
58
+ __metadata("design:type", Object)
59
59
  ], ResidentialUnitRentalRequest.prototype, "preferred_start_date", void 0);
60
60
  __decorate([
61
61
  (0, typeorm_1.Column)({ type: 'int', nullable: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.290",
3
+ "version": "2.3.291",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1 +1 @@
1
- -- Auto-generated: Arabic columns for all CAA workflow/chat tables
1
+ -- Auto-generated: Arabic columns for all CAA workflow/chat tables
@@ -0,0 +1,32 @@
1
+ -- CAA API payload changes (Jul 2026)
2
+ -- Run after deploying updated shared_models and services.
3
+
4
+ -- 1. Maintenance: add category enum values
5
+ ALTER TYPE asset_maintenance_category_en ADD VALUE IF NOT EXISTS 'Plot of land';
6
+ ALTER TYPE asset_maintenance_category_en ADD VALUE IF NOT EXISTS 'Other';
7
+
8
+ -- 2. Residential unit rental: preferred_start_date optional
9
+ ALTER TABLE residential_unit_rental_requests
10
+ ALTER COLUMN preferred_start_date DROP NOT NULL;
11
+
12
+ -- 3. Appeal against administrative decision: optional / removed payload fields
13
+ ALTER TABLE appeal_against_administrative_decision_requests
14
+ ALTER COLUMN description DROP NOT NULL,
15
+ ALTER COLUMN grievance_details DROP NOT NULL,
16
+ ALTER COLUMN decision_date DROP NOT NULL,
17
+ ALTER COLUMN grievant_name DROP NOT NULL;
18
+
19
+ -- 4. Cyber security audit: date and time fields
20
+ ALTER TABLE cyber_security_audit_requests
21
+ ADD COLUMN IF NOT EXISTS date DATE,
22
+ ADD COLUMN IF NOT EXISTS time VARCHAR(8);
23
+
24
+ -- 5. Request a tender: date and time fields
25
+ ALTER TABLE request_a_tender_requests
26
+ ADD COLUMN IF NOT EXISTS date DATE,
27
+ ADD COLUMN IF NOT EXISTS time VARCHAR(8);
28
+
29
+ -- 6. Cyber security risk management risks: treatment and action fields
30
+ ALTER TABLE cyber_security_risk_management_risks
31
+ ADD COLUMN IF NOT EXISTS treatment TEXT,
32
+ ADD COLUMN IF NOT EXISTS action TEXT;
@@ -28,9 +28,9 @@ export class AccessCardRequestChat extends BaseModel {
28
28
  role_id: number;
29
29
 
30
30
  @Column({ type: "text", nullable: false })
31
- message: string;
32
- @Column({ type: "text", nullable: true })
33
- message_ar: string | null;
31
+ message: string;
32
+ @Column({ type: "text", nullable: true })
33
+ message_ar: string | null;
34
34
 
35
35
 
36
36
  @Column({
@@ -42,9 +42,9 @@ export class AccessCardRequestChat extends BaseModel {
42
42
  messageType: AccessCardMessageType;
43
43
 
44
44
  @Column({ type: 'text', nullable: true })
45
- status: string;
46
- @Column({ type: "varchar", length: 100, nullable: true })
47
- status_ar: string | null;
45
+ status: string;
46
+ @Column({ type: "varchar", length: 100, nullable: true })
47
+ status_ar: string | null;
48
48
 
49
49
 
50
50
  constructor(
@@ -19,9 +19,9 @@ export class AccessCardWorkflow extends BaseModel {
19
19
  sub_service_id: number | null;
20
20
 
21
21
  @Column({ type: "varchar", length: 500, nullable: false })
22
- content: string;
23
- @Column({ type: "varchar", length: 500, nullable: true })
24
- content_ar: string | null;
22
+ content: string;
23
+ @Column({ type: "varchar", length: 500, nullable: true })
24
+ content_ar: string | null;
25
25
 
26
26
 
27
27
  @Column({
@@ -30,9 +30,9 @@ export class AccessCardWorkflow extends BaseModel {
30
30
  default: AccessCardWorkflowStatus.NOT_YET_STARTED,
31
31
  nullable: false
32
32
  })
33
- status: AccessCardWorkflowStatus;
34
- @Column({ type: "varchar", length: 100, nullable: true })
35
- status_ar: string | null;
33
+ status: AccessCardWorkflowStatus;
34
+ @Column({ type: "varchar", length: 100, nullable: true })
35
+ status_ar: string | null;
36
36
 
37
37
 
38
38
  @Column({ type: "integer", nullable: true })
@@ -24,9 +24,9 @@ export class AccommodationChat extends BaseModel {
24
24
  user_id: number;
25
25
 
26
26
  @Column({ type: 'text', nullable: false })
27
- message: string;
28
- @Column({ type: "text", nullable: true })
29
- message_ar: string | null;
27
+ message: string;
28
+ @Column({ type: "text", nullable: true })
29
+ message_ar: string | null;
30
30
 
31
31
 
32
32
  @Column({ type: 'varchar', length: 20, nullable: false })
@@ -39,9 +39,9 @@ export class AccommodationChat extends BaseModel {
39
39
  approver_role_id: number;
40
40
 
41
41
  @Column({ type: 'varchar', length: 50, nullable: true })
42
- status: string;
43
- @Column({ type: "varchar", length: 100, nullable: true })
44
- status_ar: string | null;
42
+ status: string;
43
+ @Column({ type: "varchar", length: 100, nullable: true })
44
+ status_ar: string | null;
45
45
  // Submitted, Pending, Approved, Rejected
46
46
 
47
47
  @Column({ type: 'int', nullable: false })
@@ -27,9 +27,9 @@ export class AccommodationWorkflow extends BaseModel {
27
27
  current_level: number;
28
28
 
29
29
  @Column({ type: 'varchar', length: 500, nullable: true })
30
- content: string;
31
- @Column({ type: "varchar", length: 500, nullable: true })
32
- content_ar: string | null;
30
+ content: string;
31
+ @Column({ type: "varchar", length: 500, nullable: true })
32
+ content_ar: string | null;
33
33
 
34
34
 
35
35
  @Column({
@@ -38,9 +38,9 @@ export class AccommodationWorkflow extends BaseModel {
38
38
  default: AccommodationWorkFlowStatus.Pending,
39
39
  nullable: false
40
40
  })
41
- status: AccommodationWorkFlowStatus;
42
- @Column({ type: "varchar", length: 100, nullable: true })
43
- status_ar: string | null;
41
+ status: AccommodationWorkFlowStatus;
42
+ @Column({ type: "varchar", length: 100, nullable: true })
43
+ status_ar: string | null;
44
44
 
45
45
 
46
46
  @Column({ type: 'int', nullable: true })
@@ -29,9 +29,9 @@ export class AirportEntryPermitChat extends BaseModel {
29
29
  role_id: number | null;
30
30
 
31
31
  @Column({ type: 'text', nullable: false })
32
- message: string;
33
- @Column({ type: "text", nullable: true })
34
- message_ar: string | null;
32
+ message: string;
33
+ @Column({ type: "text", nullable: true })
34
+ message_ar: string | null;
35
35
 
36
36
 
37
37
  @Column({
@@ -43,9 +43,9 @@ export class AirportEntryPermitChat extends BaseModel {
43
43
  messageType: AirportEntryPermitMessageTypes;
44
44
 
45
45
  @Column({ type: 'text', nullable: true })
46
- status: string;
47
- @Column({ type: "varchar", length: 100, nullable: true })
48
- status_ar: string | null;
46
+ status: string;
47
+ @Column({ type: "varchar", length: 100, nullable: true })
48
+ status_ar: string | null;
49
49
 
50
50
 
51
51
  constructor(
@@ -19,15 +19,15 @@ export class AirportEntryPermitWorkFlow extends BaseModel {
19
19
  sub_service_id: number | null;
20
20
 
21
21
  @Column({ type: 'varchar', length: 500, nullable: false })
22
- content: string;
23
- @Column({ type: "varchar", length: 500, nullable: true })
24
- content_ar: string | null;
22
+ content: string;
23
+ @Column({ type: "varchar", length: 500, nullable: true })
24
+ content_ar: string | null;
25
25
 
26
26
 
27
27
  @Column({ type: 'enum', enum: AirportEntryPermitWorkFlowStatus, default: AirportEntryPermitWorkFlowStatus.NOT_YET_STARTED, nullable: false })
28
- status: AirportEntryPermitWorkFlowStatus;
29
- @Column({ type: "varchar", length: 100, nullable: true })
30
- status_ar: string | null;
28
+ status: AirportEntryPermitWorkFlowStatus;
29
+ @Column({ type: "varchar", length: 100, nullable: true })
30
+ status_ar: string | null;
31
31
 
32
32
 
33
33
  @Column({ type: 'integer', nullable: true })
@@ -31,9 +31,9 @@ export class AnnualTrainingPlanRequestChat extends BaseModel {
31
31
  user_id: number;
32
32
 
33
33
  @Column({ type: "text", nullable: false })
34
- message: string;
35
- @Column({ type: "text", nullable: true })
36
- message_ar: string | null;
34
+ message: string;
35
+ @Column({ type: "text", nullable: true })
36
+ message_ar: string | null;
37
37
 
38
38
 
39
39
  @Column({ type: "integer", nullable: true })
@@ -51,9 +51,9 @@ export class AnnualTrainingPlanRequestChat extends BaseModel {
51
51
  is_internal: boolean;
52
52
 
53
53
  @Column({ type: "text", nullable: false })
54
- status: string;
55
- @Column({ type: "varchar", length: 100, nullable: true })
56
- status_ar: string | null;
54
+ status: string;
55
+ @Column({ type: "varchar", length: 100, nullable: true })
56
+ status_ar: string | null;
57
57
 
58
58
 
59
59
  constructor(
@@ -23,9 +23,9 @@ export class AnnualTrainingPlanWorkFlow extends BaseModel {
23
23
  order: number | null;
24
24
 
25
25
  @Column({ type: "varchar", length: 255, nullable: false })
26
- content: string;
27
- @Column({ type: "varchar", length: 500, nullable: true })
28
- content_ar: string | null;
26
+ content: string;
27
+ @Column({ type: "varchar", length: 500, nullable: true })
28
+ content_ar: string | null;
29
29
 
30
30
 
31
31
  @Column({ type: "integer", nullable: true })
@@ -43,9 +43,9 @@ export class AnnualTrainingPlanWorkFlow extends BaseModel {
43
43
  default: AnnualTrainingPlanWorkFlowStatus.PENDING,
44
44
  nullable: false
45
45
  })
46
- status: AnnualTrainingPlanWorkFlowStatus;
47
- @Column({ type: "varchar", length: 100, nullable: true })
48
- status_ar: string | null;
46
+ status: AnnualTrainingPlanWorkFlowStatus;
47
+ @Column({ type: "varchar", length: 100, nullable: true })
48
+ status_ar: string | null;
49
49
 
50
50
 
51
51
  constructor(
@@ -63,20 +63,20 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
63
63
  @Column({ type: "text", nullable: false })
64
64
  appeal_against_decision: string;
65
65
 
66
- @Column({ type: "text", nullable: false })
67
- description: string;
66
+ @Column({ type: "text", nullable: true })
67
+ description: string | null;
68
68
 
69
69
  @Column({ type: "varchar", length: 255, nullable: false })
70
70
  decision_number: string;
71
71
 
72
- @Column({ type: "date", nullable: false })
73
- decision_date: Date;
72
+ @Column({ type: "date", nullable: true })
73
+ decision_date: Date | null;
74
74
 
75
75
  @Column({ type: "text", nullable: false })
76
76
  decision_subject: string;
77
77
 
78
- @Column({ type: "text", nullable: false })
79
- grievance_details: string;
78
+ @Column({ type: "text", nullable: true })
79
+ grievance_details: string | null;
80
80
 
81
81
  @Column({ type: "jsonb", nullable: true })
82
82
  individuals_involved: string[] | null;
@@ -96,8 +96,8 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
96
96
  @Column({ type: "jsonb", nullable: true })
97
97
  events: string[] | null;
98
98
 
99
- @Column({ type: "varchar", length: 500, nullable: false })
100
- grievant_name: string;
99
+ @Column({ type: "varchar", length: 500, nullable: true })
100
+ grievant_name: string | null;
101
101
 
102
102
  @Column({ type: "varchar", length: 100, nullable: false })
103
103
  grievant_employee_number: string;
@@ -28,9 +28,9 @@ export class AssignTasksEmpRequestChat extends BaseModel {
28
28
  role_id: number;
29
29
 
30
30
  @Column({ type: 'text', nullable: false })
31
- message: string;
32
- @Column({ type: "text", nullable: true })
33
- message_ar: string | null;
31
+ message: string;
32
+ @Column({ type: "text", nullable: true })
33
+ message_ar: string | null;
34
34
 
35
35
 
36
36
  @Column({
@@ -42,9 +42,9 @@ export class AssignTasksEmpRequestChat extends BaseModel {
42
42
  messageType: AssignTasksEmpMessageType;
43
43
 
44
44
  @Column({ type: 'text', nullable: true })
45
- status: string | null;
46
- @Column({ type: "varchar", length: 100, nullable: true })
47
- status_ar: string | null;
45
+ status: string | null;
46
+ @Column({ type: "varchar", length: 100, nullable: true })
47
+ status_ar: string | null;
48
48
 
49
49
 
50
50
  constructor(
@@ -20,15 +20,15 @@ export class AssignTasksEmpWorkFlow extends BaseModel {
20
20
  sub_service_id: number | null;
21
21
 
22
22
  @Column({ type: 'varchar', length: 500, nullable: false })
23
- content: string;
24
- @Column({ type: "varchar", length: 500, nullable: true })
25
- content_ar: string | null;
23
+ content: string;
24
+ @Column({ type: "varchar", length: 500, nullable: true })
25
+ content_ar: string | null;
26
26
 
27
27
 
28
28
  @Column({ type: 'enum', enum: AssignTasksEmpWorkFlowStatus, default: AssignTasksEmpWorkFlowStatus.NOT_YET_STARTED, nullable: false })
29
- status: AssignTasksEmpWorkFlowStatus;
30
- @Column({ type: "varchar", length: 100, nullable: true })
31
- status_ar: string | null;
29
+ status: AssignTasksEmpWorkFlowStatus;
30
+ @Column({ type: "varchar", length: 100, nullable: true })
31
+ status_ar: string | null;
32
32
 
33
33
 
34
34
  @Column({ type: 'integer', nullable: true })
@@ -24,18 +24,18 @@ export class ComplaintLostPropertyReportChat extends BaseModel {
24
24
  user_id: number;
25
25
 
26
26
  @Column({ type: "text", nullable: false })
27
- message: string;
28
- @Column({ type: "text", nullable: true })
29
- message_ar: string | null;
27
+ message: string;
28
+ @Column({ type: "text", nullable: true })
29
+ message_ar: string | null;
30
30
 
31
31
 
32
32
  @Column({ type: "int", nullable: true })
33
33
  approver_role_id: number | null;
34
34
 
35
35
  @Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
36
- status: string;
37
- @Column({ type: "varchar", length: 100, nullable: true })
38
- status_ar: string | null;
36
+ status: string;
37
+ @Column({ type: "varchar", length: 100, nullable: true })
38
+ status_ar: string | null;
39
39
 
40
40
 
41
41
  @Column({
@@ -19,15 +19,15 @@ export class ComplaintLostPropertyReportWorkflow extends BaseModel {
19
19
  current_level: number;
20
20
 
21
21
  @Column({ type: "varchar", length: 500, nullable: true })
22
- content: string;
23
- @Column({ type: "varchar", length: 500, nullable: true })
24
- content_ar: string | null;
22
+ content: string;
23
+ @Column({ type: "varchar", length: 500, nullable: true })
24
+ content_ar: string | null;
25
25
 
26
26
 
27
27
  @Column({ type: "varchar", length: 50, nullable: false })
28
- status: string;
29
- @Column({ type: "varchar", length: 100, nullable: true })
30
- status_ar: string | null;
28
+ status: string;
29
+ @Column({ type: "varchar", length: 100, nullable: true })
30
+ status_ar: string | null;
31
31
 
32
32
 
33
33
  @Column({ type: "int", nullable: true })
@@ -81,6 +81,12 @@ export class CyberSecurityAuditRequest extends BaseModel {
81
81
  @Column({ type: "date", nullable: false })
82
82
  submission_date: Date;
83
83
 
84
+ @Column({ type: "date", nullable: true })
85
+ date: Date | null;
86
+
87
+ @Column({ type: "varchar", length: 8, nullable: true })
88
+ time: string | null;
89
+
84
90
  constructor(
85
91
  user_id: number,
86
92
  request_classification: CyberSecurityAuditClassification,
@@ -68,6 +68,12 @@ export class CyberSecurityRiskManagementRisk extends BaseModel {
68
68
  @Column({ type: "text", nullable: false })
69
69
  risk_treatment_plan: string;
70
70
 
71
+ @Column({ type: "text", nullable: true })
72
+ treatment: string | null;
73
+
74
+ @Column({ type: "text", nullable: true })
75
+ action: string | null;
76
+
71
77
  @Column({ type: "integer", nullable: true })
72
78
  confidentiality: number | null;
73
79
 
@@ -29,9 +29,9 @@ export class DutyMissionRequestChat extends BaseModel {
29
29
  role_id: number;
30
30
 
31
31
  @Column({ type: 'text', nullable: false })
32
- message: string;
33
- @Column({ type: "text", nullable: true })
34
- message_ar: string | null;
32
+ message: string;
33
+ @Column({ type: "text", nullable: true })
34
+ message_ar: string | null;
35
35
 
36
36
 
37
37
  @Column({
@@ -43,9 +43,9 @@ export class DutyMissionRequestChat extends BaseModel {
43
43
  messageType: DutyMissionMessageType;
44
44
 
45
45
  @Column({ type: 'text', nullable: true })
46
- status: string | null;
47
- @Column({ type: "varchar", length: 100, nullable: true })
48
- status_ar: string | null;
46
+ status: string | null;
47
+ @Column({ type: "varchar", length: 100, nullable: true })
48
+ status_ar: string | null;
49
49
 
50
50
 
51
51
  constructor(