@platform-modules/civil-aviation-authority 2.0.20 → 2.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.
package/dist/data-source.js
CHANGED
|
@@ -42,6 +42,7 @@ const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
|
42
42
|
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
43
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
44
44
|
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
45
|
+
const HotelreservationModal_1 = require("./models/HotelreservationModal");
|
|
45
46
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
46
47
|
type: 'postgres',
|
|
47
48
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -87,6 +88,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
87
88
|
LogisticsAttachmentModel_1.LogisticsRequestAttachment,
|
|
88
89
|
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
89
90
|
importantLinksModel_1.ImportantLinks,
|
|
90
|
-
DelegateSettingsModel_1.DelegateSettings
|
|
91
|
+
DelegateSettingsModel_1.DelegateSettings,
|
|
92
|
+
HotelreservationModal_1.HotelReservation
|
|
91
93
|
],
|
|
92
94
|
});
|
|
@@ -4,7 +4,7 @@ export declare enum MealType {
|
|
|
4
4
|
LUNCH = "Lunch",
|
|
5
5
|
DINNER = "Dinner"
|
|
6
6
|
}
|
|
7
|
-
export declare enum
|
|
7
|
+
export declare enum ServiceTypes {
|
|
8
8
|
LAUNDRY = "Laundry",
|
|
9
9
|
TELEPHONE = "Telephone Service"
|
|
10
10
|
}
|
|
@@ -12,7 +12,7 @@ export declare class HotelReservation extends BaseModel {
|
|
|
12
12
|
type_of_accommodation: string;
|
|
13
13
|
price: number;
|
|
14
14
|
meal: MealType;
|
|
15
|
-
service:
|
|
15
|
+
service: ServiceTypes;
|
|
16
16
|
date_of_request: Date;
|
|
17
17
|
hotel_name: string;
|
|
18
18
|
check_in_date: Date;
|
|
@@ -26,5 +26,5 @@ export declare class HotelReservation extends BaseModel {
|
|
|
26
26
|
visitor_name: string;
|
|
27
27
|
hr_approval: boolean;
|
|
28
28
|
pr_approval: boolean;
|
|
29
|
-
constructor(type_of_accommodation: string, price: number, meal: MealType, service:
|
|
29
|
+
constructor(type_of_accommodation: string, price: number, meal: MealType, service: ServiceTypes, date_of_request: Date, hotel_name: string, check_in_date: Date, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, visitor_name: string, hr_approval: boolean, pr_approval: boolean);
|
|
30
30
|
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HotelReservation = exports.
|
|
12
|
+
exports.HotelReservation = exports.ServiceTypes = exports.MealType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var MealType;
|
|
@@ -18,11 +18,11 @@ var MealType;
|
|
|
18
18
|
MealType["LUNCH"] = "Lunch";
|
|
19
19
|
MealType["DINNER"] = "Dinner";
|
|
20
20
|
})(MealType || (exports.MealType = MealType = {}));
|
|
21
|
-
var
|
|
22
|
-
(function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
21
|
+
var ServiceTypes;
|
|
22
|
+
(function (ServiceTypes) {
|
|
23
|
+
ServiceTypes["LAUNDRY"] = "Laundry";
|
|
24
|
+
ServiceTypes["TELEPHONE"] = "Telephone Service";
|
|
25
|
+
})(ServiceTypes || (exports.ServiceTypes = ServiceTypes = {}));
|
|
26
26
|
let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
27
27
|
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, visitor_name, hr_approval, pr_approval) {
|
|
28
28
|
super();
|
|
@@ -58,7 +58,7 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], HotelReservation.prototype, "meal", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'enum', enum:
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ServiceTypes, nullable: false, }),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], HotelReservation.prototype, "service", void 0);
|
|
64
64
|
__decorate([
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -39,6 +39,7 @@ 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
|
+
import { HotelReservation } from './models/HotelreservationModal'
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
export const AppDataSource = new DataSource({
|
|
@@ -86,6 +87,7 @@ export const AppDataSource = new DataSource({
|
|
|
86
87
|
LogisticsRequestAttachment,
|
|
87
88
|
LogisticsWorkFlow,
|
|
88
89
|
ImportantLinks,
|
|
89
|
-
DelegateSettings
|
|
90
|
+
DelegateSettings,
|
|
91
|
+
HotelReservation
|
|
90
92
|
],
|
|
91
93
|
});
|
|
@@ -6,7 +6,7 @@ export enum MealType {
|
|
|
6
6
|
DINNER = "Dinner",
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export enum
|
|
9
|
+
export enum ServiceTypes {
|
|
10
10
|
LAUNDRY = "Laundry",
|
|
11
11
|
TELEPHONE = "Telephone Service",
|
|
12
12
|
}
|
|
@@ -25,8 +25,8 @@ export class HotelReservation extends BaseModel {
|
|
|
25
25
|
@Column({ type: 'enum', enum: MealType, nullable: false, })
|
|
26
26
|
meal: MealType;
|
|
27
27
|
|
|
28
|
-
@Column({ type: 'enum', enum:
|
|
29
|
-
service:
|
|
28
|
+
@Column({ type: 'enum', enum: ServiceTypes, nullable: false, })
|
|
29
|
+
service: ServiceTypes;
|
|
30
30
|
|
|
31
31
|
@Column({ type: 'timestamptz', nullable: false })
|
|
32
32
|
date_of_request: Date;
|
|
@@ -71,7 +71,7 @@ export class HotelReservation extends BaseModel {
|
|
|
71
71
|
type_of_accommodation: string,
|
|
72
72
|
price: number,
|
|
73
73
|
meal: MealType,
|
|
74
|
-
service:
|
|
74
|
+
service: ServiceTypes,
|
|
75
75
|
date_of_request: Date,
|
|
76
76
|
hotel_name: string,
|
|
77
77
|
check_in_date: Date,
|