@platform-modules/civil-aviation-authority 2.3.179 → 2.3.182

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 (65) hide show
  1. package/.env +17 -9
  2. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +3 -3
  3. package/dist/models/AnnualTrainingPlanRequestModel.js +5 -5
  4. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  5. package/dist/models/DocumentMetadataModel.js +171 -0
  6. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  7. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  8. package/dist/models/FolderModel.d.ts +16 -0
  9. package/dist/models/FolderModel.js +85 -0
  10. package/dist/models/HallMasterModel.d.ts +1 -0
  11. package/dist/models/HallMasterModel.js +4 -0
  12. package/dist/models/PermissionModel.d.ts +18 -0
  13. package/dist/models/PermissionModel.js +68 -0
  14. package/dist/models/TrainingRequestModel.d.ts +13 -3
  15. package/dist/models/TrainingRequestModel.js +21 -6
  16. package/dist/models/UUIDBaseModel.d.ts +14 -0
  17. package/dist/models/UUIDBaseModel.js +66 -0
  18. package/package.json +24 -24
  19. package/src/index.ts +413 -413
  20. package/src/models/AccommodationApprovalModel.ts +8 -8
  21. package/src/models/AccommodationRequestModel.ts +8 -8
  22. package/src/models/AirportEntryPermitModel.ts +276 -276
  23. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  24. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  25. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  26. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  27. package/src/models/CAAServices.ts +33 -33
  28. package/src/models/CAASubServices.ts +33 -33
  29. package/src/models/CAIRatingMasterModel.ts +39 -39
  30. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  31. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  32. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  33. package/src/models/DepartmentsModel.ts +25 -25
  34. package/src/models/DocumentDriveModel.ts +28 -28
  35. package/src/models/DocumentFolderModel.ts +45 -45
  36. package/src/models/HallMasterModel.ts +3 -0
  37. package/src/models/HousingContractCancelChatModel.ts +56 -56
  38. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  39. package/src/models/HrServiceRequestModel.ts +193 -193
  40. package/src/models/ITRequestAttachmentModel.ts +73 -73
  41. package/src/models/ITRequestChatModel.ts +74 -74
  42. package/src/models/ItApprovalsModel.ts +84 -84
  43. package/src/models/ItWorkflowModel.ts +55 -55
  44. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  45. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  46. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  47. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  48. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  49. package/src/models/PromotionRequestModel.ts +11 -11
  50. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  51. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  52. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  53. package/src/models/StudyLeaveRequestModel.ts +144 -144
  54. package/src/models/TrainingRequestModel.ts +22 -6
  55. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  56. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  57. package/src/models/UserSkillModel.ts +56 -56
  58. package/dist/models/ITApprovalSettings.d.ts +0 -7
  59. package/dist/models/ITApprovalSettings.js +0 -40
  60. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  61. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  62. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  63. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  64. package/dist/models/Workflows.d.ts +0 -9
  65. package/dist/models/Workflows.js +0 -31
