@platform-modules/foreign-ministry 1.3.229 → 1.3.230

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.
@@ -9,7 +9,9 @@ export declare class Projects extends BaseModel {
9
9
  project_status: string;
10
10
  roadmap_link: string;
11
11
  template_ids: number[] | null;
12
+ startDate: Date | null;
13
+ endDate: Date | null;
12
14
  project_version: string;
13
15
  no_of_phases: number;
14
- constructor(project_name?: string, project_objective?: string, project_benefits?: string, project_risks?: string, project_challenges?: string, project_description?: string, project_status?: string, roadmap_link?: string | null, template_ids?: number[] | null, project_version?: string, no_of_phases?: number);
16
+ constructor(project_name?: string, project_objective?: string, project_benefits?: string, project_risks?: string, project_challenges?: string, project_description?: string, project_status?: string, roadmap_link?: string | null, template_ids?: number[] | null, startDate?: Date | null, endDate?: Date | null, project_version?: string, no_of_phases?: number);
15
17
  }
@@ -13,7 +13,7 @@ exports.Projects = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  let Projects = class Projects extends BaseModel_1.BaseModel {
16
- constructor(project_name, project_objective, project_benefits, project_risks, project_challenges, project_description, project_status, roadmap_link, template_ids, project_version, no_of_phases) {
16
+ constructor(project_name, project_objective, project_benefits, project_risks, project_challenges, project_description, project_status, roadmap_link, template_ids, startDate, endDate, project_version, no_of_phases) {
17
17
  super();
18
18
  this.project_name = project_name || '';
19
19
  this.project_objective = project_objective || '';
@@ -24,6 +24,8 @@ let Projects = class Projects extends BaseModel_1.BaseModel {
24
24
  this.project_status = project_status || '';
25
25
  this.roadmap_link = roadmap_link || '';
26
26
  this.template_ids = template_ids || [];
27
+ this.startDate = startDate ?? null;
28
+ this.endDate = endDate ?? null;
27
29
  this.project_version = project_version || '';
28
30
  this.no_of_phases = no_of_phases ?? 0;
29
31
  }
@@ -65,6 +67,14 @@ __decorate([
65
67
  (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
66
68
  __metadata("design:type", Object)
67
69
  ], Projects.prototype, "template_ids", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ name: 'start_date', type: 'date', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], Projects.prototype, "startDate", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ name: 'end_date', type: 'date', nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], Projects.prototype, "endDate", void 0);
68
78
  __decorate([
69
79
  (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
70
80
  __metadata("design:type", String)
@@ -75,5 +85,5 @@ __decorate([
75
85
  ], Projects.prototype, "no_of_phases", void 0);
76
86
  exports.Projects = Projects = __decorate([
77
87
  (0, typeorm_1.Entity)({ name: 'projects' }),
78
- __metadata("design:paramtypes", [String, String, String, String, String, String, String, Object, Object, String, Number])
88
+ __metadata("design:paramtypes", [String, String, String, String, String, String, String, Object, Object, Object, Object, String, Number])
79
89
  ], Projects);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.229",
3
+ "version": "1.3.230",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -30,6 +30,12 @@ export class Projects extends BaseModel {
30
30
  @Column({ type: 'jsonb' , nullable: true})
31
31
  template_ids: number[] | null;
32
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
+
33
39
  @Column({ type: 'varchar', length: 100, nullable: true})
34
40
  project_version: string;
35
41
 
@@ -46,6 +52,8 @@ export class Projects extends BaseModel {
46
52
  project_status?: string,
47
53
  roadmap_link?: string | null,
48
54
  template_ids?: number[] | null,
55
+ startDate?: Date | null,
56
+ endDate?: Date | null,
49
57
  project_version?: string,
50
58
  no_of_phases?: number
51
59
  ) {
@@ -59,6 +67,8 @@ export class Projects extends BaseModel {
59
67
  this.project_status = project_status || '';
60
68
  this.roadmap_link = roadmap_link || '';
61
69
  this.template_ids = template_ids || [];
70
+ this.startDate = startDate ?? null;
71
+ this.endDate = endDate ?? null;
62
72
  this.project_version = project_version || '';
63
73
  this.no_of_phases = no_of_phases ?? 0;
64
74
  }