@platform-modules/civil-aviation-authority 1.0.19 → 1.0.21
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,7 +1,8 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class CAAServices extends BaseModel {
|
|
3
|
+
code: string;
|
|
3
4
|
name: string;
|
|
4
5
|
description: string;
|
|
5
6
|
logo_url: string;
|
|
6
|
-
constructor(name: string, description: string, logo_url: string);
|
|
7
|
+
constructor(name: string, description: string, logo_url: string, code?: string);
|
|
7
8
|
}
|
|
@@ -13,14 +13,19 @@ 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, logo_url) {
|
|
16
|
+
constructor(name, description, logo_url, code) {
|
|
17
17
|
super();
|
|
18
18
|
this.name = name;
|
|
19
19
|
this.description = description;
|
|
20
20
|
this.logo_url = logo_url;
|
|
21
|
+
this.code = code || '';
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
24
|
exports.CAAServices = CAAServices;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CAAServices.prototype, "code", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
26
31
|
__metadata("design:type", String)
|
|
@@ -35,5 +40,5 @@ __decorate([
|
|
|
35
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);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class CAASubServices extends BaseModel {
|
|
3
|
+
code: string | null;
|
|
3
4
|
sub_service_name: string;
|
|
4
5
|
description: string;
|
|
5
6
|
service_id: number;
|
|
6
7
|
logo_url: string;
|
|
7
|
-
constructor(sub_service_name: string, description: string, service_id: number, logo_url: string);
|
|
8
|
+
constructor(sub_service_name: string, description: string, service_id: number, logo_url: string, code?: string | null);
|
|
8
9
|
}
|
|
@@ -13,15 +13,20 @@ exports.CAASubServices = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let CAASubServices = class CAASubServices extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(sub_service_name, description, service_id, logo_url) {
|
|
16
|
+
constructor(sub_service_name, description, service_id, logo_url, code = null) {
|
|
17
17
|
super();
|
|
18
18
|
this.sub_service_name = sub_service_name;
|
|
19
19
|
this.description = description;
|
|
20
20
|
this.service_id = service_id;
|
|
21
21
|
this.logo_url = logo_url;
|
|
22
|
+
this.code = code;
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
exports.CAASubServices = CAASubServices;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true, unique: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], CAASubServices.prototype, "code", void 0);
|
|
25
30
|
__decorate([
|
|
26
31
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
27
32
|
__metadata("design:type", String)
|
|
@@ -40,5 +45,5 @@ __decorate([
|
|
|
40
45
|
], CAASubServices.prototype, "logo_url", void 0);
|
|
41
46
|
exports.CAASubServices = CAASubServices = __decorate([
|
|
42
47
|
(0, typeorm_1.Entity)({ name: 'caa_sub_services' }),
|
|
43
|
-
__metadata("design:paramtypes", [String, String, Number, String])
|
|
48
|
+
__metadata("design:paramtypes", [String, String, Number, String, Object])
|
|
44
49
|
], CAASubServices);
|
package/package.json
CHANGED
|
@@ -5,6 +5,9 @@ import { BaseModel } from './BaseModel';
|
|
|
5
5
|
@Entity({ name: 'caa_services' })
|
|
6
6
|
export class CAAServices extends BaseModel {
|
|
7
7
|
|
|
8
|
+
@Column({ type: 'varchar', length: 64, nullable: false, unique: true })
|
|
9
|
+
code: string;
|
|
10
|
+
|
|
8
11
|
@Column({ nullable: false })
|
|
9
12
|
name: string;
|
|
10
13
|
|
|
@@ -17,11 +20,13 @@ export class CAAServices extends BaseModel {
|
|
|
17
20
|
constructor(
|
|
18
21
|
name: string,
|
|
19
22
|
description: string,
|
|
20
|
-
logo_url: string
|
|
23
|
+
logo_url: string,
|
|
24
|
+
code?: string
|
|
21
25
|
) {
|
|
22
26
|
super();
|
|
23
27
|
this.name = name
|
|
24
28
|
this.description = description
|
|
25
29
|
this.logo_url = logo_url
|
|
30
|
+
this.code = code || ''
|
|
26
31
|
}
|
|
27
32
|
}
|
|
@@ -5,6 +5,9 @@ import { BaseModel } from './BaseModel';
|
|
|
5
5
|
@Entity({ name: 'caa_sub_services' })
|
|
6
6
|
export class CAASubServices extends BaseModel {
|
|
7
7
|
|
|
8
|
+
@Column({ type: 'varchar', length: 64, nullable: true, unique: true })
|
|
9
|
+
code: string | null;
|
|
10
|
+
|
|
8
11
|
@Column({ nullable: false })
|
|
9
12
|
sub_service_name: string;
|
|
10
13
|
|
|
@@ -21,12 +24,14 @@ export class CAASubServices extends BaseModel {
|
|
|
21
24
|
sub_service_name: string,
|
|
22
25
|
description: string,
|
|
23
26
|
service_id: number,
|
|
24
|
-
logo_url: string
|
|
27
|
+
logo_url: string,
|
|
28
|
+
code: string | null = null
|
|
25
29
|
) {
|
|
26
30
|
super();
|
|
27
31
|
this.sub_service_name = sub_service_name
|
|
28
32
|
this.description = description
|
|
29
33
|
this.service_id = service_id
|
|
30
34
|
this.logo_url = logo_url
|
|
35
|
+
this.code = code
|
|
31
36
|
}
|
|
32
37
|
}
|