@@ -1,65 +1,65 @@
1
- import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
- import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
4
-
5
- @Entity({ name: "annual_increment_request_employees" })
6
- export class AnnualIncrementRequestEmployee extends BaseModel {
7
- @Column({ type: "integer", nullable: false })
8
- request_id: number;
9
-
10
- @Column({ type: "integer", nullable: true })
11
- service_id: number | null;
12
-
13
- @Column({ type: "integer", nullable: true })
14
- sub_service_id: number | null;
15
-
16
- @Column({ type: "varchar", length: 255, nullable: false })
17
- employee_name: string;
18
-
19
- @Column({ type: "varchar", length: 100, nullable: false })
20
- employee_id: string;
21
-
22
- @Column({ type: "integer", nullable: false })
23
- allowance_year: number;
24
-
25
- @Column({ type: "date", nullable: false })
26
- effective_date: Date;
27
-
28
- @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
29
- current_basic_salary: number | null;
30
-
31
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
32
- increment_percentage: number | null;
33
-
34
- @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
35
- new_basic_salary: number | null;
36
-
37
- @ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
38
- @JoinColumn({ name: "request_id", referencedColumnName: "id" })
39
- request: AnnualIncrementRequest;
40
-
41
- constructor(
42
- request_id: number,
43
- employee_name: string,
44
- employee_id: string,
45
- allowance_year: number,
46
- effective_date: Date,
47
- service_id?: number | null,
48
- sub_service_id?: number | null,
49
- current_basic_salary?: number | null,
50
- increment_percentage?: number | null,
51
- new_basic_salary?: number | null
52
- ) {
53
- super();
54
- this.request_id = request_id;
55
- this.service_id = service_id ?? null;
56
- this.sub_service_id = sub_service_id ?? null;
57
- this.employee_name = employee_name;
58
- this.employee_id = employee_id;
59
- this.allowance_year = allowance_year;
60
- this.effective_date = effective_date;
61
- this.current_basic_salary = current_basic_salary ?? null;
62
- this.increment_percentage = increment_percentage ?? null;
63
- this.new_basic_salary = new_basic_salary ?? null;
64
- }
65
- }
1
+ import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+ import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
4
+
5
+ @Entity({ name: "annual_increment_request_employees" })
6
+ export class AnnualIncrementRequestEmployee extends BaseModel {
7
+ @Column({ type: "integer", nullable: false })
8
+ request_id: number;
9
+
10
+ @Column({ type: "integer", nullable: true })
11
+ service_id: number | null;
12
+
13
+ @Column({ type: "integer", nullable: true })
14
+ sub_service_id: number | null;
15
+
16
+ @Column({ type: "varchar", length: 255, nullable: false })
17
+ employee_name: string;
18
+
19
+ @Column({ type: "varchar", length: 100, nullable: false })
20
+ employee_id: string;
21
+
22
+ @Column({ type: "integer", nullable: false })
23
+ allowance_year: number;
24
+
25
+ @Column({ type: "date", nullable: false })
26
+ effective_date: Date;
27
+
28
+ @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
29
+ current_basic_salary: number | null;
30
+
31
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
32
+ increment_percentage: number | null;
33
+
34
+ @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
35
+ new_basic_salary: number | null;
36
+
37
+ @ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
38
+ @JoinColumn({ name: "request_id", referencedColumnName: "id" })
39
+ request: AnnualIncrementRequest;
40
+
41
+ constructor(
42
+ request_id: number,
43
+ employee_name: string,
44
+ employee_id: string,
45
+ allowance_year: number,
46
+ effective_date: Date,
47
+ service_id?: number | null,
48
+ sub_service_id?: number | null,
49
+ current_basic_salary?: number | null,
50
+ increment_percentage?: number | null,
51
+ new_basic_salary?: number | null
52
+ ) {
53
+ super();
54
+ this.request_id = request_id;
55
+ this.service_id = service_id ?? null;
56
+ this.sub_service_id = sub_service_id ?? null;
57
+ this.employee_name = employee_name;
58
+ this.employee_id = employee_id;
59
+ this.allowance_year = allowance_year;
60
+ this.effective_date = effective_date;
61
+ this.current_basic_salary = current_basic_salary ?? null;
62
+ this.increment_percentage = increment_percentage ?? null;
63
+ this.new_basic_salary = new_basic_salary ?? null;
64
+ }
65
+ }
@@ -45,24 +45,24 @@ export class AnnualIncrementRequest extends BaseModel {
45
45
  @Column({ type: "timestamp", nullable: true })
46
46
  assigned_at: Date | null;
47
47
 
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- @Column({ type: "varchar", length: 255, nullable: true })
52
- reference_number: string | null;
53
-
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ @Column({ type: "varchar", length: 255, nullable: true })
52
+ reference_number: string | null;
53
+
54
54
  // Annual Increment specific fields
55
- @Column({ type: "varchar", length: 255, nullable: true })
56
- employee_name: string | null;
57
-
58
- @Column({ type: "varchar", length: 100, nullable: true })
59
- employee_id: string | null;
60
-
61
- @Column({ type: "integer", nullable: true })
62
- allowance_year: number | null;
63
-
64
- @Column({ type: "date", nullable: true })
65
- effective_date: Date | null;
55
+ @Column({ type: "varchar", length: 255, nullable: true })
56
+ employee_name: string | null;
57
+
58
+ @Column({ type: "varchar", length: 100, nullable: true })
59
+ employee_id: string | null;
60
+
61
+ @Column({ type: "integer", nullable: true })
62
+ allowance_year: number | null;
63
+
64
+ @Column({ type: "date", nullable: true })
65
+ effective_date: Date | null;
66
66
 
67
67
  @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
68
68
  current_basic_salary: number | null;
@@ -104,14 +104,14 @@ export class AnnualIncrementRequest extends BaseModel {
104
104
  this.req_user_position_id = req_user_position_id || null;
105
105
  this.description = description || null;
106
106
  this.reviewer_user_id = reviewer_user_id || null;
107
- this.assigned_to_user_id = assigned_to_user_id || null;
108
- this.assigned_at = assigned_at || null;
109
- this.workflow_execution_id = workflow_execution_id || null;
110
- this.reference_number = null;
111
- this.employee_name = employee_name || null;
112
- this.employee_id = employee_id || null;
113
- this.allowance_year = allowance_year || null;
114
- this.effective_date = effective_date || null;
107
+ this.assigned_to_user_id = assigned_to_user_id || null;
108
+ this.assigned_at = assigned_at || null;
109
+ this.workflow_execution_id = workflow_execution_id || null;
110
+ this.reference_number = null;
111
+ this.employee_name = employee_name || null;
112
+ this.employee_id = employee_id || null;
113
+ this.allowance_year = allowance_year || null;
114
+ this.effective_date = effective_date || null;
115
115
  this.current_basic_salary = current_basic_salary || null;
116
116
  this.increment_percentage = increment_percentage || null;
117
117
  this.new_basic_salary = new_basic_salary || null;
@@ -1,153 +1,153 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum AnnualTrainingPlanRequestStatus {
5
- PENDING = "Pending",
6
- IN_PROGRESS = "In Progress",
7
- COMPLETED = "Completed",
8
- APPROVED = "Approved",
9
- REJECTED = "Rejected"
10
- }
11
-
12
- export enum AnnualTrainingPlanPlace {
13
- INSIDE = "Inside",
14
- OUTSIDE = "Outside"
15
- }
16
-
17
- @Entity({ name: "annual_training_plan_requests" })
18
- export class AnnualTrainingPlanRequest extends BaseModel {
19
- @Column({ type: "integer", nullable: true })
20
- req_user_department_id: number | null;
21
-
22
- @Column({ type: "integer", nullable: true })
23
- req_user_section_id: number | null;
24
-
25
- @Column({ type: "integer", nullable: true })
26
- req_user_position_id: number | null;
27
-
28
- @Column({ type: "integer", nullable: true })
29
- service_id: number | null;
30
-
31
- @Column({ type: "integer", nullable: true })
32
- sub_service_id: number | null;
33
-
34
- @Column({ type: "integer", nullable: false })
35
- user_id: number;
36
-
37
- @Column({ type: "varchar", length: 255, nullable: false })
38
- course_name: string;
39
-
40
- @Column({ type: "integer", nullable: false })
41
- no_of_participants: number;
42
-
43
- @Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
44
- course_cost: number;
45
-
46
- @Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
47
- total_cost: number;
48
-
49
- @Column({ type: "date", nullable: false })
50
- proposed_implementation_date: Date;
51
-
52
- @Column({ type: "text", nullable: false })
53
- description: string;
54
-
55
- @Column({
56
- type: "enum",
57
- enum: AnnualTrainingPlanPlace,
58
- nullable: false
59
- })
60
- place: AnnualTrainingPlanPlace;
61
-
62
- @Column({ type: "varchar", length: 255, nullable: true })
63
- location: string | null;
64
-
65
- @Column({ type: "text", nullable: false })
66
- reason: string;
67
-
68
- @Column({ type: "jsonb", nullable: true })
69
- employee_list: any[] | null; // List of employees for training attendance
70
-
71
- @Column({
72
- type: "enum",
73
- enum: AnnualTrainingPlanRequestStatus,
74
- default: AnnualTrainingPlanRequestStatus.PENDING,
75
- nullable: false
76
- })
77
- status: AnnualTrainingPlanRequestStatus;
78
-
79
- @Column({ type: "integer", nullable: true })
80
- reviewer_user_id: number | null;
81
-
82
- @Column({ type: "integer", nullable: true })
83
- assigned_to_user_id: number | null;
84
-
85
- @Column({ type: "timestamp", nullable: true })
86
- assigned_at: Date | null;
87
-
88
- @Column({ type: "varchar", length: 255, nullable: true })
89
- workflow_execution_id: string | null;
90
-
91
- @Column({ type: "varchar", length: 255, nullable: true })
92
- job_competency: string | null;
93
-
94
- @Column({ type: "jsonb", nullable: true })
95
- name_of_participants: string[] | null;
96
-
97
- @Column({ type: "varchar", length: 255, nullable: true })
98
- directarate: string | null;
99
-
100
- constructor(
101
- user_id: number,
102
- course_name: string,
103
- no_of_participants: number,
104
- course_cost: number,
105
- total_cost: number,
106
- proposed_implementation_date: Date,
107
- description: string,
108
- place: AnnualTrainingPlanPlace,
109
- reason: string,
110
- status: AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus.PENDING,
111
- service_id?: number | null,
112
- sub_service_id?: number | null,
113
- req_user_department_id?: number | null,
114
- req_user_section_id?: number | null,
115
- req_user_position_id?: number | null,
116
- location?: string | null,
117
- employee_list?: any[] | null,
118
- reviewer_user_id?: number | null,
119
- assigned_to_user_id?: number | null,
120
- assigned_at?: Date | null,
121
- workflow_execution_id?: string | null,
122
- job_competency?: string | null,
123
- name_of_participants?: string[] | null,
124
- directarate?: string | null
125
- ) {
126
- super();
127
- this.user_id = user_id;
128
- this.course_name = course_name;
129
- this.no_of_participants = no_of_participants;
130
- this.course_cost = course_cost;
131
- this.total_cost = total_cost;
132
- this.proposed_implementation_date = proposed_implementation_date;
133
- this.description = description;
134
- this.place = place;
135
- this.reason = reason;
136
- this.status = status;
137
- this.service_id = service_id || null;
138
- this.sub_service_id = sub_service_id || null;
139
- this.req_user_department_id = req_user_department_id || null;
140
- this.req_user_section_id = req_user_section_id || null;
141
- this.req_user_position_id = req_user_position_id || null;
142
- this.location = location || null;
143
- this.employee_list = employee_list || null;
144
- this.reviewer_user_id = reviewer_user_id || null;
145
- this.assigned_to_user_id = assigned_to_user_id || null;
146
- this.assigned_at = assigned_at || null;
147
- this.workflow_execution_id = workflow_execution_id || null;
148
- this.job_competency = job_competency ?? null;
149
- this.name_of_participants = name_of_participants ?? null;
150
- this.directarate = directarate ?? null;
151
- }
152
- }
153
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum AnnualTrainingPlanRequestStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ COMPLETED = "Completed",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ export enum AnnualTrainingPlanPlace {
13
+ INSIDE = "Inside",
14
+ OUTSIDE = "Outside"
15
+ }
16
+
17
+ @Entity({ name: "annual_training_plan_requests" })
18
+ export class AnnualTrainingPlanRequest extends BaseModel {
19
+ @Column({ type: "integer", nullable: true })
20
+ req_user_department_id: number | null;
21
+
22
+ @Column({ type: "integer", nullable: true })
23
+ req_user_section_id: number | null;
24
+
25
+ @Column({ type: "integer", nullable: true })
26
+ req_user_position_id: number | null;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ service_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ sub_service_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: false })
35
+ user_id: number;
36
+
37
+ @Column({ type: "varchar", length: 255, nullable: false })
38
+ course_name: string;
39
+
40
+ @Column({ type: "integer", nullable: false })
41
+ no_of_participants: number;
42
+
43
+ @Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
44
+ course_cost: number;
45
+
46
+ @Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
47
+ total_cost: number;
48
+
49
+ @Column({ type: "varchar", length: 500, nullable: false })
50
+ proposed_implementation_date: string;
51
+
52
+ @Column({ type: "text", nullable: false })
53
+ description: string;
54
+
55
+ @Column({
56
+ type: "enum",
57
+ enum: AnnualTrainingPlanPlace,
58
+ nullable: true
59
+ })
60
+ place: AnnualTrainingPlanPlace | null;
61
+
62
+ @Column({ type: "varchar", length: 255, nullable: true })
63
+ location: string | null;
64
+
65
+ @Column({ type: "text", nullable: false })
66
+ reason: string;
67
+
68
+ @Column({ type: "jsonb", nullable: true })
69
+ employee_list: any[] | null; // List of employees for training attendance
70
+
71
+ @Column({
72
+ type: "enum",
73
+ enum: AnnualTrainingPlanRequestStatus,
74
+ default: AnnualTrainingPlanRequestStatus.PENDING,
75
+ nullable: false
76
+ })
77
+ status: AnnualTrainingPlanRequestStatus;
78
+
79
+ @Column({ type: "integer", nullable: true })
80
+ reviewer_user_id: number | null;
81
+
82
+ @Column({ type: "integer", nullable: true })
83
+ assigned_to_user_id: number | null;
84
+
85
+ @Column({ type: "timestamp", nullable: true })
86
+ assigned_at: Date | null;
87
+
88
+ @Column({ type: "varchar", length: 255, nullable: true })
89
+ workflow_execution_id: string | null;
90
+
91
+ @Column({ type: "varchar", length: 255, nullable: true })
92
+ job_competency: string | null;
93
+
94
+ @Column({ type: "jsonb", nullable: true })
95
+ name_of_participants: string[] | null;
96
+
97
+ @Column({ type: "varchar", length: 255, nullable: true })
98
+ directarate: string | null;
99
+
100
+ constructor(
101
+ user_id: number,
102
+ course_name: string,
103
+ no_of_participants: number,
104
+ course_cost: number,
105
+ total_cost: number,
106
+ proposed_implementation_date: string,
107
+ description: string,
108
+ place: AnnualTrainingPlanPlace | null,
109
+ reason: string,
110
+ status: AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus.PENDING,
111
+ service_id?: number | null,
112
+ sub_service_id?: number | null,
113
+ req_user_department_id?: number | null,
114
+ req_user_section_id?: number | null,
115
+ req_user_position_id?: number | null,
116
+ location?: string | null,
117
+ employee_list?: any[] | null,
118
+ reviewer_user_id?: number | null,
119
+ assigned_to_user_id?: number | null,
120
+ assigned_at?: Date | null,
121
+ workflow_execution_id?: string | null,
122
+ job_competency?: string | null,
123
+ name_of_participants?: string[] | null,
124
+ directarate?: string | null
125
+ ) {
126
+ super();
127
+ this.user_id = user_id;
128
+ this.course_name = course_name;
129
+ this.no_of_participants = no_of_participants;
130
+ this.course_cost = course_cost;
131
+ this.total_cost = total_cost;
132
+ this.proposed_implementation_date = proposed_implementation_date;
133
+ this.description = description;
134
+ this.place = place;
135
+ this.reason = reason;
136
+ this.status = status;
137
+ this.service_id = service_id || null;
138
+ this.sub_service_id = sub_service_id || null;
139
+ this.req_user_department_id = req_user_department_id || null;
140
+ this.req_user_section_id = req_user_section_id || null;
141
+ this.req_user_position_id = req_user_position_id || null;
142
+ this.location = location || null;
143
+ this.employee_list = employee_list || null;
144
+ this.reviewer_user_id = reviewer_user_id || null;
145
+ this.assigned_to_user_id = assigned_to_user_id || null;
146
+ this.assigned_at = assigned_at || null;
147
+ this.workflow_execution_id = workflow_execution_id || null;
148
+ this.job_competency = job_competency ?? null;
149
+ this.name_of_participants = name_of_participants ?? null;
150
+ this.directarate = directarate ?? null;
151
+ }
152
+ }
153
+
@@ -75,29 +75,29 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
75
75
  @Column({ type: "text", nullable: false })
