@platform-modules/civil-aviation-authority 2.3.214 → 2.3.218

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 (62) hide show
  1. package/.env +15 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +1 -0
  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/ImportExportMaterialModels.d.ts +92 -0
  11. package/dist/models/ImportExportMaterialModels.js +307 -0
  12. package/dist/models/PermissionModel.d.ts +18 -0
  13. package/dist/models/PermissionModel.js +68 -0
  14. package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
  15. package/dist/models/SecurityAccessApprovalModel.js +82 -0
  16. package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
  17. package/dist/models/SecurityAccessAttachmentModel.js +56 -0
  18. package/dist/models/SecurityAccessChatModel.d.ts +12 -0
  19. package/dist/models/SecurityAccessChatModel.js +56 -0
  20. package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
  21. package/dist/models/SecurityAccessRequestModel.js +80 -0
  22. package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
  23. package/dist/models/SecurityAccessWorkflowModel.js +84 -0
  24. package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
  25. package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
  26. package/dist/models/ServiceSlaApprovalModel.js +8 -0
  27. package/dist/models/SlaRequestModel.d.ts +28 -0
  28. package/dist/models/SlaRequestModel.js +84 -0
  29. package/dist/models/UUIDBaseModel.d.ts +14 -0
  30. package/dist/models/UUIDBaseModel.js +66 -0
  31. package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
  32. package/dist/models/WorkingHoursExtensionModels.js +295 -0
  33. package/package.json +1 -1
  34. package/src/index.ts +464 -463
  35. package/src/models/AccessCardRequestModel.ts +135 -135
  36. package/src/models/AirportEntryPermitModel.ts +276 -276
  37. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  38. package/src/models/DepartmentsModel.ts +25 -25
  39. package/src/models/DocumentDriveModel.ts +28 -28
  40. package/src/models/DocumentFolderModel.ts +45 -45
  41. package/src/models/HousingContractCancelApprovalModel.ts +64 -64
  42. package/src/models/HousingContractCancelChatModel.ts +56 -56
  43. package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
  44. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  45. package/src/models/ITRequestAttachmentModel.ts +73 -73
  46. package/src/models/ITRequestChatModel.ts +74 -74
  47. package/src/models/ItApprovalsModel.ts +84 -84
  48. package/src/models/ItWorkflowModel.ts +55 -55
  49. package/src/models/LegalConsultationApprovalModel.ts +65 -65
  50. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  51. package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
  52. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  53. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  54. package/src/models/ServiceSlaApprovalModel.ts +52 -44
  55. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  56. package/src/models/SlaRequestModel.ts +64 -0
  57. package/src/models/StudyLeaveRequestModel.ts +144 -144
  58. package/src/models/TrainingRequestModel.ts +164 -164
  59. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  60. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  61. package/src/models/role.ts +34 -34
  62. package/src/models/user.ts +233 -233
