@platform-modules/civil-aviation-authority 2.3.12 → 2.3.13

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 (48) hide show
  1. package/dist/data-source.js +20 -0
  2. package/dist/index.d.ts +24 -0
  3. package/dist/index.js +41 -1
  4. package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
  5. package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
  6. package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
  7. package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
  8. package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
  9. package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
  10. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
  11. package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
  12. package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
  13. package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
  14. package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
  15. package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
  16. package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
  17. package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
  18. package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
  19. package/dist/models/TrainingRoomBookingChatModel.js +89 -0
  20. package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
  21. package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
  22. package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
  23. package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
  24. package/package.json +1 -1
  25. package/src/data-source.ts +225 -205
  26. package/src/index.ts +24 -0
  27. package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
  28. package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
  29. package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
  30. package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
  31. package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
  32. package/src/models/HrServiceRequestModel.ts +167 -167
  33. package/src/models/ITRequestChatModel.ts +62 -62
  34. package/src/models/ItApprovalsModel.ts +84 -84
  35. package/src/models/ItWorkflowModel.ts +55 -55
  36. package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
  37. package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
  38. package/src/models/TrainingRoomBookingChatModel.ts +76 -0
  39. package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
  40. package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
  41. package/dist/models/ITApprovalSettings.d.ts +0 -7
  42. package/dist/models/ITApprovalSettings.js +0 -40
  43. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  44. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  45. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  46. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  47. package/dist/models/Workflows.d.ts +0 -9
  48. package/dist/models/Workflows.js +0 -31
