forked from finos/FDC3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntentSupport.ts
More file actions
15 lines (14 loc) · 762 Bytes
/
IntentSupport.ts
File metadata and controls
15 lines (14 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { AppIdentifier, AppIntent, IntentHandler, IntentResolution, Listener } from '@finos/fdc3-standard';
import { Context } from '@finos/fdc3-context';
export interface IntentSupport {
findIntent(intent: string, context: Context, resultType: string | undefined): Promise<AppIntent>;
findIntentsByContext(context: Context): Promise<AppIntent[]>;
raiseIntent(intent: string, context: Context, app?: AppIdentifier): Promise<IntentResolution>;
raiseIntentForContext(context: Context, app?: AppIdentifier): Promise<IntentResolution>;
addIntentListener(intent: string, handler: IntentHandler): Promise<Listener>;
addIntentListenerWithContext(
intent: string,
contextType: string | string[],
handler: IntentHandler
): Promise<Listener>;
}