@platform-modules/foreign-ministry 1.3.120 → 1.3.122

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.
@@ -15,5 +15,9 @@ export declare class Jobs extends BaseModel {
15
15
  description: string;
16
16
  location: string | null;
17
17
  job_description: string | null;
18
- constructor(title: string, grade: number, description: string, location?: string | null, job_description?: string | null);
18
+ out_of_marks: string | null;
19
+ minimum_marks: string | null;
20
+ job_expiry_date: Date | null;
21
+ experience_required: string | null;
22
+ constructor(title: string, grade: number, description: string, location?: string | null, job_description?: string | null, out_of_marks?: string | null, minimum_marks?: string | null, job_expiry_date?: Date | string | null, experience_required?: string | null);
19
23
  }
@@ -23,13 +23,19 @@ exports.Jobs = void 0;
23
23
  const typeorm_1 = require("typeorm");
24
24
  const BaseModel_1 = require("./BaseModel");
25
25
  let Jobs = class Jobs extends BaseModel_1.BaseModel {
26
- constructor(title, grade, description, location, job_description) {
26
+ constructor(title, grade, description, location, job_description, out_of_marks, minimum_marks, job_expiry_date, experience_required) {
27
27
  super();
28
28
  this.title = title;
29
29
  this.grade = grade;
30
30
  this.description = description;
31
31
  this.location = location || null;
32
32
  this.job_description = job_description || null;
33
+ this.out_of_marks = out_of_marks ?? null;
34
+ this.minimum_marks = minimum_marks ?? null;
35
+ this.job_expiry_date = job_expiry_date
36
+ ? (typeof job_expiry_date === 'string' ? new Date(job_expiry_date) : job_expiry_date)
37
+ : null;
38
+ this.experience_required = experience_required ?? null;
33
39
  }
34
40
  };
35
41
  exports.Jobs = Jobs;
@@ -53,7 +59,23 @@ __decorate([
53
59
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
54
60
  __metadata("design:type", Object)
55
61
  ], Jobs.prototype, "job_description", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], Jobs.prototype, "out_of_marks", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], Jobs.prototype, "minimum_marks", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], Jobs.prototype, "job_expiry_date", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], Jobs.prototype, "experience_required", void 0);
56
78
  exports.Jobs = Jobs = __decorate([
57
79
  (0, typeorm_1.Entity)({ name: 'jobs' }),
58
- __metadata("design:paramtypes", [String, Number, String, Object, Object])
80
+ __metadata("design:paramtypes", [String, Number, String, Object, Object, Object, Object, Object, Object])
59
81
  ], Jobs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.120",
3
+ "version": "1.3.122",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -29,12 +29,28 @@ export class Jobs extends BaseModel {
29
29
  @Column({ type: 'text', nullable: true })
30
30
  job_description: string | null;
31
31
 
32
+ @Column({ type: 'varchar', length: 50, nullable: true })
33
+ out_of_marks: string | null;
34
+
35
+ @Column({ type: 'varchar', length: 50, nullable: true })
36
+ minimum_marks: string | null;
37
+
38
+ @Column({ type: 'date', nullable: true })
39
+ job_expiry_date: Date | null;
40
+
41
+ @Column({ type: 'varchar', length: 100, nullable: true })
42
+ experience_required: string | null;
43
+
32
44
  constructor(
33
45
  title: string,
34
46
  grade: number,
35
47
  description: string,
36
48
  location?: string | null,
37
- job_description?: string | null
49
+ job_description?: string | null,
50
+ out_of_marks?: string | null,
51
+ minimum_marks?: string | null,
52
+ job_expiry_date?: Date | string | null,
53
+ experience_required?: string | null
38
54
  ) {
39
55
  super();
40
56
  this.title = title;
@@ -42,6 +58,12 @@ export class Jobs extends BaseModel {
42
58
  this.description = description;
43
59
  this.location = location || null;
44
60
  this.job_description = job_description || null;
61
+ this.out_of_marks = out_of_marks ?? null;
62
+ this.minimum_marks = minimum_marks ?? null;
63
+ this.job_expiry_date = job_expiry_date
64
+ ? (typeof job_expiry_date === 'string' ? new Date(job_expiry_date) : job_expiry_date)
65
+ : null;
66
+ this.experience_required = experience_required ?? null;
45
67
  }
46
68
  }
47
69