@@ -1,164 +1,164 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum TrainingRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- export enum TypeOfTraining {
14
- INSIDE_TRAINING = "Inside Training",
15
- OUTSIDE_TRAINING = "Outside Training"
16
- }
17
-
18
- export enum TypeOfCategory {
19
- PLANNED = "Planned",
20
- OUT_OF_PLANNED = "Out of planned"
21
- }
22
-
23
- export enum TrainingMediaCoverageRequired {
24
- YES = "Yes",
25
- NO = "No"
26
- }
27
-
28
- @Entity({ name: "training_requests" })
29
- export class TrainingRequest extends BaseModel {
30
- @Column({ type: "integer", nullable: true })
31
- req_user_department_id: number | null;
32
-
33
- @Column({ type: "integer", nullable: true })
34
- req_user_section_id: number | null;
35
-
36
- @Column({ type: "integer", nullable: true })
37
- req_user_position_id: number | null;
38
-
39
- @Column({ type: "integer", nullable: true })
40
- service_id: number | null;
41
-
42
- @Column({ type: "integer", nullable: true })
43
- sub_service_id: number | null;
44
-
45
- @Column({ type: "integer", nullable: false })
46
- user_id: number;
47
-
48
- @Column({
49
- type: "enum",
50
- enum: TypeOfTraining,
51
- nullable: true
52
- })
53
- type_of_training: TypeOfTraining | null;
54
-
55
- @Column({
56
- type: "enum",
57
- enum: TypeOfCategory,
58
- nullable: true
59
- })
60
- type_of_category: TypeOfCategory | null;
61
-
62
- @Column({ type: "varchar", length: 255, nullable: true })
63
- course_name: string | null;
64
-
65
- @Column({ type: "varchar", length: 100, nullable: true })
66
- course_id: string | null;
67
-
68
- @Column({ type: "text", nullable: false })
69
- description: string;
70
-
71
- @Column({ type: "date", nullable: true })
72
- start_date: Date | null;
73
-
74
- @Column({ type: "date", nullable: true })
75
- end_date: Date | null;
76
-
77
- @Column({ type: "varchar", length: 255, nullable: true })
78
- place: string | null;
79
-
80
- /** Selected attendees (e.g. user_id + optional display name from UI selection) */
81
- @Column({ type: "jsonb", nullable: true })
82
- name_of_attendees_selection: Array<{ user_id: number; name?: string }> | null;
83
-
84
- @Column({ type: "integer", nullable: false })
85
- no_of_attendees: number;
86
-
87
- @Column({
88
- type: "enum",
89
- enum: TrainingMediaCoverageRequired,
90
- default: TrainingMediaCoverageRequired.NO,
91
- nullable: false
92
- })
93
- media_coverage_required: TrainingMediaCoverageRequired;
94
-
95
- @Column({
96
- type: "enum",
97
- enum: TrainingRequestStatus,
98
- default: TrainingRequestStatus.PENDING,
99
- nullable: false
100
- })
101
- status: TrainingRequestStatus;
102
-
103
- @Column({ type: "integer", nullable: true })
104
- reviewer_user_id: number | null;
105
-
106
- @Column({ type: "integer", nullable: true })
107
- assigned_to_user_id: number | null;
108
-
109
- @Column({ type: "timestamp", nullable: true })
110
- assigned_at: Date | null;
111
-
112
- @Column({ type: "varchar", length: 255, nullable: true })
113
- workflow_execution_id: string | null;
114
-
115
- constructor(
116
- user_id: number,
117
- type_of_training: TypeOfTraining | null,
118
- description: string,
119
- place: string | null,
120
- no_of_attendees: number,
121
- media_coverage_required: TrainingMediaCoverageRequired,
122
- status: TrainingRequestStatus = TrainingRequestStatus.PENDING,
123
- service_id?: number | null,
124
- sub_service_id?: number | null,
125
- req_user_department_id?: number | null,
126
- req_user_section_id?: number | null,
127
- req_user_position_id?: number | null,
128
- type_of_category?: TypeOfCategory | null,
129
- course_name?: string | null,
130
- course_id?: string | null,
131
- name_of_attendees_selection?: Array<{ user_id: number; name?: string }> | null,
132
- start_date?: Date | null,
133
- end_date?: Date | null,
134
- reviewer_user_id?: number | null,
135
- assigned_to_user_id?: number | null,
136
- assigned_at?: Date | null,
137
- workflow_execution_id?: string | null
138
- ) {
139
- super();
140
- this.user_id = user_id;
141
- this.type_of_training = type_of_training;
142
- this.description = description;
143
- this.place = place;
144
- this.course_name = course_name ?? null;
145
- this.course_id = course_id ?? null;
146
- this.name_of_attendees_selection = name_of_attendees_selection ?? null;
147
- this.no_of_attendees = no_of_attendees;
148
- this.media_coverage_required = media_coverage_required;
149
- this.status = status;
150
- this.service_id = service_id || null;
151
- this.sub_service_id = sub_service_id || null;
152
- this.req_user_department_id = req_user_department_id || null;
153
- this.req_user_section_id = req_user_section_id || null;
154
- this.req_user_position_id = req_user_position_id || null;
155
- this.type_of_category = type_of_category || null;
156
- this.start_date = start_date || null;
157
- this.end_date = end_date || null;
158
- this.reviewer_user_id = reviewer_user_id || null;
159
- this.assigned_to_user_id = assigned_to_user_id || null;
160
- this.assigned_at = assigned_at || null;
161
- this.workflow_execution_id = workflow_execution_id || null;
162
- }
163
- }
164
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum TrainingRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ export enum TypeOfTraining {
14
+ INSIDE_TRAINING = "Inside Training",
15
+ OUTSIDE_TRAINING = "Outside Training"
16
+ }
17
+
18
+ export enum TypeOfCategory {
19
+ PLANNED = "Planned",
20
+ OUT_OF_PLANNED = "Out of planned"
21
+ }
22
+
23
+ export enum TrainingMediaCoverageRequired {
24
+ YES = "Yes",
25
+ NO = "No"
26
+ }
27
+
28
+ @Entity({ name: "training_requests" })
29
+ export class TrainingRequest extends BaseModel {
30
+ @Column({ type: "integer", nullable: true })
31
+ req_user_department_id: number | null;
32
+
33
+ @Column({ type: "integer", nullable: true })
34
+ req_user_section_id: number | null;
35
+
36
+ @Column({ type: "integer", nullable: true })
37
+ req_user_position_id: number | null;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ service_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ sub_service_id: number | null;
44
+
45
+ @Column({ type: "integer", nullable: false })
46
+ user_id: number;
47
+
48
+ @Column({
49
+ type: "enum",
50
+ enum: TypeOfTraining,
51
+ nullable: true
52
+ })
53
+ type_of_training: TypeOfTraining | null;
54
+
55
+ @Column({
56
+ type: "enum",
57
+ enum: TypeOfCategory,
58
+ nullable: true
59
+ })
60
+ type_of_category: TypeOfCategory | null;
61
+
62
+ @Column({ type: "varchar", length: 255, nullable: true })
63
+ course_name: string | null;
64
+
65
+ @Column({ type: "varchar", length: 100, nullable: true })
66
+ course_id: string | null;
67
+
68
+ @Column({ type: "text", nullable: false })
69
+ description: string;
70
+
71
+ @Column({ type: "date", nullable: true })
72
+ start_date: Date | null;
73
+
74
+ @Column({ type: "date", nullable: true })
75
+ end_date: Date | null;
76
+
77
+ @Column({ type: "varchar", length: 255, nullable: true })
78
+ place: string | null;
79
+
80
+ /** Selected attendees (e.g. user_id + optional display name from UI selection) */
81
+ @Column({ type: "jsonb", nullable: true })
82
+ name_of_attendees_selection: Array<{ user_id: number; name?: string }> | null;
83
+
84
+ @Column({ type: "integer", nullable: false })
85
+ no_of_attendees: number;
86
+
87
+ @Column({
88
+ type: "enum",
89
+ enum: TrainingMediaCoverageRequired,
90
+ default: TrainingMediaCoverageRequired.NO,
91
+ nullable: false
92
+ })
93
+ media_coverage_required: TrainingMediaCoverageRequired;
94
+
95
+ @Column({
96
+ type: "enum",
97
+ enum: TrainingRequestStatus,
98
+ default: TrainingRequestStatus.PENDING,
99
+ nullable: false
100
+ })
101
+ status: TrainingRequestStatus;
102
+
103
+ @Column({ type: "integer", nullable: true })
104
+ reviewer_user_id: number | null;
105
+
106
+ @Column({ type: "integer", nullable: true })
107
+ assigned_to_user_id: number | null;
108
+
109
+ @Column({ type: "timestamp", nullable: true })
110
+ assigned_at: Date | null;
111
+
112
+ @Column({ type: "varchar", length: 255, nullable: true })
113
+ workflow_execution_id: string | null;
114
+
115
+ constructor(
116
+ user_id: number,
117
+ type_of_training: TypeOfTraining | null,
118
+ description: string,
119
+ place: string | null,
120
+ no_of_attendees: number,
121
+ media_coverage_required: TrainingMediaCoverageRequired,
122
+ status: TrainingRequestStatus = TrainingRequestStatus.PENDING,
123
+ service_id?: number | null,
124
+ sub_service_id?: number | null,
125
+ req_user_department_id?: number | null,
126
+ req_user_section_id?: number | null,
127
+ req_user_position_id?: number | null,
128
+ type_of_category?: TypeOfCategory | null,
129
+ course_name?: string | null,
130
+ course_id?: string | null,
131
+ name_of_attendees_selection?: Array<{ user_id: number; name?: string }> | null,
132
+ start_date?: Date | null,
133
+ end_date?: Date | null,
134
+ reviewer_user_id?: number | null,
135
+ assigned_to_user_id?: number | null,
136
+ assigned_at?: Date | null,
137
+ workflow_execution_id?: string | null
138
+ ) {
139
+ super();
140
+ this.user_id = user_id;
141
+ this.type_of_training = type_of_training;
142
+ this.description = description;
143
+ this.place = place;
144
+ this.course_name = course_name ?? null;
145
+ this.course_id = course_id ?? null;
146
+ this.name_of_attendees_selection = name_of_attendees_selection ?? null;
147
+ this.no_of_attendees = no_of_attendees;
148
+ this.media_coverage_required = media_coverage_required;
149
+ this.status = status;
150
+ this.service_id = service_id || null;
151
+ this.sub_service_id = sub_service_id || null;
152
+ this.req_user_department_id = req_user_department_id || null;
153
+ this.req_user_section_id = req_user_section_id || null;
154
+ this.req_user_position_id = req_user_position_id || null;
155
+ this.type_of_category = type_of_category || null;
156
+ this.start_date = start_date || null;
157
+ this.end_date = end_date || null;
158
+ this.reviewer_user_id = reviewer_user_id || null;
159
+ this.assigned_to_user_id = assigned_to_user_id || null;
160
+ this.assigned_at = assigned_at || null;
161
+ this.workflow_execution_id = workflow_execution_id || null;
162
+ }
163
+ }
164
+
@@ -1,142 +1,142 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum TrainingRoomBookingRequestStatus {
5
- PENDING = "Pending",
6
- IN_PROGRESS = "In Progress",
7
- COMPLETED = "Completed",
8
- APPROVED = "Approved",
9
- REJECTED = "Rejected"
10
- }
11
-
12
- export enum TrainingRoomBookingRoomType {
13
- TRAINING_ROOMS_A = "Training Rooms (A1, A2)",
14
- TRAINING_ROOMS_B = "Training Rooms (B1, B2)",
15
- TRAINING_ROOMS_C = "Training Rooms (C1, C2)",
16
- TRAINING_ROOMS_D = "Training Rooms (D1, D2)",
17
- LECTURE_HALL = "Lecture Hall",
18
- LABORATORY = "Laboratory"
19
- }
20
-
21
- @Entity({ name: "training_room_booking_requests" })
22
- export class TrainingRoomBookingRequest extends BaseModel {
23
- @Column({ type: "integer", nullable: true })
24
- req_user_department_id: number | null;
25
-
26
- @Column({ type: "integer", nullable: true })
27
- req_user_section_id: number | null;
28
-
29
- @Column({ type: "integer", nullable: true })
30
- req_user_position_id: number | null;
31
-
32
- @Column({ type: "integer", nullable: true })
33
- service_id: number | null;
34
-
35
- @Column({ type: "integer", nullable: true })
36
- sub_service_id: number | null;
37
-
38
- @Column({ type: "integer", nullable: false })
39
- user_id: number;
40
-
41
- @Column({ type: "text", nullable: false })
42
- purpose_of_training: string;
43
-
44
- @Column({ type: "date", nullable: false })
45
- date_of_event: Date;
46
-
47
- @Column({ type: "time", nullable: false })
48
- start_time: string;
49
-
50
- @Column({ type: "time", nullable: false })
51
- end_time: string;
52
-
53
- @Column({
54
- type: "enum",
55
- enum: TrainingRoomBookingRoomType,
56
- nullable: false
57
- })
58
- room_type: TrainingRoomBookingRoomType;
59
-
60
- @Column({ type: "boolean", default: false, nullable: false })
61
- network_support_required: boolean;
62
-
63
- @Column({ type: "boolean", default: false, nullable: false })
64
- meals_required: boolean;
65
-
66
- @Column({ type: "integer", nullable: false })
67
- number_of_attendees: number;
68
-
69
- @Column({ type: "json", nullable: true })
70
- name_of_participants: string[] | null;
71
-
72
- @Column({ type: "text", nullable: true })
73
- remarks: string | null;
74
-
75
- @Column({
76
- type: "enum",
77
- enum: TrainingRoomBookingRequestStatus,
78
- default: TrainingRoomBookingRequestStatus.PENDING,
79
- nullable: false
80
- })
81
- status: TrainingRoomBookingRequestStatus;
82
-
83
- @Column({ type: "integer", nullable: true })
84
- reviewer_user_id: number | null;
85
-
86
- @Column({ type: "integer", nullable: true })
87
- assigned_to_user_id: number | null;
88
-
89
- @Column({ type: "timestamp", nullable: true })
90
- assigned_at: Date | null;
91
-
92
- @Column({ type: "varchar", length: 255, nullable: true })
93
- workflow_execution_id: string | null;
94
-
95
- constructor(
96
- user_id: number,
97
- purpose_of_training: string,
98
- date_of_event: Date,
99
- start_time: string,
100
- end_time: string,
101
- room_type: TrainingRoomBookingRoomType,
102
- number_of_attendees: number,
103
- network_support_required: boolean = false,
104
- meals_required: boolean = false,
105
- status: TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus.PENDING,
106
- service_id?: number | null,
107
- sub_service_id?: number | null,
108
- req_user_department_id?: number | null,
109
- req_user_section_id?: number | null,
110
- req_user_position_id?: number | null,
111
- name_of_participants?: string[] | null,
112
- remarks?: string | null,
113
- reviewer_user_id?: number | null,
114
- assigned_to_user_id?: number | null,
115
- assigned_at?: Date | null,
116
- workflow_execution_id?: string | null
117
- ) {
118
- super();
119
- this.user_id = user_id;
120
- this.purpose_of_training = purpose_of_training;
121
- this.date_of_event = date_of_event;
122
- this.start_time = start_time;
123
- this.end_time = end_time;
124
- this.room_type = room_type;
125
- this.number_of_attendees = number_of_attendees;
126
- this.network_support_required = network_support_required;
127
- this.meals_required = meals_required;
128
- this.status = status;
129
- this.service_id = service_id || null;
130
- this.sub_service_id = sub_service_id || null;
131
- this.req_user_department_id = req_user_department_id || null;
132
- this.req_user_section_id = req_user_section_id || null;
133
- this.req_user_position_id = req_user_position_id || null;
134
- this.name_of_participants = name_of_participants ?? null;
135
- this.remarks = remarks || null;
136
- this.reviewer_user_id = reviewer_user_id || null;
137
- this.assigned_to_user_id = assigned_to_user_id || null;
138
- this.assigned_at = assigned_at || null;
139
- this.workflow_execution_id = workflow_execution_id || null;
140
- }
141
- }
142
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum TrainingRoomBookingRequestStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ COMPLETED = "Completed",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ export enum TrainingRoomBookingRoomType {
13
+ TRAINING_ROOMS_A = "Training Rooms (A1, A2)",
14
+ TRAINING_ROOMS_B = "Training Rooms (B1, B2)",
15
+ TRAINING_ROOMS_C = "Training Rooms (C1, C2)",
16
+ TRAINING_ROOMS_D = "Training Rooms (D1, D2)",
17
+ LECTURE_HALL = "Lecture Hall",
18
+ LABORATORY = "Laboratory"
19
+ }
20
+
21
+ @Entity({ name: "training_room_booking_requests" })
22
+ export class TrainingRoomBookingRequest extends BaseModel {
23
+ @Column({ type: "integer", nullable: true })
24
+ req_user_department_id: number | null;
25
+
26
+ @Column({ type: "integer", nullable: true })
27
+ req_user_section_id: number | null;
28
+
29
+ @Column({ type: "integer", nullable: true })
30
+ req_user_position_id: number | null;
31
+
32
+ @Column({ type: "integer", nullable: true })
33
+ service_id: number | null;
34
+
35
+ @Column({ type: "integer", nullable: true })
36
+ sub_service_id: number | null;
37
+
38
+ @Column({ type: "integer", nullable: false })
39
+ user_id: number;
40
+
41
+ @Column({ type: "text", nullable: false })
42
+ purpose_of_training: string;
43
+
44
+ @Column({ type: "date", nullable: false })
45
+ date_of_event: Date;
46
+
47
+ @Column({ type: "time", nullable: false })
48
+ start_time: string;
49
+
50
+ @Column({ type: "time", nullable: false })
51
+ end_time: string;
52
+
53
+ @Column({
54
+ type: "enum",
55
+ enum: TrainingRoomBookingRoomType,
56
+ nullable: false
57
+ })
58
+ room_type: TrainingRoomBookingRoomType;
59
+
60
+ @Column({ type: "boolean", default: false, nullable: false })
61
+ network_support_required: boolean;
62
+
63
+ @Column({ type: "boolean", default: false, nullable: false })
64
+ meals_required: boolean;
65
+
66
+ @Column({ type: "integer", nullable: false })
67
+ number_of_attendees: number;
68
+
69
+ @Column({ type: "json", nullable: true })
70
+ name_of_participants: string[] | null;
71
+
72
+ @Column({ type: "text", nullable: true })
73
+ remarks: string | null;
74
+
75
+ @Column({
76
+ type: "enum",
77
+ enum: TrainingRoomBookingRequestStatus,
78
+ default: TrainingRoomBookingRequestStatus.PENDING,
79
+ nullable: false
80
+ })
81
+ status: TrainingRoomBookingRequestStatus;
82
+
83
+ @Column({ type: "integer", nullable: true })
84
+ reviewer_user_id: number | null;
85
+
86
+ @Column({ type: "integer", nullable: true })
87
+ assigned_to_user_id: number | null;
88
+
89
+ @Column({ type: "timestamp", nullable: true })
90
+ assigned_at: Date | null;
91
+
92
+ @Column({ type: "varchar", length: 255, nullable: true })
93
+ workflow_execution_id: string | null;
94
+
95
+ constructor(
96
+ user_id: number,
97
+ purpose_of_training: string,
98
+ date_of_event: Date,
99
+ start_time: string,
100
+ end_time: string,
101
+ room_type: TrainingRoomBookingRoomType,
102
+ number_of_attendees: number,
103
+ network_support_required: boolean = false,
104
+ meals_required: boolean = false,
105
+ status: TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus.PENDING,
106
+ service_id?: number | null,
107
+ sub_service_id?: number | null,
108
+ req_user_department_id?: number | null,
109
+ req_user_section_id?: number | null,
110
+ req_user_position_id?: number | null,
111
+ name_of_participants?: string[] | null,
112
+ remarks?: string | null,
113
+ reviewer_user_id?: number | null,
114
+ assigned_to_user_id?: number | null,
115
+ assigned_at?: Date | null,
116
+ workflow_execution_id?: string | null
117
+ ) {
118
+ super();
119
+ this.user_id = user_id;
120
+ this.purpose_of_training = purpose_of_training;
121
+ this.date_of_event = date_of_event;
122
+ this.start_time = start_time;
123
+ this.end_time = end_time;
124
+ this.room_type = room_type;
125
+ this.number_of_attendees = number_of_attendees;
126
+ this.network_support_required = network_support_required;
127
+ this.meals_required = meals_required;
128
+ this.status = status;
129
+ this.service_id = service_id || null;
130
+ this.sub_service_id = sub_service_id || null;
131
+ this.req_user_department_id = req_user_department_id || null;
132
+ this.req_user_section_id = req_user_section_id || null;
133
+ this.req_user_position_id = req_user_position_id || null;
134
+ this.name_of_participants = name_of_participants ?? null;
135
+ this.remarks = remarks || null;
136
+ this.reviewer_user_id = reviewer_user_id || null;
137
+ this.assigned_to_user_id = assigned_to_user_id || null;
138
+ this.assigned_at = assigned_at || null;
139
+ this.workflow_execution_id = workflow_execution_id || null;
140
+ }
141
+ }
142
+
@@ -1,30 +1,30 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum NotificationFrequency {
5
- YEARLY = "yearly",
6
- SIX_MONTHS_BEFORE = "6_months_before"
7
- }
8
-
9
- @Entity({ name: "training_room_notification_configs" })
10
- export class TrainingRoomNotificationConfig extends BaseModel {
11
- @Column({ type: "integer", nullable: false })
12
- department_id: number;
13
-
14
- @Column({ type: "integer", nullable: true })
15
- section_id: number | null;
16
-
17
- @Column({ type: "boolean", nullable: false, default: true })
18
- is_active: boolean;
19
-
20
- constructor(
21
- department_id: number,
22
- section_id: number | null = null,
23
- is_active: boolean = true
24
- ) {
25
- super();
26
- this.department_id = department_id;
27
- this.section_id = section_id;
28
- this.is_active = is_active;
29
- }
30
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum NotificationFrequency {
5
+ YEARLY = "yearly",
6
+ SIX_MONTHS_BEFORE = "6_months_before"
7
+ }
8
+
9
+ @Entity({ name: "training_room_notification_configs" })
10
+ export class TrainingRoomNotificationConfig extends BaseModel {
11
+ @Column({ type: "integer", nullable: false })
12
+ department_id: number;
13
+
14
+ @Column({ type: "integer", nullable: true })
15
+ section_id: number | null;
16
+
17
+ @Column({ type: "boolean", nullable: false, default: true })
18
+ is_active: boolean;
19
+
20
+ constructor(
21
+ department_id: number,
22
+ section_id: number | null = null,
23
+ is_active: boolean = true
24
+ ) {
25
+ super();
26
+ this.department_id = department_id;
27
+ this.section_id = section_id;
28
+ this.is_active = is_active;
29
+ }
30
+ }