-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathLoader.ts
More file actions
33 lines (29 loc) · 860 Bytes
/
Loader.ts
File metadata and controls
33 lines (29 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { DesktopAgent, WebDesktopAgentType } from '@finos/fdc3-standard';
import { GetAgentParams } from '@finos/fdc3-standard';
/**
* Represents the common interface for a loading strategy
*/
export interface Loader {
/**
* Promise will either resolve to a DesktopAgent or reject with an error
*/
get(options: GetAgentParams): Promise<DesktopAgentSelection>;
cancel(): Promise<void>;
name: string;
}
/** Specific partial of DesktopAgentDetails defining the details that Loaders
* must return with a DesktopAgent to be put into SessionStorage at the end
* of the process.
*/
export interface DesktopAgentSelection {
agent: DesktopAgent;
details: {
agentType: WebDesktopAgentType;
identityUrl: string;
actualUrl: string;
agentUrl?: string;
appId: string;
instanceId: string;
instanceUuid: string;
};
}