@platform-modules/foreign-ministry 1.3.262 → 1.3.265

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.env +10 -5
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +2 -0
  4. package/dist/models/IneligibleForEvaluationModel.d.ts +8 -0
  5. package/dist/models/IneligibleForEvaluationModel.js +44 -0
  6. package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
  7. package/dist/models/MissionTravelClassConfigModel.js +50 -0
  8. package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
  9. package/dist/models/MissionTravelPerdiemModel.js +54 -0
  10. package/package.json +1 -1
  11. package/src/data-source.ts +574 -574
  12. package/src/index.ts +427 -425
  13. package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
  14. package/src/models/DocumentationFileModel.ts +40 -40
  15. package/src/models/FinancialWorkFlowModel.ts +15 -15
  16. package/src/models/GatePassVisitorsModel.ts +7 -7
  17. package/src/models/IneligibleForEvaluationModel.ts +25 -0
  18. package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
  19. package/src/models/LanguageCourseRequestModel.ts +67 -67
  20. package/src/models/LeaveConfigModel.ts +71 -71
  21. package/src/models/MissionTravelApprovalModel.ts +101 -101
  22. package/src/models/MissionTravelAttachmentModel.ts +56 -56
  23. package/src/models/MissionTravelChatModel.ts +52 -52
  24. package/src/models/MissionTravelPersonModel.ts +105 -105
  25. package/src/models/MissionTravelWorkflowModel.ts +54 -54
  26. package/src/models/PollOptionsModel.ts +26 -26
  27. package/src/models/PollVotesModel.ts +37 -37
  28. package/src/models/PollsModel.ts +49 -49
  29. package/src/models/ProjectContactsModel.ts +51 -51
  30. package/src/models/ProjectFaqModel.ts +36 -36
  31. package/src/models/ProjectInvoicesModel.ts +41 -41
  32. package/src/models/ProjectModel.ts +75 -75
  33. package/src/models/ProjectTasksModel.ts +75 -75
  34. package/src/models/ResignationTerminationApprovalModel.ts +9 -9
  35. package/src/models/ResignationTerminationRequestModel.ts +17 -17
  36. package/src/models/SectionModel.ts +35 -35
  37. package/src/models/ServicesNotificationConfigsModel.ts +55 -55
  38. package/src/models/TelephoneDirectoryModel.ts +20 -20
  39. package/dist/models/EmbassyMasterModel.d.ts +0 -16
  40. package/dist/models/EmbassyMasterModel.js +0 -75
  41. package/dist/models/UserDependentsModel.d.ts +0 -18
  42. package/dist/models/UserDependentsModel.js +0 -94
@@ -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;
@@ -1,36 +1,36 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- @Entity({ name: 'sections' })
5
- export class Sections extends BaseModel {
6
-
7
- @Column({ type: 'varchar', length: 64, nullable: false })
8
- section_name: string;
9
-
10
- @Column({ type: 'varchar', length: 64, nullable: false })
11
- section_code: string;
12
-
13
- @Column({ nullable: false })
14
- section_description: string;
15
-
16
- @Column({ type: 'bigint', nullable: true })
17
- department_id: number;
18
-
19
- @Column({ nullable: true , default: false})
20
- is_followup_sec?: boolean;
21
-
22
- constructor(
23
- section_name: string,
24
- section_code: string,
25
- section_description: string,
26
- department_id: number,
27
- is_followup_sec: boolean
28
- ) {
29
- super();
30
- this.section_name = section_name
31
- this.section_code = section_code
32
- this.section_description = section_description
33
- this.department_id = department_id
34
- this.is_followup_sec = is_followup_sec
35
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'sections' })
5
+ export class Sections extends BaseModel {
6
+
7
+ @Column({ type: 'varchar', length: 64, nullable: false })
8
+ section_name: string;
9
+
10
+ @Column({ type: 'varchar', length: 64, nullable: false })
11
+ section_code: string;
12
+
13
+ @Column({ nullable: false })
14
+ section_description: string;
15
+
16
+ @Column({ type: 'bigint', nullable: true })
17
+ department_id: number;
18
+
19
+ @Column({ nullable: true , default: false})
20
+ is_followup_sec?: boolean;
21
+
22
+ constructor(
23
+ section_name: string,
24
+ section_code: string,
25
+ section_description: string,
26
+ department_id: number,
27
+ is_followup_sec: boolean
28
+ ) {
29
+ super();
30
+ this.section_name = section_name
31
+ this.section_code = section_code
32
+ this.section_description = section_description
33
+ this.department_id = department_id
34
+ this.is_followup_sec = is_followup_sec
35
+ }
36
36
  }