/*
e.data type ConsumerMessageEventData {
source: 'upflowy-consumer-app';
type: 'SUBMIT' | 'DISMISS' | 'BACK' | 'REDIRECT' | 'FLOW_READY' | 'FLOW_TRIGGER' | 'FLOW_INSERT' | 'STATE_ENTER';
containerId: string; // useful when using remote config
flowId: string;
redirectUrl?: string; // relevant when type === 'REDIRECT'
step?: { id: string; };
nextStep?: { type: StateMetaType; };
state: string;
data: unknown;
}
example:
{
"flowId": "xxxxxx",
"state": "e37033da-b1f4-47f5-9daf-22409b7e7e7d",
"type": "STATE_ENTER",
"redirectUrl": "",
"nextStep": {
"type": "fullpage"
},
"data": {},
"source": "upflowy-consumer-app",
"containerId": ""
}
{
"flowId": "xxxxxx",
"type": "SUBMIT",
"step": {
"id": "e37033da-b1f4-47f5-9daf-22409b7e7e7d"
},
"state": "e37033da-b1f4-47f5-9daf-22409b7e7e7d",
"data": {
"user.dropdown_area": "Corporate"
},
"source": "upflowy-consumer-app",
"containerId": ""
}
*/