UNPKG

@openfin/bloomberg

Version:

Connect apps running in OpenFin with the Bloomberg Terminal.

21 lines (20 loc) 2.43 kB
import * as fdc3 from '@finos/fdc3'; import type OpenFin from '@openfin/core'; import { DispatchChannelClientMessage } from '../adapter/adapter.types'; import { Subscription } from '../bloomberg/bloomberg.types'; import { BloombergAction, BloombergActionsConfig, ContextActionHandler, ContextActionMap } from '../connection/connection.types'; import { ApiError } from '../errors/errors'; export declare const executeBloombergAction: (action: BloombergAction, dispatchAdapterMessage: DispatchChannelClientMessage) => Promise<void>; export declare const filterActions: (actions?: BloombergActionsConfig) => BloombergActionsConfig; export declare const getAnalysisContextActionHandler: () => ContextActionHandler; export declare const getChartContextActionHandler: () => ContextActionHandler; export declare const getChatContextActionHandler: () => ContextActionHandler; export declare const getContextHandler: (dispatchAdapterMessage: DispatchChannelClientMessage, actions: ContextActionMap, onContextChanged?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => (context: fdc3.Context | undefined) => Promise<void>; export declare const getContactContextActionHandler: () => ContextActionHandler; export declare const getDefaultActions: () => BloombergActionsConfig; export declare const getInstrumentContextActionHandler: (mnemonic: string) => ContextActionHandler; export declare const getIntentHandler: (dispatchAdapterMessage: DispatchChannelClientMessage, actions?: ContextActionMap, onContextChanged?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => (intent: OpenFin.Intent) => Promise<void>; export declare const getInteropSubscriptions: (dispatchAdapterMessage: DispatchChannelClientMessage, actions?: BloombergActionsConfig, onContextChanged?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => Promise<Subscription[]>; export declare const getNullContextActionHandler: (mnemonic: string) => ContextActionHandler; export declare const getOrganizationContextActionHandler: () => ContextActionHandler; export declare const processContextAction: (dispatchAdapterMessage: DispatchChannelClientMessage, context: fdc3.Context, contextActions: ContextActionMap, onContextChanged?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => Promise<void>;