Skip to content

Callbacks

To learn more about our Callback system, check the article in the Bridge documentation.

The following callbacks are available to call.

Server sided

canFetchGarageAccess

Callback name: rn-garages:server:canFetchGarageAccess

Checks if someone is allowed to fetch garage access.

Returns: Promise<boolean|WhereOptions> (Where options is a object with SQL where clauses for Sequelize)

Arguments

Argument Type Description
configTab string The config tab being accessed.
garageIdOrValues (optional) number | Record<string, ConfigScreenRecord> | undefined The garage id or config values, depending on the request.

allowedToManageConfigScreen

Callback name: rn-garages:server:allowedToManageConfigScreen

Checks if source is allowed to open the manage config screen.

Returns: boolean | Promise<boolean>