UNPKG

@twilio/flex-ui

Version:

Twilio Flex UI

32 lines (31 loc) 1.31 kB
import { Action } from "redux"; import { Config, OutboundConfig, EmailChannelStatus, InsightsProvisionStatus, TeamsContextStatus } from "./AppConfig"; export interface AppConfigAction extends Action { readonly payload: Config; } export interface OutboundEmailAction extends Action { readonly payload: OutboundConfig; } export interface EmailChannelAction extends Action { readonly payload?: EmailChannelStatus; } export interface InsightsProvisionAction extends Action { readonly payload?: InsightsProvisionStatus; } export interface HighChartReadyAction extends Action { readonly payload?: { enabled: boolean; }; } export interface TeamsContextAction extends Action { readonly payload?: TeamsContextStatus; } export declare function reduce(state: Config, action: AppConfigAction | OutboundEmailAction | EmailChannelAction): Config; export declare class Actions { static initConfig(config: Config): void; static fetchOutboundSettings(accountSid: string): Promise<void>; static fetchEmailProvisionStatus(): Promise<EmailChannelStatus>; static fetchConversationalInsightsProvisionStatus(): Promise<InsightsProvisionStatus>; static fetchHighchartLoadingStatus(enabled: boolean): void; static fetchTeamsContextStatus(): Promise<TeamsContextStatus>; }