npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wbb-gladstone

v0.0.12

Published

This integration lets you find activities, generate Deep Link buttons, view booked sessions and cancel bookings using the Gladstone API

Downloads

195

Readme

Responses Provided

Provide a list of the responses provided as part of this integration. This should be a list of response name, and its description. | Response Name | Purpose | |------------|---------| | Gladstone Deep Link | Example of a Response using the Deep Link Handler | | Gladstone Bookings | Example of a Response using the Bookings handler | | Gladstone Authentication | Example of a Response using the Authentication handler. This is also the response used by the handlers that require authentication, to automatically redirect before handling rest of function | | Gladstone Cancel | An example of a Response using the Cancel Booking handler, also the Response used when clicking cancel on a booking found in the Bookings handler | | Gladstone book | The Response used for the in-chat booking choice, that can optionally be displayed using the deep link handler | | gladstone param failure | This Response is shown if one or more required function args/parameters are missing, for example secret and client ids | | Gladstone No Activity | The default Response shown when no activities are found | | gladstone no user | The default response shown when no user is found during authentication | | gladstone booking success | The default response shown when in-chat booking was successful | | gladstone booking failed | The defauls response shown when in-chat booking failed |

Handler Names

The following handler names and their functions are available :

| Handler Name | Purpose | | -------------- | --------------------------------------------------------------------------------------- | | Deep Link | Finds activities and generates deep link buttons to book a session | | Authenticate | Authenticates user, based on membership id, and one other factor, home email by default | | Bookings | Finds users past or future bookings | | Cancel booking | Cancels any one future booking |

Configuration Options

( Provide a list of the configuration options for each of the handlers mentioned above )

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.

Authenticate

| Property | Required | Description | | ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | domain | true | The client subdomain for the endpoint, for example thirdpartyintegration-test in https://thirdpartyintegration-test.gladstonesoftware.cloud/ | | clientId | true | Client id required to authenticate with the api. Should be supplied by Gladstone | | secret | true | Client secret required to authenticate with the api. Should be supplied by Gladstone | | membershipNrField | false | The name of the question where the users membership number is found, defaults to gladstoneMembershipNr | | otherField | false | The name of the question where the users other authentication value is found, defaults to gladstoneHomeEmail | | otherFieldName | false | The user field that the otherField is compared to, must be present in the Gladstone Member Search result, defaults to homeEmail | | nextBlock | false | The Response to display after authentication is successful, if set on the default response, this may override the config set by other handlers | | noUserBlock | false | The Response to display if no users are found, defaults to gladstone-no-user |

Deep Link

| Property | Required | Description | | ------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | domain | true | The client subdomain for the endpoint, for example thirdpartyintegration-test in https://thirdpartyintegration-test.gladstonesoftware.cloud/ | | clientId | true | Client id required to authenticate with the api. Should be supplied by Gladstone | | secret | true | Client secret required to authenticate with the api. Should be supplied by Gladstone | | siteids | false | Comma-separated list of site ids to query activities with, for example WIN,CHE, or a template using %%, for example %%activitySiteForm%% to use forms with similar values | | activity | false | The name of the activity to look for, this can be hardcoded, or set to a template using %%, for example %%activityForm%% to use form values or variables from other integrations. If this is not set, or is set to "none", all activities are returned. Additionally this can be a comma-separated list, which will search for each activity individually and return all results for these. | | fromDate | false | The start date of the activity session, can be set to a template, to use form values or variables from other integrations. | | searchDayLimit | false | Limit of how many days to display sessions for, if you only want the sessions for the specified date and time, set this to 1. If set to 0, all sessions are displayed | | noActivityResponse | false | The Response to display if no activities are found. Defaults to Gladstone No Activity | | activitiesMessage | false | The Message to display preceding the gallery of available activities, defaults to Here is what I've found: | | onlyFirstSession | false | If set, will only display the first available session, this can be useful if another integration has been used to find activities beforehand | | deepLink | false | If set, will display a choice that deep links to Gladstone portal, for the specified activity | | deepLinkChoice | false | The text to display on the deepLink choice, defaults to Book in Gladstone GO | | chatBook | false | If set, will display a choice that books the activity for an authenticated user in the chat | | chatBookChoice | false | The text to display on the chatBook choice, defaults to Book in chat | | bookSuccessResponse | false | The response to display when in-chat booking was successful, defaults to gladstone-booking-success | | bookFailResponse | false | The response to display when in-chat booking failed, defaults to gladstone-booking-failed |

Cancel Booking

| Property | Required | Description | | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | domain | true | The client subdomain for the endpoint, for example thirdpartyintegration-test in https://thirdpartyintegration-test.gladstonesoftware.cloud/ | | clientId | true | Client id required to authenticate with the api. Should be supplied by Gladstone | | secret | true | Client secret required to authenticate with the api. Should be supplied by Gladstone | | bookingIdField | false | The name of the question of argument field containing the booking id, defaults to %%bookingId%%, overriding this in the default Response can cause the Bookings handler cancel option to stop working, as this field is usually supplied by this handler | | cancelSuccessResponse | false | The Response to show once cancellation has gone through successfully, defaults to menu | | cancelFailResponse | false | The Response to show if cancellation failed, defaults to gladstone-no-activities |

Bookings

| Property | Required | Description | | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | domain | true | The client subdomain for the endpoint, for example thirdpartyintegration-test in https://thirdpartyintegration-test.gladstonesoftware.cloud/ | | clientId | true | Client id required to authenticate with the api. Should be supplied by Gladstone | | secret | true | Client secret required to authenticate with the api. Should be supplied by Gladstone | | noBookingsResponse | false | The Response shown if no bookings are found, defaults to gladstone-no-activities | | past | false | If set, this handler finds past bookings, instead of future bookings | | nextResponse | false | If set, adds a choice to continue the conversation with this Respones | | nextResponseChoice | false | The title of the choice added if nextResponse is set, defaults to Continue | | bookingsMessage | false | The message displayed before the gallery of found bookings, defaults to Here are the bookings I could find |

### Creating bookings Using the deep link handler, it is possible to create bookings directly in the chat, at this time this functionality is limited only to members, and activities that has a cost of 0 for that member. This is due to the integration currently not supporting taking payments, or fetching the 3DS challenge necessary for payments. As a side-effect, any bookings created in chat will not be marked as being paid for.