import { IProfileConnector } from "../../internal-flex-commons/src"; import { ProfileConnectorInstanceType } from "../../core/FlexDataClient"; import { ITask } from "../../models"; import { TaskContextProps } from "../context"; import { TaskProfileConnectorContextProps } from "../context/ProfileConnectorContext"; export declare enum FlexUnifyContainerChildrenKeys { alert = "alert", loadingView = "loading-view", profileHeaderAndLinkMenu = "profile-header-and-link-menu", profileHighlights = "profile-highlights", profileConnectorTabs = "profile-connector-tabs", profileNotFoundView = "profile-not-found-view", profileUnlinkModal = "profile-unlink-modal", searchView = "search-view", cdpDegradationBanner = "cdp-degradation-banner" } 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",// TODO AIONCUSCON-596 EmailAddress = "email_address" } export type ProfileConnectorError = { code?: number; }; export declare enum ErrorDirectory { NotConfigured = 45004, ProfileNotFound = 20404, SDKError = 400 } export declare enum ErrorType { CONFIG_ERROR = 0, IDENTIFIER_ERROR = 1, TRAIT_ERROR = 2, GENERAL_ERROR = 3 } /** * Properties of FlexUnifyContainer. * @typedef FlexUnifyContainer.FlexUnifyContainerProps */ export interface FlexUnifyContainerProps { } /** * Properties of FlexUnifyContainer. * @typedef {FlexUnifyContainer.FlexUnifyContainerProps} FlexUnifyContainer.FlexUnifyContainerChildrenProps */ export interface FlexUnifyContainerChildrenProps extends TaskContextProps, TaskProfileConnectorContextProps, FlexUnifyContainerProps { } export interface UnlinkTaskProps { view: ViewType; setIsTaskUnlinked: (value: string | undefined) => void; setCurrentView: (view: ViewType) => void; resetProfiles: () => void; resetProfile: () => void; task?: ITask; profileConnector?: IProfileConnector; previousProfileConnectSid?: string; profileConnectorType?: ProfileConnectorInstanceType; } export interface LinkTaskProps { newProfileConnector: IProfileConnector; view: ViewType; task?: ITask; setIsTaskUnlinked: (value: string | undefined) => void; setCurrentView: (view: ViewType) => void; profileConnectorType?: ProfileConnectorInstanceType; }