Event
Events in GitBook occur when specific actions occur in a GitBook Space or environment. Your integration can tap into these events, read information about them, and dispatch actions as they occur.
They are declared within the createIntegration
call, and should return async callback functions for the events you would like to listen to.
Example:
Reference
The following events can be read on the event
object passed into the arguments of the callback functions run when the event occurs.
installation_setup
installation_setup
Event received when integration has been installed or updated.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| The id of the installation event |
| The status of the installation event |
space_installation_setup
space_installation_setup
Event received when integration has been installed or updated on a space.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| The id of the installation event |
| The id of the space the installation event occured in |
| The status of the installation event |
space_view
space_view
Event received when a page has been visited.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| |
|
|
| |
|
ui_render
ui_render
Event generated when rendering a UI
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
|
|
| |
| |
| |
| |
|
space_content_updated
space_content_updated
Event when the primary content of a space has been updated.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
space_visibility_updated
space_visibility_updated
Event when the visibility of the space has been changed.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| |
|
space_gitsync_completed
space_gitsync_completed
Event when a GitSync operation has been completed.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| |
| |
|
space_gitsync_started
space_gitsync_started
Event when a GitSync operation has been started.
Key | Description |
---|---|
| The id of the event |
| The type of event fired |
| |
|
Last updated