@openfin/core 33.76.36 → 33.77.1
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 +17111 -0
- package/package.json +30 -23
- package/LICENSE +0 -13
- package/NOTICE +0 -16
- package/openfin-core-33.76.36.tgz +0 -0
- package/src/OpenFin.d.ts +0 -3091
- 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 -196
- package/src/api/application/Factory.js +0 -278
- package/src/api/application/Instance.d.ts +0 -692
- package/src/api/application/Instance.js +0 -821
- package/src/api/application/index.d.ts +0 -12
- package/src/api/application/index.js +0 -28
- package/src/api/base.d.ts +0 -117
- package/src/api/base.js +0 -246
- package/src/api/clipboard/index.d.ts +0 -172
- package/src/api/clipboard/index.js +0 -200
- package/src/api/events/application.d.ts +0 -158
- package/src/api/events/application.js +0 -14
- 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 -35
- package/src/api/events/channel.js +0 -7
- 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 -24
- package/src/api/events/externalApplication.js +0 -7
- package/src/api/events/frame.d.ts +0 -35
- package/src/api/events/frame.js +0 -2
- package/src/api/events/globalHotkey.d.ts +0 -25
- package/src/api/events/globalHotkey.js +0 -2
- package/src/api/events/platform.d.ts +0 -34
- package/src/api/events/platform.js +0 -10
- package/src/api/events/system.d.ts +0 -126
- package/src/api/events/system.js +0 -15
- 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 -92
- package/src/api/events/view.js +0 -12
- package/src/api/events/webcontents.d.ts +0 -277
- package/src/api/events/webcontents.js +0 -13
- package/src/api/events/window.d.ts +0 -421
- package/src/api/events/window.js +0 -12
- package/src/api/external-application/Factory.d.ts +0 -34
- package/src/api/external-application/Factory.js +0 -47
- package/src/api/external-application/Instance.d.ts +0 -110
- package/src/api/external-application/Instance.js +0 -117
- package/src/api/external-application/index.d.ts +0 -12
- package/src/api/external-application/index.js +0 -28
- package/src/api/fin.d.ts +0 -54
- package/src/api/fin.js +0 -45
- package/src/api/frame/Factory.d.ts +0 -54
- package/src/api/frame/Factory.js +0 -86
- package/src/api/frame/Instance.d.ts +0 -136
- package/src/api/frame/Instance.js +0 -143
- package/src/api/frame/index.d.ts +0 -14
- package/src/api/frame/index.js +0 -30
- package/src/api/global-hotkey/index.d.ts +0 -106
- package/src/api/global-hotkey/index.js +0 -132
- package/src/api/interappbus/channel/channel.d.ts +0 -285
- package/src/api/interappbus/channel/channel.js +0 -334
- package/src/api/interappbus/channel/channels-docs.d.ts +0 -342
- package/src/api/interappbus/channel/channels-docs.js +0 -401
- package/src/api/interappbus/channel/client.d.ts +0 -117
- package/src/api/interappbus/channel/client.js +0 -181
- 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 -189
- package/src/api/interappbus/channel/index.js +0 -333
- 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 -206
- package/src/api/interappbus/channel/provider.js +0 -338
- package/src/api/interappbus/index.d.ts +0 -120
- package/src/api/interappbus/index.js +0 -210
- package/src/api/interop/Factory.d.ts +0 -57
- package/src/api/interop/Factory.js +0 -96
- package/src/api/interop/InteropBroker.d.ts +0 -665
- package/src/api/interop/InteropBroker.js +0 -1313
- package/src/api/interop/InteropClient.d.ts +0 -502
- package/src/api/interop/InteropClient.js +0 -683
- 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/documentationStub.d.ts +0 -14
- package/src/api/interop/fdc3/documentationStub.js +0 -17
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -205
- package/src/api/interop/fdc3/fdc3-1.2.js +0 -435
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -298
- package/src/api/interop/fdc3/fdc3-2.0.js +0 -479
- 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 -12
- package/src/api/interop/index.js +0 -28
- 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 -171
- package/src/api/platform/Factory.js +0 -240
- package/src/api/platform/Instance.d.ts +0 -653
- package/src/api/platform/Instance.js +0 -834
- 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 -12
- package/src/api/platform/index.js +0 -28
- package/src/api/platform/layout/Factory.d.ts +0 -91
- package/src/api/platform/layout/Factory.js +0 -151
- package/src/api/platform/layout/Instance.d.ts +0 -192
- package/src/api/platform/layout/Instance.js +0 -224
- 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 -427
- package/src/api/platform/layout/entities/layout-entities.js +0 -504
- 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 -11
- package/src/api/platform/layout/index.js +0 -27
- 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 -510
- package/src/api/platform/provider.js +0 -2
- package/src/api/snapshot-source/Factory.d.ts +0 -53
- package/src/api/snapshot-source/Factory.js +0 -81
- package/src/api/snapshot-source/Instance.d.ts +0 -53
- package/src/api/snapshot-source/Instance.js +0 -154
- package/src/api/snapshot-source/index.d.ts +0 -12
- package/src/api/snapshot-source/index.js +0 -28
- 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 -1468
- package/src/api/system/index.js +0 -1851
- package/src/api/view/Factory.d.ts +0 -88
- package/src/api/view/Factory.js +0 -141
- package/src/api/view/Instance.d.ts +0 -601
- package/src/api/view/Instance.js +0 -671
- package/src/api/view/index.d.ts +0 -12
- package/src/api/view/index.js +0 -28
- package/src/api/webcontents/main.d.ts +0 -922
- package/src/api/webcontents/main.js +0 -1046
- package/src/api/window/Factory.d.ts +0 -96
- package/src/api/window/Factory.js +0 -142
- package/src/api/window/Instance.d.ts +0 -1598
- package/src/api/window/Instance.js +0 -1851
- package/src/api/window/index.d.ts +0 -14
- package/src/api/window/index.js +0 -30
- 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 -22
- package/src/namespaces.js +0 -26
- 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 -204
- 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,298 +0,0 @@
|
|
|
1
|
-
import type * as FDC3v1 from './shapes/fdc3v1';
|
|
2
|
-
import type * as FDC3v2 from './shapes/fdc3v2';
|
|
3
|
-
import { Base } from '../../base';
|
|
4
|
-
import { Transport } from '../../../transport/transport';
|
|
5
|
-
/**
|
|
6
|
-
* @typedef { object } AppIdentifier
|
|
7
|
-
* @summary Identifies an application, or instance of an application, and is used to target FDC3 API calls at specific applications.
|
|
8
|
-
* @property { string } appId The unique application identifier located within a specific application directory instance. An example of an appId might be 'app@sub.root'.
|
|
9
|
-
* @property { string } [instancedId] An optional instance identifier, indicating that this object represents a specific instance of the application described. The endpointId should be used as the instanceId. The most convenient way to get this would be to use the InteropBroker.getAllClientInfo API.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* @typedef { Context | Channel } IntentResult
|
|
13
|
-
* @summary Describes results that an Intent handler may optionally return that should be communicated back to the app that raised the intent, via the IntentResolution.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @typedef { object } Icon
|
|
17
|
-
* @summary Metadata relating to a single icon image at a remote URL, used to represent an application in a user interface.
|
|
18
|
-
* @property { string } src The fully qualified url to the icon.
|
|
19
|
-
* @property { string } [size] The dimensions of the Icon formatted as <height>x<width>.
|
|
20
|
-
* @property { string } [type] The media type of the icon. If not provided the Desktop Agent may refer to the src file extension.
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @typedef { object } Image
|
|
24
|
-
* @summary Metadata relating to a single image at a remote URL, used to represent screenshot images.
|
|
25
|
-
* @property { string } src The fully qualified url to the image.
|
|
26
|
-
* @property { string } [size] The dimensions of the image formatted as <height>x<width>.
|
|
27
|
-
* @property { string } [type] The media type of the image. If not provided the Desktop Agent may refer to the src file extension.
|
|
28
|
-
* @property { string } [label]
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* @typedef { object } AppMetadata
|
|
32
|
-
* @variation 2
|
|
33
|
-
* @summary Extends an AppIdentifier, describing an application or instance of an application, with additional descriptive metadata that is usually provided by an FDC3 App Directory that the desktop agent connects to.
|
|
34
|
-
* @property { string } appId The unique application identifier located within a specific application directory instance. An example of an appId might be 'app@sub.root'.
|
|
35
|
-
* @property { string } [instanceId] An optional instance identifier, indicating that this object represents a specific instance of the application described. The endpointId should be used as the instanceId. The most convenient way to get this would be to use the InteropBroker.getAllClientInfo API.
|
|
36
|
-
* @property { string } [name] The 'friendly' app name. This field was used with the `open` and `raiseIntent` calls in FDC3 <2.0, which now require an `AppIdentifier` with `appId` set. Note that for display purposes the `title` field should be used, if set, in preference to this field.
|
|
37
|
-
* @property { string } [version] The version of the application.
|
|
38
|
-
* @property { Record<string, any> } [instanceMetadata]
|
|
39
|
-
* @property { string } [title] A more user-friendly application title that can be used to render UI elements.
|
|
40
|
-
* @property { string } [tooltip] A tooltip for the application that can be used to render UI elements.
|
|
41
|
-
* @property { string } [description] A longer, multi-paragraph description for the application that could include mark-up.
|
|
42
|
-
* @property { Array<Icon> } [icons] A list of icon URLs for the application that can be used to render UI elements.
|
|
43
|
-
* @property { Array<Image> } [screenshots] Images representing the app in common usage scenarios that can be used to render UI elements.
|
|
44
|
-
* @property { string | null } [resultType] The type of result returned for any intent specified during resolution. May express a particular context type (e.g. "fdc3.instrument"), channel (e.g. "channel") or a channel that will receive a specified type (e.g. "channel<fdc3.instrument>").
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* @typedef { object } ContextMetadata
|
|
48
|
-
* @summary Metadata relating to a context or intent & context received through the addContextListener and addIntentListener functions. Currently identifies the app that originated the context or intent message.
|
|
49
|
-
* @property { AppIdentifier } source Identifier for the app instance that sent the context and/or intent.
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* @typedef { object } ImplementationMetadataOptionalFeatures
|
|
53
|
-
* @property { boolean } originatingAppMetadata Used to indicate whether the exposure of 'originating app metadata' for context and intent messages is supported by the Desktop Agent.
|
|
54
|
-
* @property { boolean } userChannelMembershipAPIs Used to indicate whether the optional `fdc3.joinUserChannel`, `fdc3.getCurrentChannel` and `fdc3.leaveCurrentChannel` are implemented by the Desktop Agent.
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
* @typedef { object } ImplementationMetadata
|
|
58
|
-
* @variation 2
|
|
59
|
-
* @summary Metadata relating to the FDC3 DesktopAgent object and its provider, including the supported version of the FDC3 specification, the name of the provider of the implementation, its own version number and the metadata of the calling application according to the desktop agent.
|
|
60
|
-
* @property { string } fdc3Version The FDC3 version
|
|
61
|
-
* @property { string } provider The provider's uuid prepended with 'openfin' (e.g. 'openfin-myUuid').
|
|
62
|
-
* @property { string } [providerVersion] The provider runtime version
|
|
63
|
-
* @property { ImplementationMetadataOptionalFeatures } optionalFeatures
|
|
64
|
-
* @property { AppMetadata } appMetadata The calling application instance's own metadata, according to the Desktop Agent (MUST include at least the `appId` and `instanceId`).
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* @callback ContextHandler
|
|
68
|
-
* @variation 2
|
|
69
|
-
* @param context
|
|
70
|
-
* @param contextMetadata
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* @callback IntentHandler
|
|
75
|
-
* @variation 2
|
|
76
|
-
* @param context
|
|
77
|
-
* @param contextMetadata
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* @typedef { object } IntentMetadata
|
|
82
|
-
* @summary The interface used to describe an intent within the platform.
|
|
83
|
-
* @property { string } name The unique name of the intent that can be invoked by the raiseIntent call.
|
|
84
|
-
* @property { string } displayName A friendly display name for the intent that should be used to render UI elements.
|
|
85
|
-
*/
|
|
86
|
-
/**
|
|
87
|
-
* @typedef { object } AppIntent
|
|
88
|
-
* @variation 2
|
|
89
|
-
* @summary An interface that represents the binding of an intent to apps, returned as part of intent discovery. For each intent, it references the applications that support that intent.
|
|
90
|
-
* @property { IntentMetadata } intent Details of the intent whose relationship to resolving applications is being described
|
|
91
|
-
* @property { Array<AppMetadata> } apps
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* @name getResult
|
|
95
|
-
* @function
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
/**
|
|
99
|
-
* @typedef { object } IntentResolution
|
|
100
|
-
* @variation 2
|
|
101
|
-
* @summary Provides a standard format for data returned upon resolving an intent.
|
|
102
|
-
* @property { AppIdentifier } source Identifier for the app instance that was selected (or started) to resolve the intent.
|
|
103
|
-
* @property { string } Intent Intent name
|
|
104
|
-
* @property { string } [version] The version number of the Intents schema being used.
|
|
105
|
-
* @property { Function } getResult {@link getResult Function} that returns a promise that will resolve to either `Context` data returned by the application that resolves the raised intent or a `Channel` established and returned by the app resolving the intent.
|
|
106
|
-
*/
|
|
107
|
-
/**
|
|
108
|
-
* @typedef { object } PrivateChannel
|
|
109
|
-
* @summary Object representing a private context channel, which is intended to support secure communication between applications, and extends the Channel interface with event handlers which provide information on the connection state of both parties, ensuring that desktop agents do not need to queue or retain messages that are broadcast before a context listener is added and that applications are able to stop broadcasting messages when the other party has disconnected.
|
|
110
|
-
* @property { string } id Private Channel Id
|
|
111
|
-
* @property { string } type Channel Type
|
|
112
|
-
* @property { DisplayMetadata } [displayMetadata]
|
|
113
|
-
* @property { function } broadcast
|
|
114
|
-
* @property { function } getCurrentContext
|
|
115
|
-
* @property { function } addContextListener
|
|
116
|
-
* @property { function } onAddContextListener
|
|
117
|
-
* @property { function } onUnsubscribe
|
|
118
|
-
* @property { function } onDisconnect
|
|
119
|
-
* @property { function } disconnect
|
|
120
|
-
*/
|
|
121
|
-
/**
|
|
122
|
-
* @version 2.0
|
|
123
|
-
* The FDC3 Client Library provides a set APIs to be used for FDC3 compliance,
|
|
124
|
-
* while using our Interop API under the hood. In order to use this set of APIs
|
|
125
|
-
* you will need to set up your own {@link InteropBroker InteropBroker} or use a Platform application, which does the setup for you. Refer to our documentation on
|
|
126
|
-
* our {@link https://developers.openfin.co/of-docs/docs/enable-context-sharing Interop API}.
|
|
127
|
-
*
|
|
128
|
-
* To enable the FDC3 APIs in a {@link Window Window} or {@link View View}, add the fdc3InteropApi
|
|
129
|
-
* property to its options:
|
|
130
|
-
*
|
|
131
|
-
* ```js
|
|
132
|
-
* {
|
|
133
|
-
* autoShow: false,
|
|
134
|
-
* saveWindowState: true,
|
|
135
|
-
* url: 'https://openfin.co',
|
|
136
|
-
* fdc3InteropApi: '2.0'
|
|
137
|
-
* }
|
|
138
|
-
* ```
|
|
139
|
-
*
|
|
140
|
-
* If using a {@link Platform Platform } application, you can set this property in defaultWindowOptions and defaultViewOptions.
|
|
141
|
-
*
|
|
142
|
-
* In order to ensure that the FDC3 Api is ready before use, you can use the 'fdc3Ready' event fired on the DOM Window object:
|
|
143
|
-
*
|
|
144
|
-
* ```js
|
|
145
|
-
* function fdc3Action() {
|
|
146
|
-
* // Make some fdc3 API calls here
|
|
147
|
-
* }
|
|
148
|
-
*
|
|
149
|
-
* if (window.fdc3) {
|
|
150
|
-
* fdc3Action();
|
|
151
|
-
* } else {
|
|
152
|
-
* window.addEventListener('fdc3Ready', fdc3Action);
|
|
153
|
-
* }
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
|
|
157
|
-
private fdc3Module;
|
|
158
|
-
constructor(wire: Transport);
|
|
159
|
-
/**
|
|
160
|
-
* Launches an app, specified via an AppIdentifier object.
|
|
161
|
-
* @param app
|
|
162
|
-
* @param context
|
|
163
|
-
*
|
|
164
|
-
* @tutorial fdc3.open
|
|
165
|
-
*/
|
|
166
|
-
open(app: FDC3v2.AppIdentifier | FDC3v1.TargetApp, context?: FDC3v2.Context): Promise<FDC3v2.AppIdentifier>;
|
|
167
|
-
/**
|
|
168
|
-
* Find all the available instances for a particular application.
|
|
169
|
-
* @param app
|
|
170
|
-
*
|
|
171
|
-
* @tutorial fdc3v2.findInstances
|
|
172
|
-
*/
|
|
173
|
-
findInstances(app: FDC3v2.AppIdentifier): Promise<Array<FDC3v2.AppIdentifier>>;
|
|
174
|
-
/**
|
|
175
|
-
* Retrieves the AppMetadata for an AppIdentifier, which provides additional metadata (such as icons, a title and description) from the App Directory record for the application, that may be used for display purposes.
|
|
176
|
-
* @param app
|
|
177
|
-
*
|
|
178
|
-
* @tutorial fdc3v2.getAppMetadata
|
|
179
|
-
*/
|
|
180
|
-
getAppMetadata(app: FDC3v2.AppIdentifier): Promise<FDC3v2.AppMetadata>;
|
|
181
|
-
/**
|
|
182
|
-
* Broadcasts a context for the channel of the current entity.
|
|
183
|
-
* @param context - New context to set.
|
|
184
|
-
*
|
|
185
|
-
* @tutorial fdc3.broadcast
|
|
186
|
-
*/
|
|
187
|
-
broadcast(context: FDC3v2.Context): Promise<void>;
|
|
188
|
-
/**
|
|
189
|
-
* Add a context handler for incoming context. If an entity is part of a context group, and then sets its context handler, it will receive all of its declared contexts. If you wish to listen for all incoming contexts, pass `null` for the contextType argument.
|
|
190
|
-
* @param contextType
|
|
191
|
-
* @param handler
|
|
192
|
-
*
|
|
193
|
-
* @tutorial fdc3.addContextListener
|
|
194
|
-
*/
|
|
195
|
-
addContextListener(contextType: string | null, handler: FDC3v2.ContextHandler): Promise<FDC3v2.Listener>;
|
|
196
|
-
/**
|
|
197
|
-
* Find out more information about a particular intent by passing its name, and optionally its context and resultType.
|
|
198
|
-
* @param intent Name of the Intent
|
|
199
|
-
* @param context Context
|
|
200
|
-
* @param resultType The type of result returned for any intent specified during resolution.
|
|
201
|
-
*
|
|
202
|
-
* @tutorial fdc3.findIntent
|
|
203
|
-
*/
|
|
204
|
-
findIntent(intent: string, context?: FDC3v2.Context, resultType?: string): Promise<FDC3v2.AppIntent>;
|
|
205
|
-
/**
|
|
206
|
-
* Find all the available intents for a particular context.
|
|
207
|
-
* @param context
|
|
208
|
-
* @param resultType The type of result returned for any intent specified during resolution.
|
|
209
|
-
*
|
|
210
|
-
* @tutorial fdc3v2.findIntentsByContext
|
|
211
|
-
*/
|
|
212
|
-
findIntentsByContext(context: FDC3v2.Context, resultType?: string): Promise<Array<FDC3v2.AppIntent>>;
|
|
213
|
-
/**
|
|
214
|
-
* Raises a specific intent for resolution against apps registered with the desktop agent.
|
|
215
|
-
* @param intent Name of the Intent
|
|
216
|
-
* @param context Context associated with the Intent
|
|
217
|
-
* @param app
|
|
218
|
-
*
|
|
219
|
-
* @tutorial fdc3v2.raiseIntent
|
|
220
|
-
*/
|
|
221
|
-
raiseIntent(intent: string, context: FDC3v2.Context, app?: FDC3v2.AppIdentifier | FDC3v1.TargetApp): Promise<FDC3v2.IntentResolution>;
|
|
222
|
-
/**
|
|
223
|
-
* Finds and raises an intent against apps registered with the desktop agent based purely on the type of the context data.
|
|
224
|
-
* @param context Context associated with the Intent
|
|
225
|
-
* @param app
|
|
226
|
-
*
|
|
227
|
-
* @tutorial fdc3v2.raiseIntentForContext
|
|
228
|
-
*/
|
|
229
|
-
raiseIntentForContext(context: FDC3v2.Context, app?: FDC3v2.AppIdentifier | FDC3v1.TargetApp): Promise<FDC3v2.IntentResolution>;
|
|
230
|
-
/**
|
|
231
|
-
* Adds a listener for incoming intents.
|
|
232
|
-
* @param intent Name of the Intent
|
|
233
|
-
* @param handler A callback that handles a context event and may return a promise of a Context or Channel object to be returned to the application that raised the intent.
|
|
234
|
-
*
|
|
235
|
-
* @tutorial fdc3.addIntentListener
|
|
236
|
-
*/
|
|
237
|
-
addIntentListener(intent: string, handler: FDC3v2.IntentHandler): Promise<FDC3v1.Listener>;
|
|
238
|
-
/**
|
|
239
|
-
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
240
|
-
* @param channelId
|
|
241
|
-
*
|
|
242
|
-
* @tutorial fdc3.getOrCreateChannel
|
|
243
|
-
*/
|
|
244
|
-
getOrCreateChannel(channelId: string): Promise<FDC3v2.Channel>;
|
|
245
|
-
/**
|
|
246
|
-
* Returns a Channel with an auto-generated identity that is intended for private communication between applications. Primarily used to create channels that will be returned to other applications via an IntentResolution for a raised intent.
|
|
247
|
-
*
|
|
248
|
-
* @tutorial fdc3v2.createPrivateChannel
|
|
249
|
-
*/
|
|
250
|
-
createPrivateChannel(): Promise<FDC3v2.PrivateChannel>;
|
|
251
|
-
/**
|
|
252
|
-
* Retrieves a list of the User Channels available for the app to join.
|
|
253
|
-
*
|
|
254
|
-
* @tutorial fdc3v2.getUserChannels
|
|
255
|
-
*/
|
|
256
|
-
getUserChannels(): Promise<Array<FDC3v1.SystemChannel>>;
|
|
257
|
-
/**
|
|
258
|
-
* Retrieves a list of the User Channels available for the app to join.
|
|
259
|
-
*
|
|
260
|
-
* @deprecated Please use {@link fdc3.getUserChannels fdc3.getUserChannels} instead
|
|
261
|
-
* @tutorial fdc3.getSystemChannels
|
|
262
|
-
*/
|
|
263
|
-
getSystemChannels(): Promise<Array<FDC3v1.SystemChannel>>;
|
|
264
|
-
/**
|
|
265
|
-
* Join an app to a specified User channel.
|
|
266
|
-
* @param channelId Channel name
|
|
267
|
-
*
|
|
268
|
-
* @tutorial fdc3v2.joinUserChannel
|
|
269
|
-
*/
|
|
270
|
-
joinUserChannel(channelId: string): Promise<void>;
|
|
271
|
-
/**
|
|
272
|
-
* Join an app to a specified User channel.
|
|
273
|
-
* @param channelId Channel name
|
|
274
|
-
* @deprecated Please use {@link fdc3.joinUserChannel fdc3.joinUserChannel} instead
|
|
275
|
-
*
|
|
276
|
-
* @tutorial fdc3.joinChannel
|
|
277
|
-
*/
|
|
278
|
-
joinChannel(channelId: string): Promise<void>;
|
|
279
|
-
/**
|
|
280
|
-
* Returns the Channel object for the current User channel membership
|
|
281
|
-
*
|
|
282
|
-
* @tutorial fdc3.getCurrentChannel
|
|
283
|
-
*/
|
|
284
|
-
getCurrentChannel(): Promise<FDC3v2.Channel | null>;
|
|
285
|
-
/**
|
|
286
|
-
* Removes the app from any User channel membership.
|
|
287
|
-
*
|
|
288
|
-
* @tutorial fdc3.leaveCurrentChannel
|
|
289
|
-
*/
|
|
290
|
-
leaveCurrentChannel(): Promise<void>;
|
|
291
|
-
/**
|
|
292
|
-
* Retrieves information about the FDC3 implementation, including the supported version of the FDC3 specification, the name of the provider of the implementation, its own version number, details of whether optional API features are implemented and the metadata of the calling application according to the desktop agent.
|
|
293
|
-
* fdc3HandleGetInfo must be overridden in the InteropBroker so that the ImplementationMetadata will have the appMetadata info.
|
|
294
|
-
*
|
|
295
|
-
* @tutorial fdc3v2.getInfo
|
|
296
|
-
*/
|
|
297
|
-
getInfo(): Promise<FDC3v2.ImplementationMetadata>;
|
|
298
|
-
}
|