@openfin/node-adapter 34.78.10 → 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.
@@ -1483,6 +1483,9 @@ declare type AutoResizeOptions = {
1483
1483
  };
1484
1484
 
1485
1485
  declare class Base {
1486
+ /**
1487
+ * @internal
1488
+ */
1486
1489
  wire: Transport;
1487
1490
  /**
1488
1491
  * @internal
@@ -1920,7 +1923,7 @@ declare type Channel_3 = OpenFin.Fin['InterApplicationBus']['Channel'];
1920
1923
 
1921
1924
  declare type ChannelAction = OpenFin.ChannelAction;
1922
1925
 
1923
- declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
1926
+ declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity) => unknown;
1924
1927
 
1925
1928
  declare class ChannelBase {
1926
1929
  protected subscriptions: Map<string, ChannelAction>;
@@ -2233,7 +2236,7 @@ declare class ChannelClient extends ChannelBase {
2233
2236
  /**
2234
2237
  * @internal
2235
2238
  */
2236
- constructor(routingInfo: RoutingInfo, wire: Transport, strategy: AnyStrategy);
2239
+ constructor(routingInfo: OpenFin.RoutingInfo, wire: Transport, strategy: AnyStrategy);
2237
2240
  protected processAction: (action: string, payload: any, senderIdentity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<any>;
2238
2241
  /**
2239
2242
  * a read-only provider identity
@@ -2283,7 +2286,7 @@ declare class ChannelClient extends ChannelBase {
2283
2286
  * })();
2284
2287
  * ```
2285
2288
  */
2286
- onDisconnection(listener: DisconnectionListener): void;
2289
+ onDisconnection(listener: OpenFin.ChannelProviderDisconnectionListener): void;
2287
2290
  /**
2288
2291
  * Disconnects the client from the channel.
2289
2292
  *
@@ -2303,6 +2306,10 @@ declare class ChannelClient extends ChannelBase {
2303
2306
 
2304
2307
  declare type ChannelClient_2 = OpenFin.ChannelClient;
2305
2308
 
2309
+ declare type ChannelClientConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
2310
+
2311
+ declare type ChannelClientDisconnectionListener = (identity: ClientIdentity) => any;
2312
+
2306
2313
  /**
2307
2314
  * Generated when a Channel client is connected.
2308
2315
  * @interface
@@ -2354,28 +2361,9 @@ declare type ChannelEvent = {
2354
2361
  topic: 'channel';
2355
2362
  } & (ChannelConnectedEvent | ChannelDisconnectedEvent);
2356
2363
 
2357
- declare type ChannelEvent_2 = ChannelEvents.ChannelEvent;
2358
-
2359
- declare namespace ChannelEvents {
2360
- export {
2361
- BaseChannelEvent,
2362
- ChannelConnectedEvent,
2363
- ChannelDisconnectedEvent,
2364
- ChannelEvent,
2365
- ChannelEventType
2366
- }
2367
- }
2368
-
2369
- /**
2370
- * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by a {@link Channel}. Events are
2371
- * discriminated by {@link ChannelEvent.type | their type}. Event payloads unique to `Channel` can be found
2372
- * under the {@link OpenFin.ChannelEvents} namespace.
2373
- */
2374
- declare type ChannelEventType = ChannelEvent['type'];
2375
-
2376
2364
  declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
2377
2365
 
2378
- declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity_2) => Promise<unknown> | unknown;
2366
+ declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity) => Promise<unknown> | unknown;
2379
2367
 
2380
2368
  /**
2381
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
@@ -2501,7 +2489,7 @@ declare class ChannelProvider extends ChannelBase {
2501
2489
  * ```
2502
2490
  * @param listener
2503
2491
  */
2504
- onConnection(listener: ConnectionListener): void;
2492
+ onConnection(listener: OpenFin.ChannelClientConnectionListener): void;
2505
2493
  /**
2506
2494
  * Register a listener that is called on client disconnection. It is passed the disconnection event of the disconnecting
2507
2495
  * client.
@@ -2520,7 +2508,7 @@ declare class ChannelProvider extends ChannelBase {
2520
2508
  * })();
2521
2509
  * ```
2522
2510
  */
