@platform-modules/foreign-ministry 1.3.230 → 1.3.232
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 +2 -0
- package/dist/index.js +2 -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/package.json +1 -1
- package/src/data-source.ts +510 -510
- package/src/index.ts +381 -379
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/ProjectBookmarksModel.ts +17 -0
- package/src/models/ProjectMilestonePhasesModel.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
|
+
}
|