UNPKG

@twilio/flex-ui

Version:

Twilio Flex UI

48 lines (47 loc) 1.45 kB
import { Profile } from "../../flex-ui-core/src"; export declare enum ProfileConnectorState { Good = 0, NoIdentifiers = 1, NoTraits = 2, Initializing = 3 } export declare enum ViewType { Loading = 0, LoadingIdentifiers = 1, LoadingTraits = 2, ProfileNotFound = 3, Profile = 4, Search = 5 } export declare enum ProfileConnectorLoadingTemplates { LoadingIdentifiers = "ProfileLoadingIdentifiers", LoadingTraits = "ProfileLoadingTraits", LoadingProfile = "ProfileSearchLoading", Loading = "ProfileSearchLoading" } export declare enum ProfileConnectorKeys { PhoneNumber = "phone_number", EmailAddress = "email_address" } export declare enum ErrorMessages { Error = "Error. ", ProfileSearchError = "Could not load search results.", ProfileLoadingIdentifiersError = "Could not load identifiers", ProfileLoadingTraitsError = "Could not load traits", ProfileErrorRefresh = "Retry", ConnectorNotConfiguredErrorTitle = "Unable to display profile. ", ConnectorNotConfiguredErrorText = "Contact your IT team to check the Segment connection for this account." } export type ProfileConnectorError = { code?: number; }; export interface IdentifierOption { label: string | undefined; value: string | undefined; trait: keyof Profile | undefined; } export declare enum ErrorDirectory { NotConfigured = 45004, ProfileNotFound = 20404, SDKError = 400 }