2523
- onDisconnection(listener: DisconnectionListener_2): void;
2511
+ onDisconnection(listener: OpenFin.ChannelClientDisconnectionListener): void;
2524
2512
  /**
2525
2513
  * Destroy the channel, raises `disconnected` events on all connected channel clients.
2526
2514
  *
@@ -2575,6 +2563,8 @@ declare class ChannelProvider extends ChannelBase {
2575
2563
  private static clientIsMultiRuntime;
2576
2564
  }
2577
2565
 
2566
+ declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_7) => any;
2567
+
2578
2568
  declare interface ChannelStrategy<T extends unknown> {
2579
2569
  onEndpointDisconnect(endpointId: string, listener: () => void): void;
2580
2570
  receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
@@ -2604,7 +2594,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
2604
2594
 
2605
2595
  declare interface ChildContentOptions {
2606
2596
  options: any;
2607
- entityType: EntityType_5;
2597
+ entityType: EntityType_4;
2608
2598
  }
2609
2599
 
2610
2600
  /**
@@ -2684,15 +2674,13 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2684
2674
  /**
2685
2675
  * @interface
2686
2676
  */
2687
- declare type ClientConnectionPayload = ClientIdentity_2 & ClientInfo;
2688
-
2689
- declare type ClientIdentity = OpenFin.ClientIdentity;
2677
+ declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2690
2678
 
2691
2679
  /**
2692
2680
  * Identity of a channel client
2693
2681
  * @interface
2694
2682
  */
