whitelabel-db 1.1.6 → 1.1.8
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/models/Guest.d.ts +1 -0
- package/dist/models/Guest.js +7 -0
- package/dist/models/Hotel.d.ts +11 -1
- package/dist/models/Hotel.js +2 -2
- package/package.json +1 -1
package/dist/models/Guest.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class Guest extends Model<Partial<Guest>> {
|
|
|
10
10
|
liteApiGuestId: number;
|
|
11
11
|
socialId: string;
|
|
12
12
|
socialProvider: string;
|
|
13
|
+
isVerified: boolean;
|
|
13
14
|
project?: Project;
|
|
14
15
|
static checkEmail(email: string): Promise<void>;
|
|
15
16
|
generateSession(secret: string): string;
|
package/dist/models/Guest.js
CHANGED
|
@@ -110,6 +110,13 @@ __decorate([
|
|
|
110
110
|
}),
|
|
111
111
|
__metadata("design:type", String)
|
|
112
112
|
], Guest.prototype, "socialProvider", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, sequelize_typescript_1.Column)({
|
|
115
|
+
type: sequelize_typescript_1.DataType.BOOLEAN,
|
|
116
|
+
defaultValue: false,
|
|
117
|
+
}),
|
|
118
|
+
__metadata("design:type", Boolean)
|
|
119
|
+
], Guest.prototype, "isVerified", void 0);
|
|
113
120
|
__decorate([
|
|
114
121
|
(0, sequelize_typescript_1.BelongsTo)(() => Project_1.Project),
|
|
115
122
|
__metadata("design:type", Project_1.Project)
|
package/dist/models/Hotel.d.ts
CHANGED
|
@@ -50,6 +50,16 @@ export interface Policy {
|
|
|
50
50
|
name: string;
|
|
51
51
|
description: string;
|
|
52
52
|
}
|
|
53
|
+
export interface ReviewSentiment {
|
|
54
|
+
categories: Category[];
|
|
55
|
+
pros: string[];
|
|
56
|
+
cons: string[];
|
|
57
|
+
}
|
|
58
|
+
export interface Category {
|
|
59
|
+
name: string;
|
|
60
|
+
rating: number;
|
|
61
|
+
description: string;
|
|
62
|
+
}
|
|
53
63
|
export declare class Hotel extends Model<Partial<Hotel>> {
|
|
54
64
|
id: string;
|
|
55
65
|
name: string;
|
|
@@ -82,5 +92,5 @@ export declare class Hotel extends Model<Partial<Hotel>> {
|
|
|
82
92
|
reviewsCount: number;
|
|
83
93
|
reviews: Review[];
|
|
84
94
|
bestSeller: boolean;
|
|
85
|
-
reviewSentiment:
|
|
95
|
+
reviewSentiment: ReviewSentiment;
|
|
86
96
|
}
|
package/dist/models/Hotel.js
CHANGED
|
@@ -242,10 +242,10 @@ __decorate([
|
|
|
242
242
|
], Hotel.prototype, "bestSeller", void 0);
|
|
243
243
|
__decorate([
|
|
244
244
|
(0, sequelize_typescript_1.Column)({
|
|
245
|
-
type: sequelize_typescript_1.DataType.
|
|
245
|
+
type: sequelize_typescript_1.DataType.JSONB,
|
|
246
246
|
allowNull: true,
|
|
247
247
|
}),
|
|
248
|
-
__metadata("design:type",
|
|
248
|
+
__metadata("design:type", Object)
|
|
249
249
|
], Hotel.prototype, "reviewSentiment", void 0);
|
|
250
250
|
exports.Hotel = Hotel = __decorate([
|
|
251
251
|
(0, sequelize_typescript_1.Table)({
|