76
76
  decision_subject: string;
77
77
 
78
- @Column({ type: "text", nullable: false })
79
- grievance_details: string;
80
-
81
- @Column({ type: "jsonb", nullable: true })
82
- individuals_involved: string[] | null;
83
-
84
- @Column({ type: "jsonb", nullable: true })
85
- times: string[] | null;
86
-
87
- @Column({ type: "date", nullable: true })
88
- dates: Date | null;
89
-
90
- @Column({ type: "text", nullable: true })
91
- location: string | null;
92
-
93
- @Column({ type: "jsonb", nullable: true })
94
- requests: string[] | null;
95
-
96
- @Column({ type: "jsonb", nullable: true })
97
- events: string[] | null;
98
-
99
- @Column({ type: "varchar", length: 500, nullable: false })
100
- grievant_name: string;
78
+ @Column({ type: "text", nullable: false })
79
+ grievance_details: string;
80
+
81
+ @Column({ type: "jsonb", nullable: true })
82
+ individuals_involved: string[] | null;
83
+
84
+ @Column({ type: "jsonb", nullable: true })
85
+ times: string[] | null;
86
+
87
+ @Column({ type: "date", nullable: true })
88
+ dates: Date | null;
89
+
90
+ @Column({ type: "text", nullable: true })
91
+ location: string | null;
92
+
93
+ @Column({ type: "jsonb", nullable: true })
94
+ requests: string[] | null;
95
+
96
+ @Column({ type: "jsonb", nullable: true })
97
+ events: string[] | null;
98
+
99
+ @Column({ type: "varchar", length: 500, nullable: false })
100
+ grievant_name: string;
101
101
 
