@openfin/core 25.68.28 → 25.68.31

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 CHANGED
@@ -1,4 +1,4 @@
1
- /// <reference lib="dom"/>
1
+ // / <reference lib="dom"/>
2
2
 
3
3
  declare namespace OpenFin {
4
4
  // "wrappable entities"
@@ -17,64 +17,64 @@ declare namespace OpenFin {
17
17
  export type InteropBroker = import('./src/api/interop/index').InteropBroker;
18
18
  export type SnapshotSource = import('./src/api/snapshot-source/index').SnapshotSource;
19
19
 
20
- export interface ApplicationIdentity {
20
+ export type ApplicationIdentity = {
21
21
  // used for applications
22
22
  uuid: string;
23
- }
23
+ };
24
24
 
25
- export interface Identity {
25
+ export type Identity = {
26
26
  // used for views/windows/frames
27
27
  uuid: string;
28
28
  name: string;
29
- }
29
+ };
30
30
 
31
- export interface ClientIdentity {
31
+ export type ClientIdentity = {
32
32
  uuid: string;
33
33
  name: string;
34
34
  endpointId: string;
35
35
  isLocalEndpointId: boolean; // If true, this connection is from a legacy client.
36
- }
36
+ };
37
37
 
38
- export interface ClientIdentityMultiRuntime extends ClientIdentity {
38
+ export type ClientIdentityMultiRuntime = ClientIdentity & {
39
39
  runtimeUuid: string;
40
- }
40
+ };
41
41
 
42
- export interface EntityInfo {
42
+ export type EntityInfo = {
43
43
  uuid: string;
44
44
  name: string;
45
45
  entityType: EntityType;
46
- }
46
+ };
47
47
 
48
48
  export type EntityType = 'window' | 'iframe' | 'external connection' | 'view' | 'unknown';
49
49
 
50
- export interface Bounds {
50
+ export type Bounds = {
51
51
  top: number;
52
52
  left: number;
53
53
  height: number;
54
54
  width: number;
55
- }
55
+ };
56
56
 
57
57
  /**
58
58
  * Returned from getBounds call. bottom and right are never used for setting.
59
59
  */
60
- export interface WindowBounds extends Bounds {
60
+ export type WindowBounds = Bounds & {
61
61
  bottom: number;
62
62
  right: number;
63
- }
63
+ };
64
64
 
65
- export interface Rectangle {
65
+ export type Rectangle = {
66
66
  x: number;
67
67
  y: number;
68
68
  width: number;
69
69
  height: number;
70
- }
70
+ };
71
71
 
72
- export interface ApplicationCreationOptions extends Partial<ApplicationOption> {
72
+ export type ApplicationCreationOptions = Partial<ApplicationOptions> & {
73
73
  name: string;
74
74
  uuid: string;
75
- }
75
+ };
76
76
 
77
- export interface ApplicationOption extends LegacyWinOptionsInAppOptions {
77
+ export type ApplicationOptions = LegacyWinOptionsInAppOptions & {
78
78
  disableIabSecureLogging: boolean;
79
79
  loadErrorMessage: string;
80
80
  mainWindowOptions: WindowCreationOptions;
@@ -96,18 +96,18 @@ declare namespace OpenFin {
96
96
  apiDiagnostics: boolean;
97
97
  defaultDomainSettings: DefaultDomainSettings;
98
98
  enableJumpList: boolean;
99
- }
99
+ };
100
100
 
101
- interface InteropBrokerOptions {
101
+ type InteropBrokerOptions = {
102
102
  contextGroups?: ContextGroupInfo;
103
- }
103
+ };
104
104
 
105
- export interface ContextGroupInfo {
105
+ export type ContextGroupInfo = {
106
106
  id: string;
107
107
  displayMetadata?: DisplayMetadata;
108
- }
108
+ };
109
109
 
110
- export interface DisplayMetadata {
110
+ export type DisplayMetadata = {
111
111
  /**
112
112
  * A user-readable name for this context group, e.g: `"Red"`
113
113
  */
@@ -120,7 +120,7 @@ declare namespace OpenFin {
120
120
  * A URL of an image that can be used to display this context group
121
121
  */
122
122
  readonly glyph?: string;
123
- }
123
+ };
124
124
 
125
125
  export type LegacyWinOptionsInAppOptions = Pick<
126
126
  WindowCreationOptions,
@@ -162,7 +162,7 @@ declare namespace OpenFin {
162
162
  | 'waitForPageLoad'
163
163
  >;
164
164
 
165
- export interface Snapshot {
165
+ export type Snapshot = {
166
166
  windows: WindowCreationOptions[];
167
167
  snapshotDetails?: {
168
168
  monitorInfo: MonitorInfo;
@@ -172,23 +172,23 @@ declare namespace OpenFin {
172
172
  interopSnapshotDetails?: {
173
173
  contextGroupStates: ContextGroupStates;
174
174
  };
175
- }
175
+ };
176
176
 
177
- export interface ContextGroupStates {
177
+ export type ContextGroupStates = {
178
178
  [key: string]: {
179
179
  [key: string]: Context;
180
180
  };
181
- }
181
+ };
182
182
 
183
- export interface Context {
183
+ export type Context = {
184
184
  id?: {
185
185
  [key: string]: string;
186
186
  };
187
187
  name?: string;
188
188
  type: string;
189
- }
189
+ };
190
190
 
191
- export interface MonitorInfo {
191
+ export type MonitorInfo = {
192
192
  deviceScaleFactor: number;
193
193
  dpi: Point;
194
194
  nonPrimaryMonitors: MonitorDetails[];
@@ -196,26 +196,26 @@ declare namespace OpenFin {
196
196
  reason: string;
197
197
  taskbar: TaskBar;
198
198
  virtualScreen: DipRect;
199
- }
199
+ };
200
200
 
201
- export interface Point {
201
+ export type Point = {
202
202
  x: number;
203
203
  y: number;
204
- }
204
+ };
205
205
 
206
- export interface PointTopLeft {
206
+ export type PointTopLeft = {
207
207
  top: number;
208
208
  left: number;
209
- }
209
+ };
210
210
 
211
- export interface RectangleByEdgePositions {
211
+ export type RectangleByEdgePositions = {
212
212
  top: number;
213
213
  left: number;
214
214
  bottom: number;
215
215
  right: number;
216
- }
216
+ };
217
217
 
218
- export interface MonitorDetails {
218
+ export type MonitorDetails = {
219
219
  available: DipScaleRects;
220
220
  availableRect: RectangleByEdgePositions;
221
221
  deviceId: string | number; // Number on mac
@@ -225,32 +225,36 @@ declare namespace OpenFin {
225
225
  name: string | number; // Number on mac
226
226
  dpi: Point;
227
227
  monitor: DipScaleRects;
228
- }
228
+ };
229
229
 
230
- export interface DipRect extends RectangleByEdgePositions {
230
+ export type DipRect = RectangleByEdgePositions & {
231
231
  dipRect: RectangleByEdgePositions;
232
232
  scaledRect: RectangleByEdgePositions;
233
- }
233
+ };
234
234
 
235
- export interface DipScaleRects {
235
+ export type DipScaleRects = {
236
236
  dipRect: RectangleByEdgePositions;
237
237
  scaledRect: RectangleByEdgePositions;
238
- }
238
+ };
239
239
 
240
- export interface TaskBar extends DipScaleRects {
240
+ export type TaskBar = DipScaleRects & {
241
241
  edge: string;
242
242
  rect: RectangleByEdgePositions;
243
- }
243
+ };
244
244
 
245
- export interface WindowCreationOptions extends Partial<WindowOptions> {
245
+ export type WindowCreationOptions = Partial<WindowOptions> & {
246
246
  name: string;
247
- }
247
+ };
248
+
249
+ export type UpdatableWindowOptions = Partial<MutableWindowOptions>;
248
250
 
249
- export interface DefaultWindowOptions extends WindowOptions {
251
+ export type DefaultWindowOptions = WindowOptions & {
250
252
  permissions: Partial<Permissions>;
251
- }
253
+ };
254
+
255
+ export type WindowOptions = MutableWindowOptions & ConstWindowOptions;
252
256
 
253
- export interface WindowOptions extends WindowUpdatableOptions {
257
+ export type ConstWindowOptions = {
254
258
  accelerator: Partial<Accelerator>;
255
259
  api: Api;
256
260
  applicationIcon: string;
@@ -288,9 +292,9 @@ declare namespace OpenFin {
288
292
  y: number;
289
293
  experimental?: any;
290
294
  fdc3InteropApi?: string;
291
- }
295
+ };
292
296
 
293
- export interface WindowUpdatableOptions {
297
+ export type MutableWindowOptions = {
294
298
  alphaMask: RGB;
295
299
  alwaysOnTop: boolean;
296
300
  aspectRatio: number;
@@ -315,50 +319,21 @@ declare namespace OpenFin {
315
319
  showTaskbarIcon: boolean;
316
320
  interop: InteropConfig;
317
321
  workspacePlatform: WorkspacePlatformOptions;
318
- }
322
+ };
319
323
 
320
- export interface WorkspacePlatformOptions {
324
+ export type WorkspacePlatformOptions = {
321
325
  /** Leaving this as any for now until we figure out what the shape should look like in Workspace */
322
326
  [key: string]: any;
323
- }
324
-
325
- type LayoutSettingsExtended = LayoutOptions['settings'] & {
326
- reorderEnabled?: boolean;
327
- };
328
-
329
- type LayoutComponentStateExtended = LayoutComponent['componentState'] & { name: string; uuid: string };
330
-
331
- type LayoutComponentExtended = Omit<OpenFin.LayoutComponent, 'componentState'> & {
332
- componentState: LayoutComponentStateExtended;
333
327
  };
334
328
 
335
- type LayoutStack = { type: 'stack'; content: LayoutContent };
336
-
337
- type LayoutContentItemExtended = OpenFin.LayoutRow | OpenFin.LayoutColumn | LayoutComponentExtended | LayoutStack;
338
-
339
- type LayoutContentExtended = LayoutContentItemExtended[];
340
-
341
- type LayoutExtended = {
342
- settings: LayoutSettingsExtended;
343
- content: LayoutContentExtended;
344
- };
345
-
346
- interface PageLayoutDetails {
347
- /** The id of the machine that created the page. */
348
- machineId: string;
349
-
350
- /** The name of the machine that created the page. */
351
- machineName?: string;
352
- }
353
-
354
- export interface WebRequestHeader {
329
+ export type WebRequestHeader = {
355
330
  [key: string]: string;
356
- }
331
+ };
357
332
 
358
- export interface CustomRequestHeaders {
333
+ export type CustomRequestHeaders = {
359
334
  urlPatterns: string[];
360
335
  headers: WebRequestHeader[]; // key=value is added to headers
361
- }
336
+ };
362
337
 
363
338
  export type WindowOptionDiff = {
364
339
  [key in keyof WindowOptions]: {
@@ -367,7 +342,7 @@ declare namespace OpenFin {
367
342
  };
368
343
  };
369
344
 
370
- export interface ResizeRegion {
345
+ export type ResizeRegion = {
371
346
  size?: number;
372
347
  bottomRightCorner?: number;
373
348
  sides?: {
@@ -376,76 +351,76 @@ declare namespace OpenFin {
376
351
  left?: boolean;
377
352
  right?: boolean;
378
353
  };
379
- }
354
+ };
380
355
 
381
- export interface Accelerator {
356
+ export type Accelerator = {
382
357
  devtools: boolean;
383
358
  reload: boolean;
384
359
  reloadIgnoringCache: boolean;
385
360
  zoom: boolean;
386
- }
361
+ };
387
362
 
388
- export interface Api {
363
+ export type Api = {
389
364
  iframe?: {
390
365
  crossOriginInjection?: boolean;
391
366
  sameOriginInjection?: boolean;
392
367
  enableDeprecatedSharedName?: boolean;
393
368
  };
394
- }
369
+ };
395
370
 
396
- export interface ContentNavigation {
371
+ export type ContentNavigation = {
397
372
  whitelist?: string[];
398
373
  blacklist?: string[];
399
- }
374
+ };
400
375
 
401
- export interface ContentRedirect {
376
+ export type ContentRedirect = {
402
377
  whitelist: string[];
403
378
  blacklist: string[];
404
- }
379
+ };
405
380
 
406
- export interface CornerRounding {
381
+ export type CornerRounding = {
407
382
  height: number;
408
383
  width: number;
409
- }
384
+ };
410
385
 
411
- export interface DownloadPreloadOption {
386
+ export type DownloadPreloadOption = {
412
387
  url: string;
413
- }
388
+ };
414
389
 
415
- export interface DownloadPreloadInfo {
390
+ export type DownloadPreloadInfo = {
416
391
  success: boolean;
417
392
  url?: string;
418
393
  error: string;
419
- }
394
+ };
420
395
 
421
- export interface RGB {
396
+ export type RGB = {
422
397
  red: number;
423
398
  blue: number;
424
399
  green: number;
425
- }
400
+ };
426
401
 
427
- export interface ContextMenuSettings {
402
+ export type ContextMenuSettings = {
428
403
  enable: boolean;
429
404
  devtools?: boolean;
430
405
  reload?: boolean;
431
- }
406
+ };
432
407
 
433
- export interface Hotkey {
408
+ export type Hotkey = {
434
409
  keys: string;
435
410
  preventDefault?: boolean;
436
- }
411
+ };
437
412
 
438
- export interface ShortcutOverride extends Hotkey {
413
+ export type ShortcutOverride = Hotkey & {
439
414
  command: string;
440
- }
415
+ };
441
416
 
442
- export interface PreloadScript {
417
+ export type PreloadScript = {
443
418
  mandatory?: boolean;
444
419
  state?: 'load-started' | 'load-failed' | 'load-succeeded' | 'failed' | 'succeeded';
445
420
  url: string;
446
- }
421
+ };
447
422
 
448
- export interface AutoResizeOptions {
423
+ export type AutoResizeOptions = {
449
424
  /**
450
425
  * If true, the view's width will grow and shrink together with the window. false
451
426
  * by default.
@@ -466,28 +441,31 @@ declare namespace OpenFin {
466
441
  * the window. false by default.
467
442
  */
468
443
  vertical?: boolean;
469
- }
444
+ };
470
445
 
471
- export interface InteropConfig {
446
+ export type InteropConfig = {
472
447
  currentContextGroup?: string | null;
473
448
  providerId?: string;
474
- }
449
+ };
475
450
 
476
- export interface ViewInfo {
451
+ export type ViewInfo = {
477
452
  canNavigateBack: boolean;
478
453
  canNavigateForward: boolean;
479
454
  processAffinity: string;
480
455
  title: string;
481
456
  url: string;
482
457
  favicons: string[];
483
- }
484
- export interface ViewCreationOptions extends Partial<ViewOptions> {
458
+ };
459
+
460
+ export type UpdatableViewOptions = Partial<MutableViewOptions>;
461
+
462
+ export type ViewCreationOptions = Partial<ViewOptions> & {
485
463
  name: string;
486
464
  url: string;
487
465
  target: Identity;
488
- }
466
+ };
489
467
 
490
- export interface UpdatableViewOptions {
468
+ export type MutableViewOptions = {
491
469
  autoResize: AutoResizeOptions;
492
470
  contextMenuSettings: ContextMenuSettings;
493
471
  backgroundColor: string;
@@ -500,13 +478,15 @@ declare namespace OpenFin {
500
478
  preventDragOut: boolean;
501
479
  // Doesn't get defaulted
502
480
  interop?: InteropConfig;
503
- }
481
+ };
504
482
 
505
- export interface DefaultViewOptions extends ViewOptions {
483
+ export type DefaultViewOptions = ViewOptions & {
506
484
  permissions: Partial<Permissions>;
507
- }
485
+ };
486
+
487
+ export type ViewOptions = ConstViewOptions & MutableViewOptions;
508
488
 
509
- export interface ViewOptions extends UpdatableViewOptions {
489
+ export type ConstViewOptions = {
510
490
  name: string;
511
491
  url: string;
512
492
  target: Identity;
@@ -520,9 +500,9 @@ declare namespace OpenFin {
520
500
  zoomLevel: number;
521
501
  experimental: any;
522
502
  fdc3InteropApi?: string;
523
- }
503
+ };
524
504
 
525
- export interface Certificate {
505
+ export type Certificate = {
526
506
  data: string;
527
507
  fingerprint: string;
528
508
  issuer: CertificatePrincipal;
@@ -533,82 +513,82 @@ declare namespace OpenFin {
533
513
  subjectName: string;
534
514
  validExpiry: number;
535
515
  validStart: number;
536
- }
516
+ };
537
517
 
538
- interface CertificatePrincipal {
518
+ type CertificatePrincipal = {
539
519
  commonName: string;
540
520
  country: string;
541
521
  locality: string;
542
522
  organizations: string[];
543
523
  organizationUnits: string[];
544
524
  state: string;
545
- }
525
+ };
546
526
 
547
527
  export type HostContextChangedPayload = {
548
528
  context: any;
549
529
  reason: HostContextChangedReasons;
550
530
  };
551
531
 
552
- export interface ApplySnapshotOptions {
532
+ export type ApplySnapshotOptions = {
553
533
  closeExistingWindows?: boolean;
554
534
  closeSnapshotWindows?: boolean;
555
535
  skipOutOfBoundsCheck?: boolean;
556
- }
536
+ };
557
537
 
558
- export interface ApplySnapshotPayload {
538
+ export type ApplySnapshotPayload = {
559
539
  snapshot: Snapshot;
560
540
  options?: ApplySnapshotOptions;
561
- }
562
- export interface CreateViewPayload {
541
+ };
542
+ export type CreateViewPayload = {
563
543
  opts: Partial<ViewOptions>;
564
544
  target: Identity;
565
545
  targetView?: Identity;
566
- }
546
+ };
567
547
 
568
- export interface ReplaceViewPayload {
548
+ export type ReplaceViewPayload = {
569
549
  opts: {
570
550
  viewToReplace: Identity;
571
551
  newView: Partial<ViewOptions>;
572
552
  };
573
553
  target: Identity;
574
- }
554
+ };
575
555
 
576
- export interface CloseViewPayload {
556
+ export type CloseViewPayload = {
577
557
  view: Identity;
578
- }
558
+ };
579
559
 
580
- export interface FetchManifestPayload {
560
+ export type FetchManifestPayload = {
581
561
  manifestUrl: string;
582
- }
562
+ };
583
563
 
584
- export interface ReplaceLayoutOpts {
564
+ export type ReplaceLayoutOpts = {
585
565
  layout: LayoutOptions;
586
- }
587
- export interface ReplaceLayoutPayload {
566
+ };
567
+ export type ReplaceLayoutPayload = {
588
568
  opts: ReplaceLayoutOpts;
589
569
  target: Identity;
590
- }
570
+ };
591
571
 
592
- export interface SetWindowContextPayload {
572
+ export type SetWindowContextPayload = {
593
573
  context: any;
594
574
  entityType: EntityType;
595
575
  target: Identity;
596
- }
576
+ };
597
577
 
598
- export interface LaunchIntoPlatformPayload {
578
+ export type LaunchIntoPlatformPayload = {
599
579
  manifest: any;
600
- }
580
+ };
601
581
 
602
- export interface GetWindowContextPayload {
582
+ export type GetWindowContextPayload = {
603
583
  entityType: EntityType;
604
584
  target: Identity;
605
- }
585
+ };
606
586
 
607
- export interface ApplicationPermissions {
587
+ export type ApplicationPermissions = {
608
588
  setFileDownloadLocation: boolean;
609
- }
589
+ };
610
590
 
611
- export interface SystemPermissions {
591
+ export type SystemPermissions = {
612
592
  getAllExternalWindows: boolean;
613
593
  launchExternalProcess: boolean;
614
594
  readRegistryValue:
@@ -622,7 +602,7 @@ declare namespace OpenFin {
622
602
  enabled: boolean;
623
603
  protocols: string[];
624
604
  };
625
- }
605
+ };
626
606
 
627
607
  export type WebPermission =
628
608
  | 'audio'
@@ -636,38 +616,38 @@ declare namespace OpenFin {
636
616
  | 'clipboard-read'
637
617
  | 'clipboard-sanitized-write';
638
618
 
639
- export interface Permissions {
619
+ export type Permissions = {
640
620
  Application?: Partial<ApplicationPermissions>;
641
621
  System?: Partial<SystemPermissions>;
642
622
  webAPIs?: WebPermission[];
643
- }
623
+ };
644
624
 
645
- export interface PlatformWindowCreationOptions extends Partial<WindowCreationOptions> {
625
+ export type PlatformWindowCreationOptions = Partial<WindowCreationOptions> & {
646
626
  updateStateIfExists?: boolean;
647
627
  reason?: WindowCreationReason;
648
- }
628
+ };
649
629
 
650
- export interface PlatformWindowOptions extends WindowCreationOptions {
630
+ export type PlatformWindowOptions = WindowCreationOptions & {
651
631
  stylesheetUrl: string;
652
- }
632
+ };
653
633
 
654
- export interface PlatformViewCreationOptions extends Partial<ViewOptions> {
634
+ export type PlatformViewCreationOptions = Partial<ViewOptions> & {
655
635
  url: string;
656
636
  target: Identity;
657
- }
637
+ };
658
638
 
659
639
  export type ProcessAffinityStrategy = 'same' | 'different';
660
640
 
661
- export interface PlatformOptions extends ApplicationCreationOptions {
641
+ export type PlatformOptions = ApplicationCreationOptions & {
662
642
  defaultWindowOptions?: Partial<PlatformWindowOptions>;
663
643
  defaultViewOptions?: Partial<PlatformViewCreationOptions>;
664
644
  disableDefaultCommands?: boolean;
665
645
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
666
646
  providerUrl?: string;
667
647
  permissions?: Partial<Permissions>;
668
- }
648
+ };
669
649
 
670
- export interface Manifest {
650
+ export type Manifest = {
671
651
  appAssets?: {
672
652
  alias: string;
673
653
  args?: string;
@@ -721,9 +701,9 @@ declare namespace OpenFin {
721
701
  forwardErrorReports?: boolean;
722
702
  enableErrorReporting?: boolean;
723
703
  };
724
- }
704
+ };
725
705
 
726
- export interface LayoutOptions {
706
+ export type LayoutOptions = {
727
707
  settings: {
728
708
  popoutWholeStack?: boolean;
729
709
  constrainDragToContainer?: boolean;
@@ -733,19 +713,19 @@ declare namespace OpenFin {
733
713
  constrainDragToHeaders?: boolean;
734
714
  };
735
715
  content: LayoutContent;
736
- }
716
+ };
737
717
 
738
718
  export type LayoutContent = (LayoutRow | LayoutColumn | LayoutComponent)[];
739
719
 
740
- export interface LayoutRow {
720
+ export type LayoutRow = {
741
721
  type: 'row';
742
722
  content: LayoutContent;
743
- }
744
- export interface LayoutColumn {
723
+ };
724
+ export type LayoutColumn = {
745
725
  type: 'column';
746
726
  content: LayoutContent;
747
- }
748
- export interface LayoutComponent {
727
+ };
728
+ export type LayoutComponent = {
749
729
  type: 'component';
750
730
  componentName: 'view';
751
731
  componentState: {
@@ -753,7 +733,7 @@ declare namespace OpenFin {
753
733
  url: string;
754
734
  title?: string;
755
735
  };
756
- }
736
+ };
757
737
 
758
738
  export type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (
759
739
  arg: Constructor<T>,
@@ -772,7 +752,7 @@ declare namespace OpenFin {
772
752
  | 'restore';
773
753
 
774
754
  // TODO: Real PlatformProvider type def
775
- export interface PlatformProvider {
755
+ export type PlatformProvider = {
776
756
  /**
777
757
  * Handles requests to create a window in the current platform.
778
758
  * @param { WindowOption } payload Window options for the window to be created.
@@ -892,14 +872,14 @@ declare namespace OpenFin {
892
872
  onWindowContextUpdated(
893
873
  payload: WindowOptionsChangedEvent<'window', 'options-changed'>
894
874
  ): Promise<OpenFin.HostContextChangedPayload | undefined>;
895
- }
875
+ };
896
876
 
897
- export interface InitPlatformOptions {
877
+ export type InitPlatformOptions = {
898
878
  overrideCallback?: OverrideCallback<PlatformProvider>;
899
879
  interopOverride?: OverrideCallback<InteropBroker>;
900
- }
880
+ };
901
881
 
902
- export interface ProcessDetails {
882
+ export type ProcessDetails = {
903
883
  cpuUsage: number;
904
884
  nonPagedPoolUsage: number;
905
885
  pageFaultCount: number;
@@ -912,80 +892,80 @@ declare namespace OpenFin {
912
892
  workingSetSize: number;
913
893
  privateSetSize: number;
914
894
  pid: number;
915
- }
895
+ };
916
896
 
917
- export interface FrameProcessDetails extends ProcessDetails {
897
+ export type FrameProcessDetails = ProcessDetails & {
918
898
  url: string;
919
899
  entityType: string;
920
- }
900
+ };
921
901
 
922
- export interface EntityProcessDetails extends FrameProcessDetails {
902
+ export type EntityProcessDetails = FrameProcessDetails & {
923
903
  name: string;
924
904
  uuid: string;
925
905
  iframes: FrameProcessDetails[];
926
- }
906
+ };
927
907
 
928
- export interface AppProcessInfo {
908
+ export type AppProcessInfo = {
929
909
  uuid: string;
930
910
  entities: EntityProcessDetails[];
931
- }
911
+ };
932
912
 
933
- export interface NonAppProcessDetails extends ProcessDetails {
913
+ export type NonAppProcessDetails = ProcessDetails & {
934
914
  name: string;
935
- }
915
+ };
936
916
 
937
- export interface SystemProcessInfo {
917
+ export type SystemProcessInfo = {
938
918
  apps: AppProcessInfo[];
939
919
  browserProcess: NonAppProcessDetails;
940
920
  nonApps: NonAppProcessDetails[];
941
- }
921
+ };
942
922
 
943
- export interface ClearCacheOption {
923
+ export type ClearCacheOption = {
944
924
  appcache?: boolean;
945
925
  cache?: boolean;
946
926
  cookies?: boolean;
947
927
  localStorage?: boolean;
948
- }
928
+ };
949
929
 
950
- export interface CookieInfo {
930
+ export type CookieInfo = {
951
931
  name: string;
952
932
  // expirationDate: Date;
953
933
  domain: string;
954
934
  path: string;
955
- }
935
+ };
956
936
 
957
- export interface CookieOption {
937
+ export type CookieOption = {
958
938
  name: string;
959
- }
939
+ };
960
940
 
961
- export interface CrashReporterOptions {
941
+ export type CrashReporterOptions = {
962
942
  diagnosticsMode: boolean;
963
- }
943
+ };
964
944
 
965
- export interface CrashReporterState extends CrashReporterOptions {
945
+ export type CrashReporterState = CrashReporterOptions & {
966
946
  isRunning: boolean;
967
947
  diagnosticMode: boolean;
968
- }
948
+ };
969
949
 
970
- export interface Time {
950
+ export type Time = {
971
951
  user: number;
972
952
  nice: number;
973
953
  sys: number;
974
954
  idle: number;
975
955
  irq: number;
976
- }
956
+ };
977
957
 
978
- export interface CpuInfo {
958
+ export type CpuInfo = {
979
959
  model: string;
980
960
  speed: number;
981
961
  times: Time;
982
- }
962
+ };
983
963
 
984
- export interface GpuInfo {
964
+ export type GpuInfo = {
985
965
  name: string;
986
- }
966
+ };
987
967
 
988
- export interface HostSpecs {
968
+ export type HostSpecs = {
989
969
  aeroGlassEnabled?: boolean;
990
970
  arch: string;
991
971
  cpus: CpuInfo[];
@@ -993,29 +973,29 @@ declare namespace OpenFin {
993
973
  memory: number;
994
974
  name: string;
995
975
  screenSaver?: boolean;
996
- }
976
+ };
997
977
 
998
- export interface PrinterInfo {
978
+ export type PrinterInfo = {
999
979
  name: string;
1000
980
  description: string;
1001
981
  status: number;
1002
982
  isDefault: boolean;
1003
- }
983
+ };
1004
984
 
1005
- export interface Dpi {
985
+ export type Dpi = {
1006
986
  horizontal?: number;
1007
987
  vertical?: number;
1008
- }
988
+ };
1009
989
 
1010
- export interface Margins {
990
+ export type Margins = {
1011
991
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
1012
992
  top?: number;
1013
993
  bottom?: number;
1014
994
  left?: number;
1015
995
  right?: number;
1016
- }
996
+ };
1017
997
 
1018
- export interface PrintOptions {
998
+ export type PrintOptions = {
1019
999
  silent?: boolean;
1020
1000
  printBackground?: boolean;
1021
1001
  deviceName?: string;
@@ -1029,103 +1009,103 @@ declare namespace OpenFin {
1029
1009
  pageRanges?: Record<string, number>;
1030
1010
  duplexMode?: 'simplex' | 'shortEdge' | 'longEdge';
1031
1011
  dpi?: Dpi;
1032
- }
1033
- export interface WriteRequestType {
1012
+ };
1013
+ export type WriteRequestType = {
1034
1014
  data: string;
1035
1015
  type?: string;
1036
- }
1016
+ };
1037
1017
 
1038
- export interface WriteAnyRequestType {
1018
+ export type WriteAnyRequestType = {
1039
1019
  data: {
1040
1020
  text?: string;
1041
1021
  html?: string;
1042
1022
  rtf?: string;
1043
1023
  };
1044
1024
  type?: string;
1045
- }
1025
+ };
1046
1026
 
1047
- export interface SubscriptionOptions {
1027
+ export type SubscriptionOptions = {
1048
1028
  timestamp?: number;
1049
- }
1029
+ };
1050
1030
 
1051
- export interface SharedWorkerInfo {
1031
+ export type SharedWorkerInfo = {
1052
1032
  id: string;
1053
1033
  url: string;
1054
- }
1034
+ };
1055
1035
 
1056
- export interface ServiceIdentifier {
1036
+ export type ServiceIdentifier = {
1057
1037
  name: string;
1058
- }
1038
+ };
1059
1039
 
1060
- export interface ServiceConfiguration {
1040
+ export type ServiceConfiguration = {
1061
1041
  config: object;
1062
1042
  name: string;
1063
- }
1043
+ };
1064
1044
 
1065
- export interface RVMInfo {
1045
+ export type RVMInfo = {
1066
1046
  'action': string;
1067
1047
  'appLogDirectory': string;
1068
1048
  'path': string;
1069
1049
  'start-time': string;
1070
1050
  'version': string;
1071
1051
  'working-dir': string;
1072
- }
1052
+ };
1073
1053
 
1074
- export interface RvmLaunchOptions {
1054
+ export type RvmLaunchOptions = {
1075
1055
  noUi?: boolean;
1076
1056
  userAppConfigArgs?: object;
1077
- }
1057
+ };
1078
1058
 
1079
- export interface ShortCutConfig {
1059
+ export type ShortCutConfig = {
1080
1060
  desktop?: boolean;
1081
1061
  startMenu?: boolean;
1082
1062
  systemStartup?: boolean;
1083
- }
1063
+ };
1084
1064
 
1085
- export interface TerminateExternalRequestType {
1065
+ export type TerminateExternalRequestType = {
1086
1066
  uuid: string;
1087
1067
  timeout: number;
1088
1068
  killTree: boolean;
1089
- }
1069
+ };
1090
1070
 
1091
- export interface TrayInfo {
1071
+ export type TrayInfo = {
1092
1072
  bounds: OpenFin.Rectangle;
1093
1073
  monitorInfo: OpenFin.MonitorInfo;
1094
1074
  x: number;
1095
1075
  y: number;
1096
- }
1076
+ };
1097
1077
 
1098
- export interface Transition {
1078
+ export type Transition = {
1099
1079
  opacity?: Opacity;
1100
1080
  position?: Position;
1101
1081
  size?: Size;
1102
- }
1082
+ };
1103
1083
 
1104
- export interface Size extends TransitionBase {
1084
+ export type Size = TransitionBase & {
1105
1085
  width: number;
1106
1086
  height: number;
1107
- }
1087
+ };
1108
1088
 
1109
- export interface Opacity extends TransitionBase {
1089
+ export type Opacity = TransitionBase & {
1110
1090
  opacity: number;
1111
- }
1091
+ };
1112
1092
 
1113
- export interface TransitionBase {
1093
+ export type TransitionBase = {
1114
1094
  duration: number;
1115
1095
  relative?: boolean;
1116
- }
1096
+ };
1117
1097
 
1118
- export interface Position extends TransitionBase {
1098
+ export type Position = TransitionBase & {
1119
1099
  left: number;
1120
1100
  top: number;
1121
- }
1101
+ };
1122
1102
 
1123
1103
  export type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1124
1104
 
1125
- export interface TransitionOptions {
1105
+ export type TransitionOptions = {
1126
1106
  interrupt: boolean;
1127
1107
  tween?: tween;
1128
- }
1108
+ };
1129
1109
 
1130
1110
  type tween =
1131
1111
  | 'linear'
@@ -1146,31 +1126,31 @@ declare namespace OpenFin {
1146
1126
  | 'ease-out-elastic'
1147
1127
  | 'ease-in-out-elastic';
1148
1128
 
1149
- export interface FindInPageOptions {
1129
+ export type FindInPageOptions = {
1150
1130
  forward?: boolean;
1151
1131
  findNext?: boolean;
1152
1132
  matchCase?: boolean;
1153
1133
  wordStart?: boolean;
1154
1134
  medialCapitalAsWordStart?: boolean;
1155
- }
1135
+ };
1156
1136
 
1157
- export interface FrameInfo {
1137
+ export type FrameInfo = {
1158
1138
  name: string;
1159
1139
  uuid: string;
1160
1140
  entityType: EntityType;
1161
1141
  parent: Identity;
1162
- }
1142
+ };
1163
1143
 
1164
- export interface ExternalApplicationInfo {
1144
+ export type ExternalApplicationInfo = {
1165
1145
  parent: Identity;
1166
- }
1146
+ };
1167
1147
 
1168
- export interface ExternalConnection {
1148
+ export type ExternalConnection = {
1169
1149
  token: string;
1170
1150
  uuid: string;
1171
- }
1151
+ };
1172
1152
 
1173
- export interface ExternalProcessRequestType {
1153
+ export type ExternalProcessRequestType = {
1174
1154
  path?: string;
1175
1155
  alias?: string;
1176
1156
  arguments?: string;
@@ -1180,111 +1160,111 @@ declare namespace OpenFin {
1180
1160
  uuid?: string;
1181
1161
  initialWindowState?: string;
1182
1162
  cwd?: string;
1183
- }
1163
+ };
1184
1164
 
1185
- export interface CertificationInfo {
1165
+ export type CertificationInfo = {
1186
1166
  serial?: string;
1187
1167
  subject?: string;
1188
1168
  publickey?: string;
1189
1169
  thumbprint?: string;
1190
1170
  trusted?: boolean;
1191
- }
1171
+ };
1192
1172
 
1193
- export interface ExitCode {
1173
+ export type ExitCode = {
1194
1174
  topic: string;
1195
1175
  uuid: string;
1196
1176
  exitCode: number;
1197
- }
1177
+ };
1198
1178
 
1199
- export interface LaunchExternalProcessListener {
1179
+ export type LaunchExternalProcessListener = {
1200
1180
  (code: ExitCode): void;
1201
- }
1181
+ };
1202
1182
 
1203
- export interface ExternalProcessInfo {
1183
+ export type ExternalProcessInfo = {
1204
1184
  pid: number;
1205
1185
  listener?: LaunchExternalProcessListener;
1206
- }
1186
+ };
1207
1187
 
1208
- export interface AppAssetInfo {
1188
+ export type AppAssetInfo = {
1209
1189
  src: string;
1210
1190
  alias: string;
1211
1191
  version: string;
1212
1192
  target?: string;
1213
1193
  args?: string;
1214
1194
  mandatory?: boolean;
1215
- }
1195
+ };
1216
1196
 
1217
- export interface RuntimeDownloadOptions {
1197
+ export type RuntimeDownloadOptions = {
1218
1198
  version: string;
1219
- }
1199
+ };
1220
1200
 
1221
- export interface AppAssetRequest {
1201
+ export type AppAssetRequest = {
1222
1202
  alias: string;
1223
- }
1203
+ };
1224
1204
 
1225
- export interface RuntimeDownloadProgress {
1205
+ export type RuntimeDownloadProgress = {
1226
1206
  downloadedBytes: number;
1227
1207
  totalBytes: number;
1228
- }
1208
+ };
1229
1209
 
1230
- export interface CertifiedAppInfo {
1210
+ export type CertifiedAppInfo = {
1231
1211
  isRunning: boolean;
1232
1212
  isOptedIntoCertfiedApp?: boolean;
1233
1213
  isCertified?: boolean;
1234
1214
  isSSLCertified?: boolean;
1235
1215
  isPresentInAppDirectory?: boolean;
1236
- }
1237
- export interface JumpListCategory {
1216
+ };
1217
+ export type JumpListCategory = {
1238
1218
  name?: string;
1239
1219
  items: Array<JumpListTask | JumpListSeparator>;
1240
- }
1220
+ };
1241
1221
 
1242
1222
  export type JumpListItem = JumpListTask | JumpListSeparator;
1243
1223
 
1244
- export interface JumpListTask {
1224
+ export type JumpListTask = {
1245
1225
  type: 'task';
1246
1226
  title: string;
1247
1227
  description: string;
1248
1228
  deepLink: string;
1249
1229
  iconPath?: string;
1250
1230
  iconIndex?: number;
1251
- }
1231
+ };
1252
1232
 
1253
- export interface JumpListSeparator {
1233
+ export type JumpListSeparator = {
1254
1234
  type: 'separator';
1255
- }
1235
+ };
1256
1236
 
1257
- export interface ApplicationInfo {
1237
+ export type ApplicationInfo = {
1258
1238
  initialOptions: OpenFin.ApplicationCreationOptions;
1259
1239
  launchMode: string;
1260
1240
  manifest: OpenFin.Manifest & { [key: string]: any };
1261
1241
  manifestUrl: string;
1262
1242
  parentUuid?: string;
1263
1243
  runtime: { version: string };
1264
- }
1244
+ };
1265
1245
 
1266
- export interface ManifestInfo {
1246
+ export type ManifestInfo = {
1267
1247
  uuid: string;
1268
1248
  manifestUrl: string;
1269
- }
1249
+ };
1270
1250
 
1271
- export interface ClickedMenuResult {
1251
+ export type ClickedMenuResult = {
1272
1252
  result: 'clicked';
1273
1253
  data: any;
1274
- }
1254
+ };
1275
1255
 
1276
- export interface ClosedMenuResult {
1256
+ export type ClosedMenuResult = {
1277
1257
  result: 'closed';
1278
- }
1258
+ };
1279
1259
 
1280
1260
  export type MenuResult = ClickedMenuResult | ClosedMenuResult;
1281
1261
 
1282
- export interface ShowPopupMenuOptions {
1262
+ export type ShowPopupMenuOptions = {
1283
1263
  template: MenuItemTemplate[];
1284
1264
  x?: number;
1285
1265
  y?: number;
1286
- }
1287
- export interface MenuItemTemplate {
1266
+ };
1267
+ export type MenuItemTemplate = {
1288
1268
  /**
1289
1269
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
1290
1270
  * Defaults to 'normal' unless a 'submenu' key exists
@@ -1320,13 +1300,13 @@ declare namespace OpenFin {
1320
1300
  * Image Data URI with image dimensions inferred from the encoded string
1321
1301
  */
1322
1302
  icon?: string;
1323
- }
1303
+ };
1324
1304
 
1325
- export interface NativeWindowIntegrationProviderAuthorization {
1305
+ export type NativeWindowIntegrationProviderAuthorization = {
1326
1306
  authorizedUuid: string;
1327
- }
1307
+ };
1328
1308
 
1329
- export interface RuntimeInfo {
1309
+ export type RuntimeInfo = {
1330
1310
  architecture: string;
1331
1311
  manifestUrl: string;
1332
1312
  port: number;
@@ -1336,74 +1316,74 @@ declare namespace OpenFin {
1336
1316
  chromeVersion: string;
1337
1317
  electronVersion: string;
1338
1318
  devtoolsPort?: number;
1339
- }
1319
+ };
1340
1320
 
1341
- export interface DefaultDomainSettings {
1321
+ export type DefaultDomainSettings = {
1342
1322
  rules: DefaultDomainSettingsRule[];
1343
- }
1323
+ };
1344
1324
 
1345
- export interface DefaultDomainSettingsRule {
1325
+ export type DefaultDomainSettingsRule = {
1346
1326
  // match pattern is a domain based string type
1347
1327
  match: string[];
1348
1328
  options: {
1349
1329
  downloadSettings: FileDownloadSettings;
1350
1330
  };
1351
- }
1331
+ };
1352
1332
 
1353
1333
  export type FileDownloadBehaviorNames = 'prompt' | 'no-prompt' | 'block';
1354
1334
 
1355
- export interface FileDownloadSettings {
1335
+ export type FileDownloadSettings = {
1356
1336
  rules: DownloadRule[];
1357
- }
1337
+ };
1358
1338
 
1359
- export interface DownloadRule {
1339
+ export type DownloadRule = {
1360
1340
  behavior: FileDownloadBehaviorNames;
1361
1341
  // match pattern is a string type
1362
1342
  match: string[];
1363
- }
1364
- export interface ContextSubscription {
1343
+ };
1344
+ export type ContextSubscription = {
1365
1345
  handler: ContextHandler;
1366
1346
  contextType?: string;
1367
- }
1347
+ };
1368
1348
 
1369
1349
  export type ContextHandler = (context: OpenFin.Context) => void;
1370
1350
 
1371
- export interface Intent<MetadataType = IntentMetadata> {
1351
+ export type Intent<MetadataType = IntentMetadata> = {
1372
1352
  name: string;
1373
1353
  context: Context;
1374
1354
  metadata?: MetadataType;
1375
- }
1355
+ };
1376
1356
 
1377
- export interface IntentMetadata<TargetType = any> {
1357
+ export type IntentMetadata<TargetType = any> = {
1378
1358
  target?: TargetType;
1379
- }
1359
+ };
1380
1360
 
1381
1361
  export type IntentHandler = (intent: OpenFin.Intent) => void;
1382
1362
  type MatchPattern = string;
1383
1363
 
1384
1364
  export type ContentCreationBehaviorNames = 'window' | 'view' | 'block' | 'browser';
1385
- export interface ContentCreationRule<T = ContentCreationBehaviorNames> {
1365
+ export type ContentCreationRule<T = ContentCreationBehaviorNames> = {
1386
1366
  behavior: T;
1387
1367
  match: MatchPattern[];
1388
1368
  options?: T extends 'window' ? Partial<WindowOptions> : T extends 'view' ? Partial<OpenFin.ViewOptions> : never;
1389
- }
1369
+ };
1390
1370
 
1391
- export interface ContentCreationOptions {
1371
+ export type ContentCreationOptions = {
1392
1372
  rules: ContentCreationRule[];
1393
- }
1394
- export interface SnapshotProvider<T> {
1373
+ };
1374
+ export type SnapshotProvider<T> = {
1395
1375
  getSnapshot: () => Promise<T>;
1396
1376
  applySnapshot: (snapshot: T) => Promise<void>;
1397
- }
1377
+ };
1398
1378
 
1399
- export interface QueryPermissionResult {
1379
+ export type QueryPermissionResult = {
1400
1380
  permission: string;
1401
1381
  state: PermissionState;
1402
1382
  granted: boolean;
1403
1383
  rawValue?: unknown;
1404
- }
1384
+ };
1405
1385
 
1406
- export interface SessionContextGroup {
1386
+ export type SessionContextGroup = {
1407
1387
  id: string;
1408
1388
  setContext: (context: OpenFin.Context) => Promise<void>;
1409
1389
  getCurrentContext: (type?: string) => Promise<OpenFin.Context>;
@@ -1411,83 +1391,83 @@ declare namespace OpenFin {
1411
1391
  handler: OpenFin.ContextHandler,
1412
1392
  contextType?: string
1413
1393
  ) => Promise<{ unsubscribe: () => void }>;
1414
- }
1394
+ };
1415
1395
 
1416
1396
  export type MessagingProtocols = import('./src/api/interappbus/channel/protocols/index').MessagingProtocols;
1417
1397
 
1418
- export interface ChannelCreateOptions {
1398
+ export type ChannelCreateOptions = {
1419
1399
  protocols?: MessagingProtocols[];
1420
- }
1400
+ };
1421
1401
 
1422
- export interface ChannelConnectOptions extends ChannelCreateOptions {
1402
+ export type ChannelConnectOptions = ChannelCreateOptions & {
1423
1403
  wait?: boolean;
1424
1404
  payload?: any;
1425
- }
1405
+ };
1426
1406
 
1427
- export interface ContextForIntent<MetadataType = any> extends Context {
1407
+ export type ContextForIntent<MetadataType = any> = Context & {
1428
1408
  metadata?: MetadataType;
1429
- }
1409
+ };
1430
1410
 
1431
- export interface InfoForIntentOptions {
1411
+ export type InfoForIntentOptions = {
1432
1412
  name: string;
1433
1413
  context?: OpenFin.Context;
1434
- }
1414
+ };
1435
1415
 
1436
- export interface ProviderIdentity extends Identity {
1416
+ export type ProviderIdentity = Identity & {
1437
1417
  channelId: string;
1438
1418
  channelName: string;
1439
- }
1419
+ };
1440
1420
 
1441
- export interface RegisterUsageData {
1421
+ export type RegisterUsageData = {
1442
1422
  data: unknown;
1443
1423
  type: string;
1444
- }
1424
+ };
1445
1425
 
1446
- export interface ProxyInfo {
1426
+ export type ProxyInfo = {
1447
1427
  config: ProxyConfig;
1448
1428
  system: ProxySystemInfo;
1449
- }
1429
+ };
1450
1430
 
1451
- export interface ProxyConfig {
1431
+ export type ProxyConfig = {
1452
1432
  proxyAddress: string;
1453
1433
  proxyPort: number;
1454
1434
  type: string;
1455
- }
1435
+ };
1456
1436
 
1457
- export interface ProxySystemInfo {
1437
+ export type ProxySystemInfo = {
1458
1438
  autoConfigUrl: string;
1459
1439
  bypass: string;
1460
1440
  enabled: boolean;
1461
1441
  proxy: string;
1462
- }
1442
+ };
1463
1443
 
1464
- export interface BaseEvent<Topic, Type> {
1444
+ export type BaseEvent<Topic, Type> = {
1465
1445
  topic: Topic;
1466
1446
  type: Type;
1467
- }
1447
+ };
1468
1448
 
1469
- export interface ApplicationEvent<Topic, Type> extends BaseEvent<Topic, Type> {
1449
+ export type ApplicationEvent<Topic, Type> = BaseEvent<Topic, Type> & {
1470
1450
  uuid: string;
1471
- }
1451
+ };
1472
1452
 
1473
- export interface WindowEvent<Topic, Type> extends ApplicationEvent<Topic, Type> {
1453
+ export type WindowEvent<Topic, Type> = ApplicationEvent<Topic, Type> & {
1474
1454
  name: string;
1475
- }
1455
+ };
1476
1456
 
1477
- export interface BaseEventMap {
1457
+ export type BaseEventMap = {
1478
1458
  [name: string]: any;
1479
1459
  newListener: string;
1480
1460
  listenerRemoved: string;
1481
- }
1461
+ };
1482
1462
 
1483
- export interface WindowResourceLoadFailedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1463
+ export type WindowResourceLoadFailedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1484
1464
  errorCode: number;
1485
1465
  errorDescription: string;
1486
1466
  validatedURL: string;
1487
1467
  isMainFrame: boolean;
1488
- }
1468
+ };
1489
1469
 
1490
- export interface WindowResourceResponseReceivedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1470
+ export type WindowResourceResponseReceivedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1491
1471
  status: boolean;
1492
1472
  newUrl: string;
1493
1473
  originalUrl: string;
@@ -1496,28 +1476,28 @@ declare namespace OpenFin {
1496
1476
  referrer: string;
1497
1477
  headers: any;
1498
1478
  resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other';
1499
- }
1479
+ };
1500
1480
 
1501
- export interface PageTitleUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1481
+ export type PageTitleUpdatedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1502
1482
  title: string;
1503
- }
1483
+ };
1504
1484
 
1505
- export interface CertificateErrorEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1485
+ export type CertificateErrorEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1506
1486
  error: string;
1507
1487
  url: string;
1508
1488
  certificate: OpenFin.Certificate;
1509
- }
1489
+ };
1510
1490
 
1511
- export interface CertificateSelectionShownEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1491
+ export type CertificateSelectionShownEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1512
1492
  url: string;
1513
1493
  certificates: OpenFin.Certificate[];
1514
- }
1494
+ };
1515
1495
 
1516
- export interface FaviconUpdatedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1496
+ export type FaviconUpdatedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1517
1497
  favicons: string[];
1518
- }
1498
+ };
1519
1499
 
1520
- export interface CrashedEvent {
1500
+ export type CrashedEvent = {
1521
1501
  reason:
1522
1502
  | 'normal-termination'
1523
1503
  | 'abnormal-termination'
@@ -1532,22 +1512,22 @@ declare namespace OpenFin {
1532
1512
  reason: string;
1533
1513
  exitCode: number;
1534
1514
  };
1535
- }
1515
+ };
1536
1516
 
1537
- export interface WindowNavigationRejectedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1517
+ export type WindowNavigationRejectedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1538
1518
  sourceName?: string; // DEPRECATED
1539
1519
  url: string;
1540
- }
1520
+ };
1541
1521
 
1542
- export interface FrameEvent<Type> extends WindowEvent<'frame', Type> {
1522
+ export type FrameEvent<Type> = WindowEvent<'frame', Type> & {
1543
1523
  entityType: 'iframe';
1544
1524
  frameName: string;
1545
- }
1525
+ };
1546
1526
 
1547
- export interface FrameEvents extends BaseEventMap {
1527
+ export type FrameEvents = BaseEventMap & {
1548
1528
  connected: FrameEvent<'connected'>;
1549
1529
  disconnected: FrameEvent<'disconnected'>;
1550
- }
1530
+ };
1551
1531
 
1552
1532
  // This file exports base event types to level specific events
1553
1533
  // Those files map event names to event shapes and use a mapped type to specify topic and type
@@ -1559,7 +1539,7 @@ declare namespace OpenFin {
1559
1539
  ? ApplicationEvent<Topic, Type>
1560
1540
  : BaseEvent<Topic, Type>;
1561
1541
 
1562
- export interface WebContentsEventMapping<Topic = string, Type = string> extends BaseEventMap {
1542
+ export type WebContentsEventMapping<Topic = string, Type = string> = BaseEventMap & {
1563
1543
  'blurred': WindowEvent<Topic, Type>;
1564
1544
  'certificate-error': CertificateErrorEvent<Topic, Type>;
1565
1545
  'certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type>;
@@ -1572,27 +1552,27 @@ declare namespace OpenFin {
1572
1552
  'page-title-updated': PageTitleUpdatedEvent<Topic, Type>;
1573
1553
  'resource-load-failed': WindowResourceLoadFailedEvent<Topic, Type>;
1574
1554
  'resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type>;
1575
- }
1555
+ };
1576
1556
 
1577
- export interface RunRequestedEvent<Topic, Type> extends ApplicationEvent<Topic, Type> {
1557
+ export type RunRequestedEvent<Topic, Type> = ApplicationEvent<Topic, Type> & {
1578
1558
  userAppConfigArgs: any;
1579
1559
  manifest: OpenFin.ManifestInfo;
1580
- }
1560
+ };
1581
1561
 
1582
- export interface TrayIconClicked<Topic, Type> extends ApplicationEvent<Topic, Type> {
1562
+ export type TrayIconClicked<Topic, Type> = ApplicationEvent<Topic, Type> & {
1583
1563
  button: 0 | 1 | 2;
1584
1564
  bounds: OpenFin.Rectangle;
1585
1565
  x: number;
1586
1566
  y: number;
1587
1567
  monitorInfo: any;
1588
- }
1568
+ };
1589
1569
 
1590
- export interface WindowAlertRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1570
+ export type WindowAlertRequestedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1591
1571
  message: string;
1592
1572
  url: string;
1593
- }
1573
+ };
1594
1574
 
1595
- export interface WindowAuthRequestedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1575
+ export type WindowAuthRequestedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1596
1576
  authInfo: {
1597
1577
  host: string;
1598
1578
  isProxy: boolean;
@@ -1600,99 +1580,99 @@ declare namespace OpenFin {
1600
1580
  realm: string;
1601
1581
  scheme: string;
1602
1582
  };
1603
- }
1583
+ };
1604
1584
 
1605
- export interface WindowEndLoadEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1585
+ export type WindowEndLoadEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1606
1586
  documentName: string;
1607
1587
  isMain: boolean;
1608
- }
1588
+ };
1609
1589
 
1610
- export interface WindowReloadedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1590
+ export type WindowReloadedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1611
1591
  url: string;
1612
- }
1592
+ };
1613
1593
 
1614
- export interface WindowOptionsChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1594
+ export type WindowOptionsChangedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1615
1595
  options: OpenFin.WindowOptions;
1616
1596
  diff: OpenFin.WindowOptionDiff;
1617
- }
1597
+ };
1618
1598
 
1619
- export interface WindowExternalProcessExitedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1599
+ export type WindowExternalProcessExitedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1620
1600
  processUuid: string;
1621
1601
  exitCode: number;
1622
- }
1602
+ };
1623
1603
 
1624
- export interface WindowExternalProcessStartedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1604
+ export type WindowExternalProcessStartedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1625
1605
  processUuid: string;
1626
- }
1606
+ };
1627
1607
 
