@platform-modules/civil-aviation-authority 2.0.12 → 2.0.13
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/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -2
- package/src/index.ts +1 -0
- package/src/models/DelegateSettingsModel.ts +37 -0
package/dist/data-source.js
CHANGED
|
@@ -41,6 +41,7 @@ const LogisticsChatModel_1 = require("./models/LogisticsChatModel");
|
|
|
41
41
|
const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
42
42
|
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
43
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
44
|
+
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
44
45
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
45
46
|
type: 'postgres',
|
|
46
47
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -85,6 +86,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
85
86
|
LogisticsChatModel_1.LogisticsRequestChat,
|
|
86
87
|
LogisticsAttachmentModel_1.LogisticsRequestAttachment,
|
|
87
88
|
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
88
|
-
importantLinksModel_1.ImportantLinks
|
|
89
|
+
importantLinksModel_1.ImportantLinks,
|
|
90
|
+
DelegateSettingsModel_1.DelegateSettings
|
|
89
91
|
],
|
|
90
92
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -50,3 +50,4 @@ __exportStar(require("./models/LogisticsChatModel"), exports);
|
|
|
50
50
|
__exportStar(require("./models/LogisticsAttachmentModel"), exports);
|
|
51
51
|
__exportStar(require("./models/importantLinksModel"), exports);
|
|
52
52
|
__exportStar(require("./models/LogisticsWorkflowModel"), exports);
|
|
53
|
+
__exportStar(require("./models/DelegateSettingsModel"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DelegateSettings extends BaseModel {
|
|
3
|
+
user_id: number;
|
|
4
|
+
from_date: Date;
|
|
5
|
+
to_date: Date;
|
|
6
|
+
delegate_to: number;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
constructor(user_id: number, from_date: Date, to_date: Date, delegate_to: number, is_active?: boolean);
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.DelegateSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DelegateSettings = class DelegateSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, from_date, to_date, delegate_to, is_active = true) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id;
|
|
19
|
+
this.from_date = from_date;
|
|
20
|
+
this.to_date = to_date;
|
|
21
|
+
this.delegate_to = delegate_to;
|
|
22
|
+
this.is_active = is_active;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.DelegateSettings = DelegateSettings;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], DelegateSettings.prototype, "user_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], DelegateSettings.prototype, "from_date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], DelegateSettings.prototype, "to_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], DelegateSettings.prototype, "delegate_to", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], DelegateSettings.prototype, "is_active", void 0);
|
|
46
|
+
exports.DelegateSettings = DelegateSettings = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'delegate_settings' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, Date,
|
|
49
|
+
Date, Number, Boolean])
|
|
50
|
+
], DelegateSettings);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -38,7 +38,7 @@ import { LogisticsRequestChat } from './models/LogisticsChatModel';
|
|
|
38
38
|
import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
|
|
39
39
|
import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
|
|
40
40
|
import { ImportantLinks } from './models/importantLinksModel';
|
|
41
|
-
|
|
41
|
+
import { DelegateSettings } from './models/DelegateSettingsModel';
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
export const AppDataSource = new DataSource({
|
|
@@ -85,6 +85,7 @@ export const AppDataSource = new DataSource({
|
|
|
85
85
|
LogisticsRequestChat,
|
|
86
86
|
LogisticsRequestAttachment,
|
|
87
87
|
LogisticsWorkFlow,
|
|
88
|
-
ImportantLinks
|
|
88
|
+
ImportantLinks,
|
|
89
|
+
DelegateSettings
|
|
89
90
|
],
|
|
90
91
|
});
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'delegate_settings' })
|
|
5
|
+
export class DelegateSettings extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'int', nullable: false })
|
|
8
|
+
user_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'date', nullable: false })
|
|
11
|
+
from_date: Date;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'date', nullable: false })
|
|
14
|
+
to_date: Date;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: false })
|
|
17
|
+
delegate_to: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'boolean', default: true })
|
|
20
|
+
is_active: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
user_id: number,
|
|
24
|
+
from_date: Date,
|
|
25
|
+
to_date: Date,
|
|
26
|
+
delegate_to: number,
|
|
27
|
+
is_active: boolean = true
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.from_date = from_date;
|
|
32
|
+
this.to_date = to_date;
|
|
33
|
+
this.delegate_to = delegate_to;
|
|
34
|
+
this.is_active = is_active;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|