@platform-modules/foreign-ministry 1.3.62 → 1.3.64

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.
@@ -3,5 +3,6 @@ export declare class Departments extends BaseModel {
3
3
  department_name: string;
4
4
  department_code: string;
5
5
  department_description: string;
6
- constructor(department_name: string, department_code: string, department_description: string);
6
+ undersecretary_department_id: number | null;
7
+ constructor(department_name: string, department_code: string, department_description: string, undersecretary_department_id?: number | null);
7
8
  }
@@ -13,11 +13,12 @@ exports.Departments = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  let Departments = class Departments extends BaseModel_1.BaseModel {
16
- constructor(department_name, department_code, department_description) {
16
+ constructor(department_name, department_code, department_description, undersecretary_department_id) {
17
17
  super();
18
18
  this.department_name = department_name;
19
19
  this.department_code = department_code;
20
20
  this.department_description = department_description;
21
+ this.undersecretary_department_id = undersecretary_department_id ?? null;
21
22
  }
22
23
  };
23
24
  exports.Departments = Departments;
@@ -33,7 +34,11 @@ __decorate([
33
34
  (0, typeorm_1.Column)({ nullable: false }),
34
35
  __metadata("design:type", String)
35
36
  ], Departments.prototype, "department_description", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], Departments.prototype, "undersecretary_department_id", void 0);
36
41
  exports.Departments = Departments = __decorate([
37
42
  (0, typeorm_1.Entity)({ name: 'departments' }),
38
- __metadata("design:paramtypes", [String, String, String])
43
+ __metadata("design:paramtypes", [String, String, String, Object])
39
44
  ], Departments);
@@ -24,11 +24,11 @@ let Sections = class Sections extends BaseModel_1.BaseModel {
24
24
  };
25
25
  exports.Sections = Sections;
26
26
  __decorate([
27
- (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
28
28
  __metadata("design:type", String)
29
29
  ], Sections.prototype, "section_name", void 0);
30
30
  __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
32
32
  __metadata("design:type", String)
33
33
  ], Sections.prototype, "section_code", void 0);
34
34
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.62",
3
+ "version": "1.3.64",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -13,14 +13,19 @@ export class Departments extends BaseModel {
13
13
  @Column({ nullable: false })
14
14
  department_description: string;
15
15
 
16
+ @Column({ type: 'bigint', nullable: true })
17
+ undersecretary_department_id: number | null;
18
+
16
19
  constructor(
17
20
  department_name: string,
18
21
  department_code: string,
19
22
  department_description: string,
23
+ undersecretary_department_id?: number | null,
20
24
  ) {
21
25
  super();
22
26
  this.department_name = department_name
23
27
  this.department_code = department_code
24
28
  this.department_description = department_description
29
+ this.undersecretary_department_id = undersecretary_department_id ?? null
25
30
  }
26
31
  }
@@ -4,10 +4,10 @@ import { BaseModel } from './BaseModel';
4
4
  @Entity({ name: 'sections' })
5
5
  export class Sections extends BaseModel {
6
6
 
7
- @Column({ type: 'varchar', length: 64, nullable: false, unique: true })
7
+ @Column({ type: 'varchar', length: 64, nullable: false })
8
8
  section_name: string;
9
9
 
10
- @Column({ type: 'varchar', length: 64, nullable: false, unique: true })
10
+ @Column({ type: 'varchar', length: 64, nullable: false })
11
11
  section_code: string;
12
12
 
13
13
  @Column({ nullable: false })