@openfin/bloomberg
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
{ | ||
"name": "@openfin/bloomberg", | ||
"description": "Connect apps running in OpenFin with the Bloomberg Terminal.", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"author": "OpenFin Inc.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://www.openfin.co/", |
import type OpenFin from '@openfin/core'; | ||
import { BloombergAdapter } from './adapter.types'; | ||
export declare const channelExists: (channelName: string) => Promise<boolean>; | ||
export declare const downloadAdapterPackage: () => Promise<void>; | ||
export declare const init: (adapterLoggingEnabled?: boolean) => Promise<BloombergAdapter>; | ||
export declare const logMessageTopicHandler: OpenFin.ChannelAction; | ||
export declare const subscriptionEventTopicHandler: OpenFin.ChannelAction; | ||
export declare const useExistingAdapterPackage: () => Promise<boolean>; |
@@ -1,2 +0,2 @@ | ||
import type OpenFin from '@openfin/core'; | ||
import type * as fdc3 from '@finos/fdc3'; | ||
import { DispatchChannelClientMessage } from '../adapter/adapter.types'; | ||
@@ -6,8 +6,9 @@ import { ApiError } from '../errors/errors'; | ||
import { BloombergPanel, TerminalConnectSubscription } from './bloomberg.types'; | ||
export declare const subscriptions: Map<string, TerminalConnectSubscription>; | ||
export declare const DEFAULT_TARGET: BloombergPanel; | ||
export declare const createGroupEventsSubscription: (dispatchAdapterMessage: DispatchChannelClientMessage, groupFilter: string | string[], onContextChanged?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => Promise<TerminalConnectSubscription | undefined>; | ||
export declare const unsubscribeGroupEvents: (dispatchAdapterMessage: DispatchChannelClientMessage, subscriptionId: string) => () => Promise<void>; | ||
export declare const getBloombergGroupEventListener: (onGroupEvent?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => (context: OpenFin.Context) => Promise<void>; | ||
export declare const getBloombergGroupEventListener: (onGroupEvent?: ((context: unknown) => void) | undefined, onError?: ((error: ApiError) => void) | undefined) => (context: fdc3.Context) => Promise<void>; | ||
export declare const handleGroupEvent: (subscriptionId: string, data: TC.TerminalConnectGroupEvent) => Promise<void>; | ||
export declare const getGroupIdsFromFilter: (dispatchAdapterMessage: DispatchChannelClientMessage) => (groupFilter: string | string[]) => Promise<number[] | undefined>; | ||
export declare const updateGroupSecurity: (dispatchAdapterMessage: DispatchChannelClientMessage) => (groupFilter: string, security?: string) => Promise<void>; |
@@ -1,2 +0,2 @@ | ||
import type OpenFin from '@openfin/core'; | ||
import type * as fdc3 from '@finos/fdc3'; | ||
/** | ||
@@ -18,3 +18,3 @@ * Bloomberg security market sector. | ||
id: string; | ||
listener: (context: OpenFin.Context) => Promise<void>; | ||
listener: (context: fdc3.Context) => Promise<void>; | ||
}; |
@@ -80,4 +80,4 @@ import { BloombergPanel, TerminalConnectService } from '../bloomberg/bloomberg.types'; | ||
securities?: string[]; | ||
/** Tails to be used with the mnemonic/function. */ | ||
tails?: string; | ||
/** Tail to be used with the mnemonic/function. */ | ||
tail?: string; | ||
/** The Terminal panel ID that will handle the command. */ | ||
@@ -84,0 +84,0 @@ target: BloombergPanel | string; |
@@ -19,10 +19,2 @@ /** | ||
/** | ||
* Error class used when the calling app has not been registered with Bloomberg to use the Terminal Connect API. | ||
* | ||
* @group Errors | ||
*/ | ||
export declare class AppNotAuthorizedError extends ApiError { | ||
constructor(message?: string, data?: unknown); | ||
} | ||
/** | ||
* Describes errors thrown when initializing adapter. | ||
@@ -55,10 +47,2 @@ * | ||
/** | ||
* Error class used when Bloomberg Terminal returns an error when attempting to run a function. | ||
* | ||
* @group Errors | ||
*/ | ||
export declare class TerminalCommandError extends ApiError { | ||
constructor(message?: string, data?: unknown); | ||
} | ||
/** | ||
* Error class used when unable to communicate with the local Bloomberg Terminal instance. | ||
@@ -65,0 +49,0 @@ * |
export { BloombergPanel, TerminalConnectService } from './bloomberg/bloomberg.types'; | ||
export { connect } from './connection/connection'; | ||
export { BloombergAction, BloombergActionsConfig, BloombergConnection, BloombergConnectionConfig, BloombergGroupUpdate, BloombergTerminalCommand, ContextActionHandler, ContextActionMap, IntentActionMap, } from './connection/connection.types'; | ||
export { ApiError, AppNotAuthorizedError, InteropError, TerminalCommandError, TerminalConnectionError, } from './errors/errors'; | ||
export { AdapterError, ApiError, InitializationError, InteropError, TerminalConnectionError } from './errors/errors'; | ||
export { disableLogging, enableLogging } from './logger/logger'; | ||
export { TerminalConnectApiTypes } from './terminal-connect/terminal-connect.types'; |
@@ -0,6 +1,20 @@ | ||
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 { BloombergActionsConfig } from '../connection/connection.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>; |
@@ -1,4 +0,4 @@ | ||
import type OpenFin from '@openfin/core'; | ||
export type BloombergApiContext = OpenFin.Context & { | ||
openfinBbgApi: boolean; | ||
import type * as fdc3 from '@finos/fdc3'; | ||
export type BloombergApiContext = fdc3.Context & { | ||
openfinBbgApi?: boolean; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61273
418