1628
- export interface WindowHiddenEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1608
+ export type WindowHiddenEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1629
1609
  reason: 'closing' | 'hide' | 'hide-on-close';
1630
- }
1610
+ };
1631
1611
 
1632
- export interface PreloadScriptInfoRunning {
1612
+ export type PreloadScriptInfoRunning = {
1633
1613
  state:
1634
1614
  | 'load-started' // started loading preload script
1635
1615
  | 'load-failed' // preload script failed to load
1636
1616
  | 'load-succeeded' // preload script is loaded and ready to be eval'ed
1637
1617
  | 'failed' // preload script failed to eval
1638
1618
  | 'succeeded'; // preload script eval'ed successfully
1639
- }
1619
+ };
1640
1620
 
1641
- export interface PreloadScriptInfo {
1621
+ export type PreloadScriptInfo = {
1642
1622
  state:
1643
1623
  | 'load-failed' // preload script failed to load
1644
1624
  | 'failed' // preload script failed to eval
1645
1625
  | 'succeeded'; // preload script eval'ed successfully
1646
- }
1647
- export interface WindowPreloadScriptsStateChangeEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1626
+ };
1627
+ export type WindowPreloadScriptsStateChangeEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1648
1628
  preloadScripts: (PreloadScriptInfoRunning & any)[];
