@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.
@@ -1469,7 +1469,7 @@ declare type AutoResizeOptions = {
1469
1469
  };
1470
1470
 
1471
1471
  declare class Base {
1472
- wire: Transport;
1472
+ /* Excluded from this release type: wire */
1473
1473
  /* Excluded from this release type: __constructor */
1474
1474
  protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
1475
1475
  get me(): Identity;
@@ -1896,7 +1896,7 @@ declare type Channel_3 = OpenFin.Fin['InterApplicationBus']['Channel'];
1896
1896
 
1897
1897
  declare type ChannelAction = OpenFin.ChannelAction;
1898
1898
 
1899
- declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
1899
+ declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_7 | ClientIdentity) => unknown;
1900
1900
 
1901
1901
  declare class ChannelBase {
1902
1902
  protected subscriptions: Map<string, ChannelAction>;
@@ -2249,7 +2249,7 @@ declare class ChannelClient extends ChannelBase {
2249
2249
  * })();
2250
2250
  * ```
2251
2251
  */
2252
- onDisconnection(listener: DisconnectionListener): void;
2252
+ onDisconnection(listener: OpenFin.ChannelProviderDisconnectionListener): void;
2253
2253
  /**
2254
2254
  * Disconnects the client from the channel.
2255
2255
  *
@@ -2269,6 +2269,10 @@ declare class ChannelClient extends ChannelBase {
2269
2269
 
2270
2270
  declare type ChannelClient_2 = OpenFin.ChannelClient;
2271
2271
 
2272
+ declare type ChannelClientConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
2273
+
2274
+ declare type ChannelClientDisconnectionListener = (identity: ClientIdentity) => any;
2275
+
2272
2276
  /**
2273
2277
  * Generated when a Channel client is connected.
2274
2278
  * @interface
@@ -2320,28 +2324,9 @@ declare type ChannelEvent = {
2320
2324
  topic: 'channel';
2321
2325
  } & (ChannelConnectedEvent | ChannelDisconnectedEvent);
2322
2326
 
2323
- declare type ChannelEvent_2 = ChannelEvents.ChannelEvent;
2324
-
2325
- declare namespace ChannelEvents {
2326
- export {
2327
- BaseChannelEvent,
2328
- ChannelConnectedEvent,
2329
- ChannelDisconnectedEvent,
2330
- ChannelEvent,
2331
- ChannelEventType
2332
- }
2333
- }
2334
-
2335
- /**
2336
- * [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
2337
- * discriminated by {@link ChannelEvent.type | their type}. Event payloads unique to `Channel` can be found
2338
- * under the {@link OpenFin.ChannelEvents} namespace.
2339
- */
2340
- declare type ChannelEventType = ChannelEvent['type'];
2341
-
2342
2327
  declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
2343
2328
 
2344
- declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity_2) => Promise<unknown> | unknown;
2329
+ declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_7 | ClientIdentity) => Promise<unknown> | unknown;
2345
2330
 
2346
2331
  /**
2347
2332
  * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
@@ -2464,7 +2449,7 @@ declare class ChannelProvider extends ChannelBase {
2464
2449
  * ```
2465
2450
  * @param listener
2466
2451
  */
2467
- onConnection(listener: ConnectionListener): void;
2452
+ onConnection(listener: OpenFin.ChannelClientConnectionListener): void;
2468
2453
  /**
2469
2454
  * Register a listener that is called on client disconnection. It is passed the disconnection event of the disconnecting
2470
2455
  * client.
@@ -2483,7 +2468,7 @@ declare class ChannelProvider extends ChannelBase {
2483
2468
  * })();
2484
2469
  * ```
2485
2470
  */
