Classes
Methods
# async cancelBooking(booking) → {Promise}
Cancel a booking.
Parameters:
Name | Type | Description |
---|---|---|
booking |
MPBooking |
Promise
# async getBookableLocations(query) → {Array.<string>}
Get locations that can be booked.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
query |
Object | ||
startTime |
Date | The earlist begining of the booking interval in UTC | |
endTime |
Date | The latest end of the booking interval in UTC | |
venue |
string |
<optional> |
(Optional) The Name of the venue to limit the search to |
building |
string |
<optional> |
(Optional) The id of the building to limit the search to |
floorIndex |
integer |
<optional> |
(Optional) The index of the floor to limit the search to |
category |
string |
<optional> |
(Optional) The key of the Category to limit the search to |
locationType |
string |
<optional> |
(Optional) The AdministrativeId of the location type to limit the search to |
Location ID's
Array.<string>
# async getBookingsUsingQuery(query) → {Array.<MPBooking>}
Get bookings. The given query must include either location or ownerId.
Parameters:
Name | Type | Description |
---|---|---|
query |
Object | |
location |
Location | |
ownerId |
string | |
startTime |
Date | (Optional) The earlist begining of the booking interval in UTC |
endTime |
Date | (Optional) The latest end of the booking interval in UTC |
Array.<MPBooking>
# MPBooking(booking) → {MPBooking}
Create a MPBooking object that can be used to perform or cancel a booking.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
booking |
Object | ||
bookingId |
string |
<optional> |
|
locationId |
string | ||
ownerId |
string | ||
startTime |
string | Date | ||
endTime |
string | Date | ||
participants |
Array.<string> |
<optional> |
|
title |
string |
<optional> |
|
description |
string |
<optional> |
|
managed |
boolean |
<optional> |
MPBooking
# async performBooking(booking) → {MPBooking}
Perform a booking
Parameters:
Name | Type | Description |
---|---|---|
booking |
MPBooking |
MPBooking