102
102
  @Column({ type: "varchar", length: 100, nullable: false })
103
103
  grievant_employee_number: string;
@@ -8,36 +8,36 @@ export class CAAServices extends BaseModel {
8
8
  @Column({ type: 'varchar', length: 64, nullable: false, unique: true })
9
9
  code: string;
10
10
 
11
- @Column({ nullable: false })
12
- name: string;
13
-
14
- @Column({ type: "text", nullable: true })
15
- arabic_name: string | null;
16
-
17
- @Column({ nullable: false })
18
- description: string;
19
-
20
- @Column({ type: "text", nullable: true })
21
- arabic_description: string | null;
22
-
23
- @Column({ nullable: true })
24
- logo_url: string;
25
-
26
-
27
- constructor(
28
- name: string,
29
- description: string,
30
- arabic_name?: string | null,
31
- arabic_description?: string | null,
32
- code?: string,
33
- logo_url?: string
34
- ) {
35
- super();
36
- this.name = name;
37
- this.description = description;
38
- this.arabic_name = arabic_name || null;
39
- this.arabic_description = arabic_description || null;
40
- this.code = code || '';
41
- this.logo_url = logo_url || '';
42
- }
43
- }
11
+ @Column({ nullable: false })
12
+ name: string;
13
+
14
+ @Column({ type: "text", nullable: true })
15
+ arabic_name: string | null;
16
+
17
+ @Column({ nullable: false })
18
+ description: string;
19
+
20
+ @Column({ type: "text", nullable: true })
21
+ arabic_description: string | null;
22
+
23
+ @Column({ nullable: true })
24
+ logo_url: string;
25
+
26
+
27
+ constructor(
28
+ name: string,
29
+ description: string,
30
+ arabic_name?: string | null,
31
+ arabic_description?: string | null,
32
+ code?: string,
33
+ logo_url?: string
34
+ ) {
35
+ super();
36
+ this.name = name;
37
+ this.description = description;
38
+ this.arabic_name = arabic_name || null;
39
+ this.arabic_description = arabic_description || null;
40
+ this.code = code || '';
41
+ this.logo_url = logo_url || '';
42
+ }
43
+ }