whitelabel-db 1.0.27 → 1.0.29

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.
@@ -48,6 +48,12 @@ export interface Rate {
48
48
  policies: {
49
49
  message: string;
50
50
  highlight: boolean;
51
+ cancelTimeFrame: {
52
+ start: string;
53
+ end: string;
54
+ amount: number;
55
+ type?: string;
56
+ };
51
57
  }[];
52
58
  hasFreeCancellation: boolean;
53
59
  };
@@ -57,6 +63,7 @@ export interface RoomType {
57
63
  rates: Rate[];
58
64
  supplier: string;
59
65
  supplierId: number;
66
+ mappedRoomId?: string;
60
67
  }
61
68
  export interface FullRateAvailabilityResult {
62
69
  hotelId: string;
@@ -137,6 +144,10 @@ export interface BookingInfo {
137
144
  msp: number;
138
145
  commission: number;
139
146
  currency: string;
147
+ cancelledAmountWhenRequested: {
148
+ amount: number;
149
+ type: string;
150
+ };
140
151
  }
141
152
  export interface BookingConfirmation {
142
153
  prebookId: string;
@@ -7,4 +7,7 @@ export declare class Booking extends Model<Partial<Booking>> {
7
7
  bookingInputData?: object;
8
8
  projectId?: string;
9
9
  hasAcceptedTerms?: boolean;
10
+ liteApiCancelBookingData?: object;
11
+ paymentStatus?: string;
12
+ bookingStatus?: string;
10
13
  }
@@ -72,6 +72,30 @@ __decorate([
72
72
  }),
73
73
  __metadata("design:type", Boolean)
74
74
  ], Booking.prototype, "hasAcceptedTerms", void 0);
75
+ __decorate([
76
+ (0, sequelize_typescript_1.Column)({
77
+ type: sequelize_typescript_1.DataType.JSONB,
78
+ allowNull: false,
79
+ defaultValue: {},
80
+ }),
81
+ __metadata("design:type", Object)
82
+ ], Booking.prototype, "liteApiCancelBookingData", void 0);
83
+ __decorate([
84
+ (0, sequelize_typescript_1.Column)({
85
+ type: sequelize_typescript_1.DataType.STRING,
86
+ allowNull: false,
87
+ defaultValue: '',
88
+ }),
89
+ __metadata("design:type", String)
90
+ ], Booking.prototype, "paymentStatus", void 0);
91
+ __decorate([
92
+ (0, sequelize_typescript_1.Column)({
93
+ type: sequelize_typescript_1.DataType.STRING,
94
+ allowNull: false,
95
+ defaultValue: '',
96
+ }),
97
+ __metadata("design:type", String)
98
+ ], Booking.prototype, "bookingStatus", void 0);
75
99
  exports.Booking = Booking = __decorate([
76
100
  (0, sequelize_typescript_1.Table)({
77
101
  tableName: 'bookings',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
- export declare class Search extends Model<Partial<Search>> {
3
- id: string;
4
- hits: number;
5
- cacheUpdatedAt?: Date;
6
- cacheQueuedAt?: Date;
7
- data?: object;
8
- }
@@ -1,61 +0,0 @@
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.Search = void 0;
13
- const sequelize_typescript_1 = require("sequelize-typescript");
14
- let Search = class Search extends sequelize_typescript_1.Model {
15
- };
16
- exports.Search = Search;
17
- __decorate([
18
- sequelize_typescript_1.PrimaryKey,
19
- sequelize_typescript_1.Index,
20
- (0, sequelize_typescript_1.Column)({
21
- type: sequelize_typescript_1.DataType.STRING(32),
22
- }),
23
- __metadata("design:type", String)
24
- ], Search.prototype, "id", void 0);
25
- __decorate([
26
- (0, sequelize_typescript_1.Column)({
27
- type: sequelize_typescript_1.DataType.INTEGER,
28
- allowNull: false,
29
- defaultValue: 0,
30
- }),
31
- __metadata("design:type", Number)
32
- ], Search.prototype, "hits", void 0);
33
- __decorate([
34
- sequelize_typescript_1.Unique,
35
- sequelize_typescript_1.Index,
36
- (0, sequelize_typescript_1.Column)({
37
- type: sequelize_typescript_1.DataType.DATE,
38
- }),
39
- __metadata("design:type", Date)
40
- ], Search.prototype, "cacheUpdatedAt", void 0);
41
- __decorate([
42
- sequelize_typescript_1.Unique,
43
- sequelize_typescript_1.Index,
44
- (0, sequelize_typescript_1.Column)({
45
- type: sequelize_typescript_1.DataType.DATE,
46
- }),
47
- __metadata("design:type", Date)
48
- ], Search.prototype, "cacheQueuedAt", void 0);
49
- __decorate([
50
- (0, sequelize_typescript_1.Column)({
51
- type: sequelize_typescript_1.DataType.JSONB,
52
- allowNull: false,
53
- defaultValue: {},
54
- }),
55
- __metadata("design:type", Object)
56
- ], Search.prototype, "data", void 0);
57
- exports.Search = Search = __decorate([
58
- (0, sequelize_typescript_1.Table)({
59
- tableName: 'searches',
60
- })
61
- ], Search);