whitelabel-db 1.1.40 → 1.1.42
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/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/libs/database.js +2 -0
- package/dist/models/Feedback.d.ts +27 -0
- package/dist/models/Feedback.js +182 -0
- package/dist/models/Referral.d.ts +1 -1
- package/dist/models/Referral.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { HotelTranslation } from './models/HotelTranslation';
|
|
|
11
11
|
export { Guest } from './models/Guest';
|
|
12
12
|
export { HotelAccessibility } from './models/HotelAccessibility';
|
|
13
13
|
export { Referral } from './models/Referral';
|
|
14
|
+
export { Feedback } from './models/Feedback';
|
|
14
15
|
export { LiteApiClient, HotelsRequest, AvailabilityResult, FullRateAvailabilityResult, RoomType, Rate, PrebookRateRequest, PrebookRate, CheckoutRequest, BookingInfo, CancelBooking, } from './libs/liteapi';
|
|
15
16
|
export { LiteApiClientV3, HotelsRequestV3, AvailabilityResultV3, FullRateAvailabilityResultV3, RoomTypeV3, RateV3, PrebookRateRequestV3, PrebookRateV3, CheckoutRequestV3, BookingInfoV3, CancelBookingV3, BookedRoomV3, OccupancyV3, GuestV3, GuestBookingV3, VoucherRequest, VoucherResponse, EsimplyPackage, Addon, AddonResponse, } from './libs/liteapiv3';
|
|
16
17
|
export { LiteApiUser, LiteApiUserRequest } from './libs/liteapiuser';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LiteApiUser = exports.LiteApiClientV3 = exports.LiteApiClient = exports.Referral = exports.HotelAccessibility = exports.Guest = exports.HotelTranslation = exports.Role = exports.Booking = exports.Project = exports.User = exports.Hotel = exports.Country = exports.City = exports.Agency = exports.connect = void 0;
|
|
3
|
+
exports.LiteApiUser = exports.LiteApiClientV3 = exports.LiteApiClient = exports.Feedback = exports.Referral = exports.HotelAccessibility = exports.Guest = exports.HotelTranslation = exports.Role = exports.Booking = exports.Project = exports.User = exports.Hotel = exports.Country = exports.City = exports.Agency = exports.connect = void 0;
|
|
4
4
|
var database_1 = require("./libs/database");
|
|
5
5
|
Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return database_1.connect; } });
|
|
6
6
|
var Agency_1 = require("./models/Agency");
|
|
@@ -27,6 +27,8 @@ var HotelAccessibility_1 = require("./models/HotelAccessibility");
|
|
|
27
27
|
Object.defineProperty(exports, "HotelAccessibility", { enumerable: true, get: function () { return HotelAccessibility_1.HotelAccessibility; } });
|
|
28
28
|
var Referral_1 = require("./models/Referral");
|
|
29
29
|
Object.defineProperty(exports, "Referral", { enumerable: true, get: function () { return Referral_1.Referral; } });
|
|
30
|
+
var Feedback_1 = require("./models/Feedback");
|
|
31
|
+
Object.defineProperty(exports, "Feedback", { enumerable: true, get: function () { return Feedback_1.Feedback; } });
|
|
30
32
|
var liteapi_1 = require("./libs/liteapi");
|
|
31
33
|
Object.defineProperty(exports, "LiteApiClient", { enumerable: true, get: function () { return liteapi_1.LiteApiClient; } });
|
|
32
34
|
var liteapiv3_1 = require("./libs/liteapiv3");
|
package/dist/libs/database.js
CHANGED
|
@@ -23,6 +23,7 @@ const HotelTranslation_1 = require("../models/HotelTranslation");
|
|
|
23
23
|
const Guest_1 = require("../models/Guest");
|
|
24
24
|
const HotelAccessibility_1 = require("../models/HotelAccessibility");
|
|
25
25
|
const Referral_1 = require("../models/Referral");
|
|
26
|
+
const Feedback_1 = require("../models/Feedback");
|
|
26
27
|
const connect = (connectionDetails) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
28
|
const connection = new sequelize_typescript_1.Sequelize({
|
|
28
29
|
dialect: 'postgres',
|
|
@@ -44,6 +45,7 @@ const connect = (connectionDetails) => __awaiter(void 0, void 0, void 0, functio
|
|
|
44
45
|
Guest_1.Guest,
|
|
45
46
|
HotelAccessibility_1.HotelAccessibility,
|
|
46
47
|
Referral_1.Referral,
|
|
48
|
+
Feedback_1.Feedback,
|
|
47
49
|
],
|
|
48
50
|
});
|
|
49
51
|
return connection
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { Project } from './Project';
|
|
3
|
+
import { Guest } from './Guest';
|
|
4
|
+
export declare class Feedback extends Model<Partial<Feedback>> {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
category: string;
|
|
8
|
+
description: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
imageIssue: string;
|
|
11
|
+
severity: string;
|
|
12
|
+
screenshot?: string;
|
|
13
|
+
sessionId: string;
|
|
14
|
+
eventId: string;
|
|
15
|
+
sessionReplayUrl: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
guestId?: string;
|
|
18
|
+
metadata: object;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
jiraId: string;
|
|
22
|
+
jiraKey: string;
|
|
23
|
+
jiraStatus: string;
|
|
24
|
+
jiraType: string;
|
|
25
|
+
project?: Project;
|
|
26
|
+
guest?: Guest;
|
|
27
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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.Feedback = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const Project_1 = require("./Project");
|
|
15
|
+
const Guest_1 = require("./Guest");
|
|
16
|
+
let Feedback = class Feedback extends sequelize_typescript_1.Model {
|
|
17
|
+
};
|
|
18
|
+
exports.Feedback = Feedback;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.IsUUID)(4),
|
|
21
|
+
sequelize_typescript_1.PrimaryKey,
|
|
22
|
+
(0, sequelize_typescript_1.Column)({
|
|
23
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
24
|
+
defaultValue: sequelize_typescript_1.DataType.UUIDV4,
|
|
25
|
+
}),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Feedback.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
sequelize_typescript_1.Index,
|
|
30
|
+
(0, sequelize_typescript_1.Column)({
|
|
31
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
32
|
+
allowNull: false,
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Feedback.prototype, "type", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
sequelize_typescript_1.Index,
|
|
38
|
+
(0, sequelize_typescript_1.Column)({
|
|
39
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Feedback.prototype, "category", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Column)({
|
|
46
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
47
|
+
allowNull: false,
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Feedback.prototype, "description", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)({
|
|
53
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Feedback.prototype, "summary", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, sequelize_typescript_1.Column)({
|
|
60
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
61
|
+
allowNull: false,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Feedback.prototype, "imageIssue", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
sequelize_typescript_1.Index,
|
|
67
|
+
(0, sequelize_typescript_1.Column)({
|
|
68
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Feedback.prototype, "severity", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, sequelize_typescript_1.Column)({
|
|
75
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Feedback.prototype, "screenshot", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, sequelize_typescript_1.Column)({
|
|
81
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
82
|
+
allowNull: false,
|
|
83
|
+
}),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Feedback.prototype, "sessionId", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, sequelize_typescript_1.Column)({
|
|
88
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
89
|
+
allowNull: false,
|
|
90
|
+
}),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Feedback.prototype, "eventId", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, sequelize_typescript_1.Column)({
|
|
95
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
96
|
+
allowNull: false,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], Feedback.prototype, "sessionReplayUrl", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
sequelize_typescript_1.Index,
|
|
102
|
+
(0, sequelize_typescript_1.ForeignKey)(() => Project_1.Project),
|
|
103
|
+
(0, sequelize_typescript_1.Column)({
|
|
104
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
105
|
+
allowNull: false,
|
|
106
|
+
}),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], Feedback.prototype, "projectId", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
sequelize_typescript_1.Index,
|
|
111
|
+
(0, sequelize_typescript_1.ForeignKey)(() => Guest_1.Guest),
|
|
112
|
+
(0, sequelize_typescript_1.Column)({
|
|
113
|
+
type: sequelize_typescript_1.DataType.UUID,
|
|
114
|
+
}),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], Feedback.prototype, "guestId", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, sequelize_typescript_1.Column)({
|
|
119
|
+
type: sequelize_typescript_1.DataType.JSONB,
|
|
120
|
+
allowNull: false,
|
|
121
|
+
defaultValue: {},
|
|
122
|
+
}),
|
|
123
|
+
__metadata("design:type", Object)
|
|
124
|
+
], Feedback.prototype, "metadata", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, sequelize_typescript_1.Column)({
|
|
127
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
128
|
+
allowNull: false,
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Date)
|
|
131
|
+
], Feedback.prototype, "createdAt", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, sequelize_typescript_1.Column)({
|
|
134
|
+
type: sequelize_typescript_1.DataType.DATE,
|
|
135
|
+
allowNull: false,
|
|
136
|
+
}),
|
|
137
|
+
__metadata("design:type", Date)
|
|
138
|
+
], Feedback.prototype, "updatedAt", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
sequelize_typescript_1.Index,
|
|
141
|
+
(0, sequelize_typescript_1.Column)({
|
|
142
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
143
|
+
allowNull: true,
|
|
144
|
+
}),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], Feedback.prototype, "jiraId", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, sequelize_typescript_1.Column)({
|
|
149
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
150
|
+
allowNull: true,
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], Feedback.prototype, "jiraKey", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
sequelize_typescript_1.Index,
|
|
156
|
+
(0, sequelize_typescript_1.Column)({
|
|
157
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
158
|
+
allowNull: true,
|
|
159
|
+
}),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], Feedback.prototype, "jiraStatus", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
sequelize_typescript_1.Index,
|
|
164
|
+
(0, sequelize_typescript_1.Column)({
|
|
165
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
166
|
+
allowNull: true,
|
|
167
|
+
}),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], Feedback.prototype, "jiraType", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, sequelize_typescript_1.BelongsTo)(() => Project_1.Project),
|
|
172
|
+
__metadata("design:type", Project_1.Project)
|
|
173
|
+
], Feedback.prototype, "project", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, sequelize_typescript_1.BelongsTo)(() => Guest_1.Guest),
|
|
176
|
+
__metadata("design:type", Guest_1.Guest)
|
|
177
|
+
], Feedback.prototype, "guest", void 0);
|
|
178
|
+
exports.Feedback = Feedback = __decorate([
|
|
179
|
+
(0, sequelize_typescript_1.Table)({
|
|
180
|
+
tableName: 'feedback_reports',
|
|
181
|
+
})
|
|
182
|
+
], Feedback);
|
package/dist/models/Referral.js
CHANGED
|
@@ -98,7 +98,7 @@ __decorate([
|
|
|
98
98
|
type: sequelize_typescript_1.DataType.UUID,
|
|
99
99
|
allowNull: true,
|
|
100
100
|
}),
|
|
101
|
-
__metadata("design:type",
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
102
|
], Referral.prototype, "bookingId", void 0);
|
|
103
103
|
__decorate([
|
|
104
104
|
(0, sequelize_typescript_1.BelongsTo)(() => Booking_1.Booking),
|