@openfin/node-adapter 34.78.9 → 34.78.11
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/out/node-adapter-alpha.d.ts +205 -90
- package/out/node-adapter-beta.d.ts +205 -90
- package/out/node-adapter-public.d.ts +205 -90
- package/out/node-adapter.d.ts +210 -73
- package/out/node-adapter.js +69 -20
- package/package.json +1 -1
package/out/node-adapter.d.ts
CHANGED
|
@@ -851,7 +851,10 @@ declare type ApplicationCreationOptions = Partial<ApplicationOptions> & {
|
|
|
851
851
|
};
|
|
852
852
|
|
|
853
853
|
/**
|
|
854
|
-
*
|
|
854
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by an {@link Application}. Events are
|
|
855
|
+
* discriminated by {@link ApplicationEvent.type | their type}. Event payloads unique to `Application` can be found
|
|
856
|
+
* under the {@link OpenFin.ApplicationEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
857
|
+
* from which they propagate).
|
|
855
858
|
*/
|
|
856
859
|
declare type ApplicationEvent = {
|
|
857
860
|
topic: 'application';
|
|
@@ -1480,6 +1483,9 @@ declare type AutoResizeOptions = {
|
|
|
1480
1483
|
};
|
|
1481
1484
|
|
|
1482
1485
|
declare class Base {
|
|
1486
|
+
/**
|
|
1487
|
+
* @internal
|
|
1488
|
+
*/
|
|
1483
1489
|
wire: Transport;
|
|
1484
1490
|
/**
|
|
1485
1491
|
* @internal
|
|
@@ -1589,6 +1595,9 @@ declare type BaseViewEvent = NamedEvent & {
|
|
|
1589
1595
|
viewIdentity: OpenFin.Identity;
|
|
1590
1596
|
};
|
|
1591
1597
|
|
|
1598
|
+
/**
|
|
1599
|
+
* User decision of whether a Window or specific View should close when trying to prevent an unload.
|
|
1600
|
+
*/
|
|
1592
1601
|
declare interface BeforeUnloadUserDecision {
|
|
1593
1602
|
/**
|
|
1594
1603
|
* Specifies if the Window should close.
|
|
@@ -1914,7 +1923,7 @@ declare type Channel_3 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
1914
1923
|
|
|
1915
1924
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
1916
1925
|
|
|
1917
|
-
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 |
|
|
1926
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
|
1918
1927
|
|
|
1919
1928
|
declare class ChannelBase {
|
|
1920
1929
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2227,7 +2236,7 @@ declare class ChannelClient extends ChannelBase {
|
|
|
2227
2236
|
/**
|
|
2228
2237
|
* @internal
|
|
2229
2238
|
*/
|
|
2230
|
-
constructor(routingInfo: RoutingInfo, wire: Transport, strategy: AnyStrategy);
|
|
2239
|
+
constructor(routingInfo: OpenFin.RoutingInfo, wire: Transport, strategy: AnyStrategy);
|
|
2231
2240
|
protected processAction: (action: string, payload: any, senderIdentity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<any>;
|
|
2232
2241
|
/**
|
|
2233
2242
|
* a read-only provider identity
|
|
@@ -2277,7 +2286,7 @@ declare class ChannelClient extends ChannelBase {
|
|
|
2277
2286
|
* })();
|
|
2278
2287
|
* ```
|
|
2279
2288
|
*/
|
|
2280
|
-
onDisconnection(listener:
|
|
2289
|
+
onDisconnection(listener: OpenFin.ChannelProviderDisconnectionListener): void;
|
|
2281
2290
|
/**
|
|
2282
2291
|
* Disconnects the client from the channel.
|
|
2283
2292
|
*
|
|
@@ -2297,6 +2306,10 @@ declare class ChannelClient extends ChannelBase {
|
|
|
2297
2306
|
|
|
2298
2307
|
declare type ChannelClient_2 = OpenFin.ChannelClient;
|
|
2299
2308
|
|
|
2309
|
+
declare type ChannelClientConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
|
|
2310
|
+
|
|
2311
|
+
declare type ChannelClientDisconnectionListener = (identity: ClientIdentity) => any;
|
|
2312
|
+
|
|
2300
2313
|
/**
|
|
2301
2314
|
* Generated when a Channel client is connected.
|
|
2302
2315
|
* @interface
|
|
@@ -2348,26 +2361,9 @@ declare type ChannelEvent = {
|
|
|
2348
2361
|
topic: 'channel';
|
|
2349
2362
|
} & (ChannelConnectedEvent | ChannelDisconnectedEvent);
|
|
2350
2363
|
|
|
2351
|
-
declare type ChannelEvent_2 = ChannelEvents.ChannelEvent;
|
|
2352
|
-
|
|
2353
|
-
declare namespace ChannelEvents {
|
|
2354
|
-
export {
|
|
2355
|
-
BaseChannelEvent,
|
|
2356
|
-
ChannelConnectedEvent,
|
|
2357
|
-
ChannelDisconnectedEvent,
|
|
2358
|
-
ChannelEvent,
|
|
2359
|
-
ChannelEventType
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
/**
|
|
2364
|
-
* A Channel event type.
|
|
2365
|
-
*/
|
|
2366
|
-
declare type ChannelEventType = ChannelEvent['type'];
|
|
2367
|
-
|
|
2368
2364
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2369
2365
|
|
|
2370
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 |
|
|
2366
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2371
2367
|
|
|
2372
2368
|
/**
|
|
2373
2369
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2493,7 +2489,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2493
2489
|
* ```
|
|
2494
2490
|
* @param listener
|
|
2495
2491
|
*/
|
|
2496
|
-
onConnection(listener:
|
|
2492
|
+
onConnection(listener: OpenFin.ChannelClientConnectionListener): void;
|
|
2497
2493
|
/**
|
|
2498
2494
|
* Register a listener that is called on client disconnection. It is passed the disconnection event of the disconnecting
|
|
2499
2495
|
* client.
|
|
@@ -2512,7 +2508,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2512
2508
|
* })();
|
|
2513
2509
|
* ```
|
|
2514
2510
|
*/
|
|
2515
|
-
onDisconnection(listener:
|
|
2511
|
+
onDisconnection(listener: OpenFin.ChannelClientDisconnectionListener): void;
|
|
2516
2512
|
/**
|
|
2517
2513
|
* Destroy the channel, raises `disconnected` events on all connected channel clients.
|
|
2518
2514
|
*
|
|
@@ -2567,6 +2563,8 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2567
2563
|
private static clientIsMultiRuntime;
|
|
2568
2564
|
}
|
|
2569
2565
|
|
|
2566
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_7) => any;
|
|
2567
|
+
|
|
2570
2568
|
declare interface ChannelStrategy<T extends unknown> {
|
|
2571
2569
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
2572
2570
|
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
@@ -2596,7 +2594,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
|
|
|
2596
2594
|
|
|
2597
2595
|
declare interface ChildContentOptions {
|
|
2598
2596
|
options: any;
|
|
2599
|
-
entityType:
|
|
2597
|
+
entityType: EntityType_4;
|
|
2600
2598
|
}
|
|
2601
2599
|
|
|
2602
2600
|
/**
|
|
@@ -2676,15 +2674,13 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
|
|
|
2676
2674
|
/**
|
|
2677
2675
|
* @interface
|
|
2678
2676
|
*/
|
|
2679
|
-
declare type ClientConnectionPayload =
|
|
2680
|
-
|
|
2681
|
-
declare type ClientIdentity = OpenFin.ClientIdentity;
|
|
2677
|
+
declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
|
|
2682
2678
|
|
|
2683
2679
|
/**
|
|
2684
2680
|
* Identity of a channel client
|
|
2685
2681
|
* @interface
|
|
2686
2682
|
*/
|
|
2687
|
-
declare type
|
|
2683
|
+
declare type ClientIdentity = Identity_5 & {
|
|
2688
2684
|
/**
|
|
2689
2685
|
* Unique identifier for a client, because there can be multiple clients at one name/uuid entity.
|
|
2690
2686
|
*/
|
|
@@ -2695,7 +2691,7 @@ declare type ClientIdentity_2 = Identity_5 & {
|
|
|
2695
2691
|
/**
|
|
2696
2692
|
* @interface
|
|
2697
2693
|
*/
|
|
2698
|
-
declare type ClientIdentityMultiRuntime =
|
|
2694
|
+
declare type ClientIdentityMultiRuntime = ClientIdentity & {
|
|
2699
2695
|
runtimeUuid: string;
|
|
2700
2696
|
};
|
|
2701
2697
|
|
|
@@ -2703,11 +2699,11 @@ declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
|
|
|
2703
2699
|
* Extended channel client information
|
|
2704
2700
|
* @interface
|
|
2705
2701
|
*/
|
|
2706
|
-
declare type ClientInfo = Omit<
|
|
2702
|
+
declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
|
|
2707
2703
|
/**
|
|
2708
2704
|
* Indicates if the client belongs to a Window, View or IFrame
|
|
2709
2705
|
*/
|
|
2710
|
-
entityType:
|
|
2706
|
+
entityType: EntityType_5;
|
|
2711
2707
|
/**
|
|
2712
2708
|
* URL of the Window, View or IFrame at the time of connection to the Channel Provider.
|
|
2713
2709
|
*/
|
|
@@ -2910,6 +2906,9 @@ declare type CloseViewPayload = {
|
|
|
2910
2906
|
view: Identity_5;
|
|
2911
2907
|
};
|
|
2912
2908
|
|
|
2909
|
+
/**
|
|
2910
|
+
* Represents the shape of payload that contains the Window Identity and related options.
|
|
2911
|
+
*/
|
|
2913
2912
|
declare interface CloseWindowPayload {
|
|
2914
2913
|
/**
|
|
2915
2914
|
*
|
|
@@ -3038,8 +3037,6 @@ export declare function connect(config: ConnectConfig): Promise<Fin<'external co
|
|
|
3038
3037
|
|
|
3039
3038
|
declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig;
|
|
3040
3039
|
|
|
3041
|
-
declare type ConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
|
|
3042
|
-
|
|
3043
3040
|
declare type Constructor<T = {}> = new () => T;
|
|
3044
3041
|
|
|
3045
3042
|
declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
@@ -3676,10 +3673,6 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
|
|
|
3676
3673
|
type: 'disabled-movement-bounds-changing';
|
|
3677
3674
|
};
|
|
3678
3675
|
|
|
3679
|
-
declare type DisconnectionListener = (providerIdentity: OpenFin.ProviderIdentity) => any;
|
|
3680
|
-
|
|
3681
|
-
declare type DisconnectionListener_2 = (identity: ClientIdentity) => any;
|
|
3682
|
-
|
|
3683
3676
|
/**
|
|
3684
3677
|
* The display data for a context group.
|
|
3685
3678
|
*/
|
|
@@ -3887,7 +3880,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
|
|
|
3887
3880
|
declare type EntityInfo_2 = {
|
|
3888
3881
|
uuid: string;
|
|
3889
3882
|
name: string;
|
|
3890
|
-
entityType:
|
|
3883
|
+
entityType: EntityType_5;
|
|
3891
3884
|
};
|
|
3892
3885
|
|
|
3893
3886
|
/**
|
|
@@ -3901,15 +3894,15 @@ declare type EntityProcessDetails = FrameProcessDetails & {
|
|
|
3901
3894
|
|
|
3902
3895
|
declare type EntityType = OpenFin.EntityType;
|
|
3903
3896
|
|
|
3904
|
-
declare type EntityType_2 =
|
|
3897
|
+
declare type EntityType_2 = OpenFin.EntityType;
|
|
3905
3898
|
|
|
3906
3899
|
declare type EntityType_3 = OpenFin.EntityType;
|
|
3907
3900
|
|
|
3908
3901
|
declare type EntityType_4 = OpenFin.EntityType;
|
|
3909
3902
|
|
|
3910
|
-
declare type EntityType_5 =
|
|
3903
|
+
declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
|
|
3911
3904
|
|
|
3912
|
-
declare type EntityTypeHelpers<T extends
|
|
3905
|
+
declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
|
|
3913
3906
|
isView: true;
|
|
3914
3907
|
isWindow: false;
|
|
3915
3908
|
isExternal: false;
|
|
@@ -3947,7 +3940,7 @@ declare interface Environment {
|
|
|
3947
3940
|
createChildContent(options: ChildContentOptions): Promise<any>;
|
|
3948
3941
|
getWebWindow(identity: OpenFin.Identity): globalThis.Window;
|
|
3949
3942
|
getCurrentEntityIdentity(): OpenFin.EntityInfo;
|
|
3950
|
-
getCurrentEntityType():
|
|
3943
|
+
getCurrentEntityType(): EntityType_4;
|
|
3951
3944
|
raiseEvent(eventName: string, eventArgs: any): void;
|
|
3952
3945
|
childViews: boolean;
|
|
3953
3946
|
getUrl(): string;
|
|
@@ -3962,7 +3955,7 @@ declare interface Environment {
|
|
|
3962
3955
|
|
|
3963
3956
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
3964
3957
|
|
|
3965
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 |
|
|
3958
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
|
|
3966
3959
|
|
|
3967
3960
|
/**
|
|
3968
3961
|
* This function converts JS errors into plain objects
|
|
@@ -4142,7 +4135,9 @@ declare type ExternalApplicationDisconnectedEvent = BaseEvent & {
|
|
|
4142
4135
|
};
|
|
4143
4136
|
|
|
4144
4137
|
/**
|
|
4145
|
-
*
|
|
4138
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by an {@link ExternalApplication}. Events are
|
|
4139
|
+
* discriminated by {@link ExternalApplicationEvent.type | their type}. Event payloads unique to `ExternalApplication` can be found
|
|
4140
|
+
* under the {@link OpenFin.ExternalApplicationEvents} namespace.
|
|
4146
4141
|
*/
|
|
4147
4142
|
declare type ExternalApplicationEvent = {
|
|
4148
4143
|
topic: 'externalapplication';
|
|
@@ -4369,6 +4364,9 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
|
|
|
4369
4364
|
state: 'started';
|
|
4370
4365
|
};
|
|
4371
4366
|
|
|
4367
|
+
/**
|
|
4368
|
+
* @internal
|
|
4369
|
+
*/
|
|
4372
4370
|
declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter implements FinApi<MeType> {
|
|
4373
4371
|
private wire;
|
|
4374
4372
|
System: System;
|
|
@@ -4390,8 +4388,11 @@ declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter i
|
|
|
4390
4388
|
constructor(wire: Transport<MeType>);
|
|
4391
4389
|
}
|
|
4392
4390
|
|
|
4393
|
-
declare type Fin_2<MeType extends
|
|
4391
|
+
declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
|
|
4394
4392
|
|
|
4393
|
+
/**
|
|
4394
|
+
* Type of the global `fin` entry point for the OpenFin API.
|
|
4395
|
+
*/
|
|
4395
4396
|
declare interface FinApi<MeType extends EntityType> {
|
|
4396
4397
|
readonly System: System;
|
|
4397
4398
|
readonly Window: _WindowModule;
|
|
@@ -4653,7 +4654,9 @@ declare namespace FrameEvents {
|
|
|
4653
4654
|
}
|
|
4654
4655
|
|
|
4655
4656
|
/**
|
|
4656
|
-
*
|
|
4657
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link _Frame}. Events are
|
|
4658
|
+
* discriminated by {@link _Frame.type | their type}. Event payloads unique to `Frame` can be found
|
|
4659
|
+
* under the {@link OpenFin.FrameEvents} namespace.
|
|
4657
4660
|
*/
|
|
4658
4661
|
declare type FrameEventType = FrameEvent['type'];
|
|
4659
4662
|
|
|
@@ -4661,7 +4664,7 @@ declare type FrameInfo = {
|
|
|
4661
4664
|
name: string;
|
|
4662
4665
|
uuid: string;
|
|
4663
4666
|
url: string;
|
|
4664
|
-
entityType:
|
|
4667
|
+
entityType: EntityType_5;
|
|
4665
4668
|
parent: Identity_5;
|
|
4666
4669
|
};
|
|
4667
4670
|
|
|
@@ -4754,7 +4757,7 @@ declare type GetWindowContextPayload = {
|
|
|
4754
4757
|
/**
|
|
4755
4758
|
* Entity type of the target of the context update ('view' or 'window').
|
|
4756
4759
|
*/
|
|
4757
|
-
entityType:
|
|
4760
|
+
entityType: EntityType_5;
|
|
4758
4761
|
/**
|
|
4759
4762
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
4760
4763
|
*/
|
|
@@ -4866,7 +4869,9 @@ declare class GlobalHotkey extends EmitterBase<OpenFin.GlobalHotkeyEvent> {
|
|
|
4866
4869
|
}
|
|
4867
4870
|
|
|
4868
4871
|
/**
|
|
4869
|
-
*
|
|
4872
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by {@link GlobalHotkey}. Events are
|
|
4873
|
+
* discriminated by {@link GlobalHotkeyEvent.type | their type}. Event payloads unique to `GlobalHotkey` can be found
|
|
4874
|
+
* under the {@link OpenFin.GlobalHotkeyEvents} namespace.
|
|
4870
4875
|
*/
|
|
4871
4876
|
declare type GlobalHotkeyEvent = {
|
|
4872
4877
|
topic: 'global-hotkey';
|
|
@@ -5235,6 +5240,9 @@ declare class InterAppPayload {
|
|
|
5235
5240
|
|
|
5236
5241
|
declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
|
5237
5242
|
|
|
5243
|
+
/**
|
|
5244
|
+
* Define whether to enable interop action logging.
|
|
5245
|
+
*/
|
|
5238
5246
|
declare interface InteropActionLoggingOption {
|
|
5239
5247
|
enabled: boolean;
|
|
5240
5248
|
}
|
|
@@ -7680,7 +7688,7 @@ declare type MaximizedEvent = NamedEvent & {
|
|
|
7680
7688
|
type: 'maximized';
|
|
7681
7689
|
};
|
|
7682
7690
|
|
|
7683
|
-
declare type Me<MeType extends
|
|
7691
|
+
declare type Me<MeType extends EntityType_3> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
|
|
7684
7692
|
isOpenFin: boolean;
|
|
7685
7693
|
};
|
|
7686
7694
|
|
|
@@ -8231,21 +8239,32 @@ declare type Opacity = TransitionBase & {
|
|
|
8231
8239
|
|
|
8232
8240
|
declare namespace OpenFin {
|
|
8233
8241
|
export {
|
|
8242
|
+
FinApi,
|
|
8234
8243
|
Fin_2 as Fin,
|
|
8235
8244
|
Application,
|
|
8245
|
+
ApplicationModule,
|
|
8236
8246
|
ExternalApplication,
|
|
8247
|
+
ExternalApplicationModule,
|
|
8237
8248
|
_Frame as Frame,
|
|
8249
|
+
_FrameModule,
|
|
8250
|
+
Channel,
|
|
8238
8251
|
ChannelClient,
|
|
8239
8252
|
ChannelProvider,
|
|
8240
8253
|
Platform,
|
|
8254
|
+
PlatformModule,
|
|
8241
8255
|
Layout,
|
|
8256
|
+
LayoutModule,
|
|
8242
8257
|
View_2 as View,
|
|
8258
|
+
ViewModule,
|
|
8243
8259
|
ColumnOrRow,
|
|
8244
8260
|
TabStack,
|
|
8245
8261
|
_Window as Window,
|
|
8262
|
+
_WindowModule,
|
|
8246
8263
|
InteropClient,
|
|
8247
8264
|
InteropBroker,
|
|
8265
|
+
InteropModule,
|
|
8248
8266
|
SnapshotSource,
|
|
8267
|
+
SnapshotSourceModule,
|
|
8249
8268
|
LayoutEntityDefinition,
|
|
8250
8269
|
LayoutEntityTypes,
|
|
8251
8270
|
LayoutPosition,
|
|
@@ -8253,12 +8272,12 @@ declare namespace OpenFin {
|
|
|
8253
8272
|
PlatformProvider,
|
|
8254
8273
|
ApplicationIdentity_2 as ApplicationIdentity,
|
|
8255
8274
|
Identity_5 as Identity,
|
|
8256
|
-
|
|
8275
|
+
ClientIdentity,
|
|
8257
8276
|
ClientInfo,
|
|
8258
8277
|
ClientIdentityMultiRuntime,
|
|
8259
8278
|
ClientConnectionPayload,
|
|
8260
8279
|
EntityInfo_2 as EntityInfo,
|
|
8261
|
-
|
|
8280
|
+
EntityType_5 as EntityType,
|
|
8262
8281
|
Bounds,
|
|
8263
8282
|
WindowBounds,
|
|
8264
8283
|
Rectangle,
|
|
@@ -8498,7 +8517,6 @@ declare namespace OpenFin {
|
|
|
8498
8517
|
AppVersionCompleteEvent,
|
|
8499
8518
|
AppVersionRuntimeStatusEvent,
|
|
8500
8519
|
BaseEvents,
|
|
8501
|
-
ChannelEvents,
|
|
8502
8520
|
WebContentsEvents,
|
|
8503
8521
|
SystemEvents,
|
|
8504
8522
|
ApplicationEvents,
|
|
@@ -8509,7 +8527,6 @@ declare namespace OpenFin {
|
|
|
8509
8527
|
PlatformEvents,
|
|
8510
8528
|
ExternalApplicationEvents,
|
|
8511
8529
|
BaseEvent_2 as BaseEvent,
|
|
8512
|
-
ChannelEvent_2 as ChannelEvent,
|
|
8513
8530
|
WebContentsEvent_2 as WebContentsEvent,
|
|
8514
8531
|
SystemEvent_2 as SystemEvent,
|
|
8515
8532
|
ApplicationEvent_2 as ApplicationEvent,
|
|
@@ -8529,7 +8546,11 @@ declare namespace OpenFin {
|
|
|
8529
8546
|
Me,
|
|
8530
8547
|
CapturePageOptions,
|
|
8531
8548
|
ProcessLoggingOptions,
|
|
8532
|
-
PositioningOptions
|
|
8549
|
+
PositioningOptions,
|
|
8550
|
+
ChannelClientConnectionListener,
|
|
8551
|
+
ChannelClientDisconnectionListener,
|
|
8552
|
+
ChannelProviderDisconnectionListener,
|
|
8553
|
+
RoutingInfo
|
|
8533
8554
|
}
|
|
8534
8555
|
}
|
|
8535
8556
|
export default OpenFin;
|
|
@@ -8860,12 +8881,11 @@ declare class Platform extends EmitterBase<OpenFin.PlatformEvent> {
|
|
|
8860
8881
|
*/
|
|
8861
8882
|
closeView(viewIdentity: OpenFin.Identity): Promise<void>;
|
|
8862
8883
|
/**
|
|
8863
|
-
* ***DEPRECATED - please use Platform.createView.***
|
|
8884
|
+
* ***DEPRECATED - please use {@link Platform.createView Platform.createView}.***
|
|
8864
8885
|
* Reparents a specified view in a new target window.
|
|
8865
8886
|
* @param viewIdentity View identity
|
|
8866
8887
|
* @param target new owner window identity
|
|
8867
8888
|
*
|
|
8868
|
-
* @tutorial Platform.createView
|
|
8869
8889
|
*/
|
|
8870
8890
|
reparentView(viewIdentity: OpenFin.Identity, target: OpenFin.Identity): Promise<View>;
|
|
8871
8891
|
/**
|
|
@@ -9240,7 +9260,9 @@ declare type PlatformApiReadyEvent = BaseEvent & {
|
|
|
9240
9260
|
};
|
|
9241
9261
|
|
|
9242
9262
|
/**
|
|
9243
|
-
*
|
|
9263
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Platform}. Events are
|
|
9264
|
+
* discriminated by {@link PlatformEvent.type | their type}. Event payloads unique to `Platform` can be found
|
|
9265
|
+
* under the {@link OpenFin.PlatformEvents} namespace.
|
|
9244
9266
|
*/
|
|
9245
9267
|
declare type PlatformEvent = ApplicationEvent | PlatformApiReadyEvent | PlatformSnapshotAppliedEvent;
|
|
9246
9268
|
|
|
@@ -10022,30 +10044,109 @@ declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
|
|
|
10022
10044
|
|
|
10023
10045
|
declare type PopupInteraction = 'clicked' | 'dismissed';
|
|
10024
10046
|
|
|
10047
|
+
/**
|
|
10048
|
+
* Popup window options.
|
|
10049
|
+
*/
|
|
10025
10050
|
declare interface PopupOptions {
|
|
10051
|
+
/**
|
|
10052
|
+
* Window creation options when using `showPopupWindow` to create a new window.
|
|
10053
|
+
*/
|
|
10026
10054
|
initialOptions?: Optional<WindowCreationOptions, 'name'>;
|
|
10055
|
+
/**
|
|
10056
|
+
* Updatable window options applied to new and existing windows when shown as popups.
|
|
10057
|
+
*/
|
|
10027
10058
|
additionalOptions?: UpdatableWindowOptions;
|
|
10059
|
+
/**
|
|
10060
|
+
* If a window with this `name` exists, it will be shown as a popup.
|
|
10061
|
+
* Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
10062
|
+
*/
|
|
10028
10063
|
name?: string;
|
|
10064
|
+
/**
|
|
10065
|
+
* Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
10066
|
+
*/
|
|
10029
10067
|
url?: string;
|
|
10068
|
+
/**
|
|
10069
|
+
* Height of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
10070
|
+
* @defaultValue 300
|
|
10071
|
+
*/
|
|
10030
10072
|
height?: number;
|
|
10073
|
+
/**
|
|
10074
|
+
* Width of the popup window in pixels (takes priority over `intialOptions` size properties).
|
|
10075
|
+
* @defaultValue 300
|
|
10076
|
+
*/
|
|
10031
10077
|
width?: number;
|
|
10078
|
+
/**
|
|
10079
|
+
* Left position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
10080
|
+
* @defaultValue 0
|
|
10081
|
+
*/
|
|
10032
10082
|
x?: number;
|
|
10083
|
+
/**
|
|
10084
|
+
* Top position in pixels where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
10085
|
+
* @defaultValue 0
|
|
10086
|
+
*/
|
|
10033
10087
|
y?: number;
|
|
10088
|
+
/**
|
|
10089
|
+
* Determines what happens if the popup window is blurred.
|
|
10090
|
+
* * 'modal' restricts resizing and positioning in the caller.
|
|
10091
|
+
* * 'hide' hides the popup window on blur.
|
|
10092
|
+
* * 'close' closes the popup window on blur.
|
|
10093
|
+
* @defaultValue 'close'
|
|
10094
|
+
*/
|
|
10034
10095
|
blurBehavior?: PopupBlurBehavior;
|
|
10096
|
+
/**
|
|
10097
|
+
* Determines what happens when the popup window calls `dispatchPopupResult`.
|
|
10098
|
+
* * 'none' will do nothing.
|
|
10099
|
+
* * 'hide' hides the popup window on `dispatchPopupResult`.
|
|
10100
|
+
* * 'close' closes the popup window on `dispatchPopupResult`.
|
|
10101
|
+
* @defaultValue 'close'
|
|
10102
|
+
*/
|
|
10035
10103
|
resultDispatchBehavior?: PopupResultBehavior;
|
|
10104
|
+
/**
|
|
10105
|
+
* Hide the popup window instead of closing when `close` is called on it.
|
|
10106
|
+
* <br>Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
10107
|
+
* @defaultValue false
|
|
10108
|
+
*/
|
|
10036
10109
|
hideOnClose?: boolean;
|
|
10110
|
+
/**
|
|
10111
|
+
* Determines if the popup window should or should not be focused when it is shown.
|
|
10112
|
+
* @defaultValue true
|
|
10113
|
+
*/
|
|
10037
10114
|
focus?: boolean;
|
|
10115
|
+
/**
|
|
10116
|
+
* Executed when the popup window is shown. Provides the popup window to the provided function, and allows for easy access the popup window for additional behavior customization.
|
|
10117
|
+
*/
|
|
10038
10118
|
onPopupReady?: (popupWindow: _Window) => any;
|
|
10119
|
+
/**
|
|
10120
|
+
* Executed when this window's popup calls `dispatchPopupResult`.
|
|
10121
|
+
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
10122
|
+
*/
|
|
10039
10123
|
onPopupResult?: (payload: PopupResult) => any;
|
|
10040
10124
|
}
|
|
10041
10125
|
|
|
10126
|
+
/**
|
|
10127
|
+
* The Popup result.
|
|
10128
|
+
*
|
|
10129
|
+
* @typeParam T - Type of data the Popup result contains
|
|
10130
|
+
*/
|
|
10042
10131
|
declare interface PopupResult<T = any> {
|
|
10132
|
+
/**
|
|
10133
|
+
* `name` and `uuid` of the popup window that called dispatched this result.
|
|
10134
|
+
*/
|
|
10043
10135
|
identity: {
|
|
10044
10136
|
name: string;
|
|
10045
10137
|
uuid: string;
|
|
10046
10138
|
};
|
|
10139
|
+
/**
|
|
10140
|
+
* Result of the user interaction with the popup window.
|
|
10141
|
+
*/
|
|
10047
10142
|
result: PopupInteraction;
|
|
10143
|
+
/**
|
|
10144
|
+
* Data passed to `dispatchPopupResult`.
|
|
10145
|
+
*/
|
|
10048
10146
|
data?: T;
|
|
10147
|
+
/**
|
|
10148
|
+
* The last dispatch result.
|
|
10149
|
+
*/
|
|
10049
10150
|
lastDispatchResult?: PopupResult;
|
|
10050
10151
|
}
|
|
10051
10152
|
|
|
@@ -10281,10 +10382,25 @@ declare type ProcessDetails = {
|
|
|
10281
10382
|
pid: number;
|
|
10282
10383
|
};
|
|
10283
10384
|
|
|
10385
|
+
/**
|
|
10386
|
+
* Process logging options
|
|
10387
|
+
*/
|
|
10284
10388
|
declare interface ProcessLoggingOptions {
|
|
10389
|
+
/**
|
|
10390
|
+
* Periodic Logging Interval (in seconds)
|
|
10391
|
+
*/
|
|
10285
10392
|
interval?: number;
|
|
10393
|
+
/**
|
|
10394
|
+
* Outlier Detection options
|
|
10395
|
+
*/
|
|
10286
10396
|
outlierDetection?: {
|
|
10397
|
+
/**
|
|
10398
|
+
* Outlier Interval (in seconds)
|
|
10399
|
+
*/
|
|
10287
10400
|
interval?: number;
|
|
10401
|
+
/**
|
|
10402
|
+
* Number of Process Info entries to collect for outlier analysis
|
|
10403
|
+
*/
|
|
10288
10404
|
entries?: number;
|
|
10289
10405
|
};
|
|
10290
10406
|
}
|
|
@@ -10836,7 +10952,7 @@ declare type RGB = {
|
|
|
10836
10952
|
/**
|
|
10837
10953
|
* @interface
|
|
10838
10954
|
*/
|
|
10839
|
-
declare type RoutingInfo =
|
|
10955
|
+
declare type RoutingInfo = ProviderIdentity_7 & {
|
|
10840
10956
|
endpointId: string;
|
|
10841
10957
|
};
|
|
10842
10958
|
|
|
@@ -11058,7 +11174,7 @@ declare type SetWindowContextPayload = {
|
|
|
11058
11174
|
/**
|
|
11059
11175
|
* Entity type of the target of the context update ('view' or 'window').
|
|
11060
11176
|
*/
|
|
11061
|
-
entityType:
|
|
11177
|
+
entityType: EntityType_5;
|
|
11062
11178
|
/**
|
|
11063
11179
|
* Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
|
|
11064
11180
|
*/
|
|
@@ -11151,16 +11267,18 @@ declare type Snapshot = {
|
|
|
11151
11267
|
};
|
|
11152
11268
|
};
|
|
11153
11269
|
|
|
11154
|
-
declare type SnapshotProvider<
|
|
11155
|
-
getSnapshot: () => Promise<
|
|
11156
|
-
applySnapshot: (snapshot:
|
|
11270
|
+
declare type SnapshotProvider<Snapshot = unknown> = {
|
|
11271
|
+
getSnapshot: () => Promise<Snapshot>;
|
|
11272
|
+
applySnapshot: (snapshot: Snapshot) => Promise<void>;
|
|
11157
11273
|
};
|
|
11158
11274
|
|
|
11159
11275
|
/**
|
|
11160
11276
|
* Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
|
|
11161
11277
|
*
|
|
11278
|
+
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
|
11279
|
+
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
|
11162
11280
|
*/
|
|
11163
|
-
declare class SnapshotSource<
|
|
11281
|
+
declare class SnapshotSource<Snapshot = unknown> extends Base {
|
|
11164
11282
|
#private;
|
|
11165
11283
|
/**
|
|
11166
11284
|
* @internal
|
|
@@ -11199,12 +11317,12 @@ declare class SnapshotSource<T = any> extends Base {
|
|
|
11199
11317
|
* Call the SnapshotSource's getSnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
|
|
11200
11318
|
*
|
|
11201
11319
|
*/
|
|
11202
|
-
getSnapshot(): Promise<
|
|
11320
|
+
getSnapshot(): Promise<Snapshot>;
|
|
11203
11321
|
/**
|
|
11204
11322
|
* Call the SnapshotSource's applySnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
|
|
11205
11323
|
*
|
|
11206
11324
|
*/
|
|
11207
|
-
applySnapshot(snapshot:
|
|
11325
|
+
applySnapshot(snapshot: Snapshot): Promise<void>;
|
|
11208
11326
|
}
|
|
11209
11327
|
|
|
11210
11328
|
/**
|
|
@@ -11214,6 +11332,9 @@ declare class SnapshotSourceModule extends Base {
|
|
|
11214
11332
|
/**
|
|
11215
11333
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
|
11216
11334
|
*
|
|
11335
|
+
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
|
11336
|
+
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
|
11337
|
+
*
|
|
11217
11338
|
* @example
|
|
11218
11339
|
* ```js
|
|
11219
11340
|
* const snapshotProvider = {
|
|
@@ -11229,8 +11350,9 @@ declare class SnapshotSourceModule extends Base {
|
|
|
11229
11350
|
*
|
|
11230
11351
|
* await fin.SnapshotSource.init(snapshotProvider);
|
|
11231
11352
|
* ```
|
|
11353
|
+
*
|
|
11232
11354
|
*/
|
|
11233
|
-
init<
|
|
11355
|
+
init<Snapshot = unknown>(provider: OpenFin.SnapshotProvider<Snapshot>): Promise<void>;
|
|
11234
11356
|
/**
|
|
11235
11357
|
* Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
|
|
11236
11358
|
*
|
|
@@ -12750,7 +12872,10 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
|
12750
12872
|
}
|
|
12751
12873
|
|
|
12752
12874
|
/**
|
|
12753
|
-
*
|
|
12875
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link System}. Events are
|
|
12876
|
+
* discriminated by {@link SystemEvent.type | their type}. Event payloads unique to `System` can be found
|
|
12877
|
+
* under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
|
|
12878
|
+
* from which they propagate).
|
|
12754
12879
|
*/
|
|
12755
12880
|
declare type SystemEvent = {
|
|
12756
12881
|
topic: 'system';
|
|
@@ -13175,7 +13300,7 @@ declare type TransitionOptions = {
|
|
|
13175
13300
|
tween?: tween;
|
|
13176
13301
|
};
|
|
13177
13302
|
|
|
13178
|
-
declare class Transport<MeType extends
|
|
13303
|
+
declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
|
|
13179
13304
|
#private;
|
|
13180
13305
|
protected wireListeners: Map<number, {
|
|
13181
13306
|
resolve: Function;
|
|
@@ -13941,7 +14066,9 @@ declare type ViewDetachedEvent = NamedEvent & BaseViewEvent & {
|
|
|
13941
14066
|
};
|
|
13942
14067
|
|
|
13943
14068
|
/**
|
|
13944
|
-
*
|
|
14069
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link View}. Events are
|
|
14070
|
+
* discriminated by {@link ViewEvent.type | their type}. Event payloads unique to `View` can be found
|
|
14071
|
+
* under the {@link OpenFin.ViewEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
13945
14072
|
*/
|
|
13946
14073
|
declare type ViewEvent = {
|
|
13947
14074
|
topic: 'view';
|
|
@@ -14105,6 +14232,9 @@ declare class ViewOverlay {
|
|
|
14105
14232
|
setIgnoreViewMouseEvents(enabled: boolean): Promise<void>;
|
|
14106
14233
|
}
|
|
14107
14234
|
|
|
14235
|
+
/**
|
|
14236
|
+
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
14237
|
+
*/
|
|
14108
14238
|
declare interface ViewsPreventingUnloadPayload {
|
|
14109
14239
|
/**
|
|
14110
14240
|
* Specifies if the Window should close.
|
|
@@ -14138,6 +14268,9 @@ declare type ViewState = ViewCreationOptions & {
|
|
|
14138
14268
|
minWidth?: number;
|
|
14139
14269
|
};
|
|
14140
14270
|
|
|
14271
|
+
/**
|
|
14272
|
+
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
|
14273
|
+
*/
|
|
14141
14274
|
declare interface ViewStatuses {
|
|
14142
14275
|
/**
|
|
14143
14276
|
* Identities of the Views that are preventing an unload.
|
|
@@ -16679,6 +16812,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16679
16812
|
*/
|
|
16680
16813
|
closePopupMenu(): Promise<void>;
|
|
16681
16814
|
/**
|
|
16815
|
+
* @PORTED
|
|
16682
16816
|
* @typedef {object} PopupOptions@typedef {object} PopupOptions
|
|
16683
16817
|
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
16684
16818
|
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
@@ -16696,6 +16830,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16696
16830
|
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
16697
16831
|
*/
|
|
16698
16832
|
/**
|
|
16833
|
+
* @PORTED
|
|
16699
16834
|
* @typedef {object} PopupResult@typedef {object} PopupResult
|
|
16700
16835
|
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
|
16701
16836
|
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
|
@@ -16841,7 +16976,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16841
16976
|
*/
|
|
16842
16977
|
name: string;
|
|
16843
16978
|
/**
|
|
16844
|
-
* The right-most coordinate of the window
|
|
16979
|
+
* The right-most coordinate of the window.
|
|
16845
16980
|
*/
|
|
16846
16981
|
right: number;
|
|
16847
16982
|
state: string;
|
|
@@ -16864,7 +16999,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16864
16999
|
};
|
|
16865
17000
|
|
|
16866
17001
|
/**
|
|
16867
|
-
*
|
|
17002
|
+
* [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Window}. Events are
|
|
17003
|
+
* discriminated by {@link WindowEvent.type | their type}. Event payloads unique to `Window` can be found
|
|
17004
|
+
* under the {@link OpenFin.WindowEvents} namespace (except for {@link OpenFin.WebContentsEvents | those shared with other WebContents}).
|
|
16868
17005
|
*/
|
|
16869
17006
|
declare type WindowEvent = {
|
|
16870
17007
|
topic: 'window';
|