@platform-modules/civil-aviation-authority 2.0.10 → 2.0.11
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.
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +1 -0
- package/src/models/importantLinksModel.ts +22 -0
package/dist/data-source.js
CHANGED
|
@@ -40,6 +40,7 @@ const LogisticsApprovalModel_1 = require("./models/LogisticsApprovalModel");
|
|
|
40
40
|
const LogisticsChatModel_1 = require("./models/LogisticsChatModel");
|
|
41
41
|
const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
42
42
|
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
|
+
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
43
44
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
44
45
|
type: 'postgres',
|
|
45
46
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -83,6 +84,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
83
84
|
LogisticsApprovalModel_1.LogisticsApprovalDetails,
|
|
84
85
|
LogisticsChatModel_1.LogisticsRequestChat,
|
|
85
86
|
LogisticsAttachmentModel_1.LogisticsRequestAttachment,
|
|
86
|
-
LogisticsWorkflowModel_1.LogisticsWorkFlow
|
|
87
|
+
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
88
|
+
importantLinksModel_1.ImportantLinks
|
|
87
89
|
],
|
|
88
90
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -31,4 +31,5 @@ export * from './models/LogisticsForeignVehiclePassengerModel';
|
|
|
31
31
|
export * from './models/LogisticsApprovalModel';
|
|
32
32
|
export * from './models/LogisticsChatModel';
|
|
33
33
|
export * from './models/LogisticsAttachmentModel';
|
|
34
|
+
export * from './models/importantLinksModel';
|
|
34
35
|
export * from './models/LogisticsWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -48,4 +48,5 @@ __exportStar(require("./models/LogisticsForeignVehiclePassengerModel"), exports)
|
|
|
48
48
|
__exportStar(require("./models/LogisticsApprovalModel"), exports);
|
|
49
49
|
__exportStar(require("./models/LogisticsChatModel"), exports);
|
|
50
50
|
__exportStar(require("./models/LogisticsAttachmentModel"), exports);
|
|
51
|
+
__exportStar(require("./models/importantLinksModel"), exports);
|
|
51
52
|
__exportStar(require("./models/LogisticsWorkflowModel"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ImportantLinks = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportantLinks = class ImportantLinks extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(title, url) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.url = url;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ImportantLinks = ImportantLinks;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ImportantLinks.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ImportantLinks.prototype, "url", void 0);
|
|
31
|
+
exports.ImportantLinks = ImportantLinks = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'important_links' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ImportantLinks);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { LogisticsApprovalDetails } from './models/LogisticsApprovalModel';
|
|
|
37
37
|
import { LogisticsRequestChat } from './models/LogisticsChatModel';
|
|
38
38
|
import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
|
|
39
39
|
import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
|
|
40
|
+
import { ImportantLinks } from './models/importantLinksModel';
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
|
|
@@ -83,6 +84,7 @@ export const AppDataSource = new DataSource({
|
|
|
83
84
|
LogisticsApprovalDetails,
|
|
84
85
|
LogisticsRequestChat,
|
|
85
86
|
LogisticsRequestAttachment,
|
|
86
|
-
LogisticsWorkFlow
|
|
87
|
+
LogisticsWorkFlow,
|
|
88
|
+
ImportantLinks
|
|
87
89
|
],
|
|
88
90
|
});
|
package/src/index.ts
CHANGED
|
@@ -32,4 +32,5 @@ export * from './models/LogisticsForeignVehiclePassengerModel';
|
|
|
32
32
|
export * from './models/LogisticsApprovalModel';
|
|
33
33
|
export * from './models/LogisticsChatModel';
|
|
34
34
|
export * from './models/LogisticsAttachmentModel';
|
|
35
|
+
export * from './models/importantLinksModel';
|
|
35
36
|
export * from './models/LogisticsWorkflowModel';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'important_links' })
|
|
5
|
+
export class ImportantLinks extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', nullable: false })
|
|
8
|
+
title: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'varchar', nullable: false })
|
|
11
|
+
url: string;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
title: string,
|
|
15
|
+
url: string
|
|
16
|
+
) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.url = url;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|