whitelabel-db 1.0.4 → 1.0.6

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,5 +1,16 @@
1
1
  import { Model } from 'sequelize-typescript';
2
2
  import { AvailabilityResult } from '../libs/liteapi';
3
+ export type HotelImage = {
4
+ url: string;
5
+ thumbnailUrl: string;
6
+ caption: string;
7
+ order: number;
8
+ defaultImage: boolean;
9
+ };
10
+ export type CheckinCheckoutTimes = {
11
+ checkout: string;
12
+ checkin: string;
13
+ };
3
14
  export declare class Hotel extends Model<Partial<Hotel>> {
4
15
  id: string;
5
16
  name: string;
@@ -13,5 +24,8 @@ export declare class Hotel extends Model<Partial<Hotel>> {
13
24
  zip: string;
14
25
  main_photo: string;
15
26
  stars: string;
27
+ checkinCheckoutTimes: CheckinCheckoutTimes;
28
+ hotelImages: HotelImage[];
29
+ hotelFacilities: string[];
16
30
  rate: AvailabilityResult;
17
31
  }
@@ -104,6 +104,27 @@ __decorate([
104
104
  }),
105
105
  __metadata("design:type", String)
106
106
  ], Hotel.prototype, "stars", void 0);
107
+ __decorate([
108
+ (0, sequelize_typescript_1.Column)({
109
+ type: sequelize_typescript_1.DataType.JSONB,
110
+ allowNull: true,
111
+ }),
112
+ __metadata("design:type", Object)
113
+ ], Hotel.prototype, "checkinCheckoutTimes", void 0);
114
+ __decorate([
115
+ (0, sequelize_typescript_1.Column)({
116
+ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.JSONB),
117
+ allowNull: true,
118
+ }),
119
+ __metadata("design:type", Array)
120
+ ], Hotel.prototype, "hotelImages", void 0);
121
+ __decorate([
122
+ (0, sequelize_typescript_1.Column)({
123
+ type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.STRING),
124
+ allowNull: true,
125
+ }),
126
+ __metadata("design:type", Array)
127
+ ], Hotel.prototype, "hotelFacilities", void 0);
107
128
  exports.Hotel = Hotel = __decorate([
108
129
  (0, sequelize_typescript_1.Table)({
109
130
  tableName: 'static_hotels',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",