whitelabel-db 1.1.83 → 1.1.84

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.
@@ -0,0 +1,3 @@
1
+ import { QueryInterface } from 'sequelize';
2
+ export declare function up(queryInterface: QueryInterface): Promise<void>;
3
+ export declare function down(queryInterface: QueryInterface): Promise<void>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.down = exports.up = void 0;
13
+ const sequelize_1 = require("sequelize");
14
+ function up(queryInterface) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ yield queryInterface.addColumn('static_hotels', 'placeId', {
17
+ type: sequelize_1.DataTypes.STRING,
18
+ allowNull: true,
19
+ comment: 'Google Place ID for the hotel',
20
+ });
21
+ });
22
+ }
23
+ exports.up = up;
24
+ function down(queryInterface) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ yield queryInterface.removeColumn('static_hotels', 'placeId');
27
+ });
28
+ }
29
+ exports.down = down;
@@ -87,6 +87,7 @@ export declare class Hotel extends Model<Partial<Hotel>> {
87
87
  stars: number;
88
88
  mapped: boolean;
89
89
  thirdPartyId: number;
90
+ placeId?: string;
90
91
  checkinCheckoutTimes: CheckinCheckoutTimes;
91
92
  hotelImages: HotelImage[];
92
93
  hotelFacilities: string[];
@@ -317,6 +317,14 @@ __decorate([
317
317
  }),
318
318
  __metadata("design:type", Number)
319
319
  ], Hotel.prototype, "thirdPartyId", void 0);
320
+ __decorate([
321
+ (0, sequelize_typescript_1.Column)({
322
+ type: sequelize_typescript_1.DataType.STRING,
323
+ allowNull: true,
324
+ comment: 'Google Place ID for the hotel',
325
+ }),
326
+ __metadata("design:type", String)
327
+ ], Hotel.prototype, "placeId", void 0);
320
328
  __decorate([
321
329
  (0, sequelize_typescript_1.Column)({
322
330
  type: sequelize_typescript_1.DataType.JSONB,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.1.83",
3
+ "version": "1.1.84",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",