2486
- onDisconnection(listener: DisconnectionListener_2): void;
2471
+ onDisconnection(listener: OpenFin.ChannelClientDisconnectionListener): void;
2487
2472
  /**
2488
2473
  * Destroy the channel, raises `disconnected` events on all connected channel clients.
2489
2474
  *
@@ -2538,6 +2523,8 @@ declare class ChannelProvider extends ChannelBase {
2538
2523
  private static clientIsMultiRuntime;
2539
2524
  }
2540
2525
 
2526
+ declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_7) => any;
2527
+
2541
2528
  declare interface ChannelStrategy<T extends unknown> {
2542
2529
  onEndpointDisconnect(endpointId: string, listener: () => void): void;
2543
2530
  receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
@@ -2567,7 +2554,7 @@ declare type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
2567
2554
 
2568
2555
  declare interface ChildContentOptions {
2569
2556
  options: any;
2570
- entityType: EntityType_5;
2557
+ entityType: EntityType_4;
2571
2558
  }
2572
2559
 
2573
2560
  /**
@@ -2647,15 +2634,13 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2647
2634
  /**
2648
2635
  * @interface
2649
2636
  */
2650
- declare type ClientConnectionPayload = ClientIdentity_2 & ClientInfo;
2651
-
2652
- declare type ClientIdentity = OpenFin.ClientIdentity;
2637
+ declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2653
2638
 
2654
2639
  /**
2655
2640
  * Identity of a channel client
2656
2641
  * @interface
2657
2642
  */
