Comparing version 0.6.2 to 0.6.3
@@ -364,4 +364,24 @@ import { Tasks } from "../models"; | ||
confirm(id: string): Promise<void>; | ||
/** | ||
* Get the components which are part of the booking | ||
* | ||
* @param bookingId Booking ID | ||
* @returns List of booking components | ||
*/ | ||
components(bookingId: number): Promise<BookingComponentListEntry[]>; | ||
/** | ||
* Get details of a single component of a booking | ||
* | ||
* @param bookingId Booking ID | ||
* @param componentId Component ID | ||
* @returns Component Details | ||
*/ | ||
component(bookingId: number, componentId: number): Promise<BookingComponent>; | ||
/** | ||
* Get the passengers on a booking | ||
* | ||
* @param id Booking ID | ||
* @returns List of passengers | ||
*/ | ||
passengers(id: number): Promise<Passenger[]>; | ||
} |
@@ -183,2 +183,8 @@ "use strict"; | ||
} | ||
/** | ||
* Get the components which are part of the booking | ||
* | ||
* @param bookingId Booking ID | ||
* @returns List of booking components | ||
*/ | ||
components(bookingId) { | ||
@@ -189,2 +195,9 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
/** | ||
* Get details of a single component of a booking | ||
* | ||
* @param bookingId Booking ID | ||
* @param componentId Component ID | ||
* @returns Component Details | ||
*/ | ||
component(bookingId, componentId) { | ||
@@ -195,4 +208,15 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
/** | ||
* Get the passengers on a booking | ||
* | ||
* @param id Booking ID | ||
* @returns List of passengers | ||
*/ | ||
passengers(id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return (yield this.axios.get(`/sales/reservations/${id}/passengers`)).data; | ||
}); | ||
} | ||
} | ||
exports.Api = Api; | ||
//# sourceMappingURL=reservations.js.map |
{ | ||
"name": "tigerbay", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "API Client library for TigerBay", | ||
@@ -5,0 +5,0 @@ "main": "lib/client.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77485
1907