@@ -0,0 +1,76 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum AnnualTrainingPlanMessageType {
5
+ TEXT = "text",
6
+ IMAGE = "image",
7
+ VIDEO = "video",
8
+ FILE = "file",
9
+ LINK = "link"
10
+ }
11
+
12
+ export enum AnnualTrainingPlanChatStatus {
13
+ PENDING = "Pending",
14
+ APPROVED = "Approved",
15
+ REJECTED = "Rejected",
16
+ IN_PROGRESS = "In Progress"
17
+ }
18
+
19
+ @Entity({ name: "annual_training_plan_request_chat" })
20
+ export class AnnualTrainingPlanRequestChat extends BaseModel {
21
+ @Column({ type: "integer", nullable: false })
22
+ request_id: number;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: false })
34
+ message: string;
35
+
36
+ @Column({ type: "integer", nullable: true })
37
+ approver_role_id: number | null;
38
+
39
+ @Column({
40
+ type: "enum",
41
+ enum: AnnualTrainingPlanMessageType,
42
+ default: AnnualTrainingPlanMessageType.TEXT,
43
+ nullable: false
44
+ })
45
+ messageType: AnnualTrainingPlanMessageType;
46
+
47
+ @Column({ type: "boolean", default: false })
48
+ is_internal: boolean;
49
+
50
+ @Column({ type: "text", nullable: false })
51
+ status: string;
52
+
53
+ constructor(
54
+ request_id: number,
55
+ user_id: number,
56
+ message: string,
57
+ service_id?: number | null,
58
+ sub_service_id?: number | null,
59
+ messageType?: AnnualTrainingPlanMessageType,
60
+ is_internal?: boolean,
61
+ status?: string,
62
+ approver_role_id?: number
63
+ ) {
64
+ super();
65
+ this.request_id = request_id;
66
+ this.service_id = service_id || null;
67
+ this.sub_service_id = sub_service_id || null;
68
+ this.user_id = user_id;
69
+ this.message = message;
70
+ this.messageType = messageType || AnnualTrainingPlanMessageType.TEXT;
71
+ this.is_internal = is_internal || false;
72
+ this.status = status || 'Pending';
73
+ this.approver_role_id = approver_role_id || null;
74
+ }
75
+ }
76
+
@@ -0,0 +1,138 @@
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
+ constructor(
92
+ user_id: number,
93
+ course_name: string,
94
+ no_of_participants: number,
95
+ course_cost: number,
96
+ total_cost: number,
97
+ proposed_implementation_date: Date,
98
+ description: string,
99
+ place: AnnualTrainingPlanPlace,
100
+ reason: string,
101
+ status: AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus.PENDING,
102
+ service_id?: number | null,
103
+ sub_service_id?: number | null,
104
+ req_user_department_id?: number | null,
105
+ req_user_section_id?: number | null,
106
+ req_user_position_id?: number | null,
107
+ location?: string | null,
108
+ employee_list?: any[] | null,
109
+ reviewer_user_id?: number | null,
110
+ assigned_to_user_id?: number | null,
111
+ assigned_at?: Date | null,
112
+ workflow_execution_id?: string | null
113
+ ) {
114
+ super();
115
+ this.user_id = user_id;
116
+ this.course_name = course_name;
117
+ this.no_of_participants = no_of_participants;
118
+ this.course_cost = course_cost;
119
+ this.total_cost = total_cost;
120
+ this.proposed_implementation_date = proposed_implementation_date;
121
+ this.description = description;
122
+ this.place = place;
123
+ this.reason = reason;
124
+ this.status = status;
125
+ this.service_id = service_id || null;
126
+ this.sub_service_id = sub_service_id || null;
127
+ this.req_user_department_id = req_user_department_id || null;
128
+ this.req_user_section_id = req_user_section_id || null;
129
+ this.req_user_position_id = req_user_position_id || null;
130
+ this.location = location || null;
131
+ this.employee_list = employee_list || null;
132
+ this.reviewer_user_id = reviewer_user_id || null;
133
+ this.assigned_to_user_id = assigned_to_user_id || null;
134
+ this.assigned_at = assigned_at || null;
135
+ this.workflow_execution_id = workflow_execution_id || null;
136
+ }
137
+ }
138
+
@@ -0,0 +1,68 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum AnnualTrainingPlanWorkFlowStatus {
5
+ COMPLETED = "Completed",
6
+ NOT_YET_STARTED = "Not Yet Started",
7
+ PENDING = "Pending",
8
+ REJECTED = "Rejected"
9
+ }
10
+
11
+ @Entity({ name: "annual_training_plan_workflows" })
12
+ export class AnnualTrainingPlanWorkFlow extends BaseModel {
13
+ @Column({ type: "int", nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: "integer", nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: "integer", nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: "int", nullable: true })
23
+ order: number | null;
24
+
25
+ @Column({ type: "varchar", length: 255, nullable: false })
26
+ content: string;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ approver_role_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ approver_user_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: true })
35
+ approved_by: number | null;
36
+
37
+ @Column({
38
+ type: "enum",
39
+ enum: AnnualTrainingPlanWorkFlowStatus,
40
+ default: AnnualTrainingPlanWorkFlowStatus.PENDING,
41
+ nullable: false
42
+ })
43
+ status: AnnualTrainingPlanWorkFlowStatus;
44
+
45
+ constructor(
46
+ request_id: number,
47
+ content: string,
48
+ status: AnnualTrainingPlanWorkFlowStatus,
49
+ service_id?: number | null,
50
+ sub_service_id?: number | null,
51
+ order?: number,
52
+ approver_role_id?: number | null,
53
+ approver_user_id?: number | null,
54
+ approved_by?: number | null
55
+ ) {
56
+ super();
57
+ this.request_id = request_id;
58
+ this.service_id = service_id || null;
59
+ this.sub_service_id = sub_service_id || null;
60
+ this.content = content;
61
+ this.status = status;
62
+ this.order = order || null;
63
+ this.approver_role_id = approver_role_id || null;
64
+ this.approver_user_id = approver_user_id || null;
65
+ this.approved_by = approved_by || null;
66
+ }
67
+ }
68
+
@@ -1,167 +1,167 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum HrServiceRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- @Entity({ name: "hr_service_requests" })
14
- export class HrServiceRequest extends BaseModel {
15
- @Column({ type: "integer", nullable: true })
16
- req_user_department_id: number | null;
17
-
18
- @Column({ type: "integer", nullable: true })
19
- req_user_section_id: number | null;
20
-
21
- @Column({ type: "integer", nullable: true })
22
- req_user_position_id: number | null;
23
-
24
- @Column({ type: "integer", nullable: true })
25
- service_id: number | null;
26
-
27
- @Column({ type: "integer", nullable: true })
28
- sub_service_id: number | null;
29
-
30
- @Column({ type: "integer", nullable: false })
31
- user_id: number;
32
-
33
- @Column({ type: "text", nullable: true })
34
- description: string | null;
35
-
36
- @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
- status: HrServiceRequestStatus;
38
-
39
- @Column({ type: "integer", nullable: true })
40
- reviewer_user_id: number | null;
41
-
42
- @Column({ type: "integer", nullable: true })
43
- assigned_to_user_id: number | null;
44
-
45
- @Column({ type: "timestamp", nullable: true })
46
- assigned_at: Date | null;
47
-
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- // Assignment Decision specific fields
52
- @Column({ type: "varchar", length: 255, nullable: false })
53
- assigned_employee_name: string;
54
-
55
- @Column({ type: "varchar", length: 50, nullable: true })
56
- civil_id_card_number: string | null;
57
-
58
- @Column({ type: "varchar", length: 100, nullable: false })
59
- employee_id: string;
60
-
61
- @Column({ type: "varchar", length: 255, nullable: false })
62
- current_job_position: string;
63
-
64
- @Column({ type: "varchar", length: 255, nullable: false })
65
- assigned_job_position: string;
66
-
67
- @Column({ type: "date", nullable: false })
68
- start_date: Date;
69
-
70
- @Column({ type: "date", nullable: false })
71
- end_date: Date;
72
-
73
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
- assignment_allowance: number | null; // 0-100 percentage
75
-
76
- @Column({ type: "varchar", length: 20, nullable: false })
77
- phone_number: string;
78
-
79
- @Column({ type: "text", nullable: false })
80
- reason_for_request: string;
81
-
82
- // Replacement tracking fields
83
- @Column({ type: "boolean", default: false, nullable: false })
84
- is_replaced: boolean;
85
-
86
- @Column({ type: "varchar", length: 255, nullable: true })
87
- replacement_employee_name: string | null;
88
-
89
- @Column({ type: "varchar", length: 100, nullable: true })
90
- replacement_employee_id: string | null;
91
-
92
- @Column({ type: "varchar", length: 50, nullable: true })
93
- replacement_civil_id_card_number: string | null;
94
-
95
- @Column({ type: "text", nullable: true })
96
- replacement_reason: string | null;
97
-
98
- @Column({ type: "integer", nullable: true })
99
- replaced_by_user_id: number | null;
100
-
101
- @Column({ type: "timestamp", nullable: true })
102
- replaced_at: Date | null;
103
-
104
- constructor(
105
- user_id: number,
106
- status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
- service_id?: number | null,
108
- sub_service_id?: number | null,
109
- req_user_department_id?: number | null,
110
- req_user_section_id?: number | null,
111
- req_user_position_id?: number | null,
112
- description?: 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
- assigned_employee_name?: string,
118
- civil_id_card_number?: string | null,
119
- employee_id?: string,
120
- current_job_position?: string,
121
- assigned_job_position?: string,
122
- start_date?: Date,
123
- end_date?: Date,
124
- assignment_allowance?: number | null,
125
- phone_number?: string,
126
- reason_for_request?: string,
127
- is_replaced?: boolean,
128
- replacement_employee_name?: string | null,
129
- replacement_employee_id?: string | null,
130
- replacement_civil_id_card_number?: string | null,
131
- replacement_reason?: string | null,
132
- replaced_by_user_id?: number | null,
133
- replaced_at?: Date | null
134
- ) {
135
- super();
136
- this.user_id = user_id;
137
- this.status = status;
138
- this.service_id = service_id || null;
139
- this.sub_service_id = sub_service_id || null;
140
- this.req_user_department_id = req_user_department_id || null;
141
- this.req_user_section_id = req_user_section_id || null;
142
- this.req_user_position_id = req_user_position_id || null;
143
- this.description = description || 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.assigned_employee_name = assigned_employee_name || "";
149
- this.civil_id_card_number = civil_id_card_number || null;
150
- this.employee_id = employee_id || "";
151
- this.current_job_position = current_job_position || "";
152
- this.assigned_job_position = assigned_job_position || "";
153
- this.start_date = start_date || new Date();
154
- this.end_date = end_date || new Date();
155
- this.assignment_allowance = assignment_allowance || null;
156
- this.phone_number = phone_number || "";
157
- this.reason_for_request = reason_for_request || "";
158
- this.is_replaced = is_replaced || false;
159
- this.replacement_employee_name = replacement_employee_name || null;
160
- this.replacement_employee_id = replacement_employee_id || null;
161
- this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
- this.replacement_reason = replacement_reason || null;
163
- this.replaced_by_user_id = replaced_by_user_id || null;
164
- this.replaced_at = replaced_at || null;
165
- }
166
- }
167
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HrServiceRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "hr_service_requests" })
14
+ export class HrServiceRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
+ status: HrServiceRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // Assignment Decision specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ assigned_employee_name: string;
54
+
55
+ @Column({ type: "varchar", length: 50, nullable: true })
56
+ civil_id_card_number: string | null;
57
+
58
+ @Column({ type: "varchar", length: 100, nullable: false })
59
+ employee_id: string;
60
+
61
+ @Column({ type: "varchar", length: 255, nullable: false })
62
+ current_job_position: string;
63
+
64
+ @Column({ type: "varchar", length: 255, nullable: false })
65
+ assigned_job_position: string;
66
+
67
+ @Column({ type: "date", nullable: false })
68
+ start_date: Date;
69
+
70
+ @Column({ type: "date", nullable: false })
71
+ end_date: Date;
72
+
73
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
+ assignment_allowance: number | null; // 0-100 percentage
75
+
76
+ @Column({ type: "varchar", length: 20, nullable: false })
77
+ phone_number: string;
78
+
79
+ @Column({ type: "text", nullable: false })
80
+ reason_for_request: string;
81
+
82
+ // Replacement tracking fields
83
+ @Column({ type: "boolean", default: false, nullable: false })
84
+ is_replaced: boolean;
85
+
86
+ @Column({ type: "varchar", length: 255, nullable: true })
87
+ replacement_employee_name: string | null;
88
+
89
+ @Column({ type: "varchar", length: 100, nullable: true })
90
+ replacement_employee_id: string | null;
91
+
92
+ @Column({ type: "varchar", length: 50, nullable: true })
93
+ replacement_civil_id_card_number: string | null;
94
+
95
+ @Column({ type: "text", nullable: true })
96
+ replacement_reason: string | null;
97
+
98
+ @Column({ type: "integer", nullable: true })
99
+ replaced_by_user_id: number | null;
100
+
101
+ @Column({ type: "timestamp", nullable: true })
102
+ replaced_at: Date | null;
103
+
104
+ constructor(
105
+ user_id: number,
106
+ status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
+ service_id?: number | null,
108
+ sub_service_id?: number | null,
109
+ req_user_department_id?: number | null,
110
+ req_user_section_id?: number | null,
111
+ req_user_position_id?: number | null,
112
+ description?: 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
+ assigned_employee_name?: string,
118
+ civil_id_card_number?: string | null,
119
+ employee_id?: string,
120
+ current_job_position?: string,
121
+ assigned_job_position?: string,
122
+ start_date?: Date,
123
+ end_date?: Date,
124
+ assignment_allowance?: number | null,
125
+ phone_number?: string,
126
+ reason_for_request?: string,
127
+ is_replaced?: boolean,
128
+ replacement_employee_name?: string | null,
129
+ replacement_employee_id?: string | null,
130
+ replacement_civil_id_card_number?: string | null,
131
+ replacement_reason?: string | null,
132
+ replaced_by_user_id?: number | null,
133
+ replaced_at?: Date | null
134
+ ) {
135
+ super();
136
+ this.user_id = user_id;
137
+ this.status = status;
138
+ this.service_id = service_id || null;
139
+ this.sub_service_id = sub_service_id || null;
140
+ this.req_user_department_id = req_user_department_id || null;
141
+ this.req_user_section_id = req_user_section_id || null;
142
+ this.req_user_position_id = req_user_position_id || null;
143
+ this.description = description || 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.assigned_employee_name = assigned_employee_name || "";
149
+ this.civil_id_card_number = civil_id_card_number || null;
150
+ this.employee_id = employee_id || "";
151
+ this.current_job_position = current_job_position || "";
152
+ this.assigned_job_position = assigned_job_position || "";
153
+ this.start_date = start_date || new Date();
154
+ this.end_date = end_date || new Date();
155
+ this.assignment_allowance = assignment_allowance || null;
156
+ this.phone_number = phone_number || "";
157
+ this.reason_for_request = reason_for_request || "";
158
+ this.is_replaced = is_replaced || false;
159
+ this.replacement_employee_name = replacement_employee_name || null;
160
+ this.replacement_employee_id = replacement_employee_id || null;
161
+ this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
+ this.replacement_reason = replacement_reason || null;
163
+ this.replaced_by_user_id = replaced_by_user_id || null;
164
+ this.replaced_at = replaced_at || null;
165
+ }
166
+ }
167
+