1649
- }
1650
- export interface WindowPreloadScriptsStateChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1629
+ };
1630
+ export type WindowPreloadScriptsStateChangedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1651
1631
  preloadScripts: (PreloadScriptInfoRunning & any)[];
1652
- }
1632
+ };
1653
1633
 
1654
- export interface WindowBeginBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1634
+ export type WindowBeginBoundsChangingEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1655
1635
  height: number;
1656
1636
  left: number;
1657
1637
  top: number;
1658
1638
  width: number;
1659
1639
  windowState: 'minimized' | 'normal' | 'maximized';
1660
- }
1640
+ };
1661
1641
 
1662
- export interface WindowEndBoundsChangingEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1642
+ export type WindowEndBoundsChangingEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1663
1643
  height: number;
1664
1644
  left: number;
1665
1645
  top: number;
1666
1646
  width: number;
1667
1647
  windowState: 'minimized' | 'normal' | 'maximized';
1668
- }
1648
+ };
1669
1649
 
1670
- export interface WindowBoundsChange<Topic, Type> extends WindowEvent<Topic, Type> {
1650
+ export type WindowBoundsChange<Topic, Type> = WindowEvent<Topic, Type> & {
1671
1651
  changeType: 0 | 1 | 2;
1672
1652
  deferred: boolean;
1673
1653
  height: number;
1674
1654
  left: number;
1675
1655
  top: number;
1676
1656
  width: number;
1677
- }
1657
+ };
1678
1658
 