2658
- declare type ClientIdentity_2 = Identity_5 & {
2643
+ declare type ClientIdentity = Identity_5 & {
2659
2644
  /**
2660
2645
  * Unique identifier for a client, because there can be multiple clients at one name/uuid entity.
2661
2646
  */
@@ -2666,7 +2651,7 @@ declare type ClientIdentity_2 = Identity_5 & {
2666
2651
  /**
2667
2652
  * @interface
2668
2653
  */
2669
- declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2654
+ declare type ClientIdentityMultiRuntime = ClientIdentity & {
2670
2655
  runtimeUuid: string;
2671
2656
  };
2672
2657
 
@@ -2674,11 +2659,11 @@ declare type ClientIdentityMultiRuntime = ClientIdentity_2 & {
2674
2659
  * Extended channel client information
2675
2660
  * @interface
2676
2661
  */
2677
- declare type ClientInfo = Omit<ClientIdentity_2, 'isLocalEndpointId'> & {
2662
+ declare type ClientInfo = Omit<ClientIdentity, 'isLocalEndpointId'> & {
2678
2663
  /**
2679
2664
  * Indicates if the client belongs to a Window, View or IFrame
2680
2665
  */
2681
- entityType: EntityType_2;
2666
+ entityType: EntityType_5;
2682
2667
  /**
2683
2668
  * URL of the Window, View or IFrame at the time of connection to the Channel Provider.
2684
2669
  */
@@ -2958,8 +2943,6 @@ export declare function connect(config: ConnectConfig): Promise<Fin<'external co
2958
2943
 
2959
2944
  declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig;
2960
2945
 
2961
- declare type ConnectionListener = (identity: ClientIdentity, connectionMessage?: any) => Promise<any> | any;
2962
-
2963
2946
  declare type Constructor<T = {}> = new () => T;
2964
2947
 
2965
2948
  declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
@@ -3596,10 +3579,6 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
3596
3579
  type: 'disabled-movement-bounds-changing';
3597
3580
  };
3598
3581
 
3599
- declare type DisconnectionListener = (providerIdentity: OpenFin.ProviderIdentity) => any;
3600
-
3601
- declare type DisconnectionListener_2 = (identity: ClientIdentity) => any;
3602
-
3603
3582
  /**
3604
3583
  * The display data for a context group.
3605
3584
  */
@@ -3807,7 +3786,7 @@ declare type EntityInfo = OpenFin.EntityInfo;
3807
3786
  declare type EntityInfo_2 = {
3808
3787
  uuid: string;
3809
3788
  name: string;
3810
- entityType: EntityType_2;
3789
+ entityType: EntityType_5;
3811
3790
  };
3812
3791
 
3813
3792
  /**
@@ -3821,15 +3800,15 @@ declare type EntityProcessDetails = FrameProcessDetails & {
3821
3800
 
3822
3801
  declare type EntityType = OpenFin.EntityType;
3823
3802
 
3824
- declare type EntityType_2 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3803
+ declare type EntityType_2 = OpenFin.EntityType;
3825
3804
 
3826
3805
  declare type EntityType_3 = OpenFin.EntityType;
3827
3806
 
3828
3807
  declare type EntityType_4 = OpenFin.EntityType;
3829
3808
 
3830
- declare type EntityType_5 = OpenFin.EntityType;
3809
+ declare type EntityType_5 = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
3831
3810
 
3832
- declare type EntityTypeHelpers<T extends EntityType_4> = T extends 'view' ? {
3811
+ declare type EntityTypeHelpers<T extends EntityType_3> = T extends 'view' ? {
3833
3812
  isView: true;
3834
3813
  isWindow: false;
3835
3814
  isExternal: false;
@@ -3867,7 +3846,7 @@ declare interface Environment {
3867
3846
  createChildContent(options: ChildContentOptions): Promise<any>;
3868
3847
  getWebWindow(identity: OpenFin.Identity): globalThis.Window;
3869
3848
  getCurrentEntityIdentity(): OpenFin.EntityInfo;
3870
- getCurrentEntityType(): EntityType_5;
3849
+ getCurrentEntityType(): EntityType_4;
3871
3850
  raiseEvent(eventName: string, eventArgs: any): void;
3872
3851
  childViews: boolean;
3873
3852
  getUrl(): string;
@@ -3882,7 +3861,7 @@ declare interface Environment {
3882
3861
 
3883
3862
  declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
3884
3863
 
3885
- declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity_2) => unknown;
3864
+ declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_7 | ClientIdentity) => unknown;
3886
3865
 
3887
3866
  /**
3888
3867
  * This function converts JS errors into plain objects
@@ -4272,26 +4251,13 @@ declare type FileDownloadStartedEvent = FileDownloadEvent & {
4272
4251
  state: 'started';
4273
4252
  };
4274
4253
 
4275
- declare class Fin<MeType extends EntityType = EntityType> extends EventEmitter implements FinApi<MeType> {
4276
- private wire;
4277
- System: System;
4278
- Window: _WindowModule;
4279
- Application: ApplicationModule;
4280
- InterApplicationBus: InterApplicationBus;
4281
- Clipboard: Clipboard_2;
4282
- ExternalApplication: ExternalApplicationModule;
4283
- Frame: _FrameModule;
4284
- GlobalHotkey: GlobalHotkey;
4285
- View: ViewModule;
4286
- Platform: PlatformModule;
4287
- Interop: InteropModule;
4288
- SnapshotSource: SnapshotSourceModule;
4289
- readonly me: Me<MeType>;
4290
- /* Excluded from this release type: __constructor */
4291
- }
4254
+ /* Excluded from this release type: Fin */
4292
4255
 
4293
- declare type Fin_2<MeType extends EntityType_2 = 'window' | 'view'> = FinApi<MeType>;
4256
+ declare type Fin_2<MeType extends EntityType_5 = 'window' | 'view'> = FinApi<MeType>;
4294
4257
 
4258
+ /**
4259
+ * Type of the global `fin` entry point for the OpenFin API.
4260
+ */
4295
4261
  declare interface FinApi<MeType extends EntityType> {
4296
4262
  readonly System: System;
4297
4263
  readonly Window: _WindowModule;
@@ -4560,7 +4526,7 @@ declare type FrameInfo = {
4560
4526
  name: string;
4561
4527
  uuid: string;
4562
4528
  url: string;
4563
- entityType: EntityType_2;
4529
+ entityType: EntityType_5;
4564
4530
  parent: Identity_5;
4565
4531
  };
4566
4532
 
@@ -4653,7 +4619,7 @@ declare type GetWindowContextPayload = {
4653
4619
  /**
4654
4620
  * Entity type of the target of the context update ('view' or 'window').
4655
4621
  */
4656
- entityType: EntityType_2;
4622
+ entityType: EntityType_5;
4657
4623
  /**
4658
4624
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
4659
4625
  */
@@ -7279,7 +7245,7 @@ declare type MaximizedEvent = NamedEvent & {
7279
7245
  type: 'maximized';
7280
7246
  };
7281
7247
 
7282
- 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) & {
7248
+ 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) & {
7283
7249
  isOpenFin: boolean;
7284
7250
  };
7285
7251
 
@@ -7819,21 +7785,32 @@ declare type Opacity = TransitionBase & {
7819
7785
 
7820
7786
  declare namespace OpenFin {
7821
7787
  export {
7788
+ FinApi,
7822
7789
  Fin_2 as Fin,
7823
7790
  Application,
7791
+ ApplicationModule,
7824
7792
  ExternalApplication,
7793
+ ExternalApplicationModule,
7825
7794
  _Frame as Frame,
7795
+ _FrameModule,
7796
+ Channel,
7826
7797
  ChannelClient,
7827
7798
  ChannelProvider,
7828
7799
  Platform,
7800
+ PlatformModule,
7829
7801
  Layout,
7802
+ LayoutModule,
7830
7803
  View_2 as View,
7804
+ ViewModule,
7831
7805
  ColumnOrRow,
7832
7806
  TabStack,
7833
7807
  _Window as Window,
7808
+ _WindowModule,
7834
7809
  InteropClient,
7835
7810
  InteropBroker,
7811
+ InteropModule,
7836
7812
  SnapshotSource,
7813
+ SnapshotSourceModule,
7837
7814
  LayoutEntityDefinition,
7838
7815
  LayoutEntityTypes,
7839
7816
  LayoutPosition,
@@ -7841,12 +7818,12 @@ declare namespace OpenFin {
7841
7818
  PlatformProvider,
7842
7819
  ApplicationIdentity_2 as ApplicationIdentity,
7843
7820
  Identity_5 as Identity,
7844
- ClientIdentity_2 as ClientIdentity,
7821
+ ClientIdentity,
7845
7822
  ClientInfo,
7846
7823
  ClientIdentityMultiRuntime,
7847
7824
  ClientConnectionPayload,
7848
7825
  EntityInfo_2 as EntityInfo,
7849
- EntityType_2 as EntityType,
7826
+ EntityType_5 as EntityType,
7850
7827
  Bounds,
7851
7828
  WindowBounds,
7852
7829
  Rectangle,
@@ -8086,7 +8063,6 @@ declare namespace OpenFin {
8086
8063
  AppVersionCompleteEvent,
8087
8064
  AppVersionRuntimeStatusEvent,
8088
8065
  BaseEvents,
8089
- ChannelEvents,
8090
8066
  WebContentsEvents,
8091
8067
  SystemEvents,
8092
8068
  ApplicationEvents,
@@ -8097,7 +8073,6 @@ declare namespace OpenFin {
8097
8073
  PlatformEvents,
8098
8074
  ExternalApplicationEvents,
8099
8075
  BaseEvent_2 as BaseEvent,
8100
- ChannelEvent_2 as ChannelEvent,
8101
8076
  WebContentsEvent_2 as WebContentsEvent,
8102
8077
  SystemEvent_2 as SystemEvent,
8103
8078
  ApplicationEvent_2 as ApplicationEvent,
@@ -8117,7 +8092,11 @@ declare namespace OpenFin {
8117
8092
  Me,
8118
8093
  CapturePageOptions,
8119
8094
  ProcessLoggingOptions,
8120
- PositioningOptions
8095
+ PositioningOptions,
8096
+ ChannelClientConnectionListener,
8097
+ ChannelClientDisconnectionListener,
8098
+ ChannelProviderDisconnectionListener,
8099
+ RoutingInfo
8121
8100
  }
8122
8101
  }
8123
8102
  export default OpenFin;
@@ -10450,7 +10429,7 @@ declare type RGB = {
10450
10429
  /**
10451
10430
  * @interface
10452
10431
  */
10453
- declare type RoutingInfo = OpenFin.ProviderIdentity & {
10432
+ declare type RoutingInfo = ProviderIdentity_7 & {
10454
10433
  endpointId: string;
10455
10434
  };
10456
10435
 
@@ -10672,7 +10651,7 @@ declare type SetWindowContextPayload = {
10672
10651
  /**
10673
10652
  * Entity type of the target of the context update ('view' or 'window').
10674
10653
  */
10675
- entityType: EntityType_2;
10654
+ entityType: EntityType_5;
10676
10655
  /**
10677
10656
  * Identity of the entity targeted by the call to {@link Platform#setWindowContext Platform.setWindowContext}.
10678
10657
  */
@@ -10765,16 +10744,18 @@ declare type Snapshot = {
10765
10744
  };
10766
10745
  };
10767
10746
 
10768
- declare type SnapshotProvider<T> = {
10769
- getSnapshot: () => Promise<T>;
10770
- applySnapshot: (snapshot: T) => Promise<void>;
10747
+ declare type SnapshotProvider<Snapshot = unknown> = {
10748
+ getSnapshot: () => Promise<Snapshot>;
10749
+ applySnapshot: (snapshot: Snapshot) => Promise<void>;
10771
10750
  };
10772
10751
 
10773
10752
  /**
10774
10753
  * Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
10775
10754
  *
10755
+ * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
10756
+ * custom snapshot implementations for legacy applications to define their own snapshot format.
10776
10757
  */
10777
- declare class SnapshotSource<T = any> extends Base {
10758
+ declare class SnapshotSource<Snapshot = unknown> extends Base {
10778
10759
  #private;
10779
10760
  /* Excluded from this release type: __constructor */
10780
10761
  get identity(): OpenFin.ApplicationIdentity;
@@ -10810,12 +10791,12 @@ declare class SnapshotSource<T = any> extends Base {
10810
10791
  * Call the SnapshotSource's getSnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
10811
10792
  *
10812
10793
  */
10813
- getSnapshot(): Promise<T>;
10794
+ getSnapshot(): Promise<Snapshot>;
10814
10795
  /**
10815
10796
  * Call the SnapshotSource's applySnapshot method defined by {@link SnapshotSource.SnapshotSourceModule#init init}.
10816
10797
  *
10817
10798
  */
10818
- applySnapshot(snapshot: T): Promise<void>;
10799
+ applySnapshot(snapshot: Snapshot): Promise<void>;
10819
10800
  }
10820
10801
 
10821
10802
  /**
@@ -10825,6 +10806,9 @@ declare class SnapshotSourceModule extends Base {
10825
10806
  /**
10826
10807
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
10827
10808
  *
10809
+ * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
10810
+ * custom snapshot implementations for legacy applications to define their own snapshot format.
10811
+ *
10828
10812
  * @example
10829
10813
  * ```js
10830
10814
  * const snapshotProvider = {
@@ -10840,8 +10824,9 @@ declare class SnapshotSourceModule extends Base {
10840
10824
  *
10841
10825
  * await fin.SnapshotSource.init(snapshotProvider);
10842
10826
  * ```
10827
+ *
10843
10828
  */
10844
- init<T = any>(provider: OpenFin.SnapshotProvider<T>): Promise<void>;
10829
+ init<Snapshot = unknown>(provider: OpenFin.SnapshotProvider<Snapshot>): Promise<void>;
10845
10830
  /**
10846
10831
  * Synchronously returns a SnapshotSource object that represents the current SnapshotSource.
10847
10832
  *
@@ -12729,7 +12714,7 @@ declare type TransitionOptions = {
12729
12714
  tween?: tween;
12730
12715
  };
12731
12716
 
12732
- declare class Transport<MeType extends EntityType_3 = EntityType_3> extends EventEmitter {
12717
+ declare class Transport<MeType extends EntityType_2 = EntityType_2> extends EventEmitter {
12733
12718
  #private;
12734
12719
  protected wireListeners: Map<number, {
12735
12720
  resolve: Function;