Skip to main content

Namespace: types

clients.Interop.types

Type Aliases

AuthenticationToken

Ƭ AuthenticationToken: Object

Type declaration

NameType
metaAppMetadata
signatureStringstring
signatureStringType"dynamic" | "static" | "static-jwt" | "unauthenticated"
timestamp?number

ContextAny

Ƭ ContextAny: Context & { [data: string]: any; }


ContextMap

Ƭ ContextMap: Object

Index signature

[contextType: string]: { context: ContextAny ; senderUuid: string }


IntentResolverHandler

Ƭ IntentResolverHandler: (choices: IntentTargetList) => Promise<ResolverResolution>

Type declaration

▸ (choices): Promise<ResolverResolution>

Parameters
NameType
choicesIntentTargetList
Returns

Promise<ResolverResolution>


IntentTargetList

Ƭ IntentTargetList: Object

Type declaration

NameType
originatingAppId?string
originatingAppName?string
originatingAppWindow?string
resolutionListResolutionList[]

InteropAddAppDefinitions

Ƭ InteropAddAppDefinitions: Object

Type declaration

NameType
metaInteropMeta
payload{ apps: { [appName: string]: AppDefinition; } }
payload.apps{ [appName: string]: AppDefinition; }
type"addAppDefinitions"

InteropBroadcast

Ƭ InteropBroadcast: Object

Type declaration

NameType
metaInteropMeta & { channel?: string ; targetSubscriberId?: string }
payload{ context: ContextAny }
payload.contextContextAny
type"broadcast"

InteropCurrentContext

Ƭ InteropCurrentContext: Object

Type declaration

NameType
metaInteropMeta
payload{ context: Context | null }
payload.contextContext | null
type"currentContext"

InteropCurrentContextRequest

Ƭ InteropCurrentContextRequest: Object

Type declaration

NameType
metaInteropMeta & { channel?: string }
payload{ contextType?: string }
payload.contextType?string
type"currentContextRequest"

InteropFindIntentRequest

Ƭ InteropFindIntentRequest: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context ; intent: string }
payload.context?Context
payload.intentstring
type"findIntent"

InteropFindIntentResponse

Ƭ InteropFindIntentResponse: Object

Type declaration

NameType
metaInteropMeta
payload{ appIntent?: AppIntent ; error?: ResolveError | null }
payload.appIntent?AppIntent
payload.error?ResolveError | null
type"findIntentResponse"

InteropFindIntentsByContext

Ƭ InteropFindIntentsByContext: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context }
payload.context?Context
type"findIntentsByContext"

InteropGetCurrentChannels

Ƭ InteropGetCurrentChannels: Object

Type declaration

NameType
metaInteropMeta
type"getCurrentChannels"

InteropGetCurrentChannelsResponse

Ƭ InteropGetCurrentChannelsResponse: Object

Type declaration

NameType
meta?InteropMeta
payload{ data?: { channel: string }[] ; error?: string }
payload.data?{ channel: string }[]
payload.error?string
type"interopGetCurrentChannelsResponse"

InteropGetSystemChannels

Ƭ InteropGetSystemChannels: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context ; target: TargetApp }
payload.context?Context
payload.targetTargetApp
type"open"

InteropHeartbeat

Ƭ InteropHeartbeat: Object

Type declaration

NameType
metaInteropMeta
type"heartbeat"

InteropIntent

Ƭ InteropIntent: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context ; intent: string }
payload.context?Context
payload.intentstring
type"intent"

InteropIntentsList

Ƭ InteropIntentsList: Object

Type declaration

NameType
metaInteropMeta
payload{ error?: ResolveError | null ; intents: AppIntent[] }
payload.error?ResolveError | null
payload.intentsAppIntent[]
type"intentsList"

InteropJoinChannels

Ƭ InteropJoinChannels: Object

Type declaration

NameType
metaInteropMeta
payload{ channels: string[] }
payload.channelsstring[]
type"joinChannels"

InteropLeaveChannels

Ƭ InteropLeaveChannels: Object

If payload.channnels is omitted then all joined channels are removed.

Type declaration

NameType
metaInteropMeta
payload{ channels?: string[] }
payload.channels?string[]
type"leaveChannels"

InteropMessage

Ƭ InteropMessage: InteropRegister | InteropUnregister | InteropBroadcast | InteropSystemChannels | InteropSystemChannelRequest | InteropCurrentContextRequest | InteropCurrentContext | InteropOpenRequest | InteropOpenResponse | InteropFindIntentRequest | InteropFindIntentResponse | InteropFindIntentsByContext | InteropHeartbeat | InteropIntent | InteropIntentsList | InteropJoinChannels | InteropLeaveChannels | InteropRaiseIntent | InteropRaiseIntentResponse | InteropSubscribeContext | InteropUnsubscribeContext | InteropSubscribeIntent | InteropUnsubscribeIntent | InteropAddAppDefinitions | InteropRemoveAppDefinitions | InteropGetCurrentChannels | InteropGetCurrentChannelsResponse | InteropRegisterUIResolver | InteropSetRegistrationData


InteropMeta

Ƭ InteropMeta: Object

The following are the Flux Standard Actions (FSA) that are exchanged between the Desktop Agent and the Interop Server.

Type declaration

NameType
authenticatedTransport?object
href?string
path?string
routerOrigin?string
uuidstring

InteropOpenRequest

Ƭ InteropOpenRequest: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context ; target: TargetApp }
payload.context?Context
payload.targetTargetApp
type"open"

InteropOpenResponse

Ƭ InteropOpenResponse: Object

Type declaration

NameType
meta?InteropMeta
payload{ error?: OpenError }
payload.error?OpenError
type"openResponse"

