@openfin/core 30.73.12 → 30.73.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/shapes/protocol.d.ts +30 -25
package/package.json
CHANGED
package/src/shapes/protocol.d.ts
CHANGED
|
@@ -15,18 +15,27 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
15
15
|
} & OpenFin.ApplicationIdentity;
|
|
16
16
|
response: void;
|
|
17
17
|
};
|
|
18
|
-
'get-view-window': {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
18
|
+
'get-view-window': IdentityCall<{}, OpenFin.Identity>;
|
|
19
|
+
'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
|
|
20
|
+
uuid: string;
|
|
21
|
+
}>;
|
|
22
|
+
'destroy-view': IdentityCall;
|
|
23
|
+
'attach-view': IdentityCall<{
|
|
24
|
+
target: OpenFin.Identity;
|
|
25
|
+
}>;
|
|
26
|
+
'set-view-bounds': IdentityCall<{
|
|
27
|
+
bounds: OpenFin.Bounds;
|
|
28
|
+
}>;
|
|
29
|
+
'get-view-bounds': IdentityCall<{}, OpenFin.Bounds>;
|
|
30
|
+
'get-view-info': IdentityCall<{}, OpenFin.ViewInfo>;
|
|
31
|
+
'get-view-options': IdentityCall<{}, OpenFin.ViewOptions>;
|
|
32
|
+
'hide-view': IdentityCall;
|
|
33
|
+
'show-view': IdentityCall;
|
|
34
|
+
'update-view-options': IdentityCall<{
|
|
35
|
+
options: OpenFin.UpdatableViewOptions;
|
|
36
|
+
}>;
|
|
37
|
+
'trigger-before-unload': IdentityCall<{}, boolean>;
|
|
38
|
+
'window-get-views': IdentityCall<{}, OpenFin.Identity[]>;
|
|
30
39
|
'launch-manifest': {
|
|
31
40
|
request: {
|
|
32
41
|
manifestUrl: string;
|
|
@@ -64,10 +73,7 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
64
73
|
};
|
|
65
74
|
response: void;
|
|
66
75
|
};
|
|
67
|
-
'close-popup-menu':
|
|
68
|
-
request: OpenFin.Identity;
|
|
69
|
-
response: void;
|
|
70
|
-
};
|
|
76
|
+
'close-popup-menu': IdentityCall;
|
|
71
77
|
'fdc3-add-context-listener': VoidCall;
|
|
72
78
|
'fdc3-broadcast': VoidCall;
|
|
73
79
|
'fdc3-get-system-channels': VoidCall;
|
|
@@ -113,12 +119,9 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
113
119
|
};
|
|
114
120
|
response: OpenFin.PopupResult;
|
|
115
121
|
};
|
|
116
|
-
'dispatch-popup-result': {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
response: void;
|
|
121
|
-
};
|
|
122
|
+
'dispatch-popup-result': IdentityCall<{
|
|
123
|
+
data: any;
|
|
124
|
+
}>;
|
|
122
125
|
'render-overlay': {
|
|
123
126
|
request: {
|
|
124
127
|
bounds: OpenFin.Bounds;
|
|
@@ -143,10 +146,12 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
143
146
|
response: OpenFin.PrinterInfo[];
|
|
144
147
|
};
|
|
145
148
|
}
|
|
146
|
-
declare type
|
|
147
|
-
request:
|
|
148
|
-
response:
|
|
149
|
+
declare type ApiCall<Request, Response> = {
|
|
150
|
+
request: Request;
|
|
151
|
+
response: Response;
|
|
149
152
|
};
|
|
153
|
+
declare type VoidCall = ApiCall<void, void>;
|
|
154
|
+
declare type IdentityCall<AdditionalPayload = {}, Response = void> = ApiCall<AdditionalPayload & OpenFin.Identity, Response>;
|
|
150
155
|
interface ProtocolMapBase {
|
|
151
156
|
[action: string]: {
|
|
152
157
|
request: any;
|