whitelabel-db 1.1.74 → 1.1.76

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.
@@ -154,6 +154,10 @@ export interface PrebookRateV3 {
154
154
  checkin: string;
155
155
  checkout: string;
156
156
  paymentTypes: string[];
157
+ creditLine: {
158
+ remainingCredit: number;
159
+ currency: string;
160
+ };
157
161
  }
158
162
  export interface GuestInfoV3 {
159
163
  guestFirstName: string;
@@ -0,0 +1,3 @@
1
+ import { QueryInterface } from 'sequelize';
2
+ export declare const up: (queryInterface: QueryInterface) => Promise<void>;
3
+ export declare const down: (queryInterface: QueryInterface) => Promise<void>;
@@ -0,0 +1,39 @@
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
+ // Purpose: Add video column to static_hotels table.
14
+ const sequelize_1 = require("sequelize");
15
+ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
16
+ try {
17
+ // Add all columns in parallel
18
+ yield queryInterface.addColumn('static_hotels', 'video', {
19
+ type: sequelize_1.DataTypes.STRING,
20
+ allowNull: true,
21
+ });
22
+ console.log('All columns added successfully.');
23
+ }
24
+ catch (error) {
25
+ console.error('Error while adding columns:', error.message);
26
+ }
27
+ });
28
+ exports.up = up;
29
+ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
30
+ try {
31
+ // Remove columns
32
+ yield queryInterface.removeColumn('static_hotels', 'video');
33
+ console.log('All columns removed successfully.');
34
+ }
35
+ catch (error) {
36
+ console.error('Error while removing columns:', error.message);
37
+ }
38
+ });
39
+ exports.down = down;
@@ -103,6 +103,7 @@ export declare class Hotel extends Model<Partial<Hotel>> {
103
103
  reviewSentiment: ReviewSentiment;
104
104
  isAccessible: boolean;
105
105
  parking?: string;
106
+ video?: string;
106
107
  accessibility: HotelAccessibility;
107
108
  translations: HotelTranslation[];
108
109
  static includeTranslations(options: any, language?: string): any;
@@ -426,6 +426,13 @@ __decorate([
426
426
  }),
427
427
  __metadata("design:type", String)
428
428
  ], Hotel.prototype, "parking", void 0);
429
+ __decorate([
430
+ (0, sequelize_typescript_1.Column)({
431
+ type: sequelize_typescript_1.DataType.STRING,
432
+ allowNull: true,
433
+ }),
434
+ __metadata("design:type", String)
435
+ ], Hotel.prototype, "video", void 0);
429
436
  __decorate([
430
437
  (0, sequelize_typescript_1.HasOne)(() => HotelAccessibility_1.HotelAccessibility),
431
438
  __metadata("design:type", HotelAccessibility_1.HotelAccessibility)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",