InteropRaiseIntent

Ƭ InteropRaiseIntent: Object

Type declaration

NameType
metaInteropMeta
payload{ context?: Context ; intent?: string ; target?: TargetApp }
payload.context?Context
payload.intent?string
payload.target?TargetApp
type"raiseIntent"

InteropRaiseIntentResponse

Ƭ InteropRaiseIntentResponse: Object

Type declaration

NameType
meta?InteropMeta
payload{ data?: IntentResolution ; error?: ResolveError | null }
payload.data?IntentResolution
payload.error?ResolveError | null
type"intentResolution"

InteropRegister

Ƭ InteropRegister: Object

Type declaration

NameType
metaInteropMeta
payload{ authenticationToken: AuthenticationToken ; clientChannel: string ; windowName: string }
payload.authenticationTokenAuthenticationToken
payload.clientChannelstring
payload.windowNamestring
type"register"

InteropRegisterUIResolver

Ƭ InteropRegisterUIResolver: Object

Type declaration

NameType
metaInteropMeta
type"registerUIResolver"

InteropRemoveAppDefinitions

Ƭ InteropRemoveAppDefinitions: Object

Type declaration

NameType
metaInteropMeta
payload{ apps: string[] }
payload.appsstring[]
type"removeAppDefinitions"

InteropSetRegistrationData

Ƭ InteropSetRegistrationData: Object

Type declaration

NameType
metaInteropMeta
payload{ windowDescriptor: WindowDescriptor }
payload.windowDescriptorWindowDescriptor
type"setInteropRegistrationData"

InteropSubscribeContext

Ƭ InteropSubscribeContext: Object

Type declaration

NameType
metaInteropMeta & { channel?: string ; targetSubscriberId?: string }
payload{ contextType: ContextType }
payload.contextTypeContextType
type"subscribeContext"

InteropSubscribeIntent

Ƭ InteropSubscribeIntent: Object

Type declaration

NameType
metaInteropMeta
payload{ intent: string }
payload.intentstring
type"subscribeIntent"

InteropSystemChannelRequest

Ƭ InteropSystemChannelRequest: Object

Type declaration

NameType
metaInteropMeta
type"systemChannelRequest"

InteropSystemChannels

Ƭ InteropSystemChannels: Object

Type declaration

NameType
metaInteropMeta
payload{ channels: string[] }
payload.channelsstring[]
type"systemChannels"

InteropType

Ƭ InteropType: Member<InteropMessage, "type">


InteropUnregister

Ƭ InteropUnregister: Object

Type declaration

NameType
metaInteropMeta
type"unregister"

InteropUnsubscribeContext

Ƭ InteropUnsubscribeContext: Object

Type declaration

NameType
metaInteropMeta & { channel?: string }
payload{ contextType?: ContextType }
payload.contextType?ContextType
type"unsubscribeContext"

InteropUnsubscribeIntent

Ƭ InteropUnsubscribeIntent: Object

Type declaration

NameType
metaInteropMeta
payload{ intent: string }
payload.intentstring
type"unsubscribeIntent"

Member

Ƭ Member<T, K>: T[K]

Type parameters

NameType
TT
Kextends keyof T

MultiMap

Ƭ MultiMap<T>: Record<string, T[]>

Type parameters

Name
T

ResolutionCandidate

Ƭ ResolutionCandidate: Object

Type declaration

NameType
appIdstring
metaAppMetadata
uuid?string
windowName?string

ResolutionList

Ƭ ResolutionList: Object

A list of intent resolutions that are possible for a given intent and optional context.

Arrays of Resolutionlist's are used in raiseIntent to deal with the raiseIntentByContext, which might result in several resolution lists (one list for each possible intent that is associated with the requested context).

For instance, raiseIntentByContext({"symbol" : "IBM"}) could result in: contetType("symbol") => intent("Quote") => QuotesApp, RFQApp, ... contetType("symbol") => intent("News") => NewsApp, TwitterApp, ... contetType("symbol") => intent("Chart") => ChartApp, SnapshotChartApp, ...

Type declaration

NameType
context?ContextAny
intent{ displayName: string ; name: string }
intent.displayNamestring
intent.namestring
launchableAppsResolutionCandidate[]
openAppsResolutionCandidate[]

ResolverResolution

Ƭ ResolverResolution: Object

Type declaration

NameType
error?ResolveError
intent?string
originatingAppId?string
originatingAppName?string
originatingAppWindow?string
selectedApp?AppMetadata
windowName?string

Variables

AnonymousAuthenticationToken

Const AnonymousAuthenticationToken: AuthenticationToken


GLOBAL_CHANNEL

Const GLOBAL_CHANNEL: "global"


INTENT_RESOLVER_CHANNEL

Const INTENT_RESOLVER_CHANNEL: "FSBL.FDC3.intent.resolver"


SERVER_CHANNEL

Const SERVER_CHANNEL: "FSBL.FDC3.Interop.Server"

Functions

concatNoDups

concatNoDups(arr, item): any[]

Concats an item to an array, eliminating any dups, and creating the array if it is null or undefined

Parameters

NameType
arrundefined | null | any[]
itemany

Returns

any[]


errorAsString

errorAsString(err): string

Parameters

NameType
errany

Returns

string


mmAdd

mmAdd(records, index, handler): any[]

MultiMap add

Parameters

NameType
recordsMultiMap<any>
indexstring
handlerany

Returns

any[]


mmRemove

mmRemove(records, index, handler): any[]

MultiMap remove

Parameters

NameType
recordsMultiMap<any>
indexstring
handlerany

Returns

any[]