forked from symphonyoss/ContainerJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssf.ts
46 lines (40 loc) · 1.27 KB
/
ssf.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
import {SystemAPI} from "./system";
import {WindowsAPI} from "./windows";
import {MessagesAPI} from "./messages";
import {NotificationsAPI} from "./notifications";
import {ApplicationAPI} from "./application";
import {SSFInfo} from "./info";
/**
* Describes the ssf object as exposed to clients applications
*
* SSF object groups different APIs, where specific API methods can be accessed using the corresponding sub-object, e.g.
* to access window management API :
*
* ssf.windows.open({name:'search', url: 'http://google.com'});
*/
export interface SSF {
/**
* Window management API - create, discover and manage windows
*/
windows: WindowsAPI;
/**
* Messaging API - communicate with other windows
*/
messages: MessagesAPI;
/**
* Notifications API - publish notifications to the user
*/
notifications: NotificationsAPI;
/**
* Application API - access application specific information
*/
application: ApplicationAPI;
/**
* System API - access system specific stuff,e.g. display information, user activity, os information...
*/
system : SystemAPI;
/**
* Info API - general info about the API and the host container
*/
info: SSFInfo;
}