whitelabel-db 1.1.24 → 1.1.26
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/libs/liteapiv3.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface RetailRateV3 {
|
|
|
36
36
|
taxesAndFees: TaxesAndFeesV3[];
|
|
37
37
|
msp?: AmountV3[];
|
|
38
38
|
suggestedSellingPrice: AmountV3[];
|
|
39
|
+
initialPrice: AmountV3[];
|
|
39
40
|
}
|
|
40
41
|
export interface CancellationPoliciesV3 {
|
|
41
42
|
cancelPolicyInfos: {
|
|
@@ -223,7 +224,7 @@ export interface BookingInfoV3 {
|
|
|
223
224
|
hasFreeCancellation: boolean;
|
|
224
225
|
};
|
|
225
226
|
ancillaryTotalAmount?: number;
|
|
226
|
-
|
|
227
|
+
ancillaryVouchers?: {
|
|
227
228
|
ancillary: string;
|
|
228
229
|
ancillary_voucher_code: string;
|
|
229
230
|
ancillary_voucher_id: number;
|
package/dist/models/Booking.d.ts
CHANGED
package/dist/models/Booking.js
CHANGED
|
@@ -133,6 +133,13 @@ __decorate([
|
|
|
133
133
|
(0, sequelize_typescript_1.BelongsTo)(() => Guest_1.Guest),
|
|
134
134
|
__metadata("design:type", Guest_1.Guest)
|
|
135
135
|
], Booking.prototype, "guest", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, sequelize_typescript_1.Column)({
|
|
138
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
139
|
+
allowNull: true,
|
|
140
|
+
}),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], Booking.prototype, "otp", void 0);
|
|
136
143
|
exports.Booking = Booking = __decorate([
|
|
137
144
|
(0, sequelize_typescript_1.Table)({
|
|
138
145
|
tableName: 'bookings',
|
|
@@ -9,38 +9,53 @@ 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.
|
|
13
|
-
const sequelize_1 = require("sequelize");
|
|
12
|
+
exports.Search = void 0;
|
|
14
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
15
|
-
let
|
|
14
|
+
let Search = class Search extends sequelize_typescript_1.Model {
|
|
16
15
|
};
|
|
17
|
-
exports.
|
|
16
|
+
exports.Search = Search;
|
|
18
17
|
__decorate([
|
|
19
18
|
sequelize_typescript_1.PrimaryKey,
|
|
19
|
+
sequelize_typescript_1.Index,
|
|
20
20
|
(0, sequelize_typescript_1.Column)({
|
|
21
|
-
type:
|
|
22
|
-
allowNull: false,
|
|
23
|
-
autoIncrement: true,
|
|
21
|
+
type: sequelize_typescript_1.DataType.STRING(32),
|
|
24
22
|
}),
|
|
25
23
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
24
|
+
], Search.prototype, "id", void 0);
|
|
27
25
|
__decorate([
|
|
28
|
-
sequelize_typescript_1.Unique,
|
|
29
26
|
(0, sequelize_typescript_1.Column)({
|
|
30
|
-
type: sequelize_typescript_1.DataType.
|
|
27
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
31
28
|
allowNull: false,
|
|
29
|
+
defaultValue: 0,
|
|
32
30
|
}),
|
|
33
|
-
__metadata("design:type",
|
|
34
|
-
],
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Search.prototype, "hits", void 0);
|
|
35
33
|
__decorate([
|
|
34
|
+
sequelize_typescript_1.Unique,
|
|
35
|
+
sequelize_typescript_1.Index,
|
|
36
36
|
(0, sequelize_typescript_1.Column)({
|
|
37
|
-
type: sequelize_typescript_1.DataType.
|
|
38
|
-
allowNull: true,
|
|
37
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
39
38
|
}),
|
|
40
|
-
__metadata("design:type",
|
|
41
|
-
],
|
|
42
|
-
|
|
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([
|
|
43
58
|
(0, sequelize_typescript_1.Table)({
|
|
44
|
-
tableName: '
|
|
59
|
+
tableName: 'searches',
|
|
45
60
|
})
|
|
46
|
-
],
|
|
61
|
+
], Search);
|
package/package.json
CHANGED