@platform-modules/foreign-ministry 1.0.57 → 1.0.59

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.
@@ -1,4 +1,6 @@
1
- export declare class ContactInfo {
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ContactInfo extends BaseModel {
3
+ id: number;
2
4
  category: "FM" | "Embassy";
3
5
  name: string;
4
6
  business_email: string;
@@ -14,4 +16,5 @@ export declare class ContactInfo {
14
16
  zip_code: string;
15
17
  country: string;
16
18
  photo_url: string;
19
+ department_Id: number;
17
20
  }
@@ -11,9 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ContactInfo = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- let ContactInfo = class ContactInfo {
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let ContactInfo = class ContactInfo extends BaseModel_1.BaseModel {
15
16
  };
16
17
  exports.ContactInfo = ContactInfo;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ __metadata("design:type", Number)
21
+ ], ContactInfo.prototype, "id", void 0);
17
22
  __decorate([
18
23
  (0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false }),
19
24
  __metadata("design:type", String)
@@ -74,6 +79,10 @@ __decorate([
74
79
  (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
75
80
  __metadata("design:type", String)
76
81
  ], ContactInfo.prototype, "photo_url", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ nullable: true }),
84
+ __metadata("design:type", Number)
85
+ ], ContactInfo.prototype, "department_Id", void 0);
77
86
  exports.ContactInfo = ContactInfo = __decorate([
78
87
  (0, typeorm_1.Entity)({ name: "contact_info" })
79
88
  ], ContactInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,7 +1,10 @@
1
1
  import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
2
3
 
3
4
  @Entity({ name: "contact_info" })
4
- export class ContactInfo {
5
+ export class ContactInfo extends BaseModel {
6
+ @PrimaryGeneratedColumn()
7
+ id: number;
5
8
 
6
9
  // General Information
7
10
  @Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false })
@@ -50,5 +53,8 @@ export class ContactInfo {
50
53
 
51
54
  // Photo
52
55
  @Column({ type: "varchar", length: 500, nullable: true })
53
- photo_url: string;
56
+ photo_url: string;
57
+
58
+ @Column({ nullable: true })
59
+ department_Id: number;
54
60
  }