@platform-modules/civil-aviation-authority 2.0.3 → 2.0.4

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 CAAServices extends BaseModel {
3
3
  code: string;
4
4
  name: string;
5
5
  description: string;
6
- constructor(name: string, description: string, code?: string);
6
+ logo_url: string;
7
+ constructor(name: string, description: string, code?: string, logo_url?: string);
7
8
  }
@@ -13,11 +13,12 @@ exports.CAAServices = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  let CAAServices = class CAAServices extends BaseModel_1.BaseModel {
16
- constructor(name, description, code) {
16
+ constructor(name, description, code, logo_url) {
17
17
  super();
18
18
  this.name = name;
19
19
  this.description = description;
20
20
  this.code = code || '';
21
+ this.logo_url = logo_url || '';
21
22
  }
22
23
  };
23
24
  exports.CAAServices = CAAServices;
@@ -33,7 +34,11 @@ __decorate([
33
34
  (0, typeorm_1.Column)({ nullable: false }),
34
35
  __metadata("design:type", String)
35
36
  ], CAAServices.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CAAServices.prototype, "logo_url", void 0);
36
41
  exports.CAAServices = CAAServices = __decorate([
37
42
  (0, typeorm_1.Entity)({ name: 'caa_services' }),
38
- __metadata("design:paramtypes", [String, String, String])
43
+ __metadata("design:paramtypes", [String, String, String, String])
39
44
  ], CAAServices);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -14,15 +14,20 @@ export class CAAServices extends BaseModel {
14
14
  @Column({ nullable: false })
15
15
  description: string;
16
16
 
17
+ @Column({ nullable: true })
18
+ logo_url: string;
19
+
17
20
 
18
21
  constructor(
19
22
  name: string,
20
23
  description: string,
21
- code?: string
24
+ code?: string,
25
+ logo_url?: string
22
26
  ) {
23
27
  super();
24
28
  this.name = name;
25
29
  this.description = description;
26
30
  this.code = code || '';
31
+ this.logo_url = logo_url || '';
27
32
  }
28
33
  }