@wildix/xbees-connect > ConnectClient
ConnectClient interface
Signature:
export interface ConnectClient
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
<T extends EventType = EventType>(eventName: T, callback: Callback<T>) => RemoveEventListener | Starts listen for one of the events of the x-bees and handle with the provided callback | ||
(key: string) => void | Removes data from localStorage | ||
() => Promise<ResponseMessage<ClientEventType.AVAILABLE_CONTACT_DATA>> | Retrieves available contact data from x-bees | ||
() => string | Retrieves url to get back to x-bees app integration | ||
() => Promise<ResponseMessage<ClientEventType.CONTEXT>> | Retrieves current x-bees context data | ||
() => Promise<ResponseMessage<ClientEventType.CURRENT_CONTACT>> | Retrieves current opened in x-bees contact data | ||
() => Promise<ResponseMessage<ClientEventType.CURRENT_CONVERSATION>> | Retrieves current opened in x-bees conversation data or undefined if the conversation is temporary | ||
<Type>(key: string) => Type | null | Retrieves data from localStorage | ||
(key: string) => Promise<ResponseMessage<ClientEventType.GET_FROM_STORAGE>> | Request stored data from x-bees storage | ||
() => string | Retrieves current pbx domain | ||
() => string | Retrieves url for x-bees app which uses integration | ||
() => TechnicalSupport | special object to provide x-bees technical support | ||
() => Promise<ResponseMessage<ClientEventType.THEME>> | Retrieves current theme with mode (light or dark) and theme options like typography settings and palette | ||
() => Promise<ResponseMessage<ClientEventType.THEME_MODE>> | Retrieves current theme mode (light or dark) | ||
() => string | Retrieves current user's email | ||
() => string | null | Retrieves current user's extension | ||
() => string | Retrieves current pbx token | ||
() => Promise<ResponseMessage<ClientEventType.TOKEN>> | Retrieves current x-bees token | ||
() => XBeesUser | null | Retrieves current user's data | ||
() => boolean | Determines x-bees is using this connect for activation/authorization on UI and this call of integration UI should show dialog which leads to integration be activated | ||
() => Promise<ResponseMessage> | pushes to x-bees message that user is authorized and no more actions required | ||
() => boolean | Determines x-bees is using this connect for messages only and this integration will not be shown on UI | ||
() => Promise<ResponseMessage> | pushes to x-bees message that user actions required | ||
() => boolean | Determines application is opened as x-bees child in Browser iFrame or Native WebView | ||
() => boolean | Determines x-bees is running on mobile native platform | ||
() => boolean | Determines x-bees is running on web browser platform | ||
() => boolean | Determines x-bees is using this connect for show dialog of setup flow | ||
() => boolean | Indicates whether the UI iframe with the integration is currently active | ||
(callback: Callback | StorageEventCallback) => void | Removes particular callback from handling events | ||
(callback: Callback<EventType.TERMINATE_CALL>) => RemoveEventListener | Starts listen for the events of ending the call and handle with the provided callback | ||
(callback: Callback<EventType.ADD_CALL>) => RemoveEventListener | Starts listen for the events of starting the call and handle with the provided callback | ||
(callback: Callback<EventType.LOGOUT>) => RemoveEventListener | starts listen on logout event and send event to the x-bees about logout able | ||
(callback: (query: ContactQuery, resolve: LookupAndMatchContactsResolver, reject: Reject) => void) => RemoveEventListener | Starts listen for the events of searching contact info and handle match with the provided callback | ||
(callback: Callback<EventType.PBX_TOKEN>) => RemoveEventListener | Starts listen for the events of changing pbx token and handle with the provided callback | ||
(callback: Callback<EventType.REDIRECT_QUERY>) => RemoveEventListener | Starts listen for redirect query message which fires when user opens app with deeplink to integration | ||
(listener: StorageEventCallback) => () => void | listens on localStorage | ||
(callback: (query: string, resolve: SuggestContactsResolver, reject: Reject) => void) => RemoveEventListener | Starts listen for the events of searching contacts and handle autosuggestion with the provided callback | ||
(callback: Callback<EventType.USE_THEME>) => RemoveEventListener | Starts listen for the events of changing theme and handle with the provided callback | ||
(callback: Callback<EventType.VISIBILITY>) => RemoveEventListener | Starts listen for the events of changing iframe activity and handle with the provided callback | ||
(props?: SupportedPlatformVariant | ReadyExtendedProps) => Promise<ResponseMessage> | Sends to x-bees signal that iFrame is ready to be shown. iFrame should send it when the application starts and ready | ||
() => Promise<ResponseMessage> | Sends request to x-bees to restart the iFrame, reload with actual params and token | ||
<T extends EventType = EventType>(eventName: T, callback: Callback<T>) => void | Stops listen for one of the events of the x-bees with this particular callback | ||
(key: string) => void | Remove data from x-bees storage | ||
<SavingType>(key: string, value: SavingType) => void | Send data to save in x-bees storage | ||
<SavingType>(key: string, value: SavingType) => void | saves data to localStorage | ||
(eventName: string, params?: Record<string, string>) => void | send analytics data to x-bees for track into analytics data | ||
(integrationKey: string) => void | Set parent integration key to switch to parent integration localStorage data | ||
(payload: IPayloadViewPort) => Promise<ResponseMessage> | Sends request to x-bees about current frame size change | ||
() => boolean | Determines x-bees is using this connect for representation on UI and this integration will be shown on UI this opposite to | ||
(message: string, severity?: ToastSeverity) => Promise<ResponseMessage> | Sends message to x-bees to be shown as a toast with specified severity level | ||
(phoneNumber: string) => Promise<ResponseMessage> | Sends request to x-bees to start a call with the number | ||
(payload: string) => Promise<ResponseMessage> | Sends request to x-bees to put string to the users clipboard | ||
() => string | Retrieves the version of xBeesConnect |
Methods
Method | Description |
---|---|
Sends notification to x-bees about contact match was updated | |
Sends notification to x-bees about contact data updated |