@platform-modules/foreign-ministry 1.3.210 → 1.3.211
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 +3 -17
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/EmbassyMasterModel.d.ts +16 -0
- package/dist/models/EmbassyMasterModel.js +75 -0
- package/dist/models/ResignationTerminationApprovalModel.d.ts +22 -0
- package/dist/models/ResignationTerminationApprovalModel.js +79 -0
- package/dist/models/ResignationTerminationAttachmentModel.d.ts +11 -0
- package/dist/models/ResignationTerminationAttachmentModel.js +52 -0
- package/dist/models/ResignationTerminationChatModel.d.ts +17 -0
- package/dist/models/ResignationTerminationChatModel.js +76 -0
- package/dist/models/ResignationTerminationRequestModel.d.ts +30 -0
- package/dist/models/ResignationTerminationRequestModel.js +108 -0
- package/dist/models/ResignationTerminationWorkflowModel.d.ts +17 -0
- package/dist/models/ResignationTerminationWorkflowModel.js +62 -0
- package/dist/models/UserDependentsModel.d.ts +18 -0
- package/dist/models/UserDependentsModel.js +94 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/RegisterCandidateRequestModel.ts +183 -183
- package/src/models/ResignationTerminationApprovalModel.ts +51 -0
- package/src/models/ResignationTerminationAttachmentModel.ts +30 -0
- package/src/models/ResignationTerminationChatModel.ts +63 -0
- package/src/models/ResignationTerminationRequestModel.ts +76 -0
- package/src/models/ResignationTerminationWorkflowModel.ts +38 -0
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
|
@@ -1,183 +1,183 @@
|
|
|
1
|
-
import { Column, Entity, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { RegisterCandidateExperienceActivity } from './RegisterCandidateExperienceActivityModel';
|
|
4
|
-
|
|
5
|
-
export enum RegisterCandidateStatus {
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
ASSIGNED = "Assigned",
|
|
8
|
-
IN_PROGRESS = "In Progress",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum CandidateStatusType {
|
|
14
|
-
SELECTED = "Selected",
|
|
15
|
-
REJECTED = "Rejected",
|
|
16
|
-
JOINED = "Joined",
|
|
17
|
-
NOT_JOINED = "Not Joined"
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Entity({ name: 'register_candidate_requests' })
|
|
21
|
-
export class RegisterCandidateRequests extends BaseModel {
|
|
22
|
-
|
|
23
|
-
// Common columns from register_vacancy_requests
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
req_user_department_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'int', nullable: true })
|
|
28
|
-
req_user_section_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'int', nullable: true })
|
|
31
|
-
service_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'int', nullable: true })
|
|
34
|
-
sub_service_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'int', nullable: false })
|
|
37
|
-
user_id: number;
|
|
38
|
-
|
|
39
|
-
// New columns - Personal Information
|
|
40
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
41
|
-
candidate_gender: string | null;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
44
|
-
candidate_email: string | null;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
47
|
-
relationship: string | null;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
50
|
-
place_of_birth: string | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: true })
|
|
53
|
-
date_of_birth: Date | null;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
56
|
-
nationality: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
59
|
-
religion_and_sect: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
62
|
-
sub_religion_and_sect: string | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: 'text', nullable: true })
|
|
65
|
-
present_residence: string | null;
|
|
66
|
-
|
|
67
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
68
|
-
occupation_and_employer: string | null;
|
|
69
|
-
|
|
70
|
-
// Education Information
|
|
71
|
-
@Column({ type: 'text', nullable: true })
|
|
72
|
-
type_of_study_specializations_qualification: string | null;
|
|
73
|
-
|
|
74
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
75
|
-
educational_institute: string | null;
|
|
76
|
-
|
|
77
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
78
|
-
education_country: string | null;
|
|
79
|
-
|
|
80
|
-
@Column({ type: 'date', nullable: true })
|
|
81
|
-
education_period_from: Date | null;
|
|
82
|
-
|
|
83
|
-
@Column({ type: 'date', nullable: true })
|
|
84
|
-
education_period_to: Date | null;
|
|
85
|
-
|
|
86
|
-
// Note: Employment, Activity, and Charge Information fields have been moved to
|
|
87
|
-
// register_candidate_experience_activity table to support multiple experience records
|
|
88
|
-
|
|
89
|
-
// First Address
|
|
90
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
91
|
-
address1_country_state: string | null;
|
|
92
|
-
|
|
93
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
94
|
-
address1_street_no: string | null;
|
|
95
|
-
|
|
96
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
97
|
-
address1_road_no: string | null;
|
|
98
|
-
|
|
99
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
100
|
-
address1_flat_building_no: string | null;
|
|
101
|
-
|
|
102
|
-
@Column({ type: 'text', nullable: true })
|
|
103
|
-
address1_po_box_telephone_fax: string | null;
|
|
104
|
-
|
|
105
|
-
// Second Address
|
|
106
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
107
|
-
address2_country_state: string | null;
|
|
108
|
-
|
|
109
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
110
|
-
address2_street_no: string | null;
|
|
111
|
-
|
|
112
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
113
|
-
address2_road_no: string | null;
|
|
114
|
-
|
|
115
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
116
|
-
address2_flat_building_no: string | null;
|
|
117
|
-
|
|
118
|
-
@Column({ type: 'text', nullable: true })
|
|
119
|
-
address2_po_box_telephone_fax: string | null;
|
|
120
|
-
|
|
121
|
-
// Reference Information
|
|
122
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
123
|
-
reference_full_name: string | null;
|
|
124
|
-
|
|
125
|
-
@Column({ type: 'text', nullable: true })
|
|
126
|
-
reference_address_and_telephone: string | null;
|
|
127
|
-
|
|
128
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
129
|
-
telephone_number: string | null;
|
|
130
|
-
|
|
131
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
132
|
-
reference_employer: string | null;
|
|
133
|
-
|
|
134
|
-
// Vacancy Information
|
|
135
|
-
@Column({ type: 'int', nullable: true })
|
|
136
|
-
vacancy_id: number | null;
|
|
137
|
-
|
|
138
|
-
@Column({ type: 'text', nullable: true })
|
|
139
|
-
vacancy_description: string | null;
|
|
140
|
-
|
|
141
|
-
// Interview Information
|
|
142
|
-
@Column({ type: 'date', nullable: true })
|
|
143
|
-
interview_schedule_date: Date | null;
|
|
144
|
-
|
|
145
|
-
@Column({ type: 'time', nullable: true })
|
|
146
|
-
interview_schedule_time: string | null;
|
|
147
|
-
|
|
148
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
149
|
-
interviewer_name: string | null;
|
|
150
|
-
|
|
151
|
-
// Candidate Status
|
|
152
|
-
@Column({ type: 'enum', enum: CandidateStatusType, nullable: true })
|
|
153
|
-
candidate_status: CandidateStatusType | null;
|
|
154
|
-
|
|
155
|
-
@Column({ type: 'date', nullable: true })
|
|
156
|
-
joining_date: Date | null;
|
|
157
|
-
|
|
158
|
-
// Salary Information
|
|
159
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
160
|
-
salary: string | null;
|
|
161
|
-
|
|
162
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
163
|
-
currency: string | null;
|
|
164
|
-
|
|
165
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
166
|
-
expected_salary: string | null;
|
|
167
|
-
|
|
168
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
169
|
-
expected_currency: string | null;
|
|
170
|
-
|
|
171
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
172
|
-
currency_type: string | null;
|
|
173
|
-
|
|
174
|
-
@Column({ type: 'enum', enum: RegisterCandidateStatus, default: RegisterCandidateStatus.PENDING, nullable: false })
|
|
175
|
-
status: RegisterCandidateStatus;
|
|
176
|
-
|
|
177
|
-
@Column({ type: 'varchar', nullable: true })
|
|
178
|
-
workflow_execution_id: string | null;
|
|
179
|
-
|
|
180
|
-
@OneToMany(() => RegisterCandidateExperienceActivity, (experienceActivity) => experienceActivity.request)
|
|
181
|
-
experience_activities: RegisterCandidateExperienceActivity[];
|
|
182
|
-
|
|
183
|
-
}
|
|
1
|
+
import { Column, Entity, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { RegisterCandidateExperienceActivity } from './RegisterCandidateExperienceActivityModel';
|
|
4
|
+
|
|
5
|
+
export enum RegisterCandidateStatus {
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
ASSIGNED = "Assigned",
|
|
8
|
+
IN_PROGRESS = "In Progress",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum CandidateStatusType {
|
|
14
|
+
SELECTED = "Selected",
|
|
15
|
+
REJECTED = "Rejected",
|
|
16
|
+
JOINED = "Joined",
|
|
17
|
+
NOT_JOINED = "Not Joined"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Entity({ name: 'register_candidate_requests' })
|
|
21
|
+
export class RegisterCandidateRequests extends BaseModel {
|
|
22
|
+
|
|
23
|
+
// Common columns from register_vacancy_requests
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
req_user_department_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
req_user_section_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
service_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'int', nullable: true })
|
|
34
|
+
sub_service_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', nullable: false })
|
|
37
|
+
user_id: number;
|
|
38
|
+
|
|
39
|
+
// New columns - Personal Information
|
|
40
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
41
|
+
candidate_gender: string | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
44
|
+
candidate_email: string | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
47
|
+
relationship: string | null;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
50
|
+
place_of_birth: string | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: true })
|
|
53
|
+
date_of_birth: Date | null;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
56
|
+
nationality: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
59
|
+
religion_and_sect: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
62
|
+
sub_religion_and_sect: string | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'text', nullable: true })
|
|
65
|
+
present_residence: string | null;
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
68
|
+
occupation_and_employer: string | null;
|
|
69
|
+
|
|
70
|
+
// Education Information
|
|
71
|
+
@Column({ type: 'text', nullable: true })
|
|
72
|
+
type_of_study_specializations_qualification: string | null;
|
|
73
|
+
|
|
74
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
75
|
+
educational_institute: string | null;
|
|
76
|
+
|
|
77
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
78
|
+
education_country: string | null;
|
|
79
|
+
|
|
80
|
+
@Column({ type: 'date', nullable: true })
|
|
81
|
+
education_period_from: Date | null;
|
|
82
|
+
|
|
83
|
+
@Column({ type: 'date', nullable: true })
|
|
84
|
+
education_period_to: Date | null;
|
|
85
|
+
|
|
86
|
+
// Note: Employment, Activity, and Charge Information fields have been moved to
|
|
87
|
+
// register_candidate_experience_activity table to support multiple experience records
|
|
88
|
+
|
|
89
|
+
// First Address
|
|
90
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
91
|
+
address1_country_state: string | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
94
|
+
address1_street_no: string | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
97
|
+
address1_road_no: string | null;
|
|
98
|
+
|
|
99
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
100
|
+
address1_flat_building_no: string | null;
|
|
101
|
+
|
|
102
|
+
@Column({ type: 'text', nullable: true })
|
|
103
|
+
address1_po_box_telephone_fax: string | null;
|
|
104
|
+
|
|
105
|
+
// Second Address
|
|
106
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
107
|
+
address2_country_state: string | null;
|
|
108
|
+
|
|
109
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
110
|
+
address2_street_no: string | null;
|
|
111
|
+
|
|
112
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
113
|
+
address2_road_no: string | null;
|
|
114
|
+
|
|
115
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
116
|
+
address2_flat_building_no: string | null;
|
|
117
|
+
|
|
118
|
+
@Column({ type: 'text', nullable: true })
|
|
119
|
+
address2_po_box_telephone_fax: string | null;
|
|
120
|
+
|
|
121
|
+
// Reference Information
|
|
122
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
123
|
+
reference_full_name: string | null;
|
|
124
|
+
|
|
125
|
+
@Column({ type: 'text', nullable: true })
|
|
126
|
+
reference_address_and_telephone: string | null;
|
|
127
|
+
|
|
128
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
129
|
+
telephone_number: string | null;
|
|
130
|
+
|
|
131
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
132
|
+
reference_employer: string | null;
|
|
133
|
+
|
|
134
|
+
// Vacancy Information
|
|
135
|
+
@Column({ type: 'int', nullable: true })
|
|
136
|
+
vacancy_id: number | null;
|
|
137
|
+
|
|
138
|
+
@Column({ type: 'text', nullable: true })
|
|
139
|
+
vacancy_description: string | null;
|
|
140
|
+
|
|
141
|
+
// Interview Information
|
|
142
|
+
@Column({ type: 'date', nullable: true })
|
|
143
|
+
interview_schedule_date: Date | null;
|
|
144
|
+
|
|
145
|
+
@Column({ type: 'time', nullable: true })
|
|
146
|
+
interview_schedule_time: string | null;
|
|
147
|
+
|
|
148
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
149
|
+
interviewer_name: string | null;
|
|
150
|
+
|
|
151
|
+
// Candidate Status
|
|
152
|
+
@Column({ type: 'enum', enum: CandidateStatusType, nullable: true })
|
|
153
|
+
candidate_status: CandidateStatusType | null;
|
|
154
|
+
|
|
155
|
+
@Column({ type: 'date', nullable: true })
|
|
156
|
+
joining_date: Date | null;
|
|
157
|
+
|
|
158
|
+
// Salary Information
|
|
159
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
160
|
+
salary: string | null;
|
|
161
|
+
|
|
162
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
163
|
+
currency: string | null;
|
|
164
|
+
|
|
165
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
166
|
+
expected_salary: string | null;
|
|
167
|
+
|
|
168
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
169
|
+
expected_currency: string | null;
|
|
170
|
+
|
|
171
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
172
|
+
currency_type: string | null;
|
|
173
|
+
|
|
174
|
+
@Column({ type: 'enum', enum: RegisterCandidateStatus, default: RegisterCandidateStatus.PENDING, nullable: false })
|
|
175
|
+
status: RegisterCandidateStatus;
|
|
176
|
+
|
|
177
|
+
@Column({ type: 'varchar', nullable: true })
|
|
178
|
+
workflow_execution_id: string | null;
|
|
179
|
+
|
|
180
|
+
@OneToMany(() => RegisterCandidateExperienceActivity, (experienceActivity) => experienceActivity.request)
|
|
181
|
+
experience_activities: RegisterCandidateExperienceActivity[];
|
|
182
|
+
|
|
183
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ResignationTerminationApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'resignation_termination_approvals' })
|
|
12
|
+
export class ResignationTerminationApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', 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: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: ResignationTerminationApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'resignation_termination_attachments' })
|
|
5
|
+
export class ResignationTerminationRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
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: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { ResignationTerminationApprovalStatus } from './ResignationTerminationApprovalModel';
|
|
4
|
+
|
|
5
|
+
export enum ResignationTerminationMessageType {
|
|
6
|
+
TEXT = "text",
|
|
7
|
+
FILE = "file",
|
|
8
|
+
LINK = "link"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'resignation_termination_chats' })
|
|
12
|
+
export class ResignationTerminationRequestChat extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: ResignationTerminationMessageType,
|
|
35
|
+
default: ResignationTerminationMessageType.TEXT,
|
|
36
|
+
nullable: false
|
|
37
|
+
})
|
|
38
|
+
messageType: ResignationTerminationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
|
|
43
|
+
constructor(
|
|
44
|
+
request_id: number,
|
|
45
|
+
user_id: number,
|
|
46
|
+
role_id: number,
|
|
47
|
+
message: string,
|
|
48
|
+
service_id?: number,
|
|
49
|
+
sub_service_id?: number,
|
|
50
|
+
messageType?: ResignationTerminationMessageType,
|
|
51
|
+
status?: string
|
|
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.user_id = user_id;
|
|
58
|
+
this.role_id = role_id;
|
|
59
|
+
this.message = message;
|
|
60
|
+
this.messageType = messageType || ResignationTerminationMessageType.TEXT;
|
|
61
|
+
this.status = status || ResignationTerminationApprovalStatus.PENDING;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ResignationTerminationStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'resignation_termination_requests' })
|
|
13
|
+
export class ResignationTerminationRequests extends BaseModel {
|
|
14
|
+
|
|
15
|
+
// Common columns
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
req_user_department_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
sub_service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
user_id: number;
|
|
30
|
+
|
|
31
|
+
// Resignation/Termination specific fields
|
|
32
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
33
|
+
employee_type: string | null; // FM / M&C
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
36
|
+
employee_name: string | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
39
|
+
reason: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: true })
|
|
42
|
+
description: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'boolean', nullable: true })
|
|
45
|
+
notice_period_need_to_serve: boolean | null; // Yes/No
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'date', nullable: true })
|
|
48
|
+
date_of_issuing_resignation_day: Date | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'date', nullable: true })
|
|
51
|
+
last_working_day: Date | null;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
end_of_service_eligibility_amount: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
57
|
+
amount: number | null;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
60
|
+
applicable_based_on_resignation_type: string | null;
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'date', nullable: true })
|
|
63
|
+
date_of_joining: Date | null;
|
|
64
|
+
|
|
65
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
66
|
+
leave_balance: string | null;
|
|
67
|
+
|
|
68
|
+
@Column({ type: 'date', nullable: true })
|
|
69
|
+
actual_retirement_date: Date | null;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'enum', enum: ResignationTerminationStatus, default: ResignationTerminationStatus.PENDING, nullable: false })
|
|
72
|
+
status: ResignationTerminationStatus;
|
|
73
|
+
|
|
74
|
+
@Column({ type: 'varchar', nullable: true })
|
|
75
|
+
workflow_execution_id: string | null;
|
|
76
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ResignationTerminationWorkFlowStatus {
|
|
5
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'resignation_termination_workflows' })
|
|
11
|
+
export class ResignationTerminationWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: ResignationTerminationWorkFlowStatus, default: ResignationTerminationWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: ResignationTerminationWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
user_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
role_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
section_id: number | null;
|
|
38
|
+
}
|