@platform-modules/foreign-ministry 1.3.238 → 1.3.240
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/models/ProjectInvoicesModel.d.ts +3 -1
- package/dist/models/ProjectInvoicesModel.js +7 -2
- package/dist/models/ResignationTerminationApprovalModel.d.ts +1 -0
- package/dist/models/ResignationTerminationApprovalModel.js +4 -0
- package/package.json +1 -1
- package/src/models/ProjectInvoicesModel.ts +6 -0
- package/src/models/ProjectMilestonePhasesModel.ts +50 -50
- package/src/models/ResignationTerminationApprovalModel.ts +3 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class ProjectInvoices extends BaseModel {
|
|
3
3
|
project_id: number;
|
|
4
|
+
/** Optional link to a project milestone (same project). */
|
|
5
|
+
milestone_id: number | null;
|
|
4
6
|
invoice_link: string;
|
|
5
7
|
filename: string;
|
|
6
8
|
filesize: number;
|
|
7
9
|
filetype: string;
|
|
8
|
-
constructor(project_id?: number, invoice_link?: string, filename?: string, filesize?: number, filetype?: string);
|
|
10
|
+
constructor(project_id?: number, milestone_id?: number | null, invoice_link?: string, filename?: string, filesize?: number, filetype?: string);
|
|
9
11
|
}
|
|
@@ -13,9 +13,10 @@ exports.ProjectInvoices = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let ProjectInvoices = class ProjectInvoices extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(project_id, invoice_link, filename, filesize, filetype) {
|
|
16
|
+
constructor(project_id, milestone_id, invoice_link, filename, filesize, filetype) {
|
|
17
17
|
super();
|
|
18
18
|
this.project_id = project_id ?? 0;
|
|
19
|
+
this.milestone_id = milestone_id ?? null;
|
|
19
20
|
this.invoice_link = invoice_link ?? '';
|
|
20
21
|
this.filename = filename ?? '';
|
|
21
22
|
this.filesize = filesize ?? 0;
|
|
@@ -27,6 +28,10 @@ __decorate([
|
|
|
27
28
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
29
|
__metadata("design:type", Number)
|
|
29
30
|
], ProjectInvoices.prototype, "project_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], ProjectInvoices.prototype, "milestone_id", void 0);
|
|
30
35
|
__decorate([
|
|
31
36
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
32
37
|
__metadata("design:type", String)
|
|
@@ -45,5 +50,5 @@ __decorate([
|
|
|
45
50
|
], ProjectInvoices.prototype, "filetype", void 0);
|
|
46
51
|
exports.ProjectInvoices = ProjectInvoices = __decorate([
|
|
47
52
|
(0, typeorm_1.Entity)({ name: 'project_invoices' }),
|
|
48
|
-
__metadata("design:paramtypes", [Number, String, String, Number, String])
|
|
53
|
+
__metadata("design:paramtypes", [Number, Object, String, String, Number, String])
|
|
49
54
|
], ProjectInvoices);
|
|
@@ -70,6 +70,10 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], ResignationTerminationApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], ResignationTerminationApprovalDetails.prototype, "is_edit", void 0);
|
|
73
77
|
__decorate([
|
|
74
78
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
79
|
__metadata("design:type", Boolean)
|
package/package.json
CHANGED
|
@@ -6,6 +6,10 @@ export class ProjectInvoices extends BaseModel {
|
|
|
6
6
|
@Column({ type: 'int' })
|
|
7
7
|
project_id: number;
|
|
8
8
|
|
|
9
|
+
/** Optional link to a project milestone (same project). */
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
milestone_id: number | null;
|
|
12
|
+
|
|
9
13
|
@Column({ type: 'text', nullable: true })
|
|
10
14
|
invoice_link: string;
|
|
11
15
|
|
|
@@ -20,6 +24,7 @@ export class ProjectInvoices extends BaseModel {
|
|
|
20
24
|
|
|
21
25
|
constructor(
|
|
22
26
|
project_id?: number,
|
|
27
|
+
milestone_id?: number | null,
|
|
23
28
|
invoice_link?: string,
|
|
24
29
|
filename?: string,
|
|
25
30
|
filesize?: number,
|
|
@@ -27,6 +32,7 @@ export class ProjectInvoices extends BaseModel {
|
|
|
27
32
|
) {
|
|
28
33
|
super();
|
|
29
34
|
this.project_id = project_id ?? 0;
|
|
35
|
+
this.milestone_id = milestone_id ?? null;
|
|
30
36
|
this.invoice_link = invoice_link ?? '';
|
|
31
37
|
this.filename = filename ?? '';
|
|
32
38
|
this.filesize = filesize ?? 0;
|
|
@@ -1,50 +1,50 @@
|
|
|
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
|
-
@Column({ type: 'date', nullable: true })
|
|
25
|
-
start_date: Date | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'date', nullable: true })
|
|
28
|
-
end_date: Date | null;
|
|
29
|
-
|
|
30
|
-
constructor(
|
|
31
|
-
project_id?: number,
|
|
32
|
-
milestone_id?: number,
|
|
33
|
-
phase_name?: string,
|
|
34
|
-
display_order?: number,
|
|
35
|
-
checklists?: string[] | null,
|
|
36
|
-
criteria?: string[] | null,
|
|
37
|
-
start_date?: Date | null,
|
|
38
|
-
end_date?: Date | null
|
|
39
|
-
) {
|
|
40
|
-
super();
|
|
41
|
-
this.project_id = project_id ?? 0;
|
|
42
|
-
this.milestone_id = milestone_id ?? 0;
|
|
43
|
-
this.phase_name = phase_name ?? '';
|
|
44
|
-
this.display_order = display_order ?? 1;
|
|
45
|
-
this.checklists = checklists ?? null;
|
|
46
|
-
this.criteria = criteria ?? null;
|
|
47
|
-
this.start_date = start_date ?? null;
|
|
48
|
-
this.end_date = end_date ?? null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
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
|
+
@Column({ type: 'date', nullable: true })
|
|
25
|
+
start_date: Date | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'date', nullable: true })
|
|
28
|
+
end_date: Date | null;
|
|
29
|
+
|
|
30
|
+
constructor(
|
|
31
|
+
project_id?: number,
|
|
32
|
+
milestone_id?: number,
|
|
33
|
+
phase_name?: string,
|
|
34
|
+
display_order?: number,
|
|
35
|
+
checklists?: string[] | null,
|
|
36
|
+
criteria?: string[] | null,
|
|
37
|
+
start_date?: Date | null,
|
|
38
|
+
end_date?: Date | null
|
|
39
|
+
) {
|
|
40
|
+
super();
|
|
41
|
+
this.project_id = project_id ?? 0;
|
|
42
|
+
this.milestone_id = milestone_id ?? 0;
|
|
43
|
+
this.phase_name = phase_name ?? '';
|
|
44
|
+
this.display_order = display_order ?? 1;
|
|
45
|
+
this.checklists = checklists ?? null;
|
|
46
|
+
this.criteria = criteria ?? null;
|
|
47
|
+
this.start_date = start_date ?? null;
|
|
48
|
+
this.end_date = end_date ?? null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -46,6 +46,9 @@ export class ResignationTerminationApprovalDetails extends BaseModel {
|
|
|
46
46
|
@Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
|
|
47
47
|
approval_status: ResignationTerminationApprovalStatus;
|
|
48
48
|
|
|
49
|
+
@Column({ type: 'boolean', default: false, nullable: false })
|
|
50
|
+
is_edit: boolean;
|
|
51
|
+
|
|
49
52
|
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
53
|
is_allowed: boolean;
|
|
51
54
|
}
|