@openfin/core 33.76.31 → 33.76.38
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 +1 -1
- package/README.md +29 -4
- package/fin.d.ts +2 -2
- package/{src → out}/GlobalOpenFin.d.ts +1 -1
- package/out/mock-alpha.d.ts +16112 -0
- package/out/mock-beta.d.ts +16112 -0
- package/out/mock-public.d.ts +16112 -0
- package/out/mock.d.ts +16797 -0
- package/out/mock.js +17104 -0
- package/package.json +30 -23
- package/LICENSE +0 -13
- package/NOTICE +0 -16
- package/openfin-core-33.76.31.tgz +0 -0
- package/src/OpenFin.d.ts +0 -3080
- package/src/OpenFin.js +0 -2
- package/src/api/api-exposer/api-consumer.d.ts +0 -28
- package/src/api/api-exposer/api-consumer.js +0 -28
- package/src/api/api-exposer/api-exposer.d.ts +0 -35
- package/src/api/api-exposer/api-exposer.js +0 -38
- package/src/api/api-exposer/decorators.d.ts +0 -10
- package/src/api/api-exposer/decorators.js +0 -18
- package/src/api/api-exposer/index.d.ts +0 -4
- package/src/api/api-exposer/index.js +0 -20
- package/src/api/api-exposer/strategies/index.d.ts +0 -1
- package/src/api/api-exposer/strategies/index.js +0 -17
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.d.ts +0 -14
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.js +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.d.ts +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.js +0 -23
- package/src/api/api-exposer/strategies/openfin-channels/index.d.ts +0 -2
- package/src/api/api-exposer/strategies/openfin-channels/index.js +0 -18
- package/src/api/application/Factory.d.ts +0 -148
- package/src/api/application/Factory.js +0 -230
- package/src/api/application/Instance.d.ts +0 -321
- package/src/api/application/Instance.js +0 -453
- package/src/api/application/index.d.ts +0 -3
- package/src/api/application/index.js +0 -19
- package/src/api/base.d.ts +0 -48
- package/src/api/base.js +0 -177
- package/src/api/clipboard/index.d.ts +0 -92
- package/src/api/clipboard/index.js +0 -120
- package/src/api/events/application.d.ts +0 -146
- package/src/api/events/application.js +0 -2
- package/src/api/events/base.d.ts +0 -42
- package/src/api/events/base.js +0 -2
- package/src/api/events/channel.d.ts +0 -30
- package/src/api/events/channel.js +0 -2
- package/src/api/events/emitterMap.d.ts +0 -11
- package/src/api/events/emitterMap.js +0 -35
- package/src/api/events/eventAggregator.d.ts +0 -5
- package/src/api/events/eventAggregator.js +0 -35
- package/src/api/events/externalApplication.d.ts +0 -19
- package/src/api/events/externalApplication.js +0 -2
- package/src/api/events/frame.d.ts +0 -30
- package/src/api/events/frame.js +0 -2
- package/src/api/events/globalHotkey.d.ts +0 -20
- package/src/api/events/globalHotkey.js +0 -2
- package/src/api/events/platform.d.ts +0 -26
- package/src/api/events/platform.js +0 -2
- package/src/api/events/system.d.ts +0 -113
- package/src/api/events/system.js +0 -2
- package/src/api/events/typedEventEmitter.d.ts +0 -20
- package/src/api/events/typedEventEmitter.js +0 -2
- package/src/api/events/view.d.ts +0 -82
- package/src/api/events/view.js +0 -2
- package/src/api/events/webcontents.d.ts +0 -266
- package/src/api/events/webcontents.js +0 -2
- package/src/api/events/window.d.ts +0 -352
- package/src/api/events/window.js +0 -2
- package/src/api/external-application/Factory.d.ts +0 -27
- package/src/api/external-application/Factory.js +0 -40
- package/src/api/external-application/Instance.d.ts +0 -102
- package/src/api/external-application/Instance.js +0 -109
- package/src/api/external-application/index.d.ts +0 -3
- package/src/api/external-application/index.js +0 -19
- package/src/api/fin.d.ts +0 -51
- package/src/api/fin.js +0 -42
- package/src/api/frame/Factory.d.ts +0 -37
- package/src/api/frame/Factory.js +0 -69
- package/src/api/frame/Instance.d.ts +0 -123
- package/src/api/frame/Instance.js +0 -130
- package/src/api/frame/index.d.ts +0 -3
- package/src/api/frame/index.js +0 -19
- package/src/api/global-hotkey/index.d.ts +0 -38
- package/src/api/global-hotkey/index.js +0 -64
- package/src/api/interappbus/channel/channel.d.ts +0 -28
- package/src/api/interappbus/channel/channel.js +0 -77
- package/src/api/interappbus/channel/channels-docs.d.ts +0 -340
- package/src/api/interappbus/channel/channels-docs.js +0 -398
- package/src/api/interappbus/channel/client.d.ts +0 -24
- package/src/api/interappbus/channel/client.js +0 -89
- package/src/api/interappbus/channel/connection-manager.d.ts +0 -29
- package/src/api/interappbus/channel/connection-manager.js +0 -246
- package/src/api/interappbus/channel/index.d.ts +0 -25
- package/src/api/interappbus/channel/index.js +0 -169
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +0 -73
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/classic/strategy.js +0 -101
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +0 -20
- package/src/api/interappbus/channel/protocols/combined/strategy.js +0 -58
- package/src/api/interappbus/channel/protocols/index.d.ts +0 -47
- package/src/api/interappbus/channel/protocols/index.js +0 -2
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +0 -10
- package/src/api/interappbus/channel/protocols/protocol-manager.js +0 -43
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +0 -25
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +0 -141
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +0 -30
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -130
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +0 -85
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/strategy-types.js +0 -2
- package/src/api/interappbus/channel/protocols/strategy.d.ts +0 -17
- package/src/api/interappbus/channel/protocols/strategy.js +0 -2
- package/src/api/interappbus/channel/provider.d.ts +0 -34
- package/src/api/interappbus/channel/provider.js +0 -166
- package/src/api/interappbus/index.d.ts +0 -85
- package/src/api/interappbus/index.js +0 -175
- package/src/api/interop/Factory.d.ts +0 -37
- package/src/api/interop/Factory.js +0 -76
- package/src/api/interop/InteropBroker.d.ts +0 -437
- package/src/api/interop/InteropBroker.js +0 -1085
- package/src/api/interop/InteropClient.d.ts +0 -278
- package/src/api/interop/InteropClient.js +0 -459
- package/src/api/interop/SessionContextGroupBroker.d.ts +0 -27
- package/src/api/interop/SessionContextGroupBroker.js +0 -108
- package/src/api/interop/SessionContextGroupClient.d.ts +0 -21
- package/src/api/interop/SessionContextGroupClient.js +0 -86
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +0 -20
- package/src/api/interop/fdc3/PrivateChannelClient.js +0 -90
- package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +0 -55
- package/src/api/interop/fdc3/PrivateChannelProvider.js +0 -276
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -208
- package/src/api/interop/fdc3/fdc3-1.2.js +0 -438
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -301
- package/src/api/interop/fdc3/fdc3-2.0.js +0 -482
- package/src/api/interop/fdc3/fdc3.d.ts +0 -12
- package/src/api/interop/fdc3/fdc3.js +0 -35
- package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
- package/src/api/interop/fdc3/overrideCheck.js +0 -32
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
- package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
- package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
- package/src/api/interop/fdc3/utils.d.ts +0 -45
- package/src/api/interop/fdc3/utils.js +0 -239
- package/src/api/interop/fdc3/versions.d.ts +0 -1
- package/src/api/interop/fdc3/versions.js +0 -2
- package/src/api/interop/index.d.ts +0 -4
- package/src/api/interop/index.js +0 -20
- package/src/api/interop/utils.d.ts +0 -18
- package/src/api/interop/utils.js +0 -61
- package/src/api/me.d.ts +0 -40
- package/src/api/me.js +0 -134
- package/src/api/platform/Factory.d.ts +0 -115
- package/src/api/platform/Factory.js +0 -184
- package/src/api/platform/Instance.d.ts +0 -150
- package/src/api/platform/Instance.js +0 -332
- package/src/api/platform/common-utils.d.ts +0 -7
- package/src/api/platform/common-utils.js +0 -16
- package/src/api/platform/index.d.ts +0 -3
- package/src/api/platform/index.js +0 -19
- package/src/api/platform/layout/Factory.d.ts +0 -114
- package/src/api/platform/layout/Factory.js +0 -174
- package/src/api/platform/layout/Instance.d.ts +0 -57
- package/src/api/platform/layout/Instance.js +0 -126
- package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
- package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
- package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
- package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
- package/src/api/platform/layout/entities/layout-entities.d.ts +0 -235
- package/src/api/platform/layout/entities/layout-entities.js +0 -312
- package/src/api/platform/layout/entities/shapes.d.ts +0 -6
- package/src/api/platform/layout/entities/shapes.js +0 -2
- package/src/api/platform/layout/index.d.ts +0 -2
- package/src/api/platform/layout/index.js +0 -18
- package/src/api/platform/layout/layout.constants.d.ts +0 -1
- package/src/api/platform/layout/layout.constants.js +0 -4
- package/src/api/platform/layout/shapes.d.ts +0 -16
- package/src/api/platform/layout/shapes.js +0 -2
- package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
- package/src/api/platform/layout/utils/layout-traversal.js +0 -65
- package/src/api/platform/provider.d.ts +0 -163
- package/src/api/platform/provider.js +0 -2
- package/src/api/snapshot-source/Factory.d.ts +0 -38
- package/src/api/snapshot-source/Factory.js +0 -66
- package/src/api/snapshot-source/Instance.d.ts +0 -31
- package/src/api/snapshot-source/Instance.js +0 -132
- package/src/api/snapshot-source/index.d.ts +0 -3
- package/src/api/snapshot-source/index.js +0 -19
- package/src/api/snapshot-source/utils.d.ts +0 -2
- package/src/api/snapshot-source/utils.js +0 -6
- package/src/api/system/index.d.ts +0 -517
- package/src/api/system/index.js +0 -895
- package/src/api/view/Factory.d.ts +0 -50
- package/src/api/view/Factory.js +0 -103
- package/src/api/view/Instance.d.ts +0 -487
- package/src/api/view/Instance.js +0 -557
- package/src/api/view/index.d.ts +0 -3
- package/src/api/view/index.js +0 -19
- package/src/api/webcontents/main.d.ts +0 -32
- package/src/api/webcontents/main.js +0 -156
- package/src/api/window/Factory.d.ts +0 -45
- package/src/api/window/Factory.js +0 -91
- package/src/api/window/Instance.d.ts +0 -1090
- package/src/api/window/Instance.js +0 -1349
- package/src/api/window/index.d.ts +0 -3
- package/src/api/window/index.js +0 -19
- package/src/browser.d.ts +0 -10
- package/src/browser.js +0 -36
- package/src/environment/browser.d.ts +0 -29
- package/src/environment/browser.js +0 -60
- package/src/environment/environment.d.ts +0 -33
- package/src/environment/environment.js +0 -4
- package/src/environment/mockEnvironment.d.ts +0 -27
- package/src/environment/mockEnvironment.js +0 -61
- package/src/environment/node-env.d.ts +0 -29
- package/src/environment/node-env.js +0 -72
- package/src/fdc3.d.ts +0 -3
- package/src/fdc3.js +0 -9
- package/src/mock.d.ts +0 -3
- package/src/mock.js +0 -18
- package/src/namespaces.d.ts +0 -21
- package/src/namespaces.js +0 -24
- package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
- package/src/shapes/ERROR_BOX_TYPES.js +0 -2
- package/src/shapes/WebOptions.d.ts +0 -13
- package/src/shapes/WebOptions.js +0 -2
- package/src/shapes/WindowOptions.d.ts +0 -43
- package/src/shapes/WindowOptions.js +0 -2
- package/src/shapes/protocol.d.ts +0 -200
- package/src/shapes/protocol.js +0 -2
- package/src/transport/mockWire.d.ts +0 -11
- package/src/transport/mockWire.js +0 -26
- package/src/transport/transport-errors.d.ts +0 -31
- package/src/transport/transport-errors.js +0 -79
- package/src/transport/transport.d.ts +0 -73
- package/src/transport/transport.js +0 -219
- package/src/transport/wire.d.ts +0 -77
- package/src/transport/wire.js +0 -36
- package/src/util/asyncFilter.d.ts +0 -1
- package/src/util/asyncFilter.js +0 -7
- package/src/util/channel-api-relay.d.ts +0 -13
- package/src/util/channel-api-relay.js +0 -47
- package/src/util/errors.d.ts +0 -10
- package/src/util/errors.js +0 -12
- package/src/util/exhaustive.d.ts +0 -1
- package/src/util/exhaustive.js +0 -7
- package/src/util/http.d.ts +0 -11
- package/src/util/http.js +0 -90
- package/src/util/inaccessibleObject.d.ts +0 -2
- package/src/util/inaccessibleObject.js +0 -49
- package/src/util/lazy.d.ts +0 -34
- package/src/util/lazy.js +0 -54
- package/src/util/normalize-config.d.ts +0 -3
- package/src/util/normalize-config.js +0 -52
- package/src/util/promises.d.ts +0 -5
- package/src/util/promises.js +0 -27
- package/src/util/ref-counter.d.ts +0 -7
- package/src/util/ref-counter.js +0 -52
- package/src/util/reversible-map.d.ts +0 -11
- package/src/util/reversible-map.js +0 -49
- package/src/util/runtimeVersioning.d.ts +0 -3
- package/src/util/runtimeVersioning.js +0 -25
- package/src/util/utilTypes.d.ts +0 -8
- package/src/util/utilTypes.js +0 -2
- package/src/util/validate.d.ts +0 -3
- package/src/util/validate.js +0 -11
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
import type * as OpenFin from '../../OpenFin';
|
|
2
|
-
import { EmitterBase } from '../base';
|
|
3
|
-
import { Transport } from '../../transport/transport';
|
|
4
|
-
type Identity = OpenFin.Identity;
|
|
5
|
-
type ProxyInfo = OpenFin.ProxyInfo;
|
|
6
|
-
type ProxyConfig = OpenFin.ProxyConfig;
|
|
7
|
-
type InstalledApps = OpenFin.InstalledApps;
|
|
8
|
-
type LogInfo = OpenFin.LogInfo;
|
|
9
|
-
type LogLevel = OpenFin.LogLevel;
|
|
10
|
-
type GetLogRequestType = OpenFin.GetLogRequestType;
|
|
11
|
-
type RegistryInfo = OpenFin.RegistryInfo;
|
|
12
|
-
type EntityInfo = OpenFin.EntityInfo;
|
|
13
|
-
type Entity = OpenFin.ApplicationType;
|
|
14
|
-
type ApplicationState = OpenFin.ApplicationState;
|
|
15
|
-
type ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
|
|
16
|
-
type PrinterInfo = OpenFin.PrinterInfo;
|
|
17
|
-
/**
|
|
18
|
-
* An object representing the core of OpenFin Runtime. Allows the developer
|
|
19
|
-
* to perform system-level actions, such as accessing logs, viewing processes,
|
|
20
|
-
* clearing the cache and exiting the runtime as well as listen to <a href="tutorial-System.EventEmitter.html">system events</a>.
|
|
21
|
-
* @namespace
|
|
22
|
-
*/
|
|
23
|
-
export default class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
24
|
-
constructor(wire: Transport);
|
|
25
|
-
private sendExternalProcessRequest;
|
|
26
|
-
/**
|
|
27
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
28
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
29
|
-
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
30
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
31
|
-
* @return {Promise.<this>}
|
|
32
|
-
* @function addListener
|
|
33
|
-
* @memberof System
|
|
34
|
-
* @instance
|
|
35
|
-
* @tutorial System.EventEmitter
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
39
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
40
|
-
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
41
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
42
|
-
* @return {Promise.<this>}
|
|
43
|
-
* @function on
|
|
44
|
-
* @memberof System
|
|
45
|
-
* @instance
|
|
46
|
-
* @tutorial System.EventEmitter
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
50
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
51
|
-
* @param { Function } listener - The callback function.
|
|
52
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
53
|
-
* @return {Promise.<this>}
|
|
54
|
-
* @function once
|
|
55
|
-
* @memberof System
|
|
56
|
-
* @instance
|
|
57
|
-
* @tutorial System.EventEmitter
|
|
58
|
-
*/
|
|
59
|
-
/**
|
|
60
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
61
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
62
|
-
* @param { Function } listener - The callback function.
|
|
63
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
64
|
-
* @return {Promise.<this>}
|
|
65
|
-
* @function prependListener
|
|
66
|
-
* @memberof System
|
|
67
|
-
* @instance
|
|
68
|
-
* @tutorial System.EventEmitter
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
72
|
-
* The listener is added to the beginning of the listeners array.
|
|
73
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
74
|
-
* @param { Function } listener - The callback function.
|
|
75
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
76
|
-
* @return {Promise.<this>}
|
|
77
|
-
* @function prependOnceListener
|
|
78
|
-
* @memberof System
|
|
79
|
-
* @instance
|
|
80
|
-
* @tutorial System.EventEmitter
|
|
81
|
-
*/
|
|
82
|
-
/**
|
|
83
|
-
* Remove a listener from the listener array for the specified event.
|
|
84
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
85
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
86
|
-
* @param { Function } listener - The callback function.
|
|
87
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
88
|
-
* @return {Promise.<this>}
|
|
89
|
-
* @function removeListener
|
|
90
|
-
* @memberof System
|
|
91
|
-
* @instance
|
|
92
|
-
* @tutorial System.EventEmitter
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* Removes all listeners, or those of the specified event.
|
|
96
|
-
* @param { string | symbol } [eventType] - The type of the event.
|
|
97
|
-
* @return {Promise.<this>}
|
|
98
|
-
* @function removeAllListeners
|
|
99
|
-
* @memberof System
|
|
100
|
-
* @instance
|
|
101
|
-
* @tutorial System.EventEmitter
|
|
102
|
-
*/
|
|
103
|
-
/**
|
|
104
|
-
* Returns the version of the runtime. The version contains the major, minor,
|
|
105
|
-
* build and revision numbers.
|
|
106
|
-
* @return {Promise.<string>}
|
|
107
|
-
* @tutorial System.getVersion
|
|
108
|
-
*/
|
|
109
|
-
getVersion(): Promise<string>;
|
|
110
|
-
/**
|
|
111
|
-
* Clears cached data containing application resource
|
|
112
|
-
* files (images, HTML, JavaScript files), cookies, and items stored in the
|
|
113
|
-
* Local Storage.
|
|
114
|
-
* @param { ClearCacheOption } options - See tutorial for more details.
|
|
115
|
-
* @return {Promise.<void>}
|
|
116
|
-
* @tutorial System.clearCache
|
|
117
|
-
*/
|
|
118
|
-
clearCache(options: OpenFin.ClearCacheOption): Promise<void>;
|
|
119
|
-
/**
|
|
120
|
-
* Clears all cached data when OpenFin Runtime exits.
|
|
121
|
-
* @return {Promise.<void>}
|
|
122
|
-
* @tutorial System.deleteCacheOnExit
|
|
123
|
-
*/
|
|
124
|
-
deleteCacheOnExit(): Promise<void>;
|
|
125
|
-
/**
|
|
126
|
-
* Exits the Runtime.
|
|
127
|
-
* @return {Promise.<void>}
|
|
128
|
-
* @tutorial System.exit
|
|
129
|
-
*/
|
|
130
|
-
exit(): Promise<void>;
|
|
131
|
-
/**
|
|
132
|
-
* Fetches a JSON manifest using the browser process and returns a Javascript object.
|
|
133
|
-
* @param { string } manifestUrl The URL of the manifest to fetch.
|
|
134
|
-
* @return {Promise.<any>}
|
|
135
|
-
* @tutorial System.fetchManifest
|
|
136
|
-
*/
|
|
137
|
-
fetchManifest(manifestUrl: string): Promise<any>;
|
|
138
|
-
/**
|
|
139
|
-
* Writes any unwritten cookies data to disk.
|
|
140
|
-
* @return {Promise.<void>}
|
|
141
|
-
* @tutorial System.flushCookieStore
|
|
142
|
-
*/
|
|
143
|
-
flushCookieStore(): Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* Retrieves an array of data (name, ids, bounds) for all application windows.
|
|
146
|
-
* @return {Promise.Array.<ApplicationWindowInfo>}
|
|
147
|
-
* @tutorial System.getAllWindows
|
|
148
|
-
*/
|
|
149
|
-
getAllWindows(): Promise<Array<ApplicationWindowInfo>>;
|
|
150
|
-
/**
|
|
151
|
-
* Retrieves an array of data for all applications.
|
|
152
|
-
* @return {Promise.Array.<ApplicationState>}
|
|
153
|
-
* @tutorial System.getAllApplications
|
|
154
|
-
*/
|
|
155
|
-
getAllApplications(): Promise<Array<ApplicationState>>;
|
|
156
|
-
/**
|
|
157
|
-
* Retrieves the command line argument string that started OpenFin Runtime.
|
|
158
|
-
* @return {Promise.<string>}
|
|
159
|
-
* @tutorial System.getCommandLineArguments
|
|
160
|
-
*/
|
|
161
|
-
getCommandLineArguments(): Promise<string>;
|
|
162
|
-
/**
|
|
163
|
-
* Get the current state of the crash reporter.
|
|
164
|
-
* @return {Promise.<CrashReporterState>}
|
|
165
|
-
* @tutorial System.getCrashReporterState
|
|
166
|
-
*/
|
|
167
|
-
getCrashReporterState(): Promise<OpenFin.CrashReporterState>;
|
|
168
|
-
/**
|
|
169
|
-
* Start the crash reporter if not already running.
|
|
170
|
-
* @param { CrashReporterOptions } options - configure crash reporter
|
|
171
|
-
* @return {Promise.<CrashReporterState>}
|
|
172
|
-
* @tutorial System.startCrashReporter
|
|
173
|
-
*/
|
|
174
|
-
startCrashReporter(options: OpenFin.CrashReporterOptions | {
|
|
175
|
-
diagnosticMode: boolean;
|
|
176
|
-
}): Promise<OpenFin.CrashReporterState>;
|
|
177
|
-
/**
|
|
178
|
-
* Returns a hex encoded hash of the machine id and the currently logged in user name.
|
|
179
|
-
* This is the recommended way to uniquely identify a user / machine combination.
|
|
180
|
-
* @return {Promise.<string>}
|
|
181
|
-
* @tutorial System.getUniqueUserId
|
|
182
|
-
* @static
|
|
183
|
-
*/
|
|
184
|
-
getUniqueUserId(): Promise<string>;
|
|
185
|
-
/**
|
|
186
|
-
* Retrieves a frame info object for the uuid and name passed in
|
|
187
|
-
* @param { string } uuid - The UUID of the target.
|
|
188
|
-
* @param { string } name - The name of the target.
|
|
189
|
-
* @return {Promise.<EntityInfo>}
|
|
190
|
-
* @tutorial System.getEntityInfo
|
|
191
|
-
*/
|
|
192
|
-
getEntityInfo(uuid: string, name: string): Promise<EntityInfo>;
|
|
193
|
-
/**
|
|
194
|
-
* Gets the value of a given environment variable on the computer on which the runtime is installed
|
|
195
|
-
* @return {Promise.<string>}
|
|
196
|
-
* @tutorial System.getEnvironmentVariable
|
|
197
|
-
*/
|
|
198
|
-
getEnvironmentVariable(envName: string): Promise<string>;
|
|
199
|
-
/**
|
|
200
|
-
* Get current focused window.
|
|
201
|
-
* @return {Promise.<Identity | null>}
|
|
202
|
-
* @tutorial System.getFocusedWindow
|
|
203
|
-
*/
|
|
204
|
-
getFocusedWindow(): Promise<OpenFin.Identity | null>;
|
|
205
|
-
/**
|
|
206
|
-
* Returns information about the given app's certification status
|
|
207
|
-
* @return {Promise.<CertifiedAppInfo>}
|
|
208
|
-
* @tutorial System.isAppCertified
|
|
209
|
-
*/
|
|
210
|
-
isAppCertified(manifestUrl: string): Promise<OpenFin.CertifiedAppInfo>;
|
|
211
|
-
/**
|
|
212
|
-
* Returns an array of all the installed runtime versions in an object.
|
|
213
|
-
* @return {Promise.<string[]>}
|
|
214
|
-
* @tutorial System.getInstalledRuntimes
|
|
215
|
-
*/
|
|
216
|
-
getInstalledRuntimes(): Promise<string[]>;
|
|
217
|
-
getInstalledApps(): Promise<InstalledApps>;
|
|
218
|
-
/**
|
|
219
|
-
* Retrieves the contents of the log with the specified filename.
|
|
220
|
-
* @param { GetLogRequestType } options A object that id defined by the GetLogRequestType interface
|
|
221
|
-
* @return {Promise.<string>}
|
|
222
|
-
* @tutorial System.getLog
|
|
223
|
-
*/
|
|
224
|
-
getLog(options: GetLogRequestType): Promise<string>;
|
|
225
|
-
/**
|
|
226
|
-
* Returns a unique identifier (UUID) provided by the machine.
|
|
227
|
-
* @return {Promise.<string>}
|
|
228
|
-
* @tutorial System.getMachineId
|
|
229
|
-
*/
|
|
230
|
-
getMachineId(): Promise<string>;
|
|
231
|
-
/**
|
|
232
|
-
* Returns the minimum (inclusive) logging level that is currently being written to the log.
|
|
233
|
-
* @return {Promise.<LogLevel>}
|
|
234
|
-
* @tutorial System.getMinLogLevel
|
|
235
|
-
*/
|
|
236
|
-
getMinLogLevel(): Promise<LogLevel>;
|
|
237
|
-
/**
|
|
238
|
-
* Retrieves an array containing information for each log file.
|
|
239
|
-
* @return {Promise.Array<LogInfo>}
|
|
240
|
-
* @tutorial System.getLogList
|
|
241
|
-
*/
|
|
242
|
-
getLogList(): Promise<Array<LogInfo>>;
|
|
243
|
-
/**
|
|
244
|
-
* Retrieves an object that contains data about the monitor setup of the
|
|
245
|
-
* computer that the runtime is running on.
|
|
246
|
-
* @return {Promise.<MonitorInfo>}
|
|
247
|
-
* @tutorial System.getMonitorInfo
|
|
248
|
-
*/
|
|
249
|
-
getMonitorInfo(): Promise<OpenFin.MonitorInfo>;
|
|
250
|
-
/**
|
|
251
|
-
* Returns the mouse in virtual screen coordinates (left, top).
|
|
252
|
-
* @return {Promise.<PointTopLeft>}
|
|
253
|
-
* @tutorial System.getMousePosition
|
|
254
|
-
*/
|
|
255
|
-
getMousePosition(): Promise<OpenFin.PointTopLeft>;
|
|
256
|
-
/**
|
|
257
|
-
* Retrieves an array of all of the runtime processes that are currently
|
|
258
|
-
* running. Each element in the array is an object containing the uuid
|
|
259
|
-
* and the name of the application to which the process belongs.
|
|
260
|
-
* @deprecated Please use our new set of process APIs:
|
|
261
|
-
* [Window.getProcessInfo]{@link Window#getProcessInfo}
|
|
262
|
-
* [View.getProcessInfo]{@link View#getProcessInfo}
|
|
263
|
-
* [Application.getProcessInfo]{@link Application#getProcessInfo}
|
|
264
|
-
* [System.getAllProcessInfo]{@link System#getAllProcessInfo}
|
|
265
|
-
* @return {Promise.Array.<ProcessInfo>}
|
|
266
|
-
* @tutorial System.getProcessList
|
|
267
|
-
*/
|
|
268
|
-
getProcessList(): Promise<Array<any>>;
|
|
269
|
-
/**
|
|
270
|
-
* Retrieves all process information. This includes the browser process and every process associated to all entities (windows and views).
|
|
271
|
-
* @return {Promise.<SystemProcessInfo>}
|
|
272
|
-
* @tutorial System.getAllProcessInfo
|
|
273
|
-
* @experimental
|
|
274
|
-
*/
|
|
275
|
-
getAllProcessInfo(): Promise<OpenFin.SystemProcessInfo>;
|
|
276
|
-
/**
|
|
277
|
-
* Retrieves the Proxy settings.
|
|
278
|
-
* @return {Promise.<ProxyInfo>}
|
|
279
|
-
* @tutorial System.getProxySettings
|
|
280
|
-
*/
|
|
281
|
-
getProxySettings(): Promise<ProxyInfo>;
|
|
282
|
-
/**
|
|
283
|
-
* Returns information about the running Runtime in an object.
|
|
284
|
-
* @return {Promise.<RuntimeInfo>}
|
|
285
|
-
* @tutorial System.getRuntimeInfo
|
|
286
|
-
*/
|
|
287
|
-
getRuntimeInfo(): Promise<OpenFin.RuntimeInfo>;
|
|
288
|
-
/**
|
|
289
|
-
* Returns information about the running RVM in an object.
|
|
290
|
-
* @return {Promise.<RVMInfo>}
|
|
291
|
-
* @tutorial System.getRvmInfo
|
|
292
|
-
*/
|
|
293
|
-
getRvmInfo(): Promise<OpenFin.RVMInfo>;
|
|
294
|
-
/**
|
|
295
|
-
* Retrieves system information.
|
|
296
|
-
* @return {Promise.<HostSpecs>}
|
|
297
|
-
* @tutorial System.getHostSpecs
|
|
298
|
-
*/
|
|
299
|
-
getHostSpecs(): Promise<OpenFin.HostSpecs>;
|
|
300
|
-
/**
|
|
301
|
-
* Runs an executable or batch file. A path to the file must be included in options.
|
|
302
|
-
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
303
|
-
* <br> Note: This method is restricted by default and must be enabled via
|
|
304
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
|
|
305
|
-
* @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
|
|
306
|
-
* @return {Promise.<Identity>}
|
|
307
|
-
* @tutorial System.launchExternalProcess
|
|
308
|
-
*/
|
|
309
|
-
launchExternalProcess(options: OpenFin.ExternalProcessRequestType): Promise<Identity>;
|
|
310
|
-
/**
|
|
311
|
-
* Monitors a running process. A pid for the process must be included in options.
|
|
312
|
-
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
313
|
-
* @param { ExternalProcessInfo } options See tutorial for more details
|
|
314
|
-
* @return {Promise.<Identity>}
|
|
315
|
-
* @tutorial System.monitorExternalProcess
|
|
316
|
-
*/
|
|
317
|
-
monitorExternalProcess(options: OpenFin.ExternalProcessInfo): Promise<Identity>;
|
|
318
|
-
/**
|
|
319
|
-
* Writes the passed message into both the log file and the console.
|
|
320
|
-
* @param { string } level The log level for the entry. Can be either "info", "warning" or "error"
|
|
321
|
-
* @param { string } message The log message text
|
|
322
|
-
* @return {Promise.<void>}
|
|
323
|
-
* @tutorial System.log
|
|
324
|
-
*/
|
|
325
|
-
log(level: string, message: string): Promise<void>;
|
|
326
|
-
/**
|
|
327
|
-
* Opens the passed URL in the default web browser. It only supports http(s) and fin(s) protocols by default.
|
|
328
|
-
* In order to use other custom protocols, they have to be enabled via
|
|
329
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
330
|
-
* File protocol and file path are not supported.
|
|
331
|
-
* @param { string } url The URL to open
|
|
332
|
-
* @return {Promise.<void>}
|
|
333
|
-
* @tutorial System.openUrlWithBrowser
|
|
334
|
-
*/
|
|
335
|
-
openUrlWithBrowser(url: string): Promise<void>;
|
|
336
|
-
/**
|
|
337
|
-
* Removes the process entry for the passed UUID obtained from a prior call
|
|
338
|
-
* of fin.System.launchExternalProcess().
|
|
339
|
-
* @param { string } uuid The UUID for a process obtained from a prior call to fin.desktop.System.launchExternalProcess()
|
|
340
|
-
* @return {Promise.<void>}
|
|
341
|
-
* @tutorial System.releaseExternalProcess
|
|
342
|
-
*/
|
|
343
|
-
releaseExternalProcess(uuid: string): Promise<void>;
|
|
344
|
-
/**
|
|
345
|
-
* Shows the Chromium Developer Tools for the specified window
|
|
346
|
-
* @param { Identity } identity This is a object that is defined by the Identity interface
|
|
347
|
-
* @return {Promise.<void>}
|
|
348
|
-
* @tutorial System.showDeveloperTools
|
|
349
|
-
*/
|
|
350
|
-
showDeveloperTools(identity: Identity): Promise<void>;
|
|
351
|
-
/**
|
|
352
|
-
* Attempt to close an external process. The process will be terminated if it
|
|
353
|
-
* has not closed after the elapsed timeout in milliseconds.<br>
|
|
354
|
-
* Note: This method is restricted by default and must be enabled via
|
|
355
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
356
|
-
* @param { TerminateExternalRequestType } options A object defined in the TerminateExternalRequestType interface
|
|
357
|
-
* @return {Promise.<void>}
|
|
358
|
-
* @tutorial System.terminateExternalProcess
|
|
359
|
-
*/
|
|
360
|
-
terminateExternalProcess(options: OpenFin.TerminateExternalRequestType): Promise<void>;
|
|
361
|
-
/**
|
|
362
|
-
* Update the OpenFin Runtime Proxy settings.
|
|
363
|
-
* @param { ProxyConfig } options A config object defined in the ProxyConfig interface
|
|
364
|
-
* @return {Promise.<void>}
|
|
365
|
-
* @tutorial System.updateProxySettings
|
|
366
|
-
*/
|
|
367
|
-
updateProxySettings(options: ProxyConfig): Promise<void>;
|
|
368
|
-
/**
|
|
369
|
-
* Downloads the given application asset<br>
|
|
370
|
-
* Note: This method is restricted by default and must be enabled via
|
|
371
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
372
|
-
* @param { AppAssetInfo } appAsset App asset object
|
|
373
|
-
* @return {Promise.<void>}
|
|
374
|
-
* @tutorial System.downloadAsset
|
|
375
|
-
*/
|
|
376
|
-
downloadAsset(appAsset: OpenFin.AppAssetInfo, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
|
377
|
-
/**
|
|
378
|
-
* Downloads a version of the runtime.
|
|
379
|
-
* @param { RuntimeDownloadOptions } options - Download options.
|
|
380
|
-
* @param {Function} [progressListener] - called as the runtime is downloaded with progress information.
|
|
381
|
-
* @return {Promise.<void>}
|
|
382
|
-
* @tutorial System.downloadRuntime
|
|
383
|
-
*/
|
|
384
|
-
downloadRuntime(options: OpenFin.RuntimeDownloadOptions, progressListener: (progress: OpenFin.RuntimeDownloadProgress) => void): Promise<void>;
|
|
385
|
-
/**
|
|
386
|
-
* Download preload scripts from given URLs
|
|
387
|
-
* @param {DownloadPreloadOption[]} scripts - URLs of preload scripts. See tutorial for more details.
|
|
388
|
-
* @return {Promise.Array<DownloadPreloadInfo>}
|
|
389
|
-
* @tutorial System.downloadPreloadScripts
|
|
390
|
-
*/
|
|
391
|
-
downloadPreloadScripts(scripts: Array<OpenFin.DownloadPreloadOption>): Promise<Array<OpenFin.DownloadPreloadInfo>>;
|
|
392
|
-
/**
|
|
393
|
-
* Retrieves an array of data (name, ids, bounds) for all application windows.
|
|
394
|
-
* @return {Promise.Array.<Identity>}
|
|
395
|
-
* @tutorial System.getAllExternalApplications
|
|
396
|
-
*/
|
|
397
|
-
getAllExternalApplications(): Promise<Array<Identity>>;
|
|
398
|
-
/**
|
|
399
|
-
* Retrieves app asset information.
|
|
400
|
-
* @param { AppAssetRequest } options
|
|
401
|
-
* @return {Promise.<AppAssetInfo>}
|
|
402
|
-
* @tutorial System.getAppAssetInfo
|
|
403
|
-
*/
|
|
404
|
-
getAppAssetInfo(options: OpenFin.AppAssetRequest): Promise<OpenFin.AppAssetInfo>;
|
|
405
|
-
/**
|
|
406
|
-
* Get additional info of cookies.
|
|
407
|
-
* @param { CookieOption } options - See tutorial for more details.
|
|
408
|
-
* @return {Promise.Array.<CookieInfo>}
|
|
409
|
-
* @tutorial System.getCookies
|
|
410
|
-
*/
|
|
411
|
-
getCookies(options: OpenFin.CookieOption): Promise<Array<OpenFin.CookieInfo>>;
|
|
412
|
-
/**
|
|
413
|
-
* Set the minimum log level above which logs will be written to the OpenFin log
|
|
414
|
-
* @param { LogLevel } The minimum level (inclusive) above which all calls to log will be written
|
|
415
|
-
* @return {Promise.<void>}
|
|
416
|
-
* @tutorial System.setMinLogLevel
|
|
417
|
-
*/
|
|
418
|
-
setMinLogLevel(level: LogLevel): Promise<void>;
|
|
419
|
-
/**
|
|
420
|
-
* Retrieves the UUID of the computer on which the runtime is installed
|
|
421
|
-
* @param { string } uuid The uuid of the running application
|
|
422
|
-
* @return {Promise.<ApplicationType>}
|
|
423
|
-
* @tutorial System.resolveUuid
|
|
424
|
-
*/
|
|
425
|
-
resolveUuid(uuid: string): Promise<Entity>;
|
|
426
|
-
/**
|
|
427
|
-
* Retrieves an array of data for all external applications
|
|
428
|
-
* @param { Identity } requestingIdentity This object is described in the Identity typedef
|
|
429
|
-
* @param { any } data Any data type to pass to the method
|
|
430
|
-
* @return {Promise.<any>}
|
|
431
|
-
* @ignore
|
|
432
|
-
*/
|
|
433
|
-
executeOnRemote(requestingIdentity: Identity, data: any): Promise<any>;
|
|
434
|
-
/**
|
|
435
|
-
* Reads the specifed value from the registry.<br>
|
|
436
|
-
* Note: This method is restricted by default and must be enabled via
|
|
437
|
-
* <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
|
|
438
|
-
* @param { string } rootKey - The registry root key.
|
|
439
|
-
* @param { string } subkey - The registry key.
|
|
440
|
-
* @param { string } value - The registry value name.
|
|
441
|
-
* @return {Promise.<RegistryInfo>}
|
|
442
|
-
* @tutorial System.readRegistryValue
|
|
443
|
-
*/
|
|
444
|
-
readRegistryValue(rootKey: string, subkey: string, value: string): Promise<RegistryInfo>;
|
|
445
|
-
/**
|
|
446
|
-
* This function call will register a unique id and produce a token.
|
|
447
|
-
* The token can be used to broker an external connection.
|
|
448
|
-
* @param { string } uuid - A UUID for the remote connection.
|
|
449
|
-
* @return {Promise.<ExternalConnection>}
|
|
450
|
-
* @tutorial System.registerExternalConnection
|
|
451
|
-
*/
|
|
452
|
-
registerExternalConnection(uuid: string): Promise<OpenFin.ExternalConnection>;
|
|
453
|
-
/**
|
|
454
|
-
* Returns the json blob found in the [desktop owner settings](https://openfin.co/documentation/desktop-owner-settings/)
|
|
455
|
-
* for the specified service.
|
|
456
|
-
* More information about desktop services can be found [here](https://developers.openfin.co/docs/desktop-services).
|
|
457
|
-
* @param { ServiceIdentifier } serviceIdentifier An object containing a name key that identifies the service.
|
|
458
|
-
* @return {Promise.<ServiceConfiguration>}
|
|
459
|
-
* @tutorial System.getServiceConfiguration
|
|
460
|
-
*/
|
|
461
|
-
getServiceConfiguration(serviceIdentifier: OpenFin.ServiceIdentifier): Promise<OpenFin.ServiceConfiguration>;
|
|
462
|
-
protected getSystemAppConfig(name: string): Promise<any>;
|
|
463
|
-
/**
|
|
464
|
-
* Registers a system shutdown handler so user can do some cleanup before system is shutting down.
|
|
465
|
-
* Note: Once system shutdown starts, you are unable to cancel it.
|
|
466
|
-
* @param { SystemShutdownHandler } handler system shutdown handler
|
|
467
|
-
* @return {Promise.<void>}
|
|
468
|
-
* @tutorial System.registerShutdownHandler
|
|
469
|
-
* @experimental
|
|
470
|
-
*/
|
|
471
|
-
registerShutdownHandler(handler: OpenFin.SystemShutdownHandler): Promise<void>;
|
|
472
|
-
/**
|
|
473
|
-
* Signals the RVM to perform a health check and returns the results as json.
|
|
474
|
-
* @return {Promise.<string[]>}
|
|
475
|
-
* @tutorial System.runRvmHealthCheck
|
|
476
|
-
*/
|
|
477
|
-
runRvmHealthCheck(): Promise<string[]>;
|
|
478
|
-
/**
|
|
479
|
-
* Launch application using a manifest URL/path. It differs from Application.startFromManifest in that this API can accept a manifest using the fin protocol.
|
|
480
|
-
* @param {string} manifestUrl - The manifest's URL or path.
|
|
481
|
-
* @param {RvmLaunchOptions} [opts] - Parameters that the RVM will use.
|
|
482
|
-
* @return {Promise.<Manifest>}
|
|
483
|
-
* @experimental
|
|
484
|
-
* @tutorial System.launchManifest
|
|
485
|
-
* @static
|
|
486
|
-
*/
|
|
487
|
-
launchManifest(manifestUrl: string, opts?: OpenFin.RvmLaunchOptions): Promise<OpenFin.Manifest>;
|
|
488
|
-
/**
|
|
489
|
-
* Query permission of a secured api in current context.
|
|
490
|
-
* @param {string} apiName - The full name of a secured API.
|
|
491
|
-
* @return {Promise.<QueryPermissionResult>}
|
|
492
|
-
* @tutorial System.queryPermissionForCurrentContext
|
|
493
|
-
*/
|
|
494
|
-
queryPermissionForCurrentContext(apiName: string): Promise<OpenFin.QueryPermissionResult>;
|
|
495
|
-
enableNativeWindowIntegrationProvider(permissions: any): Promise<OpenFin.NativeWindowIntegrationProviderAuthorization>;
|
|
496
|
-
/**
|
|
497
|
-
* (Internal) Register the usage of a component with a platform
|
|
498
|
-
* @param {OpenFin.RegisterUsageData} options - Object with data and type
|
|
499
|
-
* @return {Promise.<void>}
|
|
500
|
-
* @tutorial System.registerUsage
|
|
501
|
-
*/
|
|
502
|
-
registerUsage({ data, type }: OpenFin.RegisterUsageData): Promise<void>;
|
|
503
|
-
/**
|
|
504
|
-
* Returns an array with all printers of the caller and not all the printers on the desktop.
|
|
505
|
-
* @return { Promise.Array.<PrinterInfo> }
|
|
506
|
-
* @tutorial System.getPrinters
|
|
507
|
-
*/
|
|
508
|
-
getPrinters(): Promise<PrinterInfo[]>;
|
|
509
|
-
/**
|
|
510
|
-
* Updates Process Logging values: periodic interval and outlier detection entries and interval.
|
|
511
|
-
* @param {ProcessLoggingOptions} options Process Logging updatable options.
|
|
512
|
-
* @return { Promise<void> }
|
|
513
|
-
* @tutorial System.updateProcessLoggingOptions
|
|
514
|
-
*/
|
|
515
|
-
updateProcessLoggingOptions(options: OpenFin.ProcessLoggingOptions): Promise<void>;
|
|
516
|
-
}
|
|
517
|
-
export {};
|