@platform-modules/foreign-ministry 1.3.201 → 1.3.202
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 +17 -3
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/MediaApprovalModel.d.ts +23 -0
- package/dist/models/MediaApprovalModel.js +88 -0
- package/dist/models/MediaAttachmentModel.d.ts +11 -0
- package/dist/models/MediaAttachmentModel.js +52 -0
- package/dist/models/MediaChatModel.d.ts +19 -0
- package/dist/models/MediaChatModel.js +77 -0
- package/dist/models/MediaRequestModel.d.ts +75 -0
- package/dist/models/MediaRequestModel.js +162 -0
- package/dist/models/MediaWorkflowModel.d.ts +17 -0
- package/dist/models/MediaWorkflowModel.js +62 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +6 -0
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/MediaApprovalModel.ts +59 -0
- package/src/models/MediaAttachmentModel.ts +29 -0
- package/src/models/MediaChatModel.ts +63 -0
- package/src/models/MediaRequestModel.ts +135 -0
- package/src/models/MediaWorkflowModel.ts +38 -0
- 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/TelephoneDirectoryModel.ts +20 -20
- package/dist/models/EmbassyMasterModel.d.ts +0 -16
- package/dist/models/EmbassyMasterModel.js +0 -75
- package/dist/models/UserDependentsModel.d.ts +0 -18
- package/dist/models/UserDependentsModel.js +0 -94
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MediaWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'media_workflows' })
|
|
11
|
+
export class MediaWorkFlow 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: MediaWorkFlowStatus, default: MediaWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: MediaWorkFlowStatus;
|
|
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
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { Poll } from "./PollsModel";
|
|
4
|
-
import { PollVote } from "./PollVotesModel";
|
|
5
|
-
|
|
6
|
-
@Entity({ name: "poll_options" })
|
|
7
|
-
export class PollOption extends BaseModel {
|
|
8
|
-
@Column({ type: "int", nullable: false })
|
|
9
|
-
poll_id: number;
|
|
10
|
-
|
|
11
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
12
|
-
option_text: string;
|
|
13
|
-
|
|
14
|
-
@ManyToOne(() => Poll, (poll) => poll.options, { nullable: false })
|
|
15
|
-
@JoinColumn({ name: "poll_id" })
|
|
16
|
-
poll?: Poll;
|
|
17
|
-
|
|
18
|
-
@OneToMany(() => PollVote, (vote) => vote.option)
|
|
19
|
-
votes?: PollVote[];
|
|
20
|
-
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
this.poll_id = 0;
|
|
24
|
-
this.option_text = "";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { Poll } from "./PollsModel";
|
|
4
|
+
import { PollVote } from "./PollVotesModel";
|
|
5
|
+
|
|
6
|
+
@Entity({ name: "poll_options" })
|
|
7
|
+
export class PollOption extends BaseModel {
|
|
8
|
+
@Column({ type: "int", nullable: false })
|
|
9
|
+
poll_id: number;
|
|
10
|
+
|
|
11
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
12
|
+
option_text: string;
|
|
13
|
+
|
|
14
|
+
@ManyToOne(() => Poll, (poll) => poll.options, { nullable: false })
|
|
15
|
+
@JoinColumn({ name: "poll_id" })
|
|
16
|
+
poll?: Poll;
|
|
17
|
+
|
|
18
|
+
@OneToMany(() => PollVote, (vote) => vote.option)
|
|
19
|
+
votes?: PollVote[];
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
this.poll_id = 0;
|
|
24
|
+
this.option_text = "";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { Poll } from "./PollsModel";
|
|
4
|
-
import { PollOption } from "./PollOptionsModel";
|
|
5
|
-
import { User } from "./user";
|
|
6
|
-
|
|
7
|
-
@Entity({ name: "poll_votes" })
|
|
8
|
-
@Index("uq_poll_option_user", ["poll_id", "option_id", "user_id"], { unique: true })
|
|
9
|
-
export class PollVote extends BaseModel {
|
|
10
|
-
@Column({ type: "int", nullable: false })
|
|
11
|
-
poll_id: number;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "int", nullable: false })
|
|
14
|
-
option_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "int", nullable: false })
|
|
17
|
-
user_id: number;
|
|
18
|
-
|
|
19
|
-
@ManyToOne(() => Poll, (poll) => poll.votes, { nullable: false })
|
|
20
|
-
@JoinColumn({ name: "poll_id" })
|
|
21
|
-
poll?: Poll;
|
|
22
|
-
|
|
23
|
-
@ManyToOne(() => PollOption, (option) => option.votes, { nullable: false })
|
|
24
|
-
@JoinColumn({ name: "option_id" })
|
|
25
|
-
option?: PollOption;
|
|
26
|
-
|
|
27
|
-
@ManyToOne(() => User, { nullable: false })
|
|
28
|
-
@JoinColumn({ name: "user_id" })
|
|
29
|
-
user?: User;
|
|
30
|
-
|
|
31
|
-
constructor() {
|
|
32
|
-
super();
|
|
33
|
-
this.poll_id = 0;
|
|
34
|
-
this.option_id = 0;
|
|
35
|
-
this.user_id = 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { Poll } from "./PollsModel";
|
|
4
|
+
import { PollOption } from "./PollOptionsModel";
|
|
5
|
+
import { User } from "./user";
|
|
6
|
+
|
|
7
|
+
@Entity({ name: "poll_votes" })
|
|
8
|
+
@Index("uq_poll_option_user", ["poll_id", "option_id", "user_id"], { unique: true })
|
|
9
|
+
export class PollVote extends BaseModel {
|
|
10
|
+
@Column({ type: "int", nullable: false })
|
|
11
|
+
poll_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "int", nullable: false })
|
|
14
|
+
option_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "int", nullable: false })
|
|
17
|
+
user_id: number;
|
|
18
|
+
|
|
19
|
+
@ManyToOne(() => Poll, (poll) => poll.votes, { nullable: false })
|
|
20
|
+
@JoinColumn({ name: "poll_id" })
|
|
21
|
+
poll?: Poll;
|
|
22
|
+
|
|
23
|
+
@ManyToOne(() => PollOption, (option) => option.votes, { nullable: false })
|
|
24
|
+
@JoinColumn({ name: "option_id" })
|
|
25
|
+
option?: PollOption;
|
|
26
|
+
|
|
27
|
+
@ManyToOne(() => User, { nullable: false })
|
|
28
|
+
@JoinColumn({ name: "user_id" })
|
|
29
|
+
user?: User;
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
this.poll_id = 0;
|
|
34
|
+
this.option_id = 0;
|
|
35
|
+
this.user_id = 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
package/src/models/PollsModel.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { ConversationsV2 } from "./ConversationsV2Model";
|
|
4
|
-
import { PollOption } from "./PollOptionsModel";
|
|
5
|
-
import { PollVote } from "./PollVotesModel";
|
|
6
|
-
|
|
7
|
-
@Entity({ name: "poll" })
|
|
8
|
-
export class Poll extends BaseModel {
|
|
9
|
-
@Column({ type: "int", nullable: false })
|
|
10
|
-
group_id: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "int", nullable: true })
|
|
13
|
-
meeting_id?: number | null;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "int", nullable: false })
|
|
16
|
-
conversation_id: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
19
|
-
title: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "text", nullable: false })
|
|
22
|
-
question: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "timestamptz", nullable: true })
|
|
25
|
-
expires_at?: Date | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "boolean", default: false })
|
|
28
|
-
allow_multiple: boolean;
|
|
29
|
-
|
|
30
|
-
@ManyToOne(() => ConversationsV2, { nullable: false })
|
|
31
|
-
@JoinColumn({ name: "conversation_id" })
|
|
32
|
-
conversation?: ConversationsV2;
|
|
33
|
-
|
|
34
|
-
@OneToMany(() => PollOption, (option) => option.poll)
|
|
35
|
-
options?: PollOption[];
|
|
36
|
-
|
|
37
|
-
@OneToMany(() => PollVote, (vote) => vote.poll)
|
|
38
|
-
votes?: PollVote[];
|
|
39
|
-
|
|
40
|
-
constructor() {
|
|
41
|
-
super();
|
|
42
|
-
this.group_id = 0;
|
|
43
|
-
this.meeting_id = null;
|
|
44
|
-
this.conversation_id = 0;
|
|
45
|
-
this.title = "";
|
|
46
|
-
this.question = "";
|
|
47
|
-
this.allow_multiple = false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
import { Column, Entity, JoinColumn, ManyToOne, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { ConversationsV2 } from "./ConversationsV2Model";
|
|
4
|
+
import { PollOption } from "./PollOptionsModel";
|
|
5
|
+
import { PollVote } from "./PollVotesModel";
|
|
6
|
+
|
|
7
|
+
@Entity({ name: "poll" })
|
|
8
|
+
export class Poll extends BaseModel {
|
|
9
|
+
@Column({ type: "int", nullable: false })
|
|
10
|
+
group_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "int", nullable: true })
|
|
13
|
+
meeting_id?: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "int", nullable: false })
|
|
16
|
+
conversation_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
19
|
+
title: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "text", nullable: false })
|
|
22
|
+
question: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "timestamptz", nullable: true })
|
|
25
|
+
expires_at?: Date | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "boolean", default: false })
|
|
28
|
+
allow_multiple: boolean;
|
|
29
|
+
|
|
30
|
+
@ManyToOne(() => ConversationsV2, { nullable: false })
|
|
31
|
+
@JoinColumn({ name: "conversation_id" })
|
|
32
|
+
conversation?: ConversationsV2;
|
|
33
|
+
|
|
34
|
+
@OneToMany(() => PollOption, (option) => option.poll)
|
|
35
|
+
options?: PollOption[];
|
|
36
|
+
|
|
37
|
+
@OneToMany(() => PollVote, (vote) => vote.poll)
|
|
38
|
+
votes?: PollVote[];
|
|
39
|
+
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
this.group_id = 0;
|
|
43
|
+
this.meeting_id = null;
|
|
44
|
+
this.conversation_id = 0;
|
|
45
|
+
this.title = "";
|
|
46
|
+
this.question = "";
|
|
47
|
+
this.allow_multiple = false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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
|
+
}
|