@platform-modules/foreign-ministry 1.3.230 → 1.3.235
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/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/models/ProjectBookmarksModel.d.ts +6 -0
- package/dist/models/ProjectBookmarksModel.js +34 -0
- package/dist/models/ProjectMilestonePhasesModel.d.ts +10 -0
- package/dist/models/ProjectMilestonePhasesModel.js +54 -0
- package/dist/models/ProjectTimelineModel.d.ts +10 -0
- package/dist/models/ProjectTimelineModel.js +54 -0
- package/package.json +1 -1
- package/src/data-source.ts +510 -510
- package/src/index.ts +382 -379
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/ProjectBookmarksModel.ts +17 -0
- package/src/models/ProjectMilestonePhasesModel.ts +40 -0
- package/src/models/ProjectTimelineModel.ts +40 -0
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
6
|
-
*/
|
|
7
|
-
@Entity({ name: 'lms_external_entity_trained_people' })
|
|
8
|
-
export class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'int', nullable: false })
|
|
11
|
-
request_id: number;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'int', nullable: true })
|
|
14
|
-
service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
sub_service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
-
full_name: string | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
23
|
-
employee_id: string | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'int', nullable: true })
|
|
26
|
-
age: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
-
university: string | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'text', nullable: true })
|
|
32
|
-
qualification: string | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'text', nullable: true })
|
|
35
|
-
learning_curriculum: string | null;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
-
training_period: string | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'boolean', default: false })
|
|
41
|
-
is_selected: boolean;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'int', default: 0 })
|
|
44
|
-
display_order: number;
|
|
45
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
6
|
+
*/
|
|
7
|
+
@Entity({ name: 'lms_external_entity_trained_people' })
|
|
8
|
+
export class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
request_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
sub_service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
full_name: string | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
23
|
+
employee_id: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
age: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
+
university: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'text', nullable: true })
|
|
32
|
+
qualification: string | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'text', nullable: true })
|
|
35
|
+
learning_curriculum: string | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
+
training_period: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'boolean', default: false })
|
|
41
|
+
is_selected: boolean;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', default: 0 })
|
|
44
|
+
display_order: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_bookmarks' })
|
|
5
|
+
export class ProjectBookmarks extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
user_id: number;
|
|
11
|
+
|
|
12
|
+
constructor(project_id?: number, user_id?: number) {
|
|
13
|
+
super();
|
|
14
|
+
this.project_id = project_id ?? 0;
|
|
15
|
+
this.user_id = user_id ?? 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_milestone_phases' })
|
|
5
|
+
export class ProjectMilestonePhases extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
milestone_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 255 })
|
|
13
|
+
phase_name: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', default: 1 })
|
|
16
|
+
display_order: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
19
|
+
checklists: string[] | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
22
|
+
criteria: string[] | null;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
project_id?: number,
|
|
26
|
+
milestone_id?: number,
|
|
27
|
+
phase_name?: string,
|
|
28
|
+
display_order?: number,
|
|
29
|
+
checklists?: string[] | null,
|
|
30
|
+
criteria?: string[] | null
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.project_id = project_id ?? 0;
|
|
34
|
+
this.milestone_id = milestone_id ?? 0;
|
|
35
|
+
this.phase_name = phase_name ?? '';
|
|
36
|
+
this.display_order = display_order ?? 1;
|
|
37
|
+
this.checklists = checklists ?? null;
|
|
38
|
+
this.criteria = criteria ?? null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_timelines' })
|
|
5
|
+
export class ProjectTimelines extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255 })
|
|
10
|
+
timeline_name: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 50, default: 'Not Started' })
|
|
13
|
+
status: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'date', nullable: true })
|
|
16
|
+
startdate: Date | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'date', nullable: true })
|
|
19
|
+
enddate: Date | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
22
|
+
checklist: string[] | null;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
project_id?: number,
|
|
26
|
+
timeline_name?: string,
|
|
27
|
+
status?: string,
|
|
28
|
+
startdate?: Date | null,
|
|
29
|
+
enddate?: Date | null,
|
|
30
|
+
checklist?: string[] | null
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.project_id = project_id ?? 0;
|
|
34
|
+
this.timeline_name = timeline_name ?? '';
|
|
35
|
+
this.status = status ?? 'Not Started';
|
|
36
|
+
this.startdate = startdate ?? null;
|
|
37
|
+
this.enddate = enddate ?? null;
|
|
38
|
+
this.checklist = checklist ?? null;
|
|
39
|
+
}
|
|
40
|
+
}
|