1679
- export interface WillMoveOrResize<Topic, Type> extends WindowEvent<Topic, Type> {
1659
+ export type WillMoveOrResize<Topic, Type> = WindowEvent<Topic, Type> & {
1680
1660
  height: number;
1681
1661
  left: number;
1682
1662
  top: number;
1683
1663
  width: number;
1684
1664
  monitorScaleFactor: number;
1685
- }
1665
+ };
1686
1666
 
1687
1667
  export type WindowPerformanceReport<Topic, Type> = Performance & WindowEvent<Topic, Type>;
1688
1668
 
1689
- export interface ViewDetached<Topic, Type> extends WindowEvent<Topic, Type> {
1669
+ export type ViewDetached<Topic, Type> = WindowEvent<Topic, Type> & {
1690
1670
  previousTarget: OpenFin.Identity;
1691
1671
  target: OpenFin.Identity;
1692
1672
  viewIdentity: OpenFin.Identity;
1693
- }
1673
+ };
1694
1674
 
1695
- export interface WindowEventMapping<Topic = string, Type = string> extends WebContentsEventMapping {
1675
+ export type WindowEventMapping<Topic = string, Type = string> = WebContentsEventMapping & {
1696
1676
  'auth-requested': WindowAuthRequestedEvent<Topic, Type>;
1697
1677
  'begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
1698
1678
  'bounds-changed': WindowBoundsChange<Topic, Type>;
@@ -1727,9 +1707,9 @@ declare namespace OpenFin {
1727
1707
  'view-detached': ViewDetached<Topic, Type>;
1728
1708
  'will-move': WillMoveOrResize<Topic, Type>;
1729
1709
  'will-resize': WillMoveOrResize<Topic, Type>;
1730
- }
1710
+ };
1731
1711
 
1732
- export interface PropagatedWindowEventMapping<Topic = string, Type = string> extends BaseEventMap {
1712
+ export type PropagatedWindowEventMapping<Topic = string, Type = string> = BaseEventMap & {
1733
1713
  'window-begin-user-bounds-changing': WindowBeginBoundsChangingEvent<Topic, Type>;
1734
1714
  'window-blurred': WindowEvent<Topic, Type>;
1735
1715
  'window-bounds-changed': WindowBoundsChange<Topic, Type>;
@@ -1766,9 +1746,9 @@ declare namespace OpenFin {
1766
1746
  'window-user-movement-enabled': WindowEvent<Topic, Type>;
1767
1747
  'window-will-move': WillMoveOrResize<Topic, Type>;
1768
1748
  'window-will-resize': WillMoveOrResize<Topic, Type>;
1769
- }
1749
+ };
1770
1750
 
1771
- export interface ViewEventMapping<Topic = string, Type = string> extends WebContentsEventMapping {
1751
+ export type ViewEventMapping<Topic = string, Type = string> = WebContentsEventMapping & {
1772
1752
  'attached': WindowEvent<Topic, Type>;
1773
1753
  'created': WindowEvent<Topic, Type>;
1774
1754
  'destroyed': WindowEvent<Topic, Type>;
@@ -1776,13 +1756,13 @@ declare namespace OpenFin {
1776
1756
  'hotkey': InputEvent & WindowEvent<Topic, Type>;
1777
1757
  'shown': WindowEvent<Topic, Type>;
1778
1758
  'target-changed': TargetChangedEvent<Topic, Type>;
1779
- }
1759
+ };
1780
1760
 
1781
- interface PropagatedViewIdentity {
1761
+ type PropagatedViewIdentity = {
1782
1762
  viewIdentity: OpenFin.Identity;
1783
- }
1763
+ };
1784
1764
 
1785
- export interface PropagatedViewEventMapping<Topic = string, Type = string> extends BaseEventMap {
1765
+ export type PropagatedViewEventMapping<Topic = string, Type = string> = BaseEventMap & {
1786
1766
  'view-blurred': WindowEvent<Topic, Type> & PropagatedViewIdentity;
1787
1767
  'view-certificate-selection-shown': CertificateSelectionShownEvent<Topic, Type> & PropagatedViewIdentity;
1788
1768
  'view-crashed': CrashedEvent & WindowEvent<Topic, Type> & PropagatedViewIdentity;
@@ -1799,7 +1779,7 @@ declare namespace OpenFin {
1799
1779
  'view-resource-response-received': WindowResourceResponseReceivedEvent<Topic, Type> & PropagatedViewIdentity;
1800
1780
  'view-shown': WindowEvent<Topic, Type> & PropagatedViewIdentity;
1801
1781
  'view-target-changed': TargetChangedEvent<Topic, Type> & PropagatedViewIdentity;
1802
- }
1782
+ };
1803
1783
 
1804
1784
  export type ViewEvents = {
1805
1785
  [Type in keyof ViewEventMapping]: ViewEventMapping<'view', Type>[Type];
@@ -1809,7 +1789,7 @@ declare namespace OpenFin {
1809
1789
  [Type in keyof PropagatedViewEventMapping]: PropagatedViewEventMapping<Topic, Type>[Type];
1810
1790
  };
1811
1791
 
1812
- export interface InputEvent {
1792
+ export type InputEvent = {
1813
1793
  inputType: 'keyUp' | 'keyDown';
1814
1794
  ctrlKey: boolean;
1815
1795
  shiftKey: boolean;
@@ -1819,12 +1799,12 @@ declare namespace OpenFin {
1819
1799
  code: string;
1820
1800
  repeat: boolean;
1821
1801
  command?: string;
1822
- }
1802
+ };
1823
1803
 
1824
- export interface TargetChangedEvent<Topic, Type> extends WindowEvent<Topic, Type> {
1804
+ export type TargetChangedEvent<Topic, Type> = WindowEvent<Topic, Type> & {
1825
1805
  previousTarget: OpenFin.Identity;
1826
1806
  target: OpenFin.Identity;
1827
- }
1807
+ };
1828
1808
 
1829
1809
  // This is the type we should be using. It takes the more generic mapping and applies the proper Topic and Type to each event
1830
1810
  export type WindowEvents = PropagatedViewEventMapping<'window'> &
@@ -1836,7 +1816,7 @@ declare namespace OpenFin {
1836
1816
  [Type in keyof PropagatedWindowEventMapping]: PropagatedWindowEventMapping<Topic, Type>[Type];
1837
1817
  };
1838
1818
 
1839
- export interface ApplicationEventMapping<Topic = string, Type = string> extends BaseEventMap {
1819
+ export type ApplicationEventMapping<Topic = string, Type = string> = BaseEventMap & {
1840
1820
  'closed': ApplicationEvent<Topic, Type>;
1841
1821
  'connected': ApplicationEvent<Topic, Type>;
1842
1822
  'crashed': CrashedEvent & ApplicationEvent<Topic, Type>;
@@ -1856,9 +1836,9 @@ declare namespace OpenFin {
1856
1836
  'window-responding': WindowEvent<Topic, Type>;
1857
1837
  'window-show-requested': WindowEvent<Topic, Type>;
1858
1838
  'window-start-load': WindowEvent<Topic, Type>;
1859
- }
1839
+ };
1860
1840
 
1861
- export interface PropagatedApplicationEventMapping<Topic = string, Type = string> {
1841
+ export type PropagatedApplicationEventMapping<Topic = string, Type = string> = {
1862
1842
  'application-closed': ApplicationEvent<Topic, Type>;
1863
1843
  'application-connected': ApplicationEvent<Topic, Type>;
1864
1844
  'application-crashed': CrashedEvent & ApplicationEvent<Topic, Type>;
@@ -1877,7 +1857,7 @@ declare namespace OpenFin {
1877
1857
  'window-performance-report': WindowPerformanceReport<Topic, Type>;
1878
1858
  'window-responding': WindowEvent<Topic, Type>;
1879
1859
  'window-start-load': WindowEvent<Topic, Type>;
1880
- }
1860
+ };
1881
1861
 
1882
1862
  export type ApplicationEvents = PropagatedWindowEvents<'application'> &
1883
1863
  PropagatedViewEvents<'application'> &
@@ -1888,16 +1868,15 @@ declare namespace OpenFin {
1888
1868
  [Type in keyof PropagatedApplicationEventMapping]: PropagatedApplicationEventMapping<Topic, Type>[Type];
1889
1869
  };
1890
1870
 
1891
- export interface PlatformEventMapping<Topic = string, Type = string> extends ApplicationEventMapping {
1871
+ export type PlatformEventMapping<Topic = string, Type = string> = ApplicationEventMapping & {
1892
1872
  'platform-api-ready': ApplicationEvent<Topic, Type>;
1893
1873
  'platform-snapshot-applied': ApplicationEvent<Topic, Type>;
1894
- }
1874
+ };
1895
1875
 
1896
- export interface PropagatedPlatformEventMapping<Topic = string, Type = string>
1897
- extends PropagatedApplicationEventMapping {
1876
+ export type PropagatedPlatformEventMapping<Topic = string, Type = string> = PropagatedApplicationEventMapping & {
1898
1877
  'platform-api-ready': ApplicationEvent<Topic, Type>;
1899
1878
  'platform-snapshot-applied': ApplicationEvent<Topic, Type>;
1900
- }
1879
+ };
1901
1880
 
1902
1881
  export type PlatformEvents = PropagatedWindowEvents<'application'> &
1903
1882
  PropagatedViewEvents<'application'> &
@@ -1908,24 +1887,24 @@ declare namespace OpenFin {
1908
1887
  [Type in keyof PropagatedPlatformEventMapping]: PropagatedPlatformEventMapping<Topic, Type>[Type];
1909
1888
  };
1910
1889
 
1911
- export interface IdleEvent<Topic, Type> extends BaseEvent<Topic, Type> {
1890
+ export type IdleEvent<Topic, Type> = BaseEvent<Topic, Type> & {
1912
1891
  elapsedTime: number;
1913
1892
  isIdle: boolean;
1914
- }
1893
+ };
1915
1894
 
1916
1895
  export type MonitorEvent<Topic, Type> = OpenFin.MonitorInfo & BaseEvent<Topic, Type>;
1917
1896
 
1918
- export interface SessionChangedEvent<Topic, Type> extends BaseEvent<Topic, Type> {
1897
+ export type SessionChangedEvent<Topic, Type> = BaseEvent<Topic, Type> & {
1919
1898
  reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
1920
- }
1899
+ };
1921
1900
 
1922
- export interface SystemEventMapping<Topic = string, Type = string> extends BaseEventMap {
1901
+ export type SystemEventMapping<Topic = string, Type = string> = BaseEventMap & {
1923
1902
  'application-created': ApplicationEvent<Topic, Type>;
1924
1903
  'desktop-icon-clicked': ApplicationEvent<Topic, Type>;
1925
1904
  'idle-state-changed': IdleEvent<Topic, Type>;
1926
1905
  'monitor-info-changed': MonitorEvent<Topic, Type>;
1927
1906
  'session-changed': SessionChangedEvent<Topic, Type>;
1928
- }
1907
+ };
1929
1908
  export type SystemEvents = PropagatedWindowEvents<'system'> &
1930
1909
  PropagatedApplicationEvents<'system'> &
1931
1910
  PropagatedViewEvents<'system'> &
@@ -1933,20 +1912,20 @@ declare namespace OpenFin {
1933
1912
  [Type in keyof SystemEventMapping]: SystemEventMapping<'system', Type>[Type];
1934
1913
  };
1935
1914
 
1936
- export interface GlobalHotkeyEvent<Type> extends RuntimeEvent<'global-hotkey', Type> {
1915
+ export type GlobalHotkeyEvent<Type> = RuntimeEvent<'global-hotkey', Type> & {
1937
1916
  identity: Identity;
1938
1917
  hotkey: string;
1939
- }
1918
+ };
1940
1919
 
1941
- export interface GlobalHotkeyEvents extends BaseEventMap {
1920
+ export type GlobalHotkeyEvents = BaseEventMap & {
1942
1921
  registered: GlobalHotkeyEvent<'registered'>;
1943
1922
  unregistered: GlobalHotkeyEvent<'unregistered'>;
1944
- }
1923
+ };
1945
1924
 
1946
- export interface ExternalApplicationEvents extends BaseEventMap {
1925
+ export type ExternalApplicationEvents = BaseEventMap & {
1947
1926
  connected: RuntimeEvent<'externalapplication', 'connected'>;
1948
1927
  disconnected: RuntimeEvent<'externalapplication', 'disconnected'>;
1949
- }
1928
+ };
1950
1929
 
1951
1930
  export type ChannelAction = (payload: unknown, id: ProviderIdentity | OpenFin.ClientIdentity) => unknown;
1952
1931
 
@@ -1962,37 +1941,37 @@ declare namespace OpenFin {
1962
1941
  id: ProviderIdentity | OpenFin.ClientIdentity
1963
1942
  ) => unknown;
1964
1943
 
1965
- export interface SystemApplicationInfo {
1944
+ export type SystemApplicationInfo = {
1966
1945
  isPlatform: boolean;
1967
1946
  isRunning: boolean;
1968
1947
  uuid: string;
1969
1948
  parentUuid?: string;
1970
- }
1949
+ };
1971
1950
 
1972
- export interface InstalledApps {
1951
+ export type InstalledApps = {
1973
1952
  [key: string]: InstallationInfo;
1974
- }
1953
+ };
1975
1954
 
1976
- export interface InstallationInfo {
1955
+ export type InstallationInfo = {
1977
1956
  cachedManifest: any;
1978
- }
1957
+ };
1979
1958
 
1980
- export interface GetLogRequestType {
1959
+ export type GetLogRequestType = {
1981
1960
  name: string;
1982
1961
  endFile?: string;
1983
1962
  sizeLimit?: number;
1984
- }
1963
+ };
1985
1964
 
1986
- export interface LogInfo {
1965
+ export type LogInfo = {
1987
1966
  name: string;
1988
1967
  size: number;
1989
1968
  date: string;
1990
- }
1969
+ };
1991
1970
 
1992
1971
  // 2.4 supports string enum types, currently we use 2.2
1993
1972
  export type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
1994
1973
 
1995
- export interface ProcessInfo {
1974
+ export type ProcessInfo = {
1996
1975
  cpuUsage?: number;
1997
1976
  name?: string;
1998
1977
  nonPagedPoolUsage?: number;
@@ -2006,30 +1985,38 @@ declare namespace OpenFin {
2006
1985
  processId?: number;
2007
1986
  uuid?: string;
2008
1987
  workingSetSize?: number;
2009
- }
1988
+ };
2010
1989
 
2011
1990
  export type PermissionState = 'granted' | 'denied' | 'unavailable';
2012
1991
 
2013
- export interface RegistryInfo {
1992
+ export type RegistryInfo = {
2014
1993
  data: any;
2015
1994
  rootKey: string;
2016
1995
  subkey: string;
2017
1996
  type: string;
2018
1997
  value: string;
2019
- }
1998
+ };
2020
1999
 
2021
- export interface Entity {
2000
+ export type Entity = {
2022
2001
  type: string;
2023
2002
  uuid: string;
2024
- }
2003
+ };
2025
2004
 
2026
- export interface WindowInfo {
2005
+ export type WindowInfo = {
2006
+ canNavigateBack: boolean;
2007
+ canNavigateForward: boolean;
2008
+ preloadScripts: Array<any>;
2009
+ title: string;
2010
+ url: string;
2011
+ };
2012
+
2013
+ export type SystemWindowInfo = {
2027
2014
  childWindows: Array<WindowDetail>;
2028
2015
  mainWindow: WindowDetail;
2029
2016
  uuid: string;
2030
- }
2017
+ };
2031
2018
 
2032
- export interface WindowDetail {
2019
+ export type WindowDetail = {
2033
2020
  bottom: number;
2034
2021
  height: number;
2035
2022
  isShowing: boolean;
@@ -2039,9 +2026,9 @@ declare namespace OpenFin {
2039
2026
  state: string;
2040
2027
  top: number;
2041
2028
  width: number;
2042
- }
2029
+ };
2043
2030
 
2044
- export interface WebOptions {
2031
+ export type WebOptions = {
2045
2032
  preloadScripts?: OpenFin.PreloadScript[];
2046
2033
  uuid: string;
2047
2034
  name: string;
@@ -2052,7 +2039,7 @@ declare namespace OpenFin {
2052
2039
  processAffinity?: string;
2053
2040
  backgroundThrottling?: boolean;
2054
2041
  interop?: OpenFin.InteropConfig;
2055
- }
2042
+ };
2056
2043
 
2057
2044
  // Error types
2058
2045
  export type ERROR_BOX_TYPES =
@@ -2062,47 +2049,47 @@ declare namespace OpenFin {
2062
2049
 
2063
2050
  export type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
2064
2051
 
2065
- export interface InitLayoutOptions {
2052
+ export type InitLayoutOptions = {
2066
2053
  containerId?: string;
2067
- }
2054
+ };
2068
2055
 
2069
- export interface PresetLayoutOptions {
2056
+ export type PresetLayoutOptions = {
2070
2057
  presetType: LayoutPresetType;
2071
- }
2058
+ };
2072
2059
 
2073
- export interface DragPayload {
2060
+ export type DragPayload = {
2074
2061
  'view-config': OpenFin.ViewCreationOptions;
2075
2062
  'view-identity': [string, string, string]; // [componentState, uuid, name]
2076
- }
2063
+ };
2077
2064
 
2078
- export interface Message<T> {
2065
+ export type Message<T> = {
2079
2066
  action: string;
2080
2067
  payload: T;
2081
2068
  correlationId?: number;
2082
- }
2069
+ };
2083
2070
 
2084
- export interface EventMessage extends Message<RuntimeEvent> {
2071
+ export type EventMessage = Message<RuntimeEvent> & {
2085
2072
  action: 'process-desktop-event';
2086
2073
  payload: RuntimeEvent;
2087
- }
2074
+ };
2088
2075
 
2089
- export interface Payload {
2076
+ export type Payload = {
2090
2077
  success: boolean;
2091
2078
  data: any;
2092
- }
2079
+ };
2093
2080
 
2094
- export interface AuthorizationPayload {
2081
+ export type AuthorizationPayload = {
2095
2082
  token: string;
2096
2083
  file: string;
2097
- }
2084
+ };
2098
2085
 
2099
2086
  /*
2100
2087
  To Add an api call:
2101
2088
  1. The action (string passed to wire.sendAction and key in the actionMap on the core side) should be the key in the protocolmap
2102
- 2. The request for that key is the interface of the second object passed to wire.sendAction, it will be picked up as message.payload in the handler
2089
+ 2. The request for that key is the type of the second object passed to wire.sendAction, it will be picked up as message.payload in the handler
2103
2090
  3. The response for that key is what the core api handler either returns or passes to "ack". It will be the 'data' property of the return value of wire.sendAction
2104
2091
  */
2105
- export interface ProtocolMap extends ProtocolMapBase {
2092
+ export type ProtocolMap = ProtocolMapBase & {
2106
2093
  'request-external-authorization': {
2107
2094
  request: any;
2108
2095
  response: void;
@@ -2252,54 +2239,54 @@ declare namespace OpenFin {
2252
2239
  request: { apiName: string; identity: OpenFin.Identity };
2253
2240
  response: OpenFin.QueryPermissionResult;
2254
2241
  };
2255
- }
2242
+ };
2256
2243
 
2257
- interface ProtocolMapBase {
2244
+ type ProtocolMapBase = {
2258
2245
  [action: string]: {
2259
2246
  request: any;
2260
2247
  response: any;
2261
2248
  specialResponse?: any; // Used for anything not on payload.data (only request-external-authorization for now)
2262
2249
  };
2263
- }
2250
+ };
2264
2251
 
2265
2252
  export type MessageHandler = (data: any) => boolean;
2266
2253
 
2267
- export interface ViewState extends OpenFin.ViewCreationOptions {
2254
+ export type ViewState = OpenFin.ViewCreationOptions & {
2268
2255
  url: string;
2269
- }
2256
+ };
2270
2257
 
2271
- export interface OsConfig {
2258
+ export type OsConfig = {
2272
2259
  manifestLocation: string;
2273
2260
  namedPipeName: string;
2274
2261
  urlPath: string;
2275
2262
  executablePath: string;
2276
- }
2263
+ };
2277
2264
 
2278
- export interface Wire extends EventEmitter {
2265
+ export type Wire = EventEmitter & {
2279
2266
  connect(address: string): Promise<any>;
2280
2267
  connectSync(): any;
2281
2268
  send(data: any): Promise<any>;
2282
2269
  shutdown(): Promise<void>;
2283
- }
2284
- export interface WireConstructor {
2270
+ };
2271
+ export type WireConstructor = {
2285
2272
  new (onmessage: (data: any) => void): Wire;
2286
- }
2273
+ };
2287
2274
 
2288
- export interface RuntimeConfig {
2275
+ export type RuntimeConfig = {
2289
2276
  version: string;
2290
2277
  fallbackVersion?: string;
2291
2278
  securityRealm?: string;
2292
2279
  verboseLogging?: boolean;
2293
2280
  arguments?: string;
2294
2281
  rvmDir?: string;
2295
- }
2282
+ };
2296
2283
 
2297
- export interface ServiceConfig {
2284
+ export type ServiceConfig = {
2298
2285
  name: string;
2299
2286
  manifestUrl: string;
2300
- }
2287
+ };
2301
2288
 
2302
- export interface BaseConfig {
2289
+ export type BaseConfig = {
2303
2290
  uuid?: string;
2304
2291
  address?: string;
2305
2292
  name?: string;
@@ -2326,23 +2313,23 @@ declare namespace OpenFin {
2326
2313
  ];
2327
2314
  customItems?: [any];
2328
2315
  timeout?: number; // in seconds
2329
- }
2316
+ };
2330
2317
 
2331
- export interface ConfigWithUuid extends BaseConfig {
2318
+ export type ConfigWithUuid = BaseConfig & {
2332
2319
  uuid: string;
2333
- }
2320
+ };
2334
2321
 
2335
- export interface ExistingConnectConfig extends ConfigWithUuid {
2322
+ export type ExistingConnectConfig = ConfigWithUuid & {
2336
2323
  address: string;
2337
- }
2324
+ };
2338
2325
 
2339
- export interface ConfigWithRuntime extends BaseConfig {
2326
+ export type ConfigWithRuntime = BaseConfig & {
2340
2327
  runtime: RuntimeConfig;
2341
- }
2328
+ };
2342
2329
 
2343
- export interface ExternalConfig extends BaseConfig {
2330
+ export type ExternalConfig = BaseConfig & {
2344
2331
  manifestUrl: string;
2345
- }
2332
+ };
2346
2333
 
2347
2334
  export type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
2348
2335
 
@@ -2358,14 +2345,14 @@ declare namespace OpenFin {
2358
2345
  | 'CLOSING' // The connection is in the process of closing.
2359
2346
  | 'CLOSED'; // The connection is closed.
2360
2347
 
2361
- export interface ChildContentOptions {
2348
+ export type ChildContentOptions = {
2362
2349
  options: any;
2363
2350
  entityType: EntityType;
2364
- }
2351
+ };
2365
2352
 
2366
- export interface ErrorPlainObject {
2353
+ export type ErrorPlainObject = {
2367
2354
  stack: string;
2368
2355
  message: string;
2369
2356
  toString(): string;
2370
- }
2357
+ };
2371
2358
  }