whitelabel-db 1.1.31 → 1.1.35
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 -1
- package/dist/libs/liteapi.d.ts +1 -1
- package/dist/libs/liteapiv3.d.ts +74 -28
- package/dist/libs/liteapiv3.js +10 -0
- package/dist/models/Hotel.d.ts +3 -0
- package/dist/models/Hotel.js +21 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export { HotelTranslation } from './models/HotelTranslation';
|
|
|
11
11
|
export { Guest } from './models/Guest';
|
|
12
12
|
export { HotelAccessibility } from './models/HotelAccessibility';
|
|
13
13
|
export { LiteApiClient, HotelsRequest, AvailabilityResult, FullRateAvailabilityResult, RoomType, Rate, PrebookRateRequest, PrebookRate, CheckoutRequest, BookingInfo, CancelBooking, } from './libs/liteapi';
|
|
14
|
-
export { LiteApiClientV3, HotelsRequestV3, AvailabilityResultV3, FullRateAvailabilityResultV3, RoomTypeV3, RateV3, PrebookRateRequestV3, PrebookRateV3, CheckoutRequestV3, BookingInfoV3, CancelBookingV3, BookedRoomV3, OccupancyV3, GuestV3, GuestBookingV3, VoucherRequest, VoucherResponse, } from './libs/liteapiv3';
|
|
14
|
+
export { LiteApiClientV3, HotelsRequestV3, AvailabilityResultV3, FullRateAvailabilityResultV3, RoomTypeV3, RateV3, PrebookRateRequestV3, PrebookRateV3, CheckoutRequestV3, BookingInfoV3, CancelBookingV3, BookedRoomV3, OccupancyV3, GuestV3, GuestBookingV3, VoucherRequest, VoucherResponse, EsimplyPackage, Addon, AddonResponse, } from './libs/liteapiv3';
|
|
15
15
|
export { LiteApiUser, LiteApiUserRequest } from './libs/liteapiuser';
|
package/dist/libs/liteapi.d.ts
CHANGED
package/dist/libs/liteapiv3.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface AvailabilityResultV3 {
|
|
|
24
24
|
export interface AmountV3 {
|
|
25
25
|
amount: number;
|
|
26
26
|
currency: string;
|
|
27
|
+
source?: number;
|
|
27
28
|
}
|
|
28
29
|
export interface TaxesAndFeesV3 {
|
|
29
30
|
included: boolean;
|
|
@@ -76,7 +77,6 @@ export interface RateV3 {
|
|
|
76
77
|
hasFreeCancellation: boolean;
|
|
77
78
|
};
|
|
78
79
|
formattedName?: string;
|
|
79
|
-
rp?: number;
|
|
80
80
|
}
|
|
81
81
|
export interface RoomTypeV3 {
|
|
82
82
|
roomTypeId: string;
|
|
@@ -104,13 +104,19 @@ export interface PrebookRateRequestV3 {
|
|
|
104
104
|
usePaymentSdk?: boolean;
|
|
105
105
|
trackingId?: string;
|
|
106
106
|
voucherCode?: string;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
addons: Addon[];
|
|
108
|
+
}
|
|
109
|
+
export interface Addon {
|
|
110
|
+
addon: string;
|
|
111
|
+
value: number;
|
|
112
|
+
currency: string;
|
|
113
|
+
addonDetails?: {
|
|
114
|
+
package_id: number;
|
|
115
|
+
destination_code: string;
|
|
116
|
+
start_date: string;
|
|
117
|
+
end_date: string;
|
|
118
|
+
cart_key: string;
|
|
119
|
+
};
|
|
114
120
|
}
|
|
115
121
|
export interface PrebookRateV3 {
|
|
116
122
|
prebookId: string;
|
|
@@ -133,14 +139,9 @@ export interface PrebookRateV3 {
|
|
|
133
139
|
voucherCode: string;
|
|
134
140
|
voucherTotalAmount: number;
|
|
135
141
|
isPackageRate: boolean;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
currency: string;
|
|
140
|
-
convertedValue: number;
|
|
141
|
-
convertedCurrency: string;
|
|
142
|
-
}[];
|
|
143
|
-
ancillariesTotalAmount?: number;
|
|
142
|
+
addonsTotalAmount: number;
|
|
143
|
+
addonsRequest: Addon[];
|
|
144
|
+
suggestedSellingPrice: number;
|
|
144
145
|
checkin: string;
|
|
145
146
|
checkout: string;
|
|
146
147
|
}
|
|
@@ -214,9 +215,6 @@ export interface BookingInfoV3 {
|
|
|
214
215
|
};
|
|
215
216
|
holder: UserV3;
|
|
216
217
|
guestId: number;
|
|
217
|
-
uberVoucherCode: string;
|
|
218
|
-
uberVoucherCurrency: string;
|
|
219
|
-
uberVoucherExpiryDate: string;
|
|
220
218
|
formattedCancellationPolicies?: {
|
|
221
219
|
policies: {
|
|
222
220
|
message: string;
|
|
@@ -230,15 +228,46 @@ export interface BookingInfoV3 {
|
|
|
230
228
|
}[];
|
|
231
229
|
hasFreeCancellation: boolean;
|
|
232
230
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
231
|
+
addonsTotalAmount: number;
|
|
232
|
+
addons: AddonResponse[];
|
|
233
|
+
}
|
|
234
|
+
export interface AddonResponse {
|
|
235
|
+
addon: string;
|
|
236
|
+
original_value: number;
|
|
237
|
+
original_currency: string;
|
|
238
|
+
addon_voucher_code: string;
|
|
239
|
+
addon_voucher_id: number;
|
|
240
|
+
value: number;
|
|
241
|
+
currency: string;
|
|
242
|
+
expiry_date: string;
|
|
243
|
+
status: string;
|
|
244
|
+
message: string;
|
|
245
|
+
addonDetails?: {
|
|
246
|
+
esimply: {
|
|
247
|
+
orderID: number;
|
|
248
|
+
purchases: {
|
|
249
|
+
esim_id: number;
|
|
250
|
+
package_name: string;
|
|
251
|
+
data_size_mb: number;
|
|
252
|
+
remaining_data: number;
|
|
253
|
+
destination_code: string;
|
|
254
|
+
price: number;
|
|
255
|
+
iccid: string;
|
|
256
|
+
qrcode: string;
|
|
257
|
+
smdp_address: string;
|
|
258
|
+
activation_code: string;
|
|
259
|
+
esim_provider_id: number;
|
|
260
|
+
external_package_id: string;
|
|
261
|
+
validity_days: number;
|
|
262
|
+
flag: string;
|
|
263
|
+
created_at: string;
|
|
264
|
+
destination_name: string;
|
|
265
|
+
start_date: string;
|
|
266
|
+
end_date: string;
|
|
267
|
+
package_id: number;
|
|
268
|
+
}[];
|
|
269
|
+
};
|
|
270
|
+
};
|
|
242
271
|
}
|
|
243
272
|
export interface BookingConfirmationV3 {
|
|
244
273
|
prebookId: string;
|
|
@@ -304,6 +333,20 @@ export interface VoucherRequest {
|
|
|
304
333
|
usages_limit: number;
|
|
305
334
|
status: string;
|
|
306
335
|
}
|
|
336
|
+
export interface EsimplyPackage {
|
|
337
|
+
package_id: number;
|
|
338
|
+
name: string;
|
|
339
|
+
data_size_mb: number;
|
|
340
|
+
validity_days: number;
|
|
341
|
+
provider_id: number;
|
|
342
|
+
provider_package_id: number;
|
|
343
|
+
external_package_id: string;
|
|
344
|
+
calculated_price: number;
|
|
345
|
+
rn: number;
|
|
346
|
+
currency: string;
|
|
347
|
+
original_amount: number;
|
|
348
|
+
original_currency: string;
|
|
349
|
+
}
|
|
307
350
|
export declare class LiteApiClientV3 {
|
|
308
351
|
private apiKey;
|
|
309
352
|
private baseUrl;
|
|
@@ -322,4 +365,7 @@ export declare class LiteApiClientV3 {
|
|
|
322
365
|
getGuestBookings(guestId: number): Promise<GuestBookingV3[]>;
|
|
323
366
|
createVoucher(data: VoucherRequest): Promise<VoucherResponse>;
|
|
324
367
|
getVouchers(): Promise<VoucherResponse[]>;
|
|
368
|
+
getEsimplyPackages(options: {
|
|
369
|
+
countryCode: string;
|
|
370
|
+
}): Promise<EsimplyPackage[]>;
|
|
325
371
|
}
|
package/dist/libs/liteapiv3.js
CHANGED
|
@@ -164,5 +164,15 @@ class LiteApiClientV3 {
|
|
|
164
164
|
})).data.vouchers;
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
+
getEsimplyPackages(options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
return (yield (0, axios_1.default)({
|
|
170
|
+
url: `${this.baseUrl}/v3.0/addons/esimply/packages/${options.countryCode}`,
|
|
171
|
+
headers: {
|
|
172
|
+
'X-API-Key': this.apiKey,
|
|
173
|
+
},
|
|
174
|
+
})).data.data;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
167
177
|
}
|
|
168
178
|
exports.LiteApiClientV3 = LiteApiClientV3;
|
package/dist/models/Hotel.d.ts
CHANGED
|
@@ -71,6 +71,9 @@ export declare class Hotel extends Model<Partial<Hotel>> {
|
|
|
71
71
|
latitude: string;
|
|
72
72
|
longitude: string;
|
|
73
73
|
address: string;
|
|
74
|
+
addressSuburb: string;
|
|
75
|
+
addressQuarter: string;
|
|
76
|
+
addressDistrict: string;
|
|
74
77
|
zip: string;
|
|
75
78
|
main_photo: string;
|
|
76
79
|
thumbnail: string;
|
package/dist/models/Hotel.js
CHANGED
|
@@ -84,6 +84,27 @@ __decorate([
|
|
|
84
84
|
}),
|
|
85
85
|
__metadata("design:type", String)
|
|
86
86
|
], Hotel.prototype, "address", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, sequelize_typescript_1.Column)({
|
|
89
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
90
|
+
allowNull: true,
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], Hotel.prototype, "addressSuburb", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, sequelize_typescript_1.Column)({
|
|
96
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
97
|
+
allowNull: true,
|
|
98
|
+
}),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], Hotel.prototype, "addressQuarter", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, sequelize_typescript_1.Column)({
|
|
103
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
104
|
+
allowNull: true,
|
|
105
|
+
}),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], Hotel.prototype, "addressDistrict", void 0);
|
|
87
108
|
__decorate([
|
|
88
109
|
(0, sequelize_typescript_1.Column)({
|
|
89
110
|
type: sequelize_typescript_1.DataType.STRING,
|