@openfin/core 25.68.30 → 25.70.2
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/OpenFin.d.ts +30 -826
- package/README.md +12 -2
- package/package.json +1 -1
- package/src/api/application/Factory.d.ts +145 -145
- package/src/api/application/Factory.js +229 -229
- package/src/api/application/Instance.d.ts +301 -302
- package/src/api/application/Instance.js +412 -412
- package/src/api/application/index.d.ts +3 -3
- package/src/api/application/index.js +15 -15
- package/src/api/base.d.ts +43 -43
- package/src/api/base.js +177 -177
- package/src/api/clipboard/index.d.ts +69 -69
- package/src/api/clipboard/index.js +88 -88
- package/src/api/events/application.d.ts +69 -0
- package/src/api/events/application.js +2 -0
- package/src/api/events/base.d.ts +17 -0
- package/src/api/events/base.js +2 -0
- package/src/api/events/channel.d.ts +10 -11
- package/src/api/events/channel.js +2 -2
- package/src/api/events/emitterMap.d.ts +11 -11
- package/src/api/events/emitterMap.js +35 -35
- package/src/api/events/eventAggregator.d.ts +5 -5
- package/src/api/events/eventAggregator.js +43 -43
- package/src/api/events/externalApplication.d.ts +5 -0
- package/src/api/events/externalApplication.js +2 -0
- package/src/api/events/frame.d.ts +9 -0
- package/src/api/events/frame.js +2 -0
- package/src/api/events/globalHotkey.d.ts +10 -0
- package/src/api/events/globalHotkey.js +2 -0
- package/src/api/events/platform.d.ts +18 -0
- package/src/api/events/platform.js +2 -0
- package/src/api/events/system.d.ts +22 -0
- package/src/api/events/system.js +2 -0
- package/src/api/events/view.d.ts +56 -0
- package/src/api/events/view.js +2 -0
- package/src/api/events/webcontents.d.ts +48 -0
- package/src/api/events/webcontents.js +2 -0
- package/src/api/events/window.d.ts +176 -0
- package/src/api/events/window.js +2 -0
- package/src/api/external-application/Factory.d.ts +26 -26
- package/src/api/external-application/Factory.js +40 -40
- package/src/api/external-application/Instance.d.ts +101 -102
- package/src/api/external-application/Instance.js +109 -109
- package/src/api/external-application/index.d.ts +3 -3
- package/src/api/external-application/index.js +15 -15
- package/src/api/fin.d.ts +49 -49
- package/src/api/fin.js +43 -43
- package/src/api/frame/Factory.d.ts +36 -36
- package/src/api/frame/Factory.js +69 -69
- package/src/api/frame/Instance.d.ts +121 -121
- package/src/api/frame/Instance.js +130 -130
- package/src/api/frame/index.d.ts +3 -3
- package/src/api/frame/index.js +15 -15
- package/src/api/global-hotkey/index.d.ts +38 -38
- package/src/api/global-hotkey/index.js +58 -58
- package/src/api/interappbus/channel/channel.d.ts +26 -26
- package/src/api/interappbus/channel/channel.js +77 -77
- package/src/api/interappbus/channel/channels-docs.d.ts +318 -318
- package/src/api/interappbus/channel/channels-docs.js +376 -376
- package/src/api/interappbus/channel/client.d.ts +22 -22
- package/src/api/interappbus/channel/client.js +84 -84
- package/src/api/interappbus/channel/connection-manager.d.ts +28 -28
- package/src/api/interappbus/channel/connection-manager.js +244 -244
- package/src/api/interappbus/channel/index.d.ts +22 -23
- package/src/api/interappbus/channel/index.js +121 -121
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +13 -13
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +73 -73
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +22 -22
- package/src/api/interappbus/channel/protocols/classic/strategy.js +84 -84
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +20 -20
- package/src/api/interappbus/channel/protocols/combined/strategy.js +58 -58
- package/src/api/interappbus/channel/protocols/index.d.ts +44 -44
- package/src/api/interappbus/channel/protocols/index.js +2 -2
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +10 -10
- package/src/api/interappbus/channel/protocols/protocol-manager.js +43 -43
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +23 -23
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +135 -135
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +30 -30
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +131 -131
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +22 -22
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +87 -87
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +13 -13
- package/src/api/interappbus/channel/protocols/strategy-types.js +2 -2
- package/src/api/interappbus/channel/protocols/strategy.d.ts +15 -15
- package/src/api/interappbus/channel/protocols/strategy.js +2 -2
- package/src/api/interappbus/channel/provider.d.ts +31 -31
- package/src/api/interappbus/channel/provider.js +160 -160
- package/src/api/interappbus/index.d.ts +85 -86
- package/src/api/interappbus/index.js +175 -175
- package/src/api/interop/Factory.d.ts +37 -37
- package/src/api/interop/Factory.js +54 -54
- package/src/api/interop/InteropBroker.d.ts +363 -363
- package/src/api/interop/InteropBroker.js +914 -914
- package/src/api/interop/InteropClient.d.ts +268 -268
- package/src/api/interop/InteropClient.js +450 -450
- package/src/api/interop/SessionContextGroupBroker.d.ts +26 -26
- package/src/api/interop/SessionContextGroupBroker.js +107 -107
- package/src/api/interop/SessionContextGroupClient.d.ts +20 -20
- package/src/api/interop/SessionContextGroupClient.js +85 -85
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +187 -187
- package/src/api/interop/fdc3/fdc3-1.2.js +385 -385
- package/src/api/interop/fdc3/fdc3.js +17 -17
- package/src/api/interop/fdc3/utils.d.ts +6 -6
- package/src/api/interop/fdc3/utils.js +17 -17
- package/src/api/interop/index.d.ts +4 -4
- package/src/api/interop/index.js +16 -16
- package/src/api/interop/utils.d.ts +11 -11
- package/src/api/interop/utils.js +36 -36
- package/src/api/me.d.ts +38 -35
- package/src/api/me.js +128 -60
- package/src/api/platform/Factory.d.ts +109 -109
- package/src/api/platform/Factory.js +188 -188
- package/src/api/platform/Instance.d.ts +122 -122
- package/src/api/platform/Instance.js +298 -298
- package/src/api/platform/common-utils.d.ts +6 -6
- package/src/api/platform/common-utils.js +16 -16
- package/src/api/platform/index.d.ts +3 -3
- package/src/api/platform/index.js +15 -15
- package/src/api/platform/layout/Factory.d.ts +108 -108
- package/src/api/platform/layout/Factory.js +189 -189
- package/src/api/platform/layout/Instance.d.ts +49 -49
- package/src/api/platform/layout/Instance.js +99 -99
- package/src/api/platform/layout/index.d.ts +2 -2
- package/src/api/platform/layout/index.js +14 -14
- package/src/api/platform/layout/shapes.d.ts +11 -0
- package/src/api/{window → platform/layout}/shapes.js +2 -2
- package/src/api/snapshot-source/Factory.d.ts +36 -36
- package/src/api/snapshot-source/Factory.js +65 -65
- package/src/api/snapshot-source/Instance.d.ts +30 -30
- package/src/api/snapshot-source/Instance.js +134 -134
- package/src/api/snapshot-source/index.d.ts +3 -3
- package/src/api/snapshot-source/index.js +15 -15
- package/src/api/snapshot-source/utils.d.ts +1 -1
- package/src/api/snapshot-source/utils.js +5 -5
- package/src/api/system/index.d.ts +960 -961
- package/src/api/system/index.js +1241 -1241
- package/src/api/view/Factory.d.ts +49 -49
- package/src/api/view/Factory.js +103 -103
- package/src/api/view/Instance.d.ts +387 -380
- package/src/api/view/Instance.js +422 -415
- package/src/api/view/index.d.ts +3 -3
- package/src/api/view/index.js +15 -15
- package/src/api/webcontents/main.d.ts +36 -36
- package/src/api/webcontents/main.js +82 -82
- package/src/api/window/Factory.d.ts +44 -44
- package/src/api/window/Factory.js +91 -91
- package/src/api/window/Instance.d.ts +972 -966
- package/src/api/window/Instance.js +1209 -1202
- package/src/api/window/index.d.ts +3 -5
- package/src/api/window/index.js +15 -17
- package/src/environment/environment.d.ts +28 -25
- package/src/environment/environment.js +4 -4
- package/src/environment/node-env.d.ts +25 -26
- package/src/environment/node-env.js +64 -64
- package/src/environment/openfin-env.d.ts +29 -30
- package/src/environment/openfin-env.js +107 -107
- package/src/mock.d.ts +3 -3
- package/src/mock.js +91 -90
- package/src/shapes/ERROR_BOX_TYPES.d.ts +1 -0
- package/src/shapes/ERROR_BOX_TYPES.js +2 -0
- package/src/shapes/WebOptions.d.ts +12 -0
- package/src/shapes/WebOptions.js +2 -0
- package/src/shapes/WindowOptions.d.ts +42 -0
- package/src/shapes/WindowOptions.js +2 -0
- package/src/shapes/protocol.d.ts +178 -0
- package/src/shapes/protocol.js +2 -0
- package/src/transport/fin_store.d.ts +4 -4
- package/src/transport/fin_store.js +16 -16
- package/src/transport/transport-errors.d.ts +18 -18
- package/src/transport/transport-errors.js +37 -37
- package/src/transport/transport.d.ts +56 -43
- package/src/transport/transport.js +181 -181
- package/src/transport/wire.d.ts +71 -11
- package/src/transport/wire.js +32 -32
- package/src/util/asyncFilter.d.ts +1 -1
- package/src/util/asyncFilter.js +7 -7
- package/src/util/errors.d.ts +9 -5
- package/src/util/errors.js +11 -11
- package/src/util/exhaustive.d.ts +1 -1
- package/src/util/exhaustive.js +7 -7
- package/src/util/http.d.ts +11 -11
- package/src/util/http.js +83 -83
- package/src/util/normalize-config.d.ts +3 -5
- package/src/util/normalize-config.js +47 -47
- package/src/util/promises.d.ts +5 -5
- package/src/util/promises.js +27 -27
- package/src/util/ref-counter.d.ts +7 -7
- package/src/util/ref-counter.js +51 -51
- package/src/util/runtimeVersioning.d.ts +3 -3
- package/src/util/runtimeVersioning.js +25 -25
- package/src/util/utilTypes.d.ts +8 -8
- package/src/util/utilTypes.js +2 -2
- package/src/util/validate.d.ts +3 -3
- package/src/util/validate.js +11 -11
- package/docs.README(OLD).md +0 -82
- package/resources/win/OpenFinRVM.exe +0 -0
- package/src/api/window/bounds-changed.d.ts +0 -10
- package/src/api/window/bounds-changed.js +0 -6
- package/src/api/window/shapes.d.ts +0 -13
package/src/mock.js
CHANGED
|
@@ -1,90 +1,91 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.fin = void 0;
|
|
5
|
-
/* eslint-disable import/prefer-default-export */
|
|
6
|
-
/* eslint-disable spaced-comment */
|
|
7
|
-
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
8
|
-
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
9
|
-
/* eslint-disable class-methods-use-this */
|
|
10
|
-
/// <reference path="../OpenFin.d.ts"/>
|
|
11
|
-
const events_1 = require("events");
|
|
12
|
-
const fin_1 = require("./api/fin");
|
|
13
|
-
const transport_1 = require("./transport/transport");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
constructor
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.fin = void 0;
|
|
5
|
+
/* eslint-disable import/prefer-default-export */
|
|
6
|
+
/* eslint-disable spaced-comment */
|
|
7
|
+
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
8
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
9
|
+
/* eslint-disable class-methods-use-this */
|
|
10
|
+
/// <reference path="../OpenFin.d.ts"/>
|
|
11
|
+
const events_1 = require("events");
|
|
12
|
+
const fin_1 = require("./api/fin");
|
|
13
|
+
const transport_1 = require("./transport/transport");
|
|
14
|
+
const me_1 = require("./api/me");
|
|
15
|
+
class MockWire extends events_1.EventEmitter {
|
|
16
|
+
connect(address) {
|
|
17
|
+
throw new Error('You are not running in OpenFin.');
|
|
18
|
+
}
|
|
19
|
+
connectSync() {
|
|
20
|
+
throw new Error('You are not running in OpenFin.');
|
|
21
|
+
}
|
|
22
|
+
send(data) {
|
|
23
|
+
throw new Error('You are not running in OpenFin.');
|
|
24
|
+
}
|
|
25
|
+
shutdown() {
|
|
26
|
+
throw new Error('You are not running in OpenFin.');
|
|
27
|
+
}
|
|
28
|
+
// eslint-disable-next-line no-useless-constructor
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class MockEnvironment {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.childViews = true;
|
|
36
|
+
}
|
|
37
|
+
getDefaultChannelOptions() {
|
|
38
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
39
|
+
}
|
|
40
|
+
getRtcPeer() {
|
|
41
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
42
|
+
}
|
|
43
|
+
getManagerConstructor() {
|
|
44
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
45
|
+
}
|
|
46
|
+
getProviderInitializer() {
|
|
47
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
48
|
+
}
|
|
49
|
+
writeToken(path, token) {
|
|
50
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
51
|
+
}
|
|
52
|
+
retrievePort(config) {
|
|
53
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
54
|
+
}
|
|
55
|
+
getNextMessageId() {
|
|
56
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
57
|
+
}
|
|
58
|
+
getRandomId() {
|
|
59
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
60
|
+
}
|
|
61
|
+
createChildContent(options) {
|
|
62
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
63
|
+
}
|
|
64
|
+
getWebWindow(identity) {
|
|
65
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
66
|
+
}
|
|
67
|
+
getCurrentEntityIdentity() {
|
|
68
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
69
|
+
}
|
|
70
|
+
getCurrentEntityType() {
|
|
71
|
+
return 'unknown';
|
|
72
|
+
}
|
|
73
|
+
raiseEvent(eventName, eventArgs) {
|
|
74
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
75
|
+
}
|
|
76
|
+
getUrl() {
|
|
77
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
78
|
+
}
|
|
79
|
+
whenReady() {
|
|
80
|
+
throw new Error(me_1.environmentUnsupportedMessage);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.fin = ((typeof window !== 'undefined' && ((_a = window) === null || _a === void 0 ? void 0 : _a.fin)) ||
|
|
84
|
+
(() => {
|
|
85
|
+
const environment = new MockEnvironment();
|
|
86
|
+
const transport = new transport_1.default(MockWire, environment, {
|
|
87
|
+
uuid: '',
|
|
88
|
+
name: ''
|
|
89
|
+
});
|
|
90
|
+
return new fin_1.default(transport);
|
|
91
|
+
})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ERROR_BOX_TYPES = 'OF_error_box:app_initialization' | 'OF_error_box:main_process' | 'OF_error_box:renderer_crash';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface WebOptions {
|
|
2
|
+
preloadScripts?: OpenFin.PreloadScript[];
|
|
3
|
+
uuid: string;
|
|
4
|
+
name: string;
|
|
5
|
+
contentCreation?: OpenFin.ContentCreationOptions;
|
|
6
|
+
contentRedirect?: Partial<OpenFin.ContentRedirect>;
|
|
7
|
+
customContext?: any;
|
|
8
|
+
experimental?: any;
|
|
9
|
+
processAffinity?: string;
|
|
10
|
+
backgroundThrottling?: boolean;
|
|
11
|
+
interop?: OpenFin.InteropConfig;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ERROR_BOX_TYPES } from './ERROR_BOX_TYPES';
|
|
2
|
+
import { WebOptions } from './WebOptions';
|
|
3
|
+
export interface WindowOptions extends Partial<OpenFin.WindowOptions>, Partial<WindowInternalOptions> {
|
|
4
|
+
name: string;
|
|
5
|
+
uuid: string;
|
|
6
|
+
}
|
|
7
|
+
export interface WindowInternalOptions extends WebOptions {
|
|
8
|
+
'alwaysOnBottom': boolean;
|
|
9
|
+
'appLogFlushInterval': number;
|
|
10
|
+
'center': boolean;
|
|
11
|
+
'description': string;
|
|
12
|
+
'disableIabSecureLogging': boolean;
|
|
13
|
+
'draggable': boolean;
|
|
14
|
+
'enableAppLogging': boolean;
|
|
15
|
+
'enable-plugins': boolean;
|
|
16
|
+
'enableLargerThanScreen': boolean;
|
|
17
|
+
'exitOnClose': boolean;
|
|
18
|
+
'experimental': any;
|
|
19
|
+
'hasLoaded': boolean;
|
|
20
|
+
'hideOnBlur': boolean;
|
|
21
|
+
'hideOnClose': boolean;
|
|
22
|
+
'hideWhileChildrenVisible': boolean;
|
|
23
|
+
'isRawWindowOpen': boolean;
|
|
24
|
+
'launchExternal': string;
|
|
25
|
+
'loadErrorMessage': string;
|
|
26
|
+
'nonPersistent': boolean;
|
|
27
|
+
'nonPersistant': boolean;
|
|
28
|
+
'plugins': boolean;
|
|
29
|
+
'preload': string | OpenFin.PreloadScript[];
|
|
30
|
+
'resize': boolean;
|
|
31
|
+
'show': boolean;
|
|
32
|
+
'skipTaskbar': boolean;
|
|
33
|
+
'taskbarIcon': string;
|
|
34
|
+
'title': string;
|
|
35
|
+
'toShowOnRun': boolean;
|
|
36
|
+
'transparent': boolean;
|
|
37
|
+
'_type': ERROR_BOX_TYPES;
|
|
38
|
+
'webPreferences': {
|
|
39
|
+
nodeIntegration: boolean;
|
|
40
|
+
plugins: boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { AuthorizationPayload } from '../transport/transport';
|
|
2
|
+
export interface ProtocolMap extends ProtocolMapBase {
|
|
3
|
+
'request-external-authorization': {
|
|
4
|
+
request: any;
|
|
5
|
+
response: void;
|
|
6
|
+
specialResponse: AuthorizationPayload;
|
|
7
|
+
};
|
|
8
|
+
'application-get-views': {
|
|
9
|
+
request: OpenFin.ApplicationIdentity;
|
|
10
|
+
response: OpenFin.Identity[];
|
|
11
|
+
};
|
|
12
|
+
'set-jump-list': {
|
|
13
|
+
request: {
|
|
14
|
+
config: OpenFin.JumpListCategory[] | null;
|
|
15
|
+
} & OpenFin.ApplicationIdentity;
|
|
16
|
+
response: void;
|
|
17
|
+
};
|
|
18
|
+
'get-view-window': {
|
|
19
|
+
request: OpenFin.Identity;
|
|
20
|
+
response: OpenFin.Identity;
|
|
21
|
+
};
|
|
22
|
+
'window-get-views': {
|
|
23
|
+
request: OpenFin.Identity;
|
|
24
|
+
response: OpenFin.Identity[];
|
|
25
|
+
};
|
|
26
|
+
'hide-view': {
|
|
27
|
+
request: OpenFin.Identity;
|
|
28
|
+
response: void;
|
|
29
|
+
};
|
|
30
|
+
'launch-manifest': {
|
|
31
|
+
request: {
|
|
32
|
+
manifestUrl: string;
|
|
33
|
+
opts?: OpenFin.RvmLaunchOptions;
|
|
34
|
+
};
|
|
35
|
+
response: {
|
|
36
|
+
manifest: OpenFin.Manifest;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
'get-system-app-configuration': {
|
|
40
|
+
request: {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
response: any;
|
|
44
|
+
};
|
|
45
|
+
'show-popup-menu': {
|
|
46
|
+
request: OpenFin.Identity & {
|
|
47
|
+
options: OpenFin.ShowPopupMenuOptions;
|
|
48
|
+
};
|
|
49
|
+
response: OpenFin.MenuResult;
|
|
50
|
+
};
|
|
51
|
+
'enable-native-window-integration-provider': {
|
|
52
|
+
request: {
|
|
53
|
+
permissions: any;
|
|
54
|
+
};
|
|
55
|
+
response: OpenFin.NativeWindowIntegrationProviderAuthorization;
|
|
56
|
+
};
|
|
57
|
+
'get-permissions': {
|
|
58
|
+
request: void;
|
|
59
|
+
response: any;
|
|
60
|
+
};
|
|
61
|
+
'set-file-download-location': {
|
|
62
|
+
request: OpenFin.ApplicationIdentity & {
|
|
63
|
+
downloadLocation: string;
|
|
64
|
+
};
|
|
65
|
+
response: void;
|
|
66
|
+
};
|
|
67
|
+
'close-popup-menu': {
|
|
68
|
+
request: OpenFin.Identity;
|
|
69
|
+
response: void;
|
|
70
|
+
};
|
|
71
|
+
'fdc3-add-context-listener': {
|
|
72
|
+
request: void;
|
|
73
|
+
response: void;
|
|
74
|
+
};
|
|
75
|
+
'fdc3-broadcast': {
|
|
76
|
+
request: void;
|
|
77
|
+
response: void;
|
|
78
|
+
};
|
|
79
|
+
'fdc3-get-system-channels': {
|
|
80
|
+
request: void;
|
|
81
|
+
response: void;
|
|
82
|
+
};
|
|
83
|
+
'fdc3-join-channel': {
|
|
84
|
+
request: void;
|
|
85
|
+
response: void;
|
|
86
|
+
};
|
|
87
|
+
'fdc3-leave-current-channel': {
|
|
88
|
+
request: void;
|
|
89
|
+
response: void;
|
|
90
|
+
};
|
|
91
|
+
'interop-connect-sync': {
|
|
92
|
+
request: void;
|
|
93
|
+
response: void;
|
|
94
|
+
};
|
|
95
|
+
'interop-client-set-context': {
|
|
96
|
+
request: void;
|
|
97
|
+
response: void;
|
|
98
|
+
};
|
|
99
|
+
'interop-client-add-context-handler': {
|
|
100
|
+
request: void;
|
|
101
|
+
response: void;
|
|
102
|
+
};
|
|
103
|
+
'interop-client-get-context-groups': {
|
|
104
|
+
request: void;
|
|
105
|
+
response: void;
|
|
106
|
+
};
|
|
107
|
+
'interop-client-join-context-group': {
|
|
108
|
+
request: void;
|
|
109
|
+
response: void;
|
|
110
|
+
};
|
|
111
|
+
'interop-client-remove-from-context-group': {
|
|
112
|
+
request: void;
|
|
113
|
+
response: void;
|
|
114
|
+
};
|
|
115
|
+
'interop-client-get-all-clients-in-context-group': {
|
|
116
|
+
request: void;
|
|
117
|
+
response: void;
|
|
118
|
+
};
|
|
119
|
+
'interop-client-get-info-for-context-group': {
|
|
120
|
+
request: void;
|
|
121
|
+
response: void;
|
|
122
|
+
};
|
|
123
|
+
'interop-broker-add-client-to-context-group': {
|
|
124
|
+
request: void;
|
|
125
|
+
response: void;
|
|
126
|
+
};
|
|
127
|
+
'interop-broker-get-all-clients-in-context-group': {
|
|
128
|
+
request: void;
|
|
129
|
+
response: void;
|
|
130
|
+
};
|
|
131
|
+
'interop-broker-get-context-groups': {
|
|
132
|
+
request: void;
|
|
133
|
+
response: void;
|
|
134
|
+
};
|
|
135
|
+
'interop-broker-get-info-for-context-group': {
|
|
136
|
+
request: void;
|
|
137
|
+
response: void;
|
|
138
|
+
};
|
|
139
|
+
'interop-broker-is-action-authorized': {
|
|
140
|
+
request: void;
|
|
141
|
+
response: void;
|
|
142
|
+
};
|
|
143
|
+
'interop-broker-is-connection-authorized': {
|
|
144
|
+
request: void;
|
|
145
|
+
response: void;
|
|
146
|
+
};
|
|
147
|
+
'interop-broker-join-context-group': {
|
|
148
|
+
request: void;
|
|
149
|
+
response: void;
|
|
150
|
+
};
|
|
151
|
+
'interop-broker-remove-client-from-context-group': {
|
|
152
|
+
request: void;
|
|
153
|
+
response: void;
|
|
154
|
+
};
|
|
155
|
+
'interop-broker-remove-from-context-group': {
|
|
156
|
+
request: void;
|
|
157
|
+
response: void;
|
|
158
|
+
};
|
|
159
|
+
'interop-broker-set-context': {
|
|
160
|
+
request: void;
|
|
161
|
+
response: void;
|
|
162
|
+
};
|
|
163
|
+
'query-permission-for-current-context': {
|
|
164
|
+
request: {
|
|
165
|
+
apiName: string;
|
|
166
|
+
identity: OpenFin.Identity;
|
|
167
|
+
};
|
|
168
|
+
response: OpenFin.QueryPermissionResult;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
interface ProtocolMapBase {
|
|
172
|
+
[action: string]: {
|
|
173
|
+
request: any;
|
|
174
|
+
response: any;
|
|
175
|
+
specialResponse?: any;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Fin from '../api/fin';
|
|
2
|
-
import Transport from './transport';
|
|
3
|
-
export declare function registerFin(wire: Transport, fin: Fin): void;
|
|
4
|
-
export declare function getFin(wire: Transport): Fin;
|
|
1
|
+
import Fin from '../api/fin';
|
|
2
|
+
import Transport from './transport';
|
|
3
|
+
export declare function registerFin(wire: Transport, fin: Fin): void;
|
|
4
|
+
export declare function getFin(wire: Transport): Fin;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFin = exports.registerFin = void 0;
|
|
4
|
-
const finMap = new WeakMap();
|
|
5
|
-
function registerFin(wire, fin) {
|
|
6
|
-
finMap.set(wire, fin);
|
|
7
|
-
}
|
|
8
|
-
exports.registerFin = registerFin;
|
|
9
|
-
function getFin(wire) {
|
|
10
|
-
const fin = finMap.get(wire);
|
|
11
|
-
if (!fin) {
|
|
12
|
-
throw new Error('Could not locate fin api for given transport');
|
|
13
|
-
}
|
|
14
|
-
return fin;
|
|
15
|
-
}
|
|
16
|
-
exports.getFin = getFin;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFin = exports.registerFin = void 0;
|
|
4
|
+
const finMap = new WeakMap();
|
|
5
|
+
function registerFin(wire, fin) {
|
|
6
|
+
finMap.set(wire, fin);
|
|
7
|
+
}
|
|
8
|
+
exports.registerFin = registerFin;
|
|
9
|
+
function getFin(wire) {
|
|
10
|
+
const fin = finMap.get(wire);
|
|
11
|
+
if (!fin) {
|
|
12
|
+
throw new Error('Could not locate fin api for given transport');
|
|
13
|
+
}
|
|
14
|
+
return fin;
|
|
15
|
+
}
|
|
16
|
+
exports.getFin = getFin;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class DisconnectedError extends Error {
|
|
3
|
-
constructor(readyState: ReadyState);
|
|
4
|
-
readyState: ReadyState;
|
|
5
|
-
}
|
|
6
|
-
export declare class UnexpectedActionError extends Error {
|
|
7
|
-
}
|
|
8
|
-
export declare class DuplicateCorrelationError extends Error {
|
|
9
|
-
}
|
|
10
|
-
export declare class NoAckError extends Error {
|
|
11
|
-
}
|
|
12
|
-
export declare class NotImplementedError extends Error {
|
|
13
|
-
}
|
|
14
|
-
export declare class NotSupportedError extends Error {
|
|
15
|
-
}
|
|
16
|
-
export declare class RuntimeError extends Error {
|
|
17
|
-
constructor(data: any);
|
|
18
|
-
}
|
|
1
|
+
export declare type ReadyState = 'CONNECTING' | 'OPEN' | 'CLOSING' | 'CLOSED';
|
|
2
|
+
export declare class DisconnectedError extends Error {
|
|
3
|
+
constructor(readyState: ReadyState);
|
|
4
|
+
readyState: ReadyState;
|
|
5
|
+
}
|
|
6
|
+
export declare class UnexpectedActionError extends Error {
|
|
7
|
+
}
|
|
8
|
+
export declare class DuplicateCorrelationError extends Error {
|
|
9
|
+
}
|
|
10
|
+
export declare class NoAckError extends Error {
|
|
11
|
+
}
|
|
12
|
+
export declare class NotImplementedError extends Error {
|
|
13
|
+
}
|
|
14
|
+
export declare class NotSupportedError extends Error {
|
|
15
|
+
}
|
|
16
|
+
export declare class RuntimeError extends Error {
|
|
17
|
+
constructor(data: any);
|
|
18
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RuntimeError = exports.NotSupportedError = exports.NotImplementedError = exports.NoAckError = exports.DuplicateCorrelationError = exports.UnexpectedActionError = exports.DisconnectedError = void 0;
|
|
4
|
-
class DisconnectedError extends Error {
|
|
5
|
-
constructor(readyState) {
|
|
6
|
-
super(`Expected websocket state OPEN but found ${readyState}`);
|
|
7
|
-
this.readyState = readyState;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.DisconnectedError = DisconnectedError;
|
|
11
|
-
class UnexpectedActionError extends Error {
|
|
12
|
-
}
|
|
13
|
-
exports.UnexpectedActionError = UnexpectedActionError;
|
|
14
|
-
class DuplicateCorrelationError extends Error {
|
|
15
|
-
}
|
|
16
|
-
exports.DuplicateCorrelationError = DuplicateCorrelationError;
|
|
17
|
-
class NoAckError extends Error {
|
|
18
|
-
}
|
|
19
|
-
exports.NoAckError = NoAckError;
|
|
20
|
-
class NotImplementedError extends Error {
|
|
21
|
-
}
|
|
22
|
-
exports.NotImplementedError = NotImplementedError;
|
|
23
|
-
class NotSupportedError extends Error {
|
|
24
|
-
}
|
|
25
|
-
exports.NotSupportedError = NotSupportedError;
|
|
26
|
-
class RuntimeError extends Error {
|
|
27
|
-
constructor(data) {
|
|
28
|
-
const payload = data.payload || data;
|
|
29
|
-
const { reason, error } = payload;
|
|
30
|
-
super(reason);
|
|
31
|
-
this.name = 'RuntimeError';
|
|
32
|
-
if (error === null || error === void 0 ? void 0 : error.stack) {
|
|
33
|
-
this.stack = error.stack;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.RuntimeError = RuntimeError;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuntimeError = exports.NotSupportedError = exports.NotImplementedError = exports.NoAckError = exports.DuplicateCorrelationError = exports.UnexpectedActionError = exports.DisconnectedError = void 0;
|
|
4
|
+
class DisconnectedError extends Error {
|
|
5
|
+
constructor(readyState) {
|
|
6
|
+
super(`Expected websocket state OPEN but found ${readyState}`);
|
|
7
|
+
this.readyState = readyState;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.DisconnectedError = DisconnectedError;
|
|
11
|
+
class UnexpectedActionError extends Error {
|
|
12
|
+
}
|
|
13
|
+
exports.UnexpectedActionError = UnexpectedActionError;
|
|
14
|
+
class DuplicateCorrelationError extends Error {
|
|
15
|
+
}
|
|
16
|
+
exports.DuplicateCorrelationError = DuplicateCorrelationError;
|
|
17
|
+
class NoAckError extends Error {
|
|
18
|
+
}
|
|
19
|
+
exports.NoAckError = NoAckError;
|
|
20
|
+
class NotImplementedError extends Error {
|
|
21
|
+
}
|
|
22
|
+
exports.NotImplementedError = NotImplementedError;
|
|
23
|
+
class NotSupportedError extends Error {
|
|
24
|
+
}
|
|
25
|
+
exports.NotSupportedError = NotSupportedError;
|
|
26
|
+
class RuntimeError extends Error {
|
|
27
|
+
constructor(data) {
|
|
28
|
+
const payload = data.payload || data;
|
|
29
|
+
const { reason, error } = payload;
|
|
30
|
+
super(reason);
|
|
31
|
+
this.name = 'RuntimeError';
|
|
32
|
+
if (error === null || error === void 0 ? void 0 : error.stack) {
|
|
33
|
+
this.stack = error.stack;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.RuntimeError = RuntimeError;
|