Classes
Members
BookingAuthenticationConfig
# BookingAuthenticationConfig
Creates an instance of BookingAuthenticationConfig.
MPBooking
# MPBooking
Create a MPBooking object. MPBooking represents an existing booking object or a booking to be made. bookingId will be non-null for an existing booking, and null for a booking to be made.
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 | 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 |
Array.<MPBooking>
# 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> |