Classes
Members
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 |
# async getBookingsUsingQuery(query) → {Array:.<MPBooking:>}
Get bookings. The given query must include either location or ownerId.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
query |
Object
|
||
location |
Location
|
<optional> |
A MapsIndoors location to get bookings for. |
ownerId |
string
|
<optional> |
The id of the user to get bookings for. |
startTime |
Date
|
The earlist begining of the booking interval in UTC | |
endTime |
Date
|
The latest end of the booking interval in UTC |
# async performBooking(booking) → {MPBooking}
Perform a booking
Parameters:
Name | Type | Description |
---|---|---|
booking |
MPBooking
|
MPBooking
# setAuthenticationConfig(confignullable)
Sets the authentication configuration for calling the booking api.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
BookingAuthenticationConfig
|
<nullable> |