@platform-modules/civil-aviation-authority 2.3.80 → 2.3.82
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.
- package/.env +13 -2
- package/dist/data-source.js +10 -4
- package/dist/index.d.ts +9 -3
- package/dist/index.js +15 -6
- package/dist/models/DutyMissionRequestModel.d.ts +1 -2
- package/dist/models/DutyMissionRequestModel.js +2 -7
- package/dist/models/FinancialGradeModel.d.ts +3 -2
- package/dist/models/FinancialGradeModel.js +12 -7
- package/dist/models/JobTransferRequestModel.d.ts +1 -1
- package/dist/models/JobTransferRequestModel.js +1 -1
- package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +23 -0
- package/dist/models/ResidentialUnitRentalApprovalModel.js +88 -0
- package/dist/models/ResidentialUnitRentalAttachmentModel.d.ts +12 -0
- package/dist/models/ResidentialUnitRentalAttachmentModel.js +56 -0
- package/dist/models/ResidentialUnitRentalChatModel.d.ts +18 -0
- package/dist/models/ResidentialUnitRentalChatModel.js +60 -0
- package/dist/models/ResidentialUnitRentalRequestModel.d.ts +48 -0
- package/dist/models/ResidentialUnitRentalRequestModel.js +123 -0
- package/dist/models/ResidentialUnitRentalWorkflowModel.d.ts +25 -0
- package/dist/models/ResidentialUnitRentalWorkflowModel.js +88 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -4
- package/src/index.ts +10 -5
- package/src/models/DutyMissionRequestModel.ts +0 -5
- package/src/models/FinancialGradeModel.ts +10 -5
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/JobTransferRequestModel.ts +2 -2
- package/src/models/ResidentialUnitRentalApprovalModel.ts +62 -0
- package/src/models/ResidentialUnitRentalAttachmentModel.ts +34 -0
- package/src/models/ResidentialUnitRentalChatModel.ts +39 -0
- package/src/models/ResidentialUnitRentalRequestModel.ts +101 -0
- package/src/models/ResidentialUnitRentalWorkflowModel.ts +60 -0
- package/dist/models/CityMasterModel.d.ts +0 -8
- package/dist/models/CityMasterModel.js +0 -41
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/SkillsEnhancementRequestModel.d.ts +0 -39
- package/dist/models/SkillsEnhancementRequestModel.js +0 -133
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
- package/src/models/CityMasterModel.ts +0 -22
- package/src/models/SkillsEnhancementRequestModel.ts +0 -120
|
@@ -1,193 +1,193 @@
|
|
|
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 - Store REPLACEMENT details (ORIGINAL details above remain unchanged)
|
|
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: "varchar", length: 255, nullable: true })
|
|
96
|
-
replacement_current_job_position: string | null;
|
|
97
|
-
|
|
98
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
99
|
-
replacement_assigned_job_position: string | null;
|
|
100
|
-
|
|
101
|
-
@Column({ type: "date", nullable: true })
|
|
102
|
-
replacement_start_date: Date | null;
|
|
103
|
-
|
|
104
|
-
@Column({ type: "date", nullable: true })
|
|
105
|
-
replacement_end_date: Date | null;
|
|
106
|
-
|
|
107
|
-
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
108
|
-
replacement_assignment_allowance: number | null;
|
|
109
|
-
|
|
110
|
-
@Column({ type: "text", nullable: true })
|
|
111
|
-
replacement_reason: string | null;
|
|
112
|
-
|
|
113
|
-
@Column({ type: "integer", nullable: true })
|
|
114
|
-
replaced_by_user_id: number | null;
|
|
115
|
-
|
|
116
|
-
@Column({ type: "timestamp", nullable: true })
|
|
117
|
-
replaced_at: Date | null;
|
|
118
|
-
|
|
119
|
-
constructor(
|
|
120
|
-
user_id: number,
|
|
121
|
-
status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
|
|
122
|
-
service_id?: number | null,
|
|
123
|
-
sub_service_id?: number | null,
|
|
124
|
-
req_user_department_id?: number | null,
|
|
125
|
-
req_user_section_id?: number | null,
|
|
126
|
-
req_user_position_id?: number | null,
|
|
127
|
-
description?: string | null,
|
|
128
|
-
reviewer_user_id?: number | null,
|
|
129
|
-
assigned_to_user_id?: number | null,
|
|
130
|
-
assigned_at?: Date | null,
|
|
131
|
-
workflow_execution_id?: string | null,
|
|
132
|
-
assigned_employee_name?: string,
|
|
133
|
-
civil_id_card_number?: string | null,
|
|
134
|
-
employee_id?: string,
|
|
135
|
-
current_job_position?: string,
|
|
136
|
-
assigned_job_position?: string,
|
|
137
|
-
start_date?: Date,
|
|
138
|
-
end_date?: Date,
|
|
139
|
-
assignment_allowance?: number | null,
|
|
140
|
-
phone_number?: string,
|
|
141
|
-
reason_for_request?: string,
|
|
142
|
-
is_replaced?: boolean,
|
|
143
|
-
replacement_employee_name?: string | null,
|
|
144
|
-
replacement_employee_id?: string | null,
|
|
145
|
-
replacement_civil_id_card_number?: string | null,
|
|
146
|
-
replacement_current_job_position?: string | null,
|
|
147
|
-
replacement_assigned_job_position?: string | null,
|
|
148
|
-
replacement_start_date?: Date | null,
|
|
149
|
-
replacement_end_date?: Date | null,
|
|
150
|
-
replacement_assignment_allowance?: number | null,
|
|
151
|
-
replacement_reason?: string | null,
|
|
152
|
-
replaced_by_user_id?: number | null,
|
|
153
|
-
replaced_at?: Date | null
|
|
154
|
-
) {
|
|
155
|
-
super();
|
|
156
|
-
this.user_id = user_id;
|
|
157
|
-
this.status = status;
|
|
158
|
-
this.service_id = service_id || null;
|
|
159
|
-
this.sub_service_id = sub_service_id || null;
|
|
160
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
161
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
162
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
163
|
-
this.description = description || null;
|
|
164
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
165
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
166
|
-
this.assigned_at = assigned_at || null;
|
|
167
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
168
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
169
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
170
|
-
this.employee_id = employee_id || "";
|
|
171
|
-
this.current_job_position = current_job_position || "";
|
|
172
|
-
this.assigned_job_position = assigned_job_position || "";
|
|
173
|
-
this.start_date = start_date || new Date();
|
|
174
|
-
this.end_date = end_date || new Date();
|
|
175
|
-
this.assignment_allowance = assignment_allowance || null;
|
|
176
|
-
this.phone_number = phone_number || "";
|
|
177
|
-
this.reason_for_request = reason_for_request || "";
|
|
178
|
-
// Replacement fields initialization
|
|
179
|
-
this.is_replaced = is_replaced || false;
|
|
180
|
-
this.replacement_employee_name = replacement_employee_name || null;
|
|
181
|
-
this.replacement_employee_id = replacement_employee_id || null;
|
|
182
|
-
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
183
|
-
this.replacement_current_job_position = replacement_current_job_position || null;
|
|
184
|
-
this.replacement_assigned_job_position = replacement_assigned_job_position || null;
|
|
185
|
-
this.replacement_start_date = replacement_start_date || null;
|
|
186
|
-
this.replacement_end_date = replacement_end_date || null;
|
|
187
|
-
this.replacement_assignment_allowance = replacement_assignment_allowance || null;
|
|
188
|
-
this.replacement_reason = replacement_reason || null;
|
|
189
|
-
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
190
|
-
this.replaced_at = replaced_at || null;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
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 - Store REPLACEMENT details (ORIGINAL details above remain unchanged)
|
|
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: "varchar", length: 255, nullable: true })
|
|
96
|
+
replacement_current_job_position: string | null;
|
|
97
|
+
|
|
98
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
99
|
+
replacement_assigned_job_position: string | null;
|
|
100
|
+
|
|
101
|
+
@Column({ type: "date", nullable: true })
|
|
102
|
+
replacement_start_date: Date | null;
|
|
103
|
+
|
|
104
|
+
@Column({ type: "date", nullable: true })
|
|
105
|
+
replacement_end_date: Date | null;
|
|
106
|
+
|
|
107
|
+
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
108
|
+
replacement_assignment_allowance: number | null;
|
|
109
|
+
|
|
110
|
+
@Column({ type: "text", nullable: true })
|
|
111
|
+
replacement_reason: string | null;
|
|
112
|
+
|
|
113
|
+
@Column({ type: "integer", nullable: true })
|
|
114
|
+
replaced_by_user_id: number | null;
|
|
115
|
+
|
|
116
|
+
@Column({ type: "timestamp", nullable: true })
|
|
117
|
+
replaced_at: Date | null;
|
|
118
|
+
|
|
119
|
+
constructor(
|
|
120
|
+
user_id: number,
|
|
121
|
+
status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
|
|
122
|
+
service_id?: number | null,
|
|
123
|
+
sub_service_id?: number | null,
|
|
124
|
+
req_user_department_id?: number | null,
|
|
125
|
+
req_user_section_id?: number | null,
|
|
126
|
+
req_user_position_id?: number | null,
|
|
127
|
+
description?: string | null,
|
|
128
|
+
reviewer_user_id?: number | null,
|
|
129
|
+
assigned_to_user_id?: number | null,
|
|
130
|
+
assigned_at?: Date | null,
|
|
131
|
+
workflow_execution_id?: string | null,
|
|
132
|
+
assigned_employee_name?: string,
|
|
133
|
+
civil_id_card_number?: string | null,
|
|
134
|
+
employee_id?: string,
|
|
135
|
+
current_job_position?: string,
|
|
136
|
+
assigned_job_position?: string,
|
|
137
|
+
start_date?: Date,
|
|
138
|
+
end_date?: Date,
|
|
139
|
+
assignment_allowance?: number | null,
|
|
140
|
+
phone_number?: string,
|
|
141
|
+
reason_for_request?: string,
|
|
142
|
+
is_replaced?: boolean,
|
|
143
|
+
replacement_employee_name?: string | null,
|
|
144
|
+
replacement_employee_id?: string | null,
|
|
145
|
+
replacement_civil_id_card_number?: string | null,
|
|
146
|
+
replacement_current_job_position?: string | null,
|
|
147
|
+
replacement_assigned_job_position?: string | null,
|
|
148
|
+
replacement_start_date?: Date | null,
|
|
149
|
+
replacement_end_date?: Date | null,
|
|
150
|
+
replacement_assignment_allowance?: number | null,
|
|
151
|
+
replacement_reason?: string | null,
|
|
152
|
+
replaced_by_user_id?: number | null,
|
|
153
|
+
replaced_at?: Date | null
|
|
154
|
+
) {
|
|
155
|
+
super();
|
|
156
|
+
this.user_id = user_id;
|
|
157
|
+
this.status = status;
|
|
158
|
+
this.service_id = service_id || null;
|
|
159
|
+
this.sub_service_id = sub_service_id || null;
|
|
160
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
161
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
162
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
163
|
+
this.description = description || null;
|
|
164
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
165
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
166
|
+
this.assigned_at = assigned_at || null;
|
|
167
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
168
|
+
this.assigned_employee_name = assigned_employee_name || "";
|
|
169
|
+
this.civil_id_card_number = civil_id_card_number || null;
|
|
170
|
+
this.employee_id = employee_id || "";
|
|
171
|
+
this.current_job_position = current_job_position || "";
|
|
172
|
+
this.assigned_job_position = assigned_job_position || "";
|
|
173
|
+
this.start_date = start_date || new Date();
|
|
174
|
+
this.end_date = end_date || new Date();
|
|
175
|
+
this.assignment_allowance = assignment_allowance || null;
|
|
176
|
+
this.phone_number = phone_number || "";
|
|
177
|
+
this.reason_for_request = reason_for_request || "";
|
|
178
|
+
// Replacement fields initialization
|
|
179
|
+
this.is_replaced = is_replaced || false;
|
|
180
|
+
this.replacement_employee_name = replacement_employee_name || null;
|
|
181
|
+
this.replacement_employee_id = replacement_employee_id || null;
|
|
182
|
+
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
183
|
+
this.replacement_current_job_position = replacement_current_job_position || null;
|
|
184
|
+
this.replacement_assigned_job_position = replacement_assigned_job_position || null;
|
|
185
|
+
this.replacement_start_date = replacement_start_date || null;
|
|
186
|
+
this.replacement_end_date = replacement_end_date || null;
|
|
187
|
+
this.replacement_assignment_allowance = replacement_assignment_allowance || null;
|
|
188
|
+
this.replacement_reason = replacement_reason || null;
|
|
189
|
+
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
190
|
+
this.replaced_at = replaced_at || null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -70,8 +70,8 @@ export class JobTransferRequest extends BaseModel {
|
|
|
70
70
|
@Column({ type: "date", nullable: false })
|
|
71
71
|
effective_from_date: Date;
|
|
72
72
|
|
|
73
|
-
@Column({ type: "
|
|
74
|
-
decision_number :
|
|
73
|
+
@Column({ type: "integer", nullable: true })
|
|
74
|
+
decision_number : number | null;
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
constructor(
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ResidentialUnitRentalApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'residential_unit_rental_approvals' })
|
|
13
|
+
export class ResidentialUnitRentalApproval extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: false })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: false })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
approver_role_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
approver_user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
delegate_user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'int', nullable: true })
|
|
34
|
+
approved_by: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', nullable: true })
|
|
37
|
+
department_id: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
section_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', nullable: false })
|
|
43
|
+
level: number;
|
|
44
|
+
|
|
45
|
+
@Column({
|
|
46
|
+
type: 'enum',
|
|
47
|
+
enum: ResidentialUnitRentalApprovalStatus,
|
|
48
|
+
default: ResidentialUnitRentalApprovalStatus.PENDING,
|
|
49
|
+
nullable: false
|
|
50
|
+
})
|
|
51
|
+
approval_status: ResidentialUnitRentalApprovalStatus; // Pending, In Progress, YES, ND, RFC
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'text', nullable: true })
|
|
54
|
+
comment: string;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'int', nullable: false })
|
|
57
|
+
created_by: number;
|
|
58
|
+
|
|
59
|
+
constructor() {
|
|
60
|
+
super();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'residential_unit_rental_attachments' })
|
|
5
|
+
export class ResidentialUnitRentalAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'int', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
service_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: false })
|
|
14
|
+
sub_service_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
17
|
+
file_name: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
20
|
+
file_url: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: false })
|
|
26
|
+
file_size: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
created_by: number;
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ResidentialUnitRentalMessageType {
|
|
5
|
+
text = 'text',
|
|
6
|
+
image = 'image',
|
|
7
|
+
video = 'video',
|
|
8
|
+
file = 'file',
|
|
9
|
+
link = 'link'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'residential_unit_rental_chat' })
|
|
13
|
+
export class ResidentialUnitRentalChat extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: false })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: false })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text', nullable: false })
|
|
25
|
+
message: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
28
|
+
message_type: string; // text, image, video, file, link
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'boolean', nullable: false, default: false })
|
|
31
|
+
is_internal: boolean;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'int', nullable: false })
|
|
34
|
+
created_by: number;
|
|
35
|
+
|
|
36
|
+
constructor() {
|
|
37
|
+
super();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ResidentialUnitRentalRequestStatus {
|
|
5
|
+
Pending = 'Pending',
|
|
6
|
+
Approved = 'Approved',
|
|
7
|
+
Rejected = 'Rejected',
|
|
8
|
+
RFC = 'RFC'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'residential_unit_rental_requests' })
|
|
12
|
+
export class ResidentialUnitRentalRequest extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
15
|
+
request_id: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'int', nullable: false })
|
|
18
|
+
service_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: false })
|
|
21
|
+
sub_service_id: number;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
24
|
+
requested_unit_type: string; // Apartment, Villa
|
|
25
|
+
|
|
26
|
+
/** BRD: Apartment options with OMR rates - Studio 100, 1BHK 150, 2BHK 200, 3BHK 250 */
|
|
27
|
+
@Column({ type: 'json', nullable: true })
|
|
28
|
+
apartment_type: {
|
|
29
|
+
studio?: boolean;
|
|
30
|
+
one_bhk?: boolean;
|
|
31
|
+
two_bhk?: boolean;
|
|
32
|
+
three_bhk?: boolean;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
|
|
36
|
+
@Column({ type: 'json', nullable: true })
|
|
37
|
+
villa_type: {
|
|
38
|
+
one_room?: boolean;
|
|
39
|
+
two_room?: boolean;
|
|
40
|
+
three_room?: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
44
|
+
extension_number: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'date', nullable: false })
|
|
47
|
+
preferred_start_date: Date;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'int', nullable: false })
|
|
50
|
+
family_size: number;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
53
|
+
duration_of_stay: string; // Months/Years
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
56
|
+
location_of_unit: string;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'text', nullable: true })
|
|
59
|
+
comment: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
|
|
62
|
+
status: string;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'int', nullable: true })
|
|
65
|
+
user_id: number;
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
68
|
+
workflow_execution_id: string;
|
|
69
|
+
|
|
70
|
+
@Column({ type: 'int', nullable: false })
|
|
71
|
+
created_by: number;
|
|
72
|
+
|
|
73
|
+
@Column({ type: 'int', nullable: true })
|
|
74
|
+
approved_by: number;
|
|
75
|
+
|
|
76
|
+
@Column({ type: 'date', nullable: true })
|
|
77
|
+
approved_at: Date;
|
|
78
|
+
|
|
79
|
+
@Column({ type: 'text', nullable: true })
|
|
80
|
+
approver_comment: string;
|
|
81
|
+
|
|
82
|
+
@Column({ type: 'json', nullable: true })
|
|
83
|
+
unit_details: {
|
|
84
|
+
type: string;
|
|
85
|
+
specifications: any;
|
|
86
|
+
rate: number;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
@Column({ type: 'date', nullable: true })
|
|
90
|
+
rental_start_date: Date;
|
|
91
|
+
|
|
92
|
+
@Column({ type: 'date', nullable: true })
|
|
93
|
+
rental_end_date: Date;
|
|
94
|
+
|
|
95
|
+
@Column({ type: 'text', nullable: true })
|
|
96
|
+
rental_agreement_url: string;
|
|
97
|
+
|
|
98
|
+
constructor() {
|
|
99
|
+
super();
|
|
100
|
+
}
|
|
101
|
+
}
|