0.0.4 • Published 2 months ago

wbb-imin v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

WBB Imin

This Integration lets you query the Imin database, and display EventSeries, SessionSeries and ScheduledSessions

Blocks Provided

Response NamePurpose
IminExample of a Response, with a set of queries

Handler Names

The following handler names and their functions are available :

Handler NamePurpose
IminThis is the function that queries the Imin database and displays EventSeries, SessionSeries, and ScheduledSession objects

Configuration Options

Within the function there are a number of options that can be set to configure the behaviour of the integration. The tables below show the settings that are available for each handler.

imin

PropertyRequiredDescription
apitrueThe API Key used to access the imin api
startDatefalseThis field is used to find activities that start the beginning of the epsecified date. Best used with a Date question
endDatefalseThis field is used to find activities that end before the end of the day specified date. Best used with a Date question
showSchedulefalseIf set to true, the function will display Schedules for found activities, with upcoming sessions
showSessionsfalseIf set to true, the function will display upcoming Sessions for found activities
hideFullSessionsfalseIf set to true, ScheduledSessions that have no more remaining capacity will not be displayed
hideShowMorefalseIf set to true, will hide the "Show More" button, displayed when more pages are available
showUrlfalseIf set to true, will show a button to the objects URL field, or the URL of the parent if none is found
customUrlfalseIf set, a button with this link will be displayed on all items. This will override any available URL on the objects fetched from the api
urlButtonTextfalseThe text to display on the url button
hideUrlWhenFullfalseIf set to true, when displaying ScheduledSessions, if no remaining capacity remains, the URL button will not be displayed
noItemsResponsefalseThe Response to display if no items are found, defaults to 'menu'
eventsMessagefalseThe message to display before EventsSeries are displayed, this can include templates using the Imin api results, for example %%view.imin:currentPage%%. Defaults to "Here are the available activities. Page %%view.imin:currentPage%% of %%view.imin:totalPages%%"
seriesMessagefalseThe message displayed before displaying the available SessionSeries. This can include templates using the first SessionSeries item. Defaults to "Here are the available schedules."
sessionMessagefalseThe message displayed before displaying the available ScheduledSessions, this can be a template using the first SessionSeries item. Defaults to "Here are the upcoming sessions."

| queries | true | The queries used to find activities, besides startDate and endDate. Both key and value of each field can be a template, for example 'startTime%%beforeOrAfter%%' : '%%timeOfDay%%' |