whitelabel-db 1.1.65 → 1.1.66

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.
@@ -368,7 +368,7 @@ export declare class LiteApiClientV3 {
368
368
  preBookedHotelRate(options: PrebookRateRequestV3): Promise<PrebookRateV3>;
369
369
  bookHotelRate(options: CheckoutRequestV3): Promise<BookingInfoV3>;
370
370
  cancelBooking(bookingId: string): Promise<CancelBookingV3>;
371
- getBooking(bookingId: string): Promise<BookingInfoV3>;
371
+ getBooking(bookingId: string, key?: string): Promise<BookingInfoV3>;
372
372
  getGuests(): Promise<GuestV3[]>;
373
373
  getGuest(guestId: number): Promise<GuestV3>;
374
374
  getGuestBookings(guestId: number): Promise<GuestBookingV3[]>;
@@ -99,13 +99,13 @@ class LiteApiClientV3 {
99
99
  })).data.data;
100
100
  });
101
101
  }
102
- getBooking(bookingId) {
102
+ getBooking(bookingId, key) {
103
103
  return __awaiter(this, void 0, void 0, function* () {
104
104
  return (yield (0, axios_1.default)({
105
105
  method: 'get',
106
106
  url: `${this.bookingBaseUrl}/v3.0/bookings/${bookingId}`,
107
107
  headers: {
108
- 'X-API-Key': this.apiKey,
108
+ 'X-API-Key': key || this.apiKey,
109
109
  'content-type': 'application/json',
110
110
  },
111
111
  })).data.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.1.65",
3
+ "version": "1.1.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",