@platform-modules/foreign-ministry 1.3.277 → 1.3.290
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 +10 -5
- package/dist/data-source.js +8 -4
- package/dist/helpers/employee-evaluation-request.utils.d.ts +30 -0
- package/dist/helpers/employee-evaluation-request.utils.js +139 -0
- package/dist/helpers/evaluation-eligibility.utils.d.ts +10 -0
- package/dist/helpers/evaluation-eligibility.utils.js +39 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +20 -5
- package/dist/models/EmployeeEvaluationAnswerModel.d.ts +5 -6
- package/dist/models/EmployeeEvaluationAnswerModel.js +18 -16
- package/dist/models/EmployeeEvaluationApprovalModel.d.ts +1 -1
- package/dist/models/EmployeeEvaluationApprovalModel.js +2 -2
- package/dist/models/EmployeeEvaluationPersonScoreModel.d.ts +9 -0
- package/dist/models/EmployeeEvaluationPersonScoreModel.js +45 -0
- package/dist/models/EmployeeEvaluationRequestModel.d.ts +6 -1
- package/dist/models/EmployeeEvaluationRequestModel.js +18 -2
- package/dist/models/EvaluationEligibilitySettingModel.d.ts +8 -3
- package/dist/models/EvaluationEligibilitySettingModel.js +11 -3
- package/dist/models/EvaluationFormModel.d.ts +17 -0
- package/dist/models/EvaluationFormModel.js +64 -0
- package/dist/models/EvaluationFormQuestionModel.d.ts +22 -0
- package/dist/models/EvaluationFormQuestionModel.js +78 -0
- package/dist/models/EvaluationFormSectionModel.d.ts +12 -0
- package/dist/models/EvaluationFormSectionModel.js +54 -0
- package/dist/models/EvaluationMastersModel.d.ts +16 -0
- package/dist/models/EvaluationMastersModel.js +67 -0
- package/dist/models/EvaluationWorkflowModel.d.ts +60 -0
- package/dist/models/EvaluationWorkflowModel.js +215 -0
- package/dist/models/IneligibleForEvaluationModel.d.ts +8 -0
- package/dist/models/IneligibleForEvaluationModel.js +44 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/dist/models/UuidAuditModel.d.ts +9 -0
- package/dist/models/UuidAuditModel.js +41 -0
- package/package.json +24 -24
- package/scripts/migration-employee-evaluation-approval-role-null.sql +11 -0
- package/scripts/migration-employee-evaluation-request-v2.sql +63 -0
- package/scripts/migration-evaluation-max-employees-per-request.sql +2 -0
- package/src/data-source.ts +614 -610
- package/src/helpers/employee-evaluation-request.utils.ts +181 -0
- package/src/helpers/evaluation-eligibility.utils.ts +36 -0
- package/src/index.ts +480 -456
- package/src/models/AnnualTravelTicketPriceConfigurationItemModel.ts +36 -36
- package/src/models/AnnualTravelTicketPriceConfigurationModel.ts +35 -35
- package/src/models/AnnualTravelTicketRequestModel.ts +42 -42
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/DocumentationFileModel.ts +40 -40
- package/src/models/EmployeeEvaluationAnswerModel.ts +26 -26
- package/src/models/EmployeeEvaluationApprovalModel.ts +2 -2
- package/src/models/EmployeeEvaluationPersonScoreModel.ts +25 -0
- package/src/models/EmployeeEvaluationRequestModel.ts +90 -77
- package/src/models/EvaluationEligibilitySettingModel.ts +51 -42
- package/src/models/EvaluationFormModel.ts +40 -0
- package/src/models/EvaluationFormQuestionModel.ts +52 -0
- package/src/models/EvaluationFormSectionModel.ts +33 -0
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/ProjectContactsModel.ts +51 -51
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/ProjectTasksModel.ts +75 -75
- package/src/models/ResignationTerminationApprovalModel.ts +9 -9
- package/src/models/ResignationTerminationRequestModel.ts +17 -17
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- 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/EvaluationQuestionMasterModel.ts +0 -23
- package/src/models/EvaluationSectionMasterModel.ts +0 -17
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'project_contacts' })
|
|
5
|
-
export class ProjectContacts extends BaseModel {
|
|
6
|
-
@Column({ type: 'int' })
|
|
7
|
-
project_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'varchar', length: 50 })
|
|
10
|
-
contact_type: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
13
|
-
phone_number: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
-
email_id: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
-
name: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
22
|
-
designation: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
25
|
-
organisation_name: string | null;
|
|
26
|
-
|
|
27
|
-
/** Optional FK to departments.id */
|
|
28
|
-
@Column({ type: 'int', nullable: true })
|
|
29
|
-
department_id: number | null;
|
|
30
|
-
|
|
31
|
-
constructor(
|
|
32
|
-
project_id?: number,
|
|
33
|
-
contact_type?: string,
|
|
34
|
-
phone_number?: string,
|
|
35
|
-
email_id?: string,
|
|
36
|
-
name?: string,
|
|
37
|
-
designation?: string,
|
|
38
|
-
organisation_name?: string | null,
|
|
39
|
-
department_id?: number | null
|
|
40
|
-
) {
|
|
41
|
-
super();
|
|
42
|
-
this.project_id = project_id ?? 0;
|
|
43
|
-
this.contact_type = contact_type ?? '';
|
|
44
|
-
this.phone_number = phone_number ?? '';
|
|
45
|
-
this.email_id = email_id ?? '';
|
|
46
|
-
this.name = name ?? '';
|
|
47
|
-
this.designation = designation ?? '';
|
|
48
|
-
this.organisation_name = organisation_name ?? null;
|
|
49
|
-
this.department_id = department_id ?? null;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_contacts' })
|
|
5
|
+
export class ProjectContacts extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 50 })
|
|
10
|
+
contact_type: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
13
|
+
phone_number: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
+
email_id: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
22
|
+
designation: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
25
|
+
organisation_name: string | null;
|
|
26
|
+
|
|
27
|
+
/** Optional FK to departments.id */
|
|
28
|
+
@Column({ type: 'int', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
constructor(
|
|
32
|
+
project_id?: number,
|
|
33
|
+
contact_type?: string,
|
|
34
|
+
phone_number?: string,
|
|
35
|
+
email_id?: string,
|
|
36
|
+
name?: string,
|
|
37
|
+
designation?: string,
|
|
38
|
+
organisation_name?: string | null,
|
|
39
|
+
department_id?: number | null
|
|
40
|
+
) {
|
|
41
|
+
super();
|
|
42
|
+
this.project_id = project_id ?? 0;
|
|
43
|
+
this.contact_type = contact_type ?? '';
|
|
44
|
+
this.phone_number = phone_number ?? '';
|
|
45
|
+
this.email_id = email_id ?? '';
|
|
46
|
+
this.name = name ?? '';
|
|
47
|
+
this.designation = designation ?? '';
|
|
48
|
+
this.organisation_name = organisation_name ?? null;
|
|
49
|
+
this.department_id = department_id ?? null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'project_faqs' })
|
|
5
|
-
export class ProjectFaqs extends BaseModel {
|
|
6
|
-
@Column({ type: 'boolean', default: false })
|
|
7
|
-
is_popular: boolean;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'text' })
|
|
10
|
-
question: string;
|
|
11
|
-
|
|
12
|
-
/** Null = global / general FAQ not tied to a project */
|
|
13
|
-
@Column({ type: 'int', nullable: true })
|
|
14
|
-
project_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
department_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'text', nullable: true })
|
|
20
|
-
answer: string;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
question?: string,
|
|
24
|
-
project_id?: number | null,
|
|
25
|
-
department_id?: number,
|
|
26
|
-
answer?: string,
|
|
27
|
-
is_popular?: boolean
|
|
28
|
-
) {
|
|
29
|
-
super();
|
|
30
|
-
this.question = question ?? '';
|
|
31
|
-
this.project_id = project_id ?? null;
|
|
32
|
-
this.department_id = department_id ?? 0;
|
|
33
|
-
this.answer = answer ?? '';
|
|
34
|
-
this.is_popular = is_popular ?? false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faqs' })
|
|
5
|
+
export class ProjectFaqs extends BaseModel {
|
|
6
|
+
@Column({ type: 'boolean', default: false })
|
|
7
|
+
is_popular: boolean;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' })
|
|
10
|
+
question: string;
|
|
11
|
+
|
|
12
|
+
/** Null = global / general FAQ not tied to a project */
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
project_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
department_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'text', nullable: true })
|
|
20
|
+
answer: string;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
question?: string,
|
|
24
|
+
project_id?: number | null,
|
|
25
|
+
department_id?: number,
|
|
26
|
+
answer?: string,
|
|
27
|
+
is_popular?: boolean
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.question = question ?? '';
|
|
31
|
+
this.project_id = project_id ?? null;
|
|
32
|
+
this.department_id = department_id ?? 0;
|
|
33
|
+
this.answer = answer ?? '';
|
|
34
|
+
this.is_popular = is_popular ?? false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'project_invoices' })
|
|
5
|
-
export class ProjectInvoices extends BaseModel {
|
|
6
|
-
@Column({ type: 'int' })
|
|
7
|
-
project_id: number;
|
|
8
|
-
|
|
9
|
-
/** Optional link to a project milestone (same project). */
|
|
10
|
-
@Column({ type: 'int', nullable: true })
|
|
11
|
-
milestone_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'text', nullable: true })
|
|
14
|
-
invoice_link: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
17
|
-
filename: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'bigint', nullable: true })
|
|
20
|
-
filesize: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
-
filetype: string;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
project_id?: number,
|
|
27
|
-
milestone_id?: number | null,
|
|
28
|
-
invoice_link?: string,
|
|
29
|
-
filename?: string,
|
|
30
|
-
filesize?: number,
|
|
31
|
-
filetype?: string
|
|
32
|
-
) {
|
|
33
|
-
super();
|
|
34
|
-
this.project_id = project_id ?? 0;
|
|
35
|
-
this.milestone_id = milestone_id ?? null;
|
|
36
|
-
this.invoice_link = invoice_link ?? '';
|
|
37
|
-
this.filename = filename ?? '';
|
|
38
|
-
this.filesize = filesize ?? 0;
|
|
39
|
-
this.filetype = filetype ?? '';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_invoices' })
|
|
5
|
+
export class ProjectInvoices extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
/** Optional link to a project milestone (same project). */
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
milestone_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'text', nullable: true })
|
|
14
|
+
invoice_link: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
17
|
+
filename: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'bigint', nullable: true })
|
|
20
|
+
filesize: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
filetype: string;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
project_id?: number,
|
|
27
|
+
milestone_id?: number | null,
|
|
28
|
+
invoice_link?: string,
|
|
29
|
+
filename?: string,
|
|
30
|
+
filesize?: number,
|
|
31
|
+
filetype?: string
|
|
32
|
+
) {
|
|
33
|
+
super();
|
|
34
|
+
this.project_id = project_id ?? 0;
|
|
35
|
+
this.milestone_id = milestone_id ?? null;
|
|
36
|
+
this.invoice_link = invoice_link ?? '';
|
|
37
|
+
this.filename = filename ?? '';
|
|
38
|
+
this.filesize = filesize ?? 0;
|
|
39
|
+
this.filetype = filetype ?? '';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'projects' })
|
|
5
|
-
export class Projects extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 255 })
|
|
7
|
-
project_name: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'text' , nullable: true})
|
|
10
|
-
project_objective: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'text' , nullable: true})
|
|
13
|
-
project_benefits: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'text' , nullable: true})
|
|
16
|
-
project_risks: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'text' , nullable: true})
|
|
19
|
-
project_challenges: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'text' , nullable: true})
|
|
22
|
-
project_description: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'text' , nullable: true})
|
|
25
|
-
project_status: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'text' , nullable: true})
|
|
28
|
-
roadmap_link: string;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'jsonb' , nullable: true})
|
|
31
|
-
template_ids: number[] | null;
|
|
32
|
-
|
|
33
|
-
@Column({ name: 'start_date', type: 'date', nullable: true })
|
|
34
|
-
startDate: Date | null;
|
|
35
|
-
|
|
36
|
-
@Column({ name: 'end_date', type: 'date', nullable: true })
|
|
37
|
-
endDate: Date | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
40
|
-
project_version: string;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'int', default: 0, nullable: true })
|
|
43
|
-
no_of_phases: number;
|
|
44
|
-
|
|
45
|
-
constructor(
|
|
46
|
-
project_name?: string,
|
|
47
|
-
project_objective?: string,
|
|
48
|
-
project_benefits?: string,
|
|
49
|
-
project_risks?: string,
|
|
50
|
-
project_challenges?: string,
|
|
51
|
-
project_description?: string,
|
|
52
|
-
project_status?: string,
|
|
53
|
-
roadmap_link?: string | null,
|
|
54
|
-
template_ids?: number[] | null,
|
|
55
|
-
startDate?: Date | null,
|
|
56
|
-
endDate?: Date | null,
|
|
57
|
-
project_version?: string,
|
|
58
|
-
no_of_phases?: number
|
|
59
|
-
) {
|
|
60
|
-
super();
|
|
61
|
-
this.project_name = project_name || '';
|
|
62
|
-
this.project_objective = project_objective || '';
|
|
63
|
-
this.project_benefits = project_benefits || '';
|
|
64
|
-
this.project_risks = project_risks || '';
|
|
65
|
-
this.project_challenges = project_challenges || '';
|
|
66
|
-
this.project_description = project_description || '';
|
|
67
|
-
this.project_status = project_status || '';
|
|
68
|
-
this.roadmap_link = roadmap_link || '';
|
|
69
|
-
this.template_ids = template_ids || [];
|
|
70
|
-
this.startDate = startDate ?? null;
|
|
71
|
-
this.endDate = endDate ?? null;
|
|
72
|
-
this.project_version = project_version || '';
|
|
73
|
-
this.no_of_phases = no_of_phases ?? 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'projects' })
|
|
5
|
+
export class Projects extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255 })
|
|
7
|
+
project_name: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' , nullable: true})
|
|
10
|
+
project_objective: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'text' , nullable: true})
|
|
13
|
+
project_benefits: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text' , nullable: true})
|
|
16
|
+
project_risks: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text' , nullable: true})
|
|
19
|
+
project_challenges: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'text' , nullable: true})
|
|
22
|
+
project_description: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text' , nullable: true})
|
|
25
|
+
project_status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text' , nullable: true})
|
|
28
|
+
roadmap_link: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb' , nullable: true})
|
|
31
|
+
template_ids: number[] | null;
|
|
32
|
+
|
|
33
|
+
@Column({ name: 'start_date', type: 'date', nullable: true })
|
|
34
|
+
startDate: Date | null;
|
|
35
|
+
|
|
36
|
+
@Column({ name: 'end_date', type: 'date', nullable: true })
|
|
37
|
+
endDate: Date | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
40
|
+
project_version: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', default: 0, nullable: true })
|
|
43
|
+
no_of_phases: number;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
project_name?: string,
|
|
47
|
+
project_objective?: string,
|
|
48
|
+
project_benefits?: string,
|
|
49
|
+
project_risks?: string,
|
|
50
|
+
project_challenges?: string,
|
|
51
|
+
project_description?: string,
|
|
52
|
+
project_status?: string,
|
|
53
|
+
roadmap_link?: string | null,
|
|
54
|
+
template_ids?: number[] | null,
|
|
55
|
+
startDate?: Date | null,
|
|
56
|
+
endDate?: Date | null,
|
|
57
|
+
project_version?: string,
|
|
58
|
+
no_of_phases?: number
|
|
59
|
+
) {
|
|
60
|
+
super();
|
|
61
|
+
this.project_name = project_name || '';
|
|
62
|
+
this.project_objective = project_objective || '';
|
|
63
|
+
this.project_benefits = project_benefits || '';
|
|
64
|
+
this.project_risks = project_risks || '';
|
|
65
|
+
this.project_challenges = project_challenges || '';
|
|
66
|
+
this.project_description = project_description || '';
|
|
67
|
+
this.project_status = project_status || '';
|
|
68
|
+
this.roadmap_link = roadmap_link || '';
|
|
69
|
+
this.template_ids = template_ids || [];
|
|
70
|
+
this.startDate = startDate ?? null;
|
|
71
|
+
this.endDate = endDate ?? null;
|
|
72
|
+
this.project_version = project_version || '';
|
|
73
|
+
this.no_of_phases = no_of_phases ?? 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export interface TaskAttachmentItem {
|
|
5
|
-
link?: string;
|
|
6
|
-
filename?: string;
|
|
7
|
-
filesize?: number;
|
|
8
|
-
filetype?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const TASK_PRIORITY = ['low', 'medium', 'high'] as const;
|
|
12
|
-
export const TASK_STATUS = ['Not started', 'Pending', 'In Progress', 'Completed'] as const;
|
|
13
|
-
|
|
14
|
-
@Entity({ name: 'project_tasks' })
|
|
15
|
-
export class ProjectTasks extends BaseModel {
|
|
16
|
-
@Column({ type: 'int' })
|
|
17
|
-
project_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 500 })
|
|
20
|
-
task_title: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'text', nullable: true })
|
|
23
|
-
task_description: string;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'jsonb', nullable: true })
|
|
26
|
-
attachments: TaskAttachmentItem[] | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', length: 20, default: 'medium' })
|
|
29
|
-
priority: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', length: 50, default: 'Not started' })
|
|
32
|
-
status: string;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'int', nullable: true })
|
|
35
|
-
milestone_id: number | null;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', default: 1, nullable: true })
|
|
38
|
-
phase: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'int', nullable: true })
|
|
41
|
-
manager_id: number | null;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
start_date: Date | null;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'date', nullable: true })
|
|
47
|
-
end_date: Date | null;
|
|
48
|
-
|
|
49
|
-
constructor(
|
|
50
|
-
project_id?: number,
|
|
51
|
-
task_title?: string,
|
|
52
|
-
task_description?: string,
|
|
53
|
-
attachments?: TaskAttachmentItem[] | null,
|
|
54
|
-
priority?: string,
|
|
55
|
-
status?: string,
|
|
56
|
-
milestone_id?: number | null,
|
|
57
|
-
phase?: number,
|
|
58
|
-
manager_id?: number | null,
|
|
59
|
-
start_date?: Date | null,
|
|
60
|
-
end_date?: Date | null
|
|
61
|
-
) {
|
|
62
|
-
super();
|
|
63
|
-
this.project_id = project_id ?? 0;
|
|
64
|
-
this.task_title = task_title ?? '';
|
|
65
|
-
this.task_description = task_description ?? '';
|
|
66
|
-
this.attachments = attachments ?? null;
|
|
67
|
-
this.priority = priority ?? 'medium';
|
|
68
|
-
this.status = status ?? 'Not started';
|
|
69
|
-
this.milestone_id = milestone_id ?? null;
|
|
70
|
-
this.phase = phase ?? 1;
|
|
71
|
-
this.manager_id = manager_id ?? null;
|
|
72
|
-
this.start_date = start_date ?? null;
|
|
73
|
-
this.end_date = end_date ?? null;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export interface TaskAttachmentItem {
|
|
5
|
+
link?: string;
|
|
6
|
+
filename?: string;
|
|
7
|
+
filesize?: number;
|
|
8
|
+
filetype?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const TASK_PRIORITY = ['low', 'medium', 'high'] as const;
|
|
12
|
+
export const TASK_STATUS = ['Not started', 'Pending', 'In Progress', 'Completed'] as const;
|
|
13
|
+
|
|
14
|
+
@Entity({ name: 'project_tasks' })
|
|
15
|
+
export class ProjectTasks extends BaseModel {
|
|
16
|
+
@Column({ type: 'int' })
|
|
17
|
+
project_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 500 })
|
|
20
|
+
task_title: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'text', nullable: true })
|
|
23
|
+
task_description: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
26
|
+
attachments: TaskAttachmentItem[] | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', length: 20, default: 'medium' })
|
|
29
|
+
priority: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', length: 50, default: 'Not started' })
|
|
32
|
+
status: string;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'int', nullable: true })
|
|
35
|
+
milestone_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', default: 1, nullable: true })
|
|
38
|
+
phase: number;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'int', nullable: true })
|
|
41
|
+
manager_id: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'date', nullable: true })
|
|
44
|
+
start_date: Date | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'date', nullable: true })
|
|
47
|
+
end_date: Date | null;
|
|
48
|
+
|
|
49
|
+
constructor(
|
|
50
|
+
project_id?: number,
|
|
51
|
+
task_title?: string,
|
|
52
|
+
task_description?: string,
|
|
53
|
+
attachments?: TaskAttachmentItem[] | null,
|
|
54
|
+
priority?: string,
|
|
55
|
+
status?: string,
|
|
56
|
+
milestone_id?: number | null,
|
|
57
|
+
phase?: number,
|
|
58
|
+
manager_id?: number | null,
|
|
59
|
+
start_date?: Date | null,
|
|
60
|
+
end_date?: Date | null
|
|
61
|
+
) {
|
|
62
|
+
super();
|
|
63
|
+
this.project_id = project_id ?? 0;
|
|
64
|
+
this.task_title = task_title ?? '';
|
|
65
|
+
this.task_description = task_description ?? '';
|
|
66
|
+
this.attachments = attachments ?? null;
|
|
67
|
+
this.priority = priority ?? 'medium';
|
|
68
|
+
this.status = status ?? 'Not started';
|
|
69
|
+
this.milestone_id = milestone_id ?? null;
|
|
70
|
+
this.phase = phase ?? 1;
|
|
71
|
+
this.manager_id = manager_id ?? null;
|
|
72
|
+
this.start_date = start_date ?? null;
|
|
73
|
+
this.end_date = end_date ?? null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -43,12 +43,12 @@ export class ResignationTerminationApprovalDetails extends BaseModel {
|
|
|
43
43
|
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
44
|
comment: string;
|
|
45
45
|
|
|
46
|
-
@Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
|
|
47
|
-
approval_status: ResignationTerminationApprovalStatus;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'boolean', default: false, nullable: false })
|
|
50
|
-
is_edit: boolean;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
53
|
-
is_allowed: boolean;
|
|
54
|
-
}
|
|
46
|
+
@Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: ResignationTerminationApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: false, nullable: false })
|
|
50
|
+
is_edit: boolean;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
53
|
+
is_allowed: boolean;
|
|
54
|
+
}
|
|
@@ -16,27 +16,27 @@ export class ResignationTerminationRequests extends BaseModel {
|
|
|
16
16
|
@Column({ type: 'int', nullable: true })
|
|
17
17
|
req_user_department_id: number | null;
|
|
18
18
|
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
req_user_section_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'int', nullable: true })
|
|
23
|
-
department_id: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'int', nullable: true })
|
|
26
|
-
service_id: number | null;
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
department_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
service_id: number | null;
|
|
27
27
|
|
|
28
28
|
@Column({ type: 'int', nullable: true })
|
|
29
29
|
sub_service_id: number | null;
|
|
30
30
|
|
|
31
|
-
@Column({ type: 'int', nullable: false })
|
|
32
|
-
user_id: number;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'int', nullable: true })
|
|
35
|
-
employee_id: number | null; // Target employee user ID
|
|
36
|
-
|
|
37
|
-
// Resignation/Termination specific fields
|
|
38
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
39
|
-
employee_type: string | null; // FM / M&C
|
|
31
|
+
@Column({ type: 'int', nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'int', nullable: true })
|
|
35
|
+
employee_id: number | null; // Target employee user ID
|
|
36
|
+
|
|
37
|
+
// Resignation/Termination specific fields
|
|
38
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
39
|
+
employee_type: string | null; // FM / M&C
|
|
40
40
|
|
|
41
41
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
42
42
|
employee_name: string | null;
|