2695
- declare type ClientIdentity_2 = Identity_5 & {
2683
+ declare type ClientIdentity = Identity_5 & {
2696
2684
  /**
2697
2685
  * Unique identifier for a client, because there can be multiple clients at one name/uuid entity.
2698
2686
  */
@@ -2703,7 +2691,7 @@ declare type ClientIdentity_2 = Identity_5 & {
2703
2691
  /**
2704
2692
  * @interface
2705
2693
  */
2706
- declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2694
+ declare type ClientIdentityMultiRuntime = ClientIdentity & {
2707
2695
  runtimeUuid: string;
2708
2696
  };
2709
2697
 
@@ -2711,11 +2699,11 @@ declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2711
2699
  * Extended channel client information
2712
2700
  * @interface
2713
2701
  */
2714
- declare type ClientInfo = Omit<ClientIdentity_2, 'isLocalEndpointId'> & {
2702
+ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
2715
2703
  /**
2716
2704
  * Indicates if the client belongs to a Window, View or IFrame
2717
2705
  */
2718
- entityType: EntityType_2;
2706
+ entityType: EntityType_5;
2719
2707
  /**
2720
2708
  * URL of the Window, View or IFrame at the time of connection to the Channel Provider.
2721
2709
  */
@@ -3049,8 +3037,6 @@ export declare function connect(config: ConnectConfig): Promise<Fin<'external co
3049
3037
 
3050
3038
  declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig;
3051
3039
 
3052
- declare type ConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
3053
-
3054
3040
  declare type Constructor<T = {}> = new () => T;
3055
3041
 
3056
3042
  declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
@@ -3687,10 +3673,6 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
3687
3673
  type: 'disabled-movement-bounds-changing';
3688
3674
  };
3689
3675
 
3690
- declare type DisconnectionListener = (providerIdentity: OpenFin.ProviderIdentity) => any;
3691
-
3692
- declare type DisconnectionListener_2 = (identity: ClientIdentity) => any;
3693
-
3694
3676
  /**
3695
3677
  * The display data for a context group.
3696
3678
  */
@@ -3898,7 +3880,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
3898
3880
  declare type EntityInfo_2 = {
3899
3881
  uuid: string;
3900
3882
  name: string;
3901
- entityType: EntityType_2;
3883
+ entityType: EntityType_5;
3902
3884
  };
3903
3885
 
3904
3886
  /**
@@ -3912,15 +3894,15 @@ declare type EntityProcessDetails = FrameProcessDetails & {
3912
3894
 
3913
3895
  declare type EntityType = OpenFin.EntityType;
3914
3896
 
3915
- declare type EntityType_2 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3897
+ declare type EntityType_2 = OpenFin.EntityType;
3916
3898
 
3917
3899
  declare type EntityType_3 = OpenFin.EntityType;
3918
3900
 
3919
3901
  declare type EntityType_4 = OpenFin.EntityType;
3920
3902
 
3921
- declare type EntityType_5 = OpenFin.EntityType;
3903
+ declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3922
3904
 
3923
- declare type EntityTypeHelpers<T extends EntityType_4> = T extends 'view' ? {
3905
+ declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
3924
3906
  isView: true;
3925
3907
  isWindow: false;
3926
3908
  isExternal: false;
@@ -3958,7 +3940,7 @@ declare interface Environment {
3958
3940
  createChildContent(options: ChildContentOptions): Promise<any>;
3959
3941
  getWebWindow(identity: OpenFin.Identity): globalThis.Window;
3960
3942
  getCurrentEntityIdentity(): OpenFin.EntityInfo;
3961
- getCurrentEntityType(): EntityType_5;
3943
+ getCurrentEntityType(): EntityType_4;
3962
3944
  raiseEvent(eventName: string, eventArgs: any): void;
3963
3945
  childViews: boolean;
3964
3946
  getUrl(): string;
@@ -3973,7 +3955,7 @@ declare interface Environment {
3973
3955
 
3974
3956
  declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
3975
3957
 
3976
- declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
3958
+ declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
3977
3959
 
3978
3960
  /**
3979
3961
  * This function converts JS errors into plain objects
@@ -4382,6 +4364,9 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4382
4364
  state: 'started';
4383
4365
  };
4384
4366
 
4367
+ /**
4368
+ * @internal
4369
+ */
4385
4370
  declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter implements FinApi<MeType> {
4386
4371
  private wire;
4387
4372
  System: System;
@@ -4403,8 +4388,11 @@ declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter i
4403
4388
  constructor(wire: Transport<MeType>);
4404
4389
  }
4405
4390
 
4406
- declare type Fin_2<MeType extends EntityType_2 = 'window' | 'view'> = FinApi<MeType>;
4391
+ declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4407
4392
 
4393
+ /**
4394
+ * Type of the global `fin` entry point for the OpenFin API.
4395
+ */
4408
4396
  declare interface FinApi<MeType extends EntityType> {
4409
4397
  readonly System: System;
4410
4398
  readonly Window: _WindowModule;
@@ -4676,7 +4664,7 @@ declare type FrameInfo = {
4676
4664
  name: string;
4677
4665
  uuid: string;
4678
4666
  url: string;
4679
- entityType: EntityType_2;
4667
+ entityType: EntityType_5;
4680
4668
  parent: Identity_5;
4681
4669
  };
4682
4670
 
@@ -4769,7 +4757,7 @@ declare type GetWindowContextPayload = {
4769
4757
  /**
4770
4758
  * Entity type of the target of the context update ('view' or 'window').
4771
4759
  */
4772
- entityType: EntityType_2;
4760
+ entityType: EntityType_5;
4773
4761
  /**
4774
4762
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4775
4763
  */
@@ -7700,7 +7688,7 @@ declare type MaximizedEvent = NamedEvent & {
7700
7688
  type: 'maximized';
7701
7689
  };
7702
7690
 
7703
- declare type Me<MeType extends EntityType_4> = 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) & {
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) & {
7704
7692
  isOpenFin: boolean;
7705
7693
  };
7706
7694
 
@@ -8251,21 +8239,32 @@ declare type Opacity = TransitionBase & {
8251
8239
 
8252
8240
  declare namespace OpenFin {
8253
8241
  export {
8242
+ FinApi,
8254
8243
  Fin_2 as Fin,
8255
8244
  Application,
8245
+ ApplicationModule,
8256
8246
  ExternalApplication,
8247
+ ExternalApplicationModule,
8257
8248
  _Frame as Frame,
8249
+ _FrameModule,
8250
+ Channel,
8258
8251
  ChannelClient,
8259
8252
  ChannelProvider,
8260
8253
  Platform,
8254
+ PlatformModule,
8261
8255
  Layout,
8256
+ LayoutModule,
8262
8257
  View_2 as View,
8258
+ ViewModule,
8263
8259
  ColumnOrRow,
8264
8260
  TabStack,
8265
8261
  _Window as Window,
8262
+ _WindowModule,
8266
8263
  InteropClient,
8267
8264
  InteropBroker,
8265
+ InteropModule,
8268
8266
  SnapshotSource,
8267
+ SnapshotSourceModule,
8269
8268
  LayoutEntityDefinition,
8270
8269
  LayoutEntityTypes,
8271
8270
  LayoutPosition,
@@ -8273,12 +8272,12 @@ declare namespace OpenFin {
8273
8272
  PlatformProvider,
8274
8273
  ApplicationIdentity_2 as ApplicationIdentity,
8275
8274
  Identity_5 as Identity,
8276
- ClientIdentity_2 as ClientIdentity,
8275
+ ClientIdentity,
8277
8276
  ClientInfo,
8278
8277
  ClientIdentityMultiRuntime,
8279
8278
  ClientConnectionPayload,
8280
8279
  EntityInfo_2 as EntityInfo,
8281
- EntityType_2 as EntityType,
8280
+ EntityType_5 as EntityType,
8282
8281
  Bounds,
8283
8282
  WindowBounds,
8284
8283
  Rectangle,
@@ -8518,7 +8517,6 @@ declare namespace OpenFin {
8518
8517
  AppVersionCompleteEvent,
8519
8518
  AppVersionRuntimeStatusEvent,
8520
8519
  BaseEvents,
8521
- ChannelEvents,
8522
8520
  WebContentsEvents,
8523
8521
  SystemEvents,
8524
8522
  ApplicationEvents,
@@ -8529,7 +8527,6 @@ declare namespace OpenFin {
8529
8527
  PlatformEvents,
8530
8528
  ExternalApplicationEvents,
8531
8529
  BaseEvent_2 as BaseEvent,
8532
- ChannelEvent_2 as ChannelEvent,
8533
8530
  WebContentsEvent_2 as WebContentsEvent,
8534
8531
  SystemEvent_2 as SystemEvent,
8535
8532
  ApplicationEvent_2 as ApplicationEvent,
@@ -8549,7 +8546,11 @@ declare namespace OpenFin {
8549
8546
  Me,
8550
8547
  CapturePageOptions,
8551
8548
  ProcessLoggingOptions,
8552
- PositioningOptions
8549
+ PositioningOptions,
8550
+ ChannelClientConnectionListener,
8551
+ ChannelClientDisconnectionListener,
8552
+ ChannelProviderDisconnectionListener,
8553
+ RoutingInfo
8553
8554
  }
8554
8555
  }
8555
8556
  export default OpenFin;
@@ -10951,7 +10952,7 @@ declare type RGB = {
10951
10952
  /**
10952
10953
  * @interface
10953
10954
  */
10954
- declare type RoutingInfo = OpenFin.ProviderIdentity & {
10955
+ declare type RoutingInfo = ProviderIdentity_7 & {
10955
10956
  endpointId: string;
10956
10957
  };
10957
10958
 
@@ -11173,7 +11174,7 @@ declare type SetWindowContextPayload = {
11173
11174
  /**
11174
11175
  * Entity type of the target of the context update ('view' or 'window').
11175
11176
  */
11176
- entityType: EntityType_2;
11177
+ entityType: EntityType_5;
11177
11178
  /**
11178
11179
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
11179
11180
  */
@@ -11266,16 +11267,18 @@ declare type Snapshot = {
11266
11267
  };
11267
11268
  };
11268
11269
 
11269
- declare type SnapshotProvider<T> = {
11270
- getSnapshot: () => Promise<T>;
11271
- applySnapshot: (snapshot: T) => Promise<void>;
11270
+ declare type SnapshotProvider<Snapshot = unknown> = {
11271
+ getSnapshot: () => Promise<Snapshot>;
11272
+ applySnapshot: (snapshot: Snapshot) => Promise<void>;
11272
11273
  };
11273
11274
 
11274
11275
  /**
11275
11276
  * Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
11276
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.
11277
11280
  */
11278
- declare class SnapshotSource<T = any> extends Base {
11281
+ declare class SnapshotSource<Snapshot = unknown> extends Base {
11279
11282
  #private;
11280
11283
  /**
11281
11284
  * @internal
@@ -11314,12 +11317,12 @@ declare class SnapshotSource<T = any> extends Base {
11314
11317
  * Call the SnapshotSource's getSnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
11315
11318
  *
11316
11319
  */
11317
- getSnapshot(): Promise<T>;
11320
+ getSnapshot(): Promise<Snapshot>;
11318
11321
  /**
11319
11322
  * Call the SnapshotSource's applySnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
11320
11323
  *
11321
11324
  */
11322
- applySnapshot(snapshot: T): Promise<void>;
11325
+ applySnapshot(snapshot: Snapshot): Promise<void>;
11323
11326
  }
11324
11327
 
11325
11328
  /**
@@ -11329,6 +11332,9 @@ declare class SnapshotSourceModule extends Base {
11329
11332
  /**
11330
11333
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
11331
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
+ *
11332
11338
  * @example
11333
11339
  * ```js
11334
11340
  * const snapshotProvider = {
@@ -11344,8 +11350,9 @@ declare class SnapshotSourceModule extends Base {
11344
11350
  *
11345
11351
  * await fin.SnapshotSource.init(snapshotProvider);
11346
11352
  * ```
11353
+ *
11347
11354
  */
11348
- init<T = any>(provider: OpenFin.SnapshotProvider<T>): Promise<void>;
11355
+ init<Snapshot = unknown>(provider: OpenFin.SnapshotProvider<Snapshot>): Promise<void>;
11349
11356
  /**
11350
11357
  * Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
11351
11358
  *
@@ -13293,7 +13300,7 @@ declare type TransitionOptions = {
13293
13300
  tween?: tween;
13294
13301
  };
13295
13302
 
13296
- declare class Transport<MeType extends EntityType_3 = EntityType_3> extends EventEmitter {
13303
+ declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
13297
13304
  #private;
13298
13305
  protected wireListeners: Map<number, {
13299
13306
  resolve: Function;