whitelabel-db 1.2.2 → 1.2.3

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.
@@ -381,6 +381,7 @@ export declare class LiteApiClientV3 {
381
381
  bookHotelRate(options: CheckoutRequestV3): Promise<BookingInfoV3>;
382
382
  cancelBooking(bookingId: string): Promise<CancelBookingV3>;
383
383
  getBooking(bookingId: string, key?: string): Promise<BookingInfoV3>;
384
+ getPrebook(prebookId: string, key?: string): Promise<PrebookRateV3>;
384
385
  getGuests(): Promise<GuestV3[]>;
385
386
  getGuest(guestId: number): Promise<GuestV3>;
386
387
  getGuestBookings(guestId: number): Promise<GuestBookingV3[]>;
@@ -130,6 +130,18 @@ class LiteApiClientV3 {
130
130
  })).data.data;
131
131
  });
132
132
  }
133
+ getPrebook(prebookId, key) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ return (yield (0, axios_1.default)({
136
+ method: 'get',
137
+ url: `${this.bookingBaseUrl}/v3.0/prebooks/${prebookId}`,
138
+ headers: {
139
+ 'X-API-Key': key || this.apiKey,
140
+ 'content-type': 'application/json',
141
+ },
142
+ })).data.data;
143
+ });
144
+ }
133
145
  getGuests() {
134
146
  return __awaiter(this, void 0, void 0, function* () {
135
147
  return (yield (0, axios_1.default)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",