@platform-modules/civil-aviation-authority 1.0.15 → 1.0.16

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.
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class CAAServices extends BaseModel {
3
+ name: string;
4
+ description: string;
5
+ logo_url: string;
6
+ constructor(name: string, description: string, logo_url: string);
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CAAServices = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let CAAServices = class CAAServices extends BaseModel_1.BaseModel {
16
+ constructor(name, description, logo_url) {
17
+ super();
18
+ this.name = name;
19
+ this.description = description;
20
+ this.logo_url = logo_url;
21
+ }
22
+ };
23
+ exports.CAAServices = CAAServices;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ nullable: false }),
26
+ __metadata("design:type", String)
27
+ ], CAAServices.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ nullable: false }),
30
+ __metadata("design:type", String)
31
+ ], CAAServices.prototype, "description", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ nullable: false }),
34
+ __metadata("design:type", String)
35
+ ], CAAServices.prototype, "logo_url", void 0);
36
+ exports.CAAServices = CAAServices = __decorate([
37
+ (0, typeorm_1.Entity)({ name: 'caa_services' }),
38
+ __metadata("design:paramtypes", [String, String, String])
39
+ ], CAAServices);
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class CAASubServices extends BaseModel {
3
+ sub_service_name: string;
4
+ description: string;
5
+ service_id: number;
6
+ logo_url: string;
7
+ constructor(sub_service_name: string, description: string, service_id: number, logo_url: string);
8
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CAASubServices = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let CAASubServices = class CAASubServices extends BaseModel_1.BaseModel {
16
+ constructor(sub_service_name, description, service_id, logo_url) {
17
+ super();
18
+ this.sub_service_name = sub_service_name;
19
+ this.description = description;
20
+ this.service_id = service_id;
21
+ this.logo_url = logo_url;
22
+ }
23
+ };
24
+ exports.CAASubServices = CAASubServices;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ nullable: false }),
27
+ __metadata("design:type", String)
28
+ ], CAASubServices.prototype, "sub_service_name", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ nullable: false }),
31
+ __metadata("design:type", String)
32
+ ], CAASubServices.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], CAASubServices.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], CAASubServices.prototype, "logo_url", void 0);
41
+ exports.CAASubServices = CAASubServices = __decorate([
42
+ (0, typeorm_1.Entity)({ name: 'caa_services' }),
43
+ __metadata("design:paramtypes", [String, String, Number, String])
44
+ ], CAASubServices);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,27 @@
1
+
2
+ import { Column, Entity } from "typeorm";
3
+ import { BaseModel } from './BaseModel';
4
+
5
+ @Entity({ name: 'caa_services' })
6
+ export class CAAServices extends BaseModel {
7
+
8
+ @Column({ nullable: false })
9
+ name: string;
10
+
11
+ @Column({ nullable: false })
12
+ description: string;
13
+
14
+ @Column({ nullable: false })
15
+ logo_url: string;
16
+
17
+ constructor(
18
+ name: string,
19
+ description: string,
20
+ logo_url: string
21
+ ) {
22
+ super();
23
+ this.name = name
24
+ this.description = description
25
+ this.logo_url = logo_url
26
+ }
27
+ }
@@ -0,0 +1,32 @@
1
+
2
+ import { Column, Entity } from "typeorm";
3
+ import { BaseModel } from './BaseModel';
4
+
5
+ @Entity({ name: 'caa_services' })
6
+ export class CAASubServices extends BaseModel {
7
+
8
+ @Column({ nullable: false })
9
+ sub_service_name: string;
10
+
11
+ @Column({ nullable: false })
12
+ description: string;
13
+
14
+ @Column({ nullable: true })
15
+ service_id: number;
16
+
17
+ @Column({ nullable: true })
18
+ logo_url: string;
19
+
20
+ constructor(
21
+ sub_service_name: string,
22
+ description: string,
23
+ service_id: number,
24
+ logo_url: string
25
+ ) {
26
+ super();
27
+ this.sub_service_name = sub_service_name
28
+ this.description = description
29
+ this.service_id = service_id
30
+ this.logo_url = logo_url
31
+ }
32
+ }