FrigadeConfig
string
The Flow’s ID.
boolean
Whether the Flow is completed or not.
boolean
Whether the Flow has been skipped or not.
boolean
Whether the Flow is started or not.
StatefulFlow
The raw metadata of the Flow. Contains all properties defined in the Flow’s YAML config as well as the current state of the Flow.
Generally this should only be used when building custom components to access custom high-level props on the Flow.
Map
<string
, FlowStep
>
Ordered map of the Steps in the Flow.
See Flow Step Definition for more information.
Optional
subtitle: string
The user-facing description of the Flow, if defined at the top level of the YAML config.
Optional
title: string
The user-facing title of the Flow, if defined at the top level of the YAML config.
FlowType
The type of the Flow such as TOUR
or CHECKLIST
.
get
isVisible(): boolean
Whether the Flow is visible to the user based on the current user/group’s state.
This function will return false
if the user has already completed or dismissed the Flow or if the user
does not match the Flow’s targeting/audience.
set
isVisible(visible
): void
Parameters
Name | Type |
---|---|
visible | boolean |
variables
): void
Apply variables to the flow. This will replace any ${variable}
in the title, subtitle, and step fields with the value of the variable.
Parameters
Name | Type | Description |
---|---|---|
variables | Record <string , any > | A record of variables to apply to the flow. |
properties?
): Promise
<void
>
Navigates the flow to the previous step if one exists. This will mark that step started, but will not complete the previous step.
Parameters
Name | Type |
---|---|
properties? | PropertyPayload |
properties?
): Promise
<void
>
Marks the flow completed
Parameters
Name | Type |
---|---|
properties? | PropertyPayload |
properties?
): Promise
<void
>
Navigates the flow to the next step if one exists. This will mark that step started, but will not complete the previous step.
Parameters
Name | Type |
---|---|
properties? | PropertyPayload |
FlowStep
Gets current step. If the current step is not visible, it will return the first visible step after it.
If no steps are visible, it will return undefined.
number
Get the index of the current step. Starts at 0
number
Returns the current step’s order based on the number of available steps.
Works similar to getCurrentStepIndex but takes into account hidden steps due to visibilityCriteria.
number
Get the number of available steps for the current user in the current flow. This is the number of steps that are not hidden.
number
Get the number of completed steps for the current user in the current flow
number
Get the progress of the flow as a number between 0 and 1. Useful when rendering a progress bar.
index
): FlowStep
Get a step by index
Parameters
Name | Type |
---|---|
index | number |
callback?
): void
Parameters
Name | Type |
---|---|
callback? | CollectionsRegistryCallback |
void
Reload the Flow data from the server
Promise
<void
>
Restarts the flow/marks it not started
action
, data?
, stepId?
): Promise
<void
>
Parameters
Name | Type |
---|---|
action | FlowActionType |
data? | PropertyPayload |
stepId? | string |
properties?
): Promise
<void
>
Marks the flow skipped
Parameters
Name | Type |
---|---|
properties? | PropertyPayload |
properties?
): Promise
<void
>
Marks the flow started
Parameters
Name | Type |
---|---|
properties? | PropertyPayload |
void
View definition