@openfin/node-adapter 34.78.11 → 34.78.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/node-adapter-alpha.d.ts +725 -69
- package/out/node-adapter-beta.d.ts +725 -69
- package/out/node-adapter-public.d.ts +725 -69
- package/out/node-adapter.d.ts +728 -65
- package/out/node-adapter.js +73 -552
- package/package.json +4 -4
package/out/node-adapter.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { EventEmitter } from 'events';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
10
|
+
*
|
|
11
|
+
* @interface
|
|
10
12
|
*/
|
|
11
13
|
declare type Accelerator = {
|
|
12
14
|
/**
|
|
@@ -43,6 +45,9 @@ declare type Accelerator = {
|
|
|
43
45
|
zoom: boolean;
|
|
44
46
|
};
|
|
45
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @interface
|
|
50
|
+
*/
|
|
46
51
|
declare type AddViewToStackOptions = {
|
|
47
52
|
/**
|
|
48
53
|
* Optional index within the stack to insert the view. Defaults to 0
|
|
@@ -66,6 +71,8 @@ declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<Payl
|
|
|
66
71
|
|
|
67
72
|
/**
|
|
68
73
|
* Configurations for API injection.
|
|
74
|
+
*
|
|
75
|
+
* @interface
|
|
69
76
|
*/
|
|
70
77
|
declare type Api = {
|
|
71
78
|
/**
|
|
@@ -93,6 +100,9 @@ declare type ApiClient<T extends Record<any, any>> = {
|
|
|
93
100
|
[key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
|
|
94
101
|
};
|
|
95
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @interface
|
|
105
|
+
*/
|
|
96
106
|
declare type AppAssetInfo = {
|
|
97
107
|
/**
|
|
98
108
|
* The URL to a zip file containing the package files (executables, dlls, etc…)
|
|
@@ -121,6 +131,9 @@ declare type AppAssetInfo = {
|
|
|
121
131
|
mandatory?: boolean;
|
|
122
132
|
};
|
|
123
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @interface
|
|
136
|
+
*/
|
|
124
137
|
declare type AppAssetRequest = {
|
|
125
138
|
alias: string;
|
|
126
139
|
};
|
|
@@ -897,10 +910,16 @@ declare type ApplicationEventType = ApplicationEvent['type'];
|
|
|
897
910
|
|
|
898
911
|
declare type ApplicationIdentity = OpenFin.ApplicationIdentity;
|
|
899
912
|
|
|
913
|
+
/**
|
|
914
|
+
* @interface
|
|
915
|
+
*/
|
|
900
916
|
declare type ApplicationIdentity_2 = {
|
|
901
917
|
uuid: string;
|
|
902
918
|
};
|
|
903
919
|
|
|
920
|
+
/**
|
|
921
|
+
* @interface
|
|
922
|
+
*/
|
|
904
923
|
declare type ApplicationInfo = {
|
|
905
924
|
initialOptions: ApplicationCreationOptions;
|
|
906
925
|
launchMode: string;
|
|
@@ -1162,17 +1181,30 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1162
1181
|
* When set to `false` it will disable the same-origin policy for the app.
|
|
1163
1182
|
*/
|
|
1164
1183
|
webSecurity: boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* Configuration for keyboard commands.
|
|
1186
|
+
* For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
|
|
1187
|
+
*/
|
|
1165
1188
|
commands: ShortcutOverride[];
|
|
1166
1189
|
isPlatformController: boolean;
|
|
1167
1190
|
/**
|
|
1168
1191
|
* @defaultValue 1000
|
|
1169
1192
|
*
|
|
1170
|
-
* Platforms Only.
|
|
1193
|
+
* Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
|
|
1171
1194
|
* If you do not wish for views to be pooled on your platform, set this property to zero.
|
|
1172
1195
|
*/
|
|
1173
1196
|
maxViewPoolSize: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* Platforms Only. Default window options apply to all platform windows.
|
|
1199
|
+
*/
|
|
1174
1200
|
defaultWindowOptions: Partial<WindowOptions>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Platforms Only. Default view options apply to all platform views.
|
|
1203
|
+
*/
|
|
1175
1204
|
defaultViewOptions: Partial<ViewOptions>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Platforms Only. The snapshot to be applied.
|
|
1207
|
+
*/
|
|
1176
1208
|
snapshot: Snapshot;
|
|
1177
1209
|
/**
|
|
1178
1210
|
* @defaultValue false
|
|
@@ -1182,18 +1214,39 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
|
|
|
1182
1214
|
* If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
|
|
1183
1215
|
*/
|
|
1184
1216
|
preventQuitOnLastWindowClosed: boolean;
|
|
1217
|
+
/**
|
|
1218
|
+
* Configuration for interop broker.
|
|
1219
|
+
*/
|
|
1185
1220
|
interopBrokerConfiguration: InteropBrokerOptions;
|
|
1221
|
+
/**
|
|
1222
|
+
* @defaultValue true
|
|
1223
|
+
*
|
|
1224
|
+
* When set to `false` it will disable OpenFin Diagnostics for the app.
|
|
1225
|
+
*/
|
|
1186
1226
|
apiDiagnostics: boolean;
|
|
1227
|
+
/**
|
|
1228
|
+
* Define the file download rules.
|
|
1229
|
+
* See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
|
|
1230
|
+
*/
|
|
1187
1231
|
defaultDomainSettings: DefaultDomainSettings;
|
|
1188
1232
|
/**
|
|
1189
1233
|
* @defaultValue false
|
|
1234
|
+
*
|
|
1190
1235
|
* Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
|
|
1191
1236
|
* Only relevant in Windows.
|
|
1192
1237
|
*/
|
|
1193
1238
|
enableJumpList: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* @defaultValue false
|
|
1241
|
+
*
|
|
1242
|
+
* When set to `true`, any `beforeunload` handler set on the app will fire.
|
|
1243
|
+
*/
|
|
1194
1244
|
enableBeforeUnload: boolean;
|
|
1195
1245
|
};
|
|
1196
1246
|
|
|
1247
|
+
/**
|
|
1248
|
+
* @interface
|
|
1249
|
+
*/
|
|
1197
1250
|
declare type ApplicationPermissions = {
|
|
1198
1251
|
setFileDownloadLocation: boolean;
|
|
1199
1252
|
getFileDownloadLocation: boolean;
|
|
@@ -1201,6 +1254,9 @@ declare type ApplicationPermissions = {
|
|
|
1201
1254
|
|
|
1202
1255
|
declare type ApplicationState = OpenFin.ApplicationState;
|
|
1203
1256
|
|
|
1257
|
+
/**
|
|
1258
|
+
* @interface
|
|
1259
|
+
*/
|
|
1204
1260
|
declare type ApplicationState_2 = {
|
|
1205
1261
|
/**
|
|
1206
1262
|
* True when the application is a Platform controller
|
|
@@ -1220,6 +1276,9 @@ declare type ApplicationState_2 = {
|
|
|
1220
1276
|
parentUuid?: string;
|
|
1221
1277
|
};
|
|
1222
1278
|
|
|
1279
|
+
/**
|
|
1280
|
+
* @interface
|
|
1281
|
+
*/
|
|
1223
1282
|
declare type ApplicationType = {
|
|
1224
1283
|
type: 'application' | 'external-app';
|
|
1225
1284
|
uuid: string;
|
|
@@ -1232,6 +1291,9 @@ declare type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedE
|
|
|
1232
1291
|
|
|
1233
1292
|
declare type ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
|
|
1234
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @interface
|
|
1296
|
+
*/
|
|
1235
1297
|
declare type ApplicationWindowInfo_2 = {
|
|
1236
1298
|
childWindows: Array<WindowDetail>;
|
|
1237
1299
|
mainWindow: WindowDetail;
|
|
@@ -1241,6 +1303,9 @@ declare type ApplicationWindowInfo_2 = {
|
|
|
1241
1303
|
uuid: string;
|
|
1242
1304
|
};
|
|
1243
1305
|
|
|
1306
|
+
/**
|
|
1307
|
+
* @interface
|
|
1308
|
+
*/
|
|
1244
1309
|
declare type ApplySnapshotOptions = {
|
|
1245
1310
|
/**
|
|
1246
1311
|
* @defaultValue false
|
|
@@ -1268,10 +1333,12 @@ declare type ApplySnapshotOptions = {
|
|
|
1268
1333
|
|
|
1269
1334
|
/**
|
|
1270
1335
|
* Payload sent to Platform Provider when {@link Platform#applySnapshot Platform.applySnapshot} is called.
|
|
1336
|
+
*
|
|
1337
|
+
* @interface
|
|
1271
1338
|
*/
|
|
1272
1339
|
declare type ApplySnapshotPayload = {
|
|
1273
1340
|
/**
|
|
1274
|
-
*
|
|
1341
|
+
* The snapshot to be applied.
|
|
1275
1342
|
*/
|
|
1276
1343
|
snapshot: Snapshot;
|
|
1277
1344
|
/**
|
|
@@ -1280,6 +1347,9 @@ declare type ApplySnapshotPayload = {
|
|
|
1280
1347
|
options?: ApplySnapshotOptions;
|
|
1281
1348
|
};
|
|
1282
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* @interface
|
|
1352
|
+
*/
|
|
1283
1353
|
declare type AppProcessInfo = {
|
|
1284
1354
|
/**
|
|
1285
1355
|
* The uuid of the application.
|
|
@@ -1299,6 +1369,9 @@ declare type AppVersionCompleteEvent = {
|
|
|
1299
1369
|
type: 'app-version-complete';
|
|
1300
1370
|
} & AppVersionProgress;
|
|
1301
1371
|
|
|
1372
|
+
/**
|
|
1373
|
+
* @interface
|
|
1374
|
+
*/
|
|
1302
1375
|
declare type AppVersionError = {
|
|
1303
1376
|
error: string;
|
|
1304
1377
|
srcManifest: string;
|
|
@@ -1327,6 +1400,9 @@ declare type AppVersionEventType = AppVersionEvent['type'];
|
|
|
1327
1400
|
*/
|
|
1328
1401
|
declare type AppVersionEventWithId = EventWithId<AppVersionEvent>;
|
|
1329
1402
|
|
|
1403
|
+
/**
|
|
1404
|
+
* @interface
|
|
1405
|
+
*/
|
|
1330
1406
|
declare type AppVersionProgress = {
|
|
1331
1407
|
manifest: string | null;
|
|
1332
1408
|
srcManifest: string;
|
|
@@ -1340,6 +1416,9 @@ declare type AppVersionProgressEvent = {
|
|
|
1340
1416
|
type: 'app-version-progress';
|
|
1341
1417
|
} & AppVersionProgress;
|
|
1342
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* @interface
|
|
1421
|
+
*/
|
|
1343
1422
|
declare type AppVersionRuntimeInfo = {
|
|
1344
1423
|
version: string | null;
|
|
1345
1424
|
exists: boolean | null;
|
|
@@ -1459,6 +1538,9 @@ declare type AuthRequestedEvent = NamedEvent & {
|
|
|
1459
1538
|
*/
|
|
1460
1539
|
declare type AutoplayPolicyOptions = 'no-user-gesture-required' | 'user-gesture-required' | 'document-user-activation-required';
|
|
1461
1540
|
|
|
1541
|
+
/**
|
|
1542
|
+
* @interface
|
|
1543
|
+
*/
|
|
1462
1544
|
declare type AutoResizeOptions = {
|
|
1463
1545
|
/**
|
|
1464
1546
|
* If true, the view's width will grow and shrink together with the window. false
|
|
@@ -1492,6 +1574,13 @@ declare class Base {
|
|
|
1492
1574
|
*/
|
|
1493
1575
|
constructor(wire: Transport);
|
|
1494
1576
|
protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
|
|
1577
|
+
/**
|
|
1578
|
+
* Provides access to the OpenFin representation of the current code context (usually a document
|
|
1579
|
+
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
1580
|
+
*
|
|
1581
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
1582
|
+
* on the context in which the devtools panel was opened.
|
|
1583
|
+
*/
|
|
1495
1584
|
get me(): Identity;
|
|
1496
1585
|
protected isNodeEnvironment: () => boolean;
|
|
1497
1586
|
protected isOpenFinEnvironment: () => boolean;
|
|
@@ -1507,6 +1596,9 @@ declare type BaseChannelEvent = NamedEvent & {
|
|
|
1507
1596
|
channelId: string;
|
|
1508
1597
|
};
|
|
1509
1598
|
|
|
1599
|
+
/**
|
|
1600
|
+
* @interface
|
|
1601
|
+
*/
|
|
1510
1602
|
declare type BaseClipboardRequest = {
|
|
1511
1603
|
/**
|
|
1512
1604
|
* The type of clipboard to write to, can be 'clipboard' or 'selection'.
|
|
@@ -1597,8 +1689,9 @@ declare type BaseViewEvent = NamedEvent & {
|
|
|
1597
1689
|
|
|
1598
1690
|
/**
|
|
1599
1691
|
* User decision of whether a Window or specific View should close when trying to prevent an unload.
|
|
1692
|
+
* @interface
|
|
1600
1693
|
*/
|
|
1601
|
-
declare
|
|
1694
|
+
declare type BeforeUnloadUserDecision = {
|
|
1602
1695
|
/**
|
|
1603
1696
|
* Specifies if the Window should close.
|
|
1604
1697
|
*/
|
|
@@ -1607,7 +1700,7 @@ declare interface BeforeUnloadUserDecision {
|
|
|
1607
1700
|
* Array of views that will close.
|
|
1608
1701
|
*/
|
|
1609
1702
|
viewsToClose: Identity_5[];
|
|
1610
|
-
}
|
|
1703
|
+
};
|
|
1611
1704
|
|
|
1612
1705
|
/**
|
|
1613
1706
|
* Generated at the beginning of a user-driven change to a window's size or position.
|
|
@@ -1625,6 +1718,9 @@ declare type BlurredEvent = NamedEvent & {
|
|
|
1625
1718
|
type: 'blurred';
|
|
1626
1719
|
};
|
|
1627
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* @interface
|
|
1723
|
+
*/
|
|
1628
1724
|
declare type Bounds = {
|
|
1629
1725
|
top: number;
|
|
1630
1726
|
left: number;
|
|
@@ -1663,8 +1759,10 @@ declare type BoundsChangingEvent = BoundsChangeEvent & {
|
|
|
1663
1759
|
|
|
1664
1760
|
/**
|
|
1665
1761
|
* Configuration for page capture.
|
|
1762
|
+
*
|
|
1763
|
+
* @interface
|
|
1666
1764
|
*/
|
|
1667
|
-
declare
|
|
1765
|
+
declare type CapturePageOptions = {
|
|
1668
1766
|
/**
|
|
1669
1767
|
* The area of the window to be captured.
|
|
1670
1768
|
*/
|
|
@@ -1681,8 +1779,11 @@ declare interface CapturePageOptions {
|
|
|
1681
1779
|
* Quality of JPEG image. Between 0 - 100.
|
|
1682
1780
|
*/
|
|
1683
1781
|
quality?: number;
|
|
1684
|
-
}
|
|
1782
|
+
};
|
|
1685
1783
|
|
|
1784
|
+
/**
|
|
1785
|
+
* @interface
|
|
1786
|
+
*/
|
|
1686
1787
|
declare type Certificate = {
|
|
1687
1788
|
data: string;
|
|
1688
1789
|
fingerprint: string;
|
|
@@ -1707,6 +1808,9 @@ declare type CertificateErrorEvent = NamedEvent & {
|
|
|
1707
1808
|
certificate: OpenFin.Certificate;
|
|
1708
1809
|
};
|
|
1709
1810
|
|
|
1811
|
+
/**
|
|
1812
|
+
* @interface
|
|
1813
|
+
*/
|
|
1710
1814
|
declare type CertificatePrincipal = {
|
|
1711
1815
|
commonName: string;
|
|
1712
1816
|
country: string;
|
|
@@ -1726,6 +1830,9 @@ declare type CertificateSelectionShownEvent = NamedEvent & {
|
|
|
1726
1830
|
certificates: OpenFin.Certificate[];
|
|
1727
1831
|
};
|
|
1728
1832
|
|
|
1833
|
+
/**
|
|
1834
|
+
* @interface
|
|
1835
|
+
*/
|
|
1729
1836
|
declare type CertificationInfo = {
|
|
1730
1837
|
serial?: string;
|
|
1731
1838
|
subject?: string;
|
|
@@ -1734,6 +1841,9 @@ declare type CertificationInfo = {
|
|
|
1734
1841
|
trusted?: boolean;
|
|
1735
1842
|
};
|
|
1736
1843
|
|
|
1844
|
+
/**
|
|
1845
|
+
* @interface
|
|
1846
|
+
*/
|
|
1737
1847
|
declare type CertifiedAppInfo = {
|
|
1738
1848
|
isRunning: boolean;
|
|
1739
1849
|
isOptedIntoCertfiedApp?: boolean;
|
|
@@ -2338,6 +2448,8 @@ declare type ChannelConnectOptions = ChannelCreateOptions & {
|
|
|
2338
2448
|
|
|
2339
2449
|
/**
|
|
2340
2450
|
* Channel provider creation options.
|
|
2451
|
+
*
|
|
2452
|
+
* @interface
|
|
2341
2453
|
*/
|
|
2342
2454
|
declare type ChannelCreateOptions = {
|
|
2343
2455
|
/**
|
|
@@ -2647,6 +2759,9 @@ declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
|
2647
2759
|
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
2648
2760
|
}
|
|
2649
2761
|
|
|
2762
|
+
/**
|
|
2763
|
+
* @interface
|
|
2764
|
+
*/
|
|
2650
2765
|
declare type ClearCacheOption = {
|
|
2651
2766
|
/**
|
|
2652
2767
|
* html5 application cache
|
|
@@ -2666,9 +2781,17 @@ declare type ClearCacheOption = {
|
|
|
2666
2781
|
localStorage?: boolean;
|
|
2667
2782
|
};
|
|
2668
2783
|
|
|
2669
|
-
|
|
2784
|
+
/**
|
|
2785
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
2786
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
2787
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
2788
|
+
* these with a "reducer" pattern.
|
|
2789
|
+
*
|
|
2790
|
+
* @interface
|
|
2791
|
+
*/
|
|
2792
|
+
declare type ClickedMenuResult<Data extends unknown = unknown> = {
|
|
2670
2793
|
result: 'clicked';
|
|
2671
|
-
data:
|
|
2794
|
+
data: Data;
|
|
2672
2795
|
};
|
|
2673
2796
|
|
|
2674
2797
|
/**
|
|
@@ -2677,7 +2800,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
|
|
|
2677
2800
|
declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
|
|
2678
2801
|
|
|
2679
2802
|
/**
|
|
2680
|
-
* Identity of a channel client
|
|
2803
|
+
* Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
|
|
2681
2804
|
* @interface
|
|
2682
2805
|
*/
|
|
2683
2806
|
declare type ClientIdentity = Identity_5 & {
|
|
@@ -2895,10 +3018,16 @@ declare type ClosedEvent = IdentityEvent & {
|
|
|
2895
3018
|
type: 'closed';
|
|
2896
3019
|
};
|
|
2897
3020
|
|
|
3021
|
+
/**
|
|
3022
|
+
* @interface
|
|
3023
|
+
*/
|
|
2898
3024
|
declare type ClosedMenuResult = {
|
|
2899
3025
|
result: 'closed';
|
|
2900
3026
|
};
|
|
2901
3027
|
|
|
3028
|
+
/**
|
|
3029
|
+
* @interface
|
|
3030
|
+
*/
|
|
2902
3031
|
declare type CloseViewPayload = {
|
|
2903
3032
|
/**
|
|
2904
3033
|
*View to be closed.
|
|
@@ -2907,6 +3036,8 @@ declare type CloseViewPayload = {
|
|
|
2907
3036
|
};
|
|
2908
3037
|
|
|
2909
3038
|
/**
|
|
3039
|
+
* @interface
|
|
3040
|
+
*
|
|
2910
3041
|
* Represents the shape of payload that contains the Window Identity and related options.
|
|
2911
3042
|
*/
|
|
2912
3043
|
declare interface CloseWindowPayload {
|
|
@@ -3043,6 +3174,8 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
|
|
|
3043
3174
|
|
|
3044
3175
|
/**
|
|
3045
3176
|
* View options that cannot be updated after creation.
|
|
3177
|
+
*
|
|
3178
|
+
* @interface
|
|
3046
3179
|
*/
|
|
3047
3180
|
declare type ConstViewOptions = {
|
|
3048
3181
|
/**
|
|
@@ -3095,6 +3228,11 @@ declare type ConstViewOptions = {
|
|
|
3095
3228
|
zoomLevel: number;
|
|
3096
3229
|
experimental: any;
|
|
3097
3230
|
fdc3InteropApi?: string;
|
|
3231
|
+
/**
|
|
3232
|
+
* @defaultValue false
|
|
3233
|
+
*
|
|
3234
|
+
* When set to `true`, any `beforeunload` handler set on Views will fire.
|
|
3235
|
+
*/
|
|
3098
3236
|
enableBeforeUnload: boolean;
|
|
3099
3237
|
/**
|
|
3100
3238
|
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
@@ -3110,6 +3248,8 @@ declare type ConstViewOptions = {
|
|
|
3110
3248
|
|
|
3111
3249
|
/**
|
|
3112
3250
|
* Window options that cannot be changed after creation.
|
|
3251
|
+
*
|
|
3252
|
+
* @interface
|
|
3113
3253
|
*/
|
|
3114
3254
|
declare type ConstWindowOptions = {
|
|
3115
3255
|
/**
|
|
@@ -3311,6 +3451,8 @@ declare type ContentCreationBehaviorNames = 'window' | 'view' | 'block' | 'brows
|
|
|
3311
3451
|
|
|
3312
3452
|
/**
|
|
3313
3453
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
3454
|
+
*
|
|
3455
|
+
* @interface
|
|
3314
3456
|
*/
|
|
3315
3457
|
declare type ContentCreationOptions = {
|
|
3316
3458
|
/**
|
|
@@ -3323,13 +3465,12 @@ declare type ContentCreationOptions = {
|
|
|
3323
3465
|
* A rule for creating content in OpenFin; maps a content type to the way in which
|
|
3324
3466
|
* newly-opened content of that type will be handled.
|
|
3325
3467
|
*
|
|
3326
|
-
*
|
|
3327
|
-
* @
|
|
3328
|
-
* @property { object } options Window creation options or View creation options.
|
|
3468
|
+
*
|
|
3469
|
+
* @interface
|
|
3329
3470
|
*/
|
|
3330
3471
|
declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
|
|
3331
3472
|
/**
|
|
3332
|
-
* Behavior to use when opening matched content.
|
|
3473
|
+
* Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
|
|
3333
3474
|
*/
|
|
3334
3475
|
behavior: T;
|
|
3335
3476
|
/**
|
|
@@ -3378,6 +3519,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
|
|
|
3378
3519
|
* Restrict navigation to URLs that match an allowed pattern.
|
|
3379
3520
|
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
|
3380
3521
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
3522
|
+
*
|
|
3523
|
+
* @interface
|
|
3381
3524
|
*/
|
|
3382
3525
|
declare type ContentNavigation = NavigationRules;
|
|
3383
3526
|
|
|
@@ -3385,11 +3528,15 @@ declare type ContentNavigation = NavigationRules;
|
|
|
3385
3528
|
* Restrict redirects to URLs that match an allowed pattern.
|
|
3386
3529
|
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
|
3387
3530
|
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
3531
|
+
*
|
|
3532
|
+
* @interface
|
|
3388
3533
|
*/
|
|
3389
3534
|
declare type ContentRedirect = NavigationRules;
|
|
3390
3535
|
|
|
3391
3536
|
/**
|
|
3392
3537
|
* Data passed between entities and applications.
|
|
3538
|
+
*
|
|
3539
|
+
* @interface
|
|
3393
3540
|
*/
|
|
3394
3541
|
declare type Context = {
|
|
3395
3542
|
/**
|
|
@@ -3415,6 +3562,12 @@ declare type ContextForIntent<MetadataType = any> = Context & {
|
|
|
3415
3562
|
metadata?: MetadataType;
|
|
3416
3563
|
};
|
|
3417
3564
|
|
|
3565
|
+
/**
|
|
3566
|
+
* Information for a Context Group. Contains metadata for displaying the group properly.
|
|
3567
|
+
*/
|
|
3568
|
+
/**
|
|
3569
|
+
* @interface
|
|
3570
|
+
*/
|
|
3418
3571
|
declare type ContextGroupInfo = {
|
|
3419
3572
|
/**
|
|
3420
3573
|
* Unique identifier of the context group.
|
|
@@ -3432,10 +3585,15 @@ declare type ContextGroupStates = {
|
|
|
3432
3585
|
};
|
|
3433
3586
|
};
|
|
3434
3587
|
|
|
3588
|
+
/**
|
|
3589
|
+
* Subscription function for addContextHandler.
|
|
3590
|
+
*/
|
|
3435
3591
|
declare type ContextHandler = (context: Context) => void;
|
|
3436
3592
|
|
|
3437
3593
|
/**
|
|
3438
3594
|
* Configure the context menu when right-clicking on a window.
|
|
3595
|
+
*
|
|
3596
|
+
* @interface
|
|
3439
3597
|
*/
|
|
3440
3598
|
declare type ContextMenuOptions = {
|
|
3441
3599
|
/**
|
|
@@ -3451,6 +3609,8 @@ declare type ContextMenuOptions = {
|
|
|
3451
3609
|
/**
|
|
3452
3610
|
* @deprecated Superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
3453
3611
|
* Configure the context menu when right-clicking on a window.
|
|
3612
|
+
*
|
|
3613
|
+
* @interface
|
|
3454
3614
|
*/
|
|
3455
3615
|
declare type ContextMenuSettings = {
|
|
3456
3616
|
/**
|
|
@@ -3467,12 +3627,18 @@ declare type ContextMenuSettings = {
|
|
|
3467
3627
|
reload?: boolean;
|
|
3468
3628
|
};
|
|
3469
3629
|
|
|
3630
|
+
/**
|
|
3631
|
+
* @interface
|
|
3632
|
+
*/
|
|
3470
3633
|
declare type CookieInfo = {
|
|
3471
3634
|
name: string;
|
|
3472
3635
|
domain: string;
|
|
3473
3636
|
path: string;
|
|
3474
3637
|
};
|
|
3475
3638
|
|
|
3639
|
+
/**
|
|
3640
|
+
* @interface
|
|
3641
|
+
*/
|
|
3476
3642
|
declare type CookieOption = {
|
|
3477
3643
|
name: string;
|
|
3478
3644
|
};
|
|
@@ -3480,6 +3646,8 @@ declare type CookieOption = {
|
|
|
3480
3646
|
/**
|
|
3481
3647
|
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
3482
3648
|
* average of _height_ and _width_.
|
|
3649
|
+
*
|
|
3650
|
+
* @interface
|
|
3483
3651
|
*/
|
|
3484
3652
|
declare type CornerRounding = {
|
|
3485
3653
|
/**
|
|
@@ -3496,6 +3664,9 @@ declare type CornerRounding = {
|
|
|
3496
3664
|
width: number;
|
|
3497
3665
|
};
|
|
3498
3666
|
|
|
3667
|
+
/**
|
|
3668
|
+
* @interface
|
|
3669
|
+
*/
|
|
3499
3670
|
declare type CpuInfo = {
|
|
3500
3671
|
/**
|
|
3501
3672
|
* The model of the cpu
|
|
@@ -3525,6 +3696,9 @@ declare type CrashedEvent = NamedEvent & {
|
|
|
3525
3696
|
};
|
|
3526
3697
|
};
|
|
3527
3698
|
|
|
3699
|
+
/**
|
|
3700
|
+
* @interface
|
|
3701
|
+
*/
|
|
3528
3702
|
declare type CrashReporterOptions = {
|
|
3529
3703
|
/**
|
|
3530
3704
|
* In diagnostics mode the crash reporter will send diagnostic logs to
|
|
@@ -3552,6 +3726,9 @@ declare type CreatedEvent = BaseViewEvent & {
|
|
|
3552
3726
|
type: 'created';
|
|
3553
3727
|
};
|
|
3554
3728
|
|
|
3729
|
+
/**
|
|
3730
|
+
* @interface
|
|
3731
|
+
*/
|
|
3555
3732
|
declare type CreateViewPayload = {
|
|
3556
3733
|
/**
|
|
3557
3734
|
* Options for the view to be added.
|
|
@@ -3580,6 +3757,8 @@ declare type CreateViewTarget = Identity_5 & {
|
|
|
3580
3757
|
|
|
3581
3758
|
/**
|
|
3582
3759
|
* Custom headers for requests sent by the window.
|
|
3760
|
+
*
|
|
3761
|
+
* @interface
|
|
3583
3762
|
*/
|
|
3584
3763
|
declare type CustomRequestHeaders = {
|
|
3585
3764
|
/**
|
|
@@ -3593,10 +3772,16 @@ declare type CustomRequestHeaders = {
|
|
|
3593
3772
|
headers: WebRequestHeader[];
|
|
3594
3773
|
};
|
|
3595
3774
|
|
|
3775
|
+
/**
|
|
3776
|
+
* @interface
|
|
3777
|
+
*/
|
|
3596
3778
|
declare type DefaultDomainSettings = {
|
|
3597
3779
|
rules: DefaultDomainSettingsRule[];
|
|
3598
3780
|
};
|
|
3599
3781
|
|
|
3782
|
+
/**
|
|
3783
|
+
* @interface
|
|
3784
|
+
*/
|
|
3600
3785
|
declare type DefaultDomainSettingsRule = {
|
|
3601
3786
|
match: string[];
|
|
3602
3787
|
options: {
|
|
@@ -3652,6 +3837,9 @@ declare type DipRect = RectangleByEdgePositions & {
|
|
|
3652
3837
|
scaledRect: RectangleByEdgePositions;
|
|
3653
3838
|
};
|
|
3654
3839
|
|
|
3840
|
+
/**
|
|
3841
|
+
* @interface
|
|
3842
|
+
*/
|
|
3655
3843
|
declare type DipScaleRects = {
|
|
3656
3844
|
dipRect: RectangleByEdgePositions;
|
|
3657
3845
|
scaledRect: RectangleByEdgePositions;
|
|
@@ -3675,6 +3863,8 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
|
|
|
3675
3863
|
|
|
3676
3864
|
/**
|
|
3677
3865
|
* The display data for a context group.
|
|
3866
|
+
*
|
|
3867
|
+
* @interface
|
|
3678
3868
|
*/
|
|
3679
3869
|
declare type DisplayMetadata = {
|
|
3680
3870
|
/**
|
|
@@ -3693,6 +3883,8 @@ declare type DisplayMetadata = {
|
|
|
3693
3883
|
|
|
3694
3884
|
/**
|
|
3695
3885
|
* Metadata returned from a preload script download request.
|
|
3886
|
+
*
|
|
3887
|
+
* @interface
|
|
3696
3888
|
*/
|
|
3697
3889
|
declare type DownloadPreloadInfo = {
|
|
3698
3890
|
/**
|
|
@@ -3711,6 +3903,8 @@ declare type DownloadPreloadInfo = {
|
|
|
3711
3903
|
|
|
3712
3904
|
/**
|
|
3713
3905
|
* Options for downloading a preload script.
|
|
3906
|
+
*
|
|
3907
|
+
* @interface
|
|
3714
3908
|
*/
|
|
3715
3909
|
declare type DownloadPreloadOption = {
|
|
3716
3910
|
/**
|
|
@@ -3719,6 +3913,9 @@ declare type DownloadPreloadOption = {
|
|
|
3719
3913
|
url: string;
|
|
3720
3914
|
};
|
|
3721
3915
|
|
|
3916
|
+
/**
|
|
3917
|
+
* @interface
|
|
3918
|
+
*/
|
|
3722
3919
|
declare type DownloadRule = {
|
|
3723
3920
|
behavior: FileDownloadBehaviorNames;
|
|
3724
3921
|
match: string[];
|
|
@@ -3726,6 +3923,8 @@ declare type DownloadRule = {
|
|
|
3726
3923
|
|
|
3727
3924
|
/**
|
|
3728
3925
|
* DPI (dots per inch) configuration for printing.
|
|
3926
|
+
*
|
|
3927
|
+
* @interface
|
|
3729
3928
|
*/
|
|
3730
3929
|
declare type Dpi = {
|
|
3731
3930
|
/**
|
|
@@ -3788,53 +3987,35 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
3788
3987
|
protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
|
|
3789
3988
|
/**
|
|
3790
3989
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
3791
|
-
*
|
|
3792
|
-
* @param eventType
|
|
3793
|
-
* @param listener
|
|
3794
|
-
* @param options
|
|
3795
3990
|
*/
|
|
3796
3991
|
on<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3797
|
-
|
|
3992
|
+
/**
|
|
3993
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
3994
|
+
*/
|
|
3995
|
+
addListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3798
3996
|
/**
|
|
3799
3997
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
3800
|
-
*
|
|
3801
|
-
* @param eventType
|
|
3802
|
-
* @param listener
|
|
3803
|
-
* @param options
|
|
3804
3998
|
*/
|
|
3805
3999
|
once<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3806
4000
|
/**
|
|
3807
4001
|
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
3808
|
-
*
|
|
3809
|
-
* @param eventType
|
|
3810
|
-
* @param listener
|
|
3811
|
-
* @param options
|
|
3812
4002
|
*/
|
|
3813
4003
|
prependListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3814
4004
|
/**
|
|
3815
4005
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
|
|
3816
4006
|
* after which it is removed. The listener is added to the beginning of the listeners array.
|
|
3817
|
-
*
|
|
3818
|
-
* @param eventType
|
|
3819
|
-
* @param listener
|
|
3820
|
-
* @param options
|
|
3821
4007
|
*/
|
|
3822
4008
|
prependOnceListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3823
4009
|
/**
|
|
3824
4010
|
* Remove a listener from the listener array for the specified event.
|
|
3825
4011
|
*
|
|
3826
4012
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
3827
|
-
*
|
|
3828
|
-
* @param eventType
|
|
3829
|
-
* @param listener
|
|
3830
|
-
* @param options
|
|
3831
4013
|
*/
|
|
3832
4014
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
|
|
3833
4015
|
protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
|
|
3834
4016
|
/**
|
|
3835
4017
|
* Removes all listeners, or those of the specified event.
|
|
3836
4018
|
*
|
|
3837
|
-
* @param eventType
|
|
3838
4019
|
*/
|
|
3839
4020
|
removeAllListeners(eventType?: EmitterEventType): Promise<this>;
|
|
3840
4021
|
private deleteEmitterIfNothingRegistered;
|
|
@@ -3877,6 +4058,9 @@ declare type Entity = OpenFin.ApplicationType;
|
|
|
3877
4058
|
|
|
3878
4059
|
declare type EntityInfo = OpenFin.EntityInfo;
|
|
3879
4060
|
|
|
4061
|
+
/**
|
|
4062
|
+
* @interface
|
|
4063
|
+
*/
|
|
3880
4064
|
declare type EntityInfo_2 = {
|
|
3881
4065
|
uuid: string;
|
|
3882
4066
|
name: string;
|
|
@@ -4004,6 +4188,9 @@ declare type ExistingConnectConfig = ConfigWithUuid & {
|
|
|
4004
4188
|
address: string;
|
|
4005
4189
|
};
|
|
4006
4190
|
|
|
4191
|
+
/**
|
|
4192
|
+
* @interface
|
|
4193
|
+
*/
|
|
4007
4194
|
declare type ExitCode = {
|
|
4008
4195
|
topic: string;
|
|
4009
4196
|
uuid: string;
|
|
@@ -4153,6 +4340,9 @@ declare namespace ExternalApplicationEvents {
|
|
|
4153
4340
|
}
|
|
4154
4341
|
}
|
|
4155
4342
|
|
|
4343
|
+
/**
|
|
4344
|
+
* @interface
|
|
4345
|
+
*/
|
|
4156
4346
|
declare type ExternalApplicationInfo = {
|
|
4157
4347
|
parent: Identity_5;
|
|
4158
4348
|
};
|
|
@@ -4195,6 +4385,9 @@ declare type ExternalConfig = BaseConfig & {
|
|
|
4195
4385
|
manifestUrl: string;
|
|
4196
4386
|
};
|
|
4197
4387
|
|
|
4388
|
+
/**
|
|
4389
|
+
* @interface
|
|
4390
|
+
*/
|
|
4198
4391
|
declare type ExternalConnection = {
|
|
4199
4392
|
/**
|
|
4200
4393
|
* The token to broker an external connection.
|
|
@@ -4216,11 +4409,17 @@ declare type ExternalProcessExitedEvent = NamedEvent & {
|
|
|
4216
4409
|
exitCode: number;
|
|
4217
4410
|
};
|
|
4218
4411
|
|
|
4412
|
+
/**
|
|
4413
|
+
* @interface
|
|
4414
|
+
*/
|
|
4219
4415
|
declare type ExternalProcessInfo = {
|
|
4220
4416
|
pid: number;
|
|
4221
4417
|
listener?: LaunchExternalProcessListener;
|
|
4222
4418
|
};
|
|
4223
4419
|
|
|
4420
|
+
/**
|
|
4421
|
+
* @interface
|
|
4422
|
+
*/
|
|
4224
4423
|
declare type ExternalProcessRequestType = {
|
|
4225
4424
|
/**
|
|
4226
4425
|
* The file path to where the running application resides.
|
|
@@ -4263,6 +4462,9 @@ declare type FaviconUpdatedEvent = NamedEvent & {
|
|
|
4263
4462
|
favicons: string[];
|
|
4264
4463
|
};
|
|
4265
4464
|
|
|
4465
|
+
/**
|
|
4466
|
+
* @interface
|
|
4467
|
+
*/
|
|
4266
4468
|
declare type FetchManifestPayload = {
|
|
4267
4469
|
/**
|
|
4268
4470
|
* The URL of the manifest to fetch.
|
|
@@ -4351,6 +4553,9 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
|
4351
4553
|
state: 'progressing' | 'interrupted';
|
|
4352
4554
|
};
|
|
4353
4555
|
|
|
4556
|
+
/**
|
|
4557
|
+
* @interface
|
|
4558
|
+
*/
|
|
4354
4559
|
declare type FileDownloadSettings = {
|
|
4355
4560
|
rules: DownloadRule[];
|
|
4356
4561
|
};
|
|
@@ -4411,6 +4616,8 @@ declare interface FinApi<MeType extends EntityType> {
|
|
|
4411
4616
|
|
|
4412
4617
|
/**
|
|
4413
4618
|
* Configuration for find-in-page requests.
|
|
4619
|
+
*
|
|
4620
|
+
* @interface
|
|
4414
4621
|
*/
|
|
4415
4622
|
declare type FindInPageOptions = {
|
|
4416
4623
|
/**
|
|
@@ -4446,6 +4653,9 @@ declare type FindInPageOptions = {
|
|
|
4446
4653
|
medialCapitalAsWordStart?: boolean;
|
|
4447
4654
|
};
|
|
4448
4655
|
|
|
4656
|
+
/**
|
|
4657
|
+
* @interface
|
|
4658
|
+
*/
|
|
4449
4659
|
declare type FindInPageResult = {
|
|
4450
4660
|
requestId: number;
|
|
4451
4661
|
/**
|
|
@@ -4463,6 +4673,9 @@ declare type FindInPageResult = {
|
|
|
4463
4673
|
finalUpdate: boolean;
|
|
4464
4674
|
};
|
|
4465
4675
|
|
|
4676
|
+
/**
|
|
4677
|
+
* @interface
|
|
4678
|
+
*/
|
|
4466
4679
|
declare type FindIntentsByContextOptions<MetadataType = IntentMetadata> = {
|
|
4467
4680
|
context: Context;
|
|
4468
4681
|
metadata?: MetadataType;
|
|
@@ -4660,6 +4873,9 @@ declare namespace FrameEvents {
|
|
|
4660
4873
|
*/
|
|
4661
4874
|
declare type FrameEventType = FrameEvent['type'];
|
|
4662
4875
|
|
|
4876
|
+
/**
|
|
4877
|
+
* @interface
|
|
4878
|
+
*/
|
|
4663
4879
|
declare type FrameInfo = {
|
|
4664
4880
|
name: string;
|
|
4665
4881
|
uuid: string;
|
|
@@ -4736,6 +4952,9 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
4736
4952
|
|
|
4737
4953
|
declare type GetLogRequestType = OpenFin.GetLogRequestType;
|
|
4738
4954
|
|
|
4955
|
+
/**
|
|
4956
|
+
* @interface
|
|
4957
|
+
*/
|
|
4739
4958
|
declare type GetLogRequestType_2 = {
|
|
4740
4959
|
/**
|
|
4741
4960
|
* The name of the running application
|
|
@@ -4753,6 +4972,9 @@ declare type GetLogRequestType_2 = {
|
|
|
4753
4972
|
|
|
4754
4973
|
declare type GetterCall<T> = ApiCall<void, T>;
|
|
4755
4974
|
|
|
4975
|
+
/**
|
|
4976
|
+
* @interface
|
|
4977
|
+
*/
|
|
4756
4978
|
declare type GetWindowContextPayload = {
|
|
4757
4979
|
/**
|
|
4758
4980
|
* Entity type of the target of the context update ('view' or 'window').
|
|
@@ -4888,6 +5110,9 @@ declare namespace GlobalHotkeyEvents {
|
|
|
4888
5110
|
}
|
|
4889
5111
|
}
|
|
4890
5112
|
|
|
5113
|
+
/**
|
|
5114
|
+
* @interface
|
|
5115
|
+
*/
|
|
4891
5116
|
declare type GpuInfo = {
|
|
4892
5117
|
name: string;
|
|
4893
5118
|
};
|
|
@@ -4900,6 +5125,9 @@ declare type HiddenEvent = BaseViewEvent & {
|
|
|
4900
5125
|
type: 'hidden';
|
|
4901
5126
|
};
|
|
4902
5127
|
|
|
5128
|
+
/**
|
|
5129
|
+
* @interface
|
|
5130
|
+
*/
|
|
4903
5131
|
declare type HostContextChangedPayload = {
|
|
4904
5132
|
/**
|
|
4905
5133
|
* The new context object
|
|
@@ -4913,6 +5141,9 @@ declare type HostContextChangedPayload = {
|
|
|
4913
5141
|
|
|
4914
5142
|
declare type HostContextChangedReasons = 'updated' | 'reparented';
|
|
4915
5143
|
|
|
5144
|
+
/**
|
|
5145
|
+
* @interface
|
|
5146
|
+
*/
|
|
4916
5147
|
declare type HostSpecs = {
|
|
4917
5148
|
/**
|
|
4918
5149
|
* True if Aero Glass theme is supported on Windows platforms
|
|
@@ -4946,6 +5177,8 @@ declare type HostSpecs = {
|
|
|
4946
5177
|
|
|
4947
5178
|
/**
|
|
4948
5179
|
* A hotkey binding.
|
|
5180
|
+
*
|
|
5181
|
+
* @interface
|
|
4949
5182
|
*/
|
|
4950
5183
|
declare type Hotkey = {
|
|
4951
5184
|
/**
|
|
@@ -4982,6 +5215,8 @@ declare type Identity_4 = OpenFin.Identity;
|
|
|
4982
5215
|
*
|
|
4983
5216
|
* @remarks The `uuid` property refers the application that owns the entity, not to the entity itself.
|
|
4984
5217
|
* The `name` property identifies the entity itself, and must be unique within the application.
|
|
5218
|
+
*
|
|
5219
|
+
* @interface
|
|
4985
5220
|
*/
|
|
4986
5221
|
declare type Identity_5 = {
|
|
4987
5222
|
/**
|
|
@@ -5032,6 +5267,9 @@ declare type ImageFormatOptions = {
|
|
|
5032
5267
|
quality?: number;
|
|
5033
5268
|
};
|
|
5034
5269
|
|
|
5270
|
+
/**
|
|
5271
|
+
* @interface
|
|
5272
|
+
*/
|
|
5035
5273
|
declare type InfoForIntentOptions<MetadataType = IntentMetadata> = {
|
|
5036
5274
|
/**
|
|
5037
5275
|
* Name of the intent to get info for.
|
|
@@ -5053,6 +5291,9 @@ declare type InitLayoutOptions = OpenFin.InitLayoutOptions;
|
|
|
5053
5291
|
|
|
5054
5292
|
declare type InitLayoutOptions_2 = OpenFin.InitLayoutOptions;
|
|
5055
5293
|
|
|
5294
|
+
/**
|
|
5295
|
+
* @interface
|
|
5296
|
+
*/
|
|
5056
5297
|
declare type InitLayoutOptions_3 = {
|
|
5057
5298
|
/**
|
|
5058
5299
|
* The id attribute of the container where the window's Layout should be initialized. If not provided
|
|
@@ -5061,6 +5302,9 @@ declare type InitLayoutOptions_3 = {
|
|
|
5061
5302
|
containerId?: string;
|
|
5062
5303
|
};
|
|
5063
5304
|
|
|
5305
|
+
/**
|
|
5306
|
+
* @interface
|
|
5307
|
+
*/
|
|
5064
5308
|
declare type InitPlatformOptions = {
|
|
5065
5309
|
/**
|
|
5066
5310
|
* A callback function or an array of constructor callbacks that can be used to extend or replace default Provider behavior.
|
|
@@ -5088,12 +5332,18 @@ declare type InputEvent_2 = {
|
|
|
5088
5332
|
command?: string;
|
|
5089
5333
|
};
|
|
5090
5334
|
|
|
5335
|
+
/**
|
|
5336
|
+
* @interface
|
|
5337
|
+
*/
|
|
5091
5338
|
declare type InstallationInfo = {
|
|
5092
5339
|
cachedManifest: any;
|
|
5093
5340
|
};
|
|
5094
5341
|
|
|
5095
5342
|
declare type InstalledApps = OpenFin.InstalledApps;
|
|
5096
5343
|
|
|
5344
|
+
/**
|
|
5345
|
+
* @interface
|
|
5346
|
+
*/
|
|
5097
5347
|
declare type InstalledApps_2 = {
|
|
5098
5348
|
[key: string]: InstallationInfo;
|
|
5099
5349
|
};
|
|
@@ -5113,8 +5363,17 @@ declare type Intent<MetadataType = IntentMetadata> = {
|
|
|
5113
5363
|
metadata?: MetadataType;
|
|
5114
5364
|
};
|
|
5115
5365
|
|
|
5366
|
+
/**
|
|
5367
|
+
* Subscription function for registerIntentHandler.
|
|
5368
|
+
*/
|
|
5116
5369
|
declare type IntentHandler = (intent: Intent) => void;
|
|
5117
5370
|
|
|
5371
|
+
/**
|
|
5372
|
+
* The type used to describe an intent within the platform.
|
|
5373
|
+
*/
|
|
5374
|
+
/**
|
|
5375
|
+
* @interface
|
|
5376
|
+
*/
|
|
5118
5377
|
declare type IntentMetadata<TargetType = any> = {
|
|
5119
5378
|
target?: TargetType;
|
|
5120
5379
|
resultType?: string;
|
|
@@ -5242,10 +5501,11 @@ declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
|
|
|
5242
5501
|
|
|
5243
5502
|
/**
|
|
5244
5503
|
* Define whether to enable interop action logging.
|
|
5504
|
+
*
|
|
5245
5505
|
*/
|
|
5246
|
-
declare
|
|
5506
|
+
declare type InteropActionLoggingOption = {
|
|
5247
5507
|
enabled: boolean;
|
|
5248
|
-
}
|
|
5508
|
+
};
|
|
5249
5509
|
|
|
5250
5510
|
/**
|
|
5251
5511
|
* {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
|
|
@@ -5914,12 +6174,18 @@ declare class InteropBroker extends Base {
|
|
|
5914
6174
|
isActionAuthorized(_action: string, _payload: any, _identity: OpenFin.ClientIdentity): Promise<boolean> | boolean;
|
|
5915
6175
|
}
|
|
5916
6176
|
|
|
6177
|
+
/**
|
|
6178
|
+
* @interface
|
|
6179
|
+
*/
|
|
5917
6180
|
declare type InteropBrokerDisconnectionEvent = {
|
|
5918
6181
|
type: string;
|
|
5919
6182
|
topic: string;
|
|
5920
6183
|
brokerName: string;
|
|
5921
6184
|
};
|
|
5922
6185
|
|
|
6186
|
+
/**
|
|
6187
|
+
* @interface
|
|
6188
|
+
*/
|
|
5923
6189
|
declare type InteropBrokerOptions = {
|
|
5924
6190
|
contextGroups?: ContextGroupInfo;
|
|
5925
6191
|
logging?: InteropLoggingOptions;
|
|
@@ -6425,8 +6691,17 @@ declare class InteropClient extends Base {
|
|
|
6425
6691
|
static ferryFdc3Call(interopClient: OpenFin.InteropClient, action: string, payload?: any): Promise<any>;
|
|
6426
6692
|
}
|
|
6427
6693
|
|
|
6694
|
+
/**
|
|
6695
|
+
* @interface
|
|
6696
|
+
*/
|
|
6428
6697
|
declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
|
|
6429
6698
|
|
|
6699
|
+
/**
|
|
6700
|
+
* Information relevant to the Interop Broker.
|
|
6701
|
+
*/
|
|
6702
|
+
/**
|
|
6703
|
+
* @interface
|
|
6704
|
+
*/
|
|
6430
6705
|
declare type InteropConfig = {
|
|
6431
6706
|
/**
|
|
6432
6707
|
* Context Group for the client. (green, yellow, red, etc.).
|
|
@@ -6440,6 +6715,9 @@ declare type InteropConfig = {
|
|
|
6440
6715
|
|
|
6441
6716
|
declare type InteropLoggingActions = 'beforeAction' | 'afterAction';
|
|
6442
6717
|
|
|
6718
|
+
/**
|
|
6719
|
+
* @interface
|
|
6720
|
+
*/
|
|
6443
6721
|
declare type InteropLoggingOptions = Record<InteropLoggingActions, InteropActionLoggingOption>;
|
|
6444
6722
|
|
|
6445
6723
|
/**
|
|
@@ -6494,6 +6772,9 @@ declare class InteropModule extends Base {
|
|
|
6494
6772
|
connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
|
|
6495
6773
|
}
|
|
6496
6774
|
|
|
6775
|
+
/**
|
|
6776
|
+
* @interface
|
|
6777
|
+
*/
|
|
6497
6778
|
declare type JumpListCategory = {
|
|
6498
6779
|
/**
|
|
6499
6780
|
* The display title for the category.
|
|
@@ -6510,10 +6791,16 @@ declare type JumpListCategory = {
|
|
|
6510
6791
|
|
|
6511
6792
|
declare type JumpListItem = JumpListTask | JumpListSeparator;
|
|
6512
6793
|
|
|
6794
|
+
/**
|
|
6795
|
+
* @interface
|
|
6796
|
+
*/
|
|
6513
6797
|
declare type JumpListSeparator = {
|
|
6514
6798
|
type: 'separator';
|
|
6515
6799
|
};
|
|
6516
6800
|
|
|
6801
|
+
/**
|
|
6802
|
+
* @interface
|
|
6803
|
+
*/
|
|
6517
6804
|
declare type JumpListTask = {
|
|
6518
6805
|
type: 'task';
|
|
6519
6806
|
/**
|
|
@@ -6607,15 +6894,19 @@ export declare function launch(config: ConnectConfig): Promise<number>;
|
|
|
6607
6894
|
*/
|
|
6608
6895
|
declare type LaunchEmitter = TypedEventEmitter<AppVersionEvent>;
|
|
6609
6896
|
|
|
6610
|
-
declare type LaunchExternalProcessListener =
|
|
6611
|
-
(code: ExitCode): void;
|
|
6612
|
-
};
|
|
6897
|
+
declare type LaunchExternalProcessListener = (code: ExitCode) => void;
|
|
6613
6898
|
|
|
6899
|
+
/**
|
|
6900
|
+
* @interface
|
|
6901
|
+
*/
|
|
6614
6902
|
declare type LaunchExternalProcessRule = {
|
|
6615
6903
|
behavior: 'allow' | 'block';
|
|
6616
6904
|
match: string[];
|
|
6617
6905
|
};
|
|
6618
6906
|
|
|
6907
|
+
/**
|
|
6908
|
+
* @interface
|
|
6909
|
+
*/
|
|
6619
6910
|
declare type LaunchIntoPlatformPayload = {
|
|
6620
6911
|
manifest: any;
|
|
6621
6912
|
};
|
|
@@ -6904,14 +7195,26 @@ declare class Layout extends Base {
|
|
|
6904
7195
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
6905
7196
|
}
|
|
6906
7197
|
|
|
6907
|
-
|
|
7198
|
+
/**
|
|
7199
|
+
* @interface
|
|
7200
|
+
*/
|
|
7201
|
+
declare type LayoutColumn = LayoutItemConfig & {
|
|
6908
7202
|
type: 'column';
|
|
6909
|
-
}
|
|
7203
|
+
};
|
|
6910
7204
|
|
|
6911
|
-
|
|
7205
|
+
/**
|
|
7206
|
+
* @interface
|
|
7207
|
+
*/
|
|
7208
|
+
declare type LayoutComponent = LayoutItemConfig & {
|
|
7209
|
+
/**
|
|
7210
|
+
* Only a component type will have this property and it should be set to view.
|
|
7211
|
+
*/
|
|
6912
7212
|
componentName: 'view';
|
|
7213
|
+
/**
|
|
7214
|
+
* Only a component type will have this property and it represents the view options of a given component.
|
|
7215
|
+
*/
|
|
6913
7216
|
componentState?: Partial<ViewCreationOptions>;
|
|
6914
|
-
}
|
|
7217
|
+
};
|
|
6915
7218
|
|
|
6916
7219
|
declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
|
|
6917
7220
|
|
|
@@ -7043,6 +7346,9 @@ declare class LayoutEntitiesController {
|
|
|
7043
7346
|
setStackActiveView: (stackEntityId: string, viewIdentity: OpenFin.Identity) => Promise<void>;
|
|
7044
7347
|
}
|
|
7045
7348
|
|
|
7349
|
+
/**
|
|
7350
|
+
* @interface
|
|
7351
|
+
*/
|
|
7046
7352
|
declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes = LayoutEntityTypes> = {
|
|
7047
7353
|
type: TLayoutEntityType;
|
|
7048
7354
|
entityId: string;
|
|
@@ -7062,9 +7368,11 @@ declare type LayoutInitializedEvent = NamedEvent & {
|
|
|
7062
7368
|
};
|
|
7063
7369
|
|
|
7064
7370
|
/**
|
|
7065
|
-
* Represents the arrangement of Views within a Platform window's Layout.
|
|
7371
|
+
* Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
|
|
7066
7372
|
* to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7067
7373
|
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7374
|
+
*
|
|
7375
|
+
* @interface
|
|
7068
7376
|
*/
|
|
7069
7377
|
declare type LayoutItemConfig = {
|
|
7070
7378
|
/**
|
|
@@ -7446,6 +7754,9 @@ declare abstract class LayoutNode {
|
|
|
7446
7754
|
getAdjacentStacks: (edge: OpenFin.LayoutPosition) => Promise<TabStack[]>;
|
|
7447
7755
|
}
|
|
7448
7756
|
|
|
7757
|
+
/**
|
|
7758
|
+
* @interface
|
|
7759
|
+
*/
|
|
7449
7760
|
declare type LayoutOptions = {
|
|
7450
7761
|
/**
|
|
7451
7762
|
* Represents a potential ways to customize behavior of your Layout
|
|
@@ -7487,6 +7798,11 @@ declare type LayoutOptions = {
|
|
|
7487
7798
|
* (not to be confused with close button on every tab).
|
|
7488
7799
|
*/
|
|
7489
7800
|
showCloseIcon?: boolean;
|
|
7801
|
+
/**
|
|
7802
|
+
* @defaultValue false
|
|
7803
|
+
*
|
|
7804
|
+
* Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
|
|
7805
|
+
*/
|
|
7490
7806
|
constrainDragToHeaders?: boolean;
|
|
7491
7807
|
/**
|
|
7492
7808
|
* @defaultValue true
|
|
@@ -7515,6 +7831,11 @@ declare type LayoutOptions = {
|
|
|
7515
7831
|
*/
|
|
7516
7832
|
preventDragIn?: boolean;
|
|
7517
7833
|
};
|
|
7834
|
+
/**
|
|
7835
|
+
* Content of the layout. There can only be one top-level LayoutItem in the content array.
|
|
7836
|
+
* We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
|
|
7837
|
+
* {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
|
|
7838
|
+
*/
|
|
7518
7839
|
content?: LayoutContent;
|
|
7519
7840
|
dimensions?: {
|
|
7520
7841
|
borderWidth?: number;
|
|
@@ -7526,6 +7847,9 @@ declare type LayoutOptions = {
|
|
|
7526
7847
|
|
|
7527
7848
|
declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
7528
7849
|
|
|
7850
|
+
/**
|
|
7851
|
+
* @interface
|
|
7852
|
+
*/
|
|
7529
7853
|
declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
|
|
7530
7854
|
|
|
7531
7855
|
/**
|
|
@@ -7539,10 +7863,16 @@ declare type LayoutReadyEvent = NamedEvent & {
|
|
|
7539
7863
|
})[];
|
|
7540
7864
|
};
|
|
7541
7865
|
|
|
7542
|
-
|
|
7866
|
+
/**
|
|
7867
|
+
* @interface
|
|
7868
|
+
*/
|
|
7869
|
+
declare type LayoutRow = LayoutItemConfig & {
|
|
7543
7870
|
type: 'row';
|
|
7544
|
-
}
|
|
7871
|
+
};
|
|
7545
7872
|
|
|
7873
|
+
/**
|
|
7874
|
+
* @interface
|
|
7875
|
+
*/
|
|
7546
7876
|
declare type LegacyWinOptionsInAppOptions = Pick<WindowCreationOptions, 'accelerator' | 'alwaysOnTop' | 'api' | 'aspectRatio' | 'autoplayPolicy' | 'autoShow' | 'backgroundColor' | 'contentNavigation' | 'contextMenu' | 'cornerRounding' | 'customData' | 'customRequestHeaders' | 'defaultCentered' | 'defaultHeight' | 'defaultLeft' | 'defaultTop' | 'defaultWidth' | 'frame' | 'hideOnClose' | 'icon' | 'maxHeight' | 'maximizable' | 'maxWidth' | 'minHeight' | 'minimizable' | 'minWidth' | 'opacity' | 'preloadScripts' | 'resizable' | 'resizeRegion' | 'saveWindowState' | 'ignoreSavedWindowState' | 'shadow' | 'showTaskbarIcon' | 'smallWindow' | 'state' | 'taskbarIconGroup' | 'waitForPageLoad' | '_internalWorkspaceData'>;
|
|
7547
7877
|
|
|
7548
7878
|
declare type Listener<T extends {
|
|
@@ -7551,6 +7881,9 @@ declare type Listener<T extends {
|
|
|
7551
7881
|
|
|
7552
7882
|
declare type LogInfo = OpenFin.LogInfo;
|
|
7553
7883
|
|
|
7884
|
+
/**
|
|
7885
|
+
* @interface
|
|
7886
|
+
*/
|
|
7554
7887
|
declare type LogInfo_2 = {
|
|
7555
7888
|
/**
|
|
7556
7889
|
* The filename of the log
|
|
@@ -7579,6 +7912,9 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
|
7579
7912
|
*/
|
|
7580
7913
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
7581
7914
|
|
|
7915
|
+
/**
|
|
7916
|
+
* @interface
|
|
7917
|
+
*/
|
|
7582
7918
|
declare type Manifest = {
|
|
7583
7919
|
appAssets?: {
|
|
7584
7920
|
alias: string;
|
|
@@ -7644,6 +7980,9 @@ declare type ManifestChangedEvent = IdentityEvent & {
|
|
|
7644
7980
|
type: 'manifest-changed';
|
|
7645
7981
|
};
|
|
7646
7982
|
|
|
7983
|
+
/**
|
|
7984
|
+
* @interface
|
|
7985
|
+
*/
|
|
7647
7986
|
declare type ManifestInfo = {
|
|
7648
7987
|
/**
|
|
7649
7988
|
* The uuid of the application.
|
|
@@ -7657,8 +7996,13 @@ declare type ManifestInfo = {
|
|
|
7657
7996
|
|
|
7658
7997
|
/**
|
|
7659
7998
|
* Margins configuration for printing.
|
|
7999
|
+
*
|
|
8000
|
+
* @interface
|
|
7660
8001
|
*/
|
|
7661
8002
|
declare type Margins = {
|
|
8003
|
+
/**
|
|
8004
|
+
* The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
|
|
8005
|
+
*/
|
|
7662
8006
|
marginType?: 'default' | 'none' | 'printableArea' | 'custom';
|
|
7663
8007
|
/**
|
|
7664
8008
|
* The top margin of the printed webpage, in pixels.
|
|
@@ -7688,17 +8032,36 @@ declare type MaximizedEvent = NamedEvent & {
|
|
|
7688
8032
|
type: 'maximized';
|
|
7689
8033
|
};
|
|
7690
8034
|
|
|
8035
|
+
/**
|
|
8036
|
+
* Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
|
|
8037
|
+
* code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
|
|
8038
|
+
* to the current `Interop` context.
|
|
8039
|
+
*
|
|
8040
|
+
* Useful for debugging in the devtools console, where this will intelligently type itself based
|
|
8041
|
+
* on the context in which the devtools panel was opened.
|
|
8042
|
+
*/
|
|
7691
8043
|
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) & {
|
|
7692
8044
|
isOpenFin: boolean;
|
|
7693
8045
|
};
|
|
7694
8046
|
|
|
7695
|
-
|
|
8047
|
+
/**
|
|
8048
|
+
* @interface
|
|
8049
|
+
*
|
|
8050
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
8051
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
8052
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
8053
|
+
* these with a "reducer" pattern.
|
|
8054
|
+
*/
|
|
8055
|
+
declare type MenuItemTemplate<Data extends unknown = unknown> = {
|
|
7696
8056
|
/**
|
|
7697
8057
|
* Can be `normal`, `separator`, `submenu`, or `checkbox`.
|
|
7698
8058
|
* Defaults to 'normal' unless a 'submenu' key exists
|
|
7699
8059
|
*/
|
|
7700
8060
|
type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
|
|
7701
8061
|
role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
|
|
8062
|
+
/**
|
|
8063
|
+
* The text to show on the menu item. Should be left undefined for type: 'separator'
|
|
8064
|
+
*/
|
|
7702
8065
|
label?: string;
|
|
7703
8066
|
/**
|
|
7704
8067
|
* If false, the menu item will be greyed out and unclickable.
|
|
@@ -7716,18 +8079,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
|
|
|
7716
8079
|
* Should be specified for `submenu` type menu items. If `submenu` is specified,
|
|
7717
8080
|
* the `type: 'submenu'` can be omitted.
|
|
7718
8081
|
*/
|
|
7719
|
-
submenu?: MenuItemTemplate<
|
|
8082
|
+
submenu?: MenuItemTemplate<Data>[];
|
|
7720
8083
|
/**
|
|
7721
8084
|
* Data to be returned if the user selects the element. Must be serializable
|
|
7722
8085
|
*/
|
|
7723
|
-
data?:
|
|
8086
|
+
data?: Data;
|
|
7724
8087
|
/**
|
|
7725
8088
|
* Image Data URI with image dimensions inferred from the encoded string
|
|
7726
8089
|
*/
|
|
7727
8090
|
icon?: string;
|
|
7728
8091
|
};
|
|
7729
8092
|
|
|
7730
|
-
|
|
8093
|
+
/**
|
|
8094
|
+
* Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
|
|
8095
|
+
*
|
|
8096
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
8097
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
8098
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
8099
|
+
* these with a "reducer" pattern.
|
|
8100
|
+
*/
|
|
8101
|
+
declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
|
|
7731
8102
|
|
|
7732
8103
|
declare interface Message<T> {
|
|
7733
8104
|
action: string;
|
|
@@ -7761,6 +8132,9 @@ declare type MinimizedEvent = NamedEvent & {
|
|
|
7761
8132
|
type: 'minimized';
|
|
7762
8133
|
};
|
|
7763
8134
|
|
|
8135
|
+
/**
|
|
8136
|
+
* @interface
|
|
8137
|
+
*/
|
|
7764
8138
|
declare type MonitorDetails = {
|
|
7765
8139
|
/**
|
|
7766
8140
|
* The available DIP scale coordinates.
|
|
@@ -7807,6 +8181,9 @@ declare type MonitorEvent = OpenFin.MonitorInfo & {
|
|
|
7807
8181
|
type: 'monitor-info-changed';
|
|
7808
8182
|
};
|
|
7809
8183
|
|
|
8184
|
+
/**
|
|
8185
|
+
* @interface
|
|
8186
|
+
*/
|
|
7810
8187
|
declare type MonitorInfo = {
|
|
7811
8188
|
/**
|
|
7812
8189
|
* The device scale factor.
|
|
@@ -7826,6 +8203,9 @@ declare type MonitorInfo = {
|
|
|
7826
8203
|
virtualScreen: DipRect;
|
|
7827
8204
|
};
|
|
7828
8205
|
|
|
8206
|
+
/**
|
|
8207
|
+
* @interface
|
|
8208
|
+
*/
|
|
7829
8209
|
declare type MutableViewOptions = {
|
|
7830
8210
|
autoResize: AutoResizeOptions;
|
|
7831
8211
|
/**
|
|
@@ -7911,6 +8291,8 @@ declare type MutableViewOptions = {
|
|
|
7911
8291
|
|
|
7912
8292
|
/**
|
|
7913
8293
|
* Window options that can be changed after window creation.
|
|
8294
|
+
*
|
|
8295
|
+
* @interface
|
|
7914
8296
|
*/
|
|
7915
8297
|
declare type MutableWindowOptions = {
|
|
7916
8298
|
/**
|
|
@@ -8163,6 +8545,9 @@ declare type NamedEvent = IdentityEvent & {
|
|
|
8163
8545
|
name: string;
|
|
8164
8546
|
};
|
|
8165
8547
|
|
|
8548
|
+
/**
|
|
8549
|
+
* @interface
|
|
8550
|
+
*/
|
|
8166
8551
|
declare type NativeWindowIntegrationProviderAuthorization = {
|
|
8167
8552
|
authorizedUuid: string;
|
|
8168
8553
|
};
|
|
@@ -8177,6 +8562,9 @@ declare type NavigationRejectedEvent = NamedEvent & {
|
|
|
8177
8562
|
url: string;
|
|
8178
8563
|
};
|
|
8179
8564
|
|
|
8565
|
+
/**
|
|
8566
|
+
* @interface
|
|
8567
|
+
*/
|
|
8180
8568
|
declare type NavigationRules = {
|
|
8181
8569
|
/** @deprecated Use allowlist property instead. */
|
|
8182
8570
|
whitelist?: string[];
|
|
@@ -8590,6 +8978,9 @@ declare type PerformanceReportEvent = Performance & NamedEvent & {
|
|
|
8590
8978
|
type: 'performance-report';
|
|
8591
8979
|
};
|
|
8592
8980
|
|
|
8981
|
+
/**
|
|
8982
|
+
* @interface
|
|
8983
|
+
*/
|
|
8593
8984
|
declare type Permissions_2 = {
|
|
8594
8985
|
Application?: Partial<ApplicationPermissions>;
|
|
8595
8986
|
System?: Partial<SystemPermissions>;
|
|
@@ -9452,9 +9843,17 @@ declare type PlatformOptions = ApplicationCreationOptions & {
|
|
|
9452
9843
|
disableDefaultCommands?: boolean;
|
|
9453
9844
|
/**
|
|
9454
9845
|
* Strategy to assign views to process affinity by domain.
|
|
9846
|
+
* * `same` - The views in the same domain will have same renderer processes.
|
|
9847
|
+
* * `different` - The views in the same domain will have their own renderer processes.
|
|
9455
9848
|
*/
|
|
9456
9849
|
viewProcessAffinityStrategy?: ProcessAffinityStrategy;
|
|
9850
|
+
/**
|
|
9851
|
+
* The provider url.
|
|
9852
|
+
*/
|
|
9457
9853
|
providerUrl?: string;
|
|
9854
|
+
/**
|
|
9855
|
+
* The permissions for secured APIs.
|
|
9856
|
+
*/
|
|
9458
9857
|
permissions?: Partial<Permissions_2>;
|
|
9459
9858
|
};
|
|
9460
9859
|
|
|
@@ -9990,6 +10389,9 @@ declare type PlatformSnapshotAppliedEvent = BaseEvent & {
|
|
|
9990
10389
|
type: 'platform-snapshot-applied';
|
|
9991
10390
|
};
|
|
9992
10391
|
|
|
10392
|
+
/**
|
|
10393
|
+
* @interface
|
|
10394
|
+
*/
|
|
9993
10395
|
declare type PlatformViewCreationOptions = Partial<ViewOptions>;
|
|
9994
10396
|
|
|
9995
10397
|
/**
|
|
@@ -10016,6 +10418,9 @@ declare type PlatformWindowOptions = WindowCreationOptions & {
|
|
|
10016
10418
|
stylesheetUrl: string;
|
|
10017
10419
|
};
|
|
10018
10420
|
|
|
10421
|
+
/**
|
|
10422
|
+
* @interface
|
|
10423
|
+
*/
|
|
10019
10424
|
declare type Point = {
|
|
10020
10425
|
/**
|
|
10021
10426
|
* The mouse x position
|
|
@@ -10027,6 +10432,9 @@ declare type Point = {
|
|
|
10027
10432
|
y: number;
|
|
10028
10433
|
};
|
|
10029
10434
|
|
|
10435
|
+
/**
|
|
10436
|
+
* @interface
|
|
10437
|
+
*/
|
|
10030
10438
|
declare type PointTopLeft = {
|
|
10031
10439
|
/**
|
|
10032
10440
|
* The mouse top position in virtual screen coordinates
|
|
@@ -10046,8 +10454,10 @@ declare type PopupInteraction = 'clicked' | 'dismissed';
|
|
|
10046
10454
|
|
|
10047
10455
|
/**
|
|
10048
10456
|
* Popup window options.
|
|
10457
|
+
*
|
|
10458
|
+
* @interface
|
|
10049
10459
|
*/
|
|
10050
|
-
declare
|
|
10460
|
+
declare type PopupOptions = {
|
|
10051
10461
|
/**
|
|
10052
10462
|
* Window creation options when using `showPopupWindow` to create a new window.
|
|
10053
10463
|
*/
|
|
@@ -10121,14 +10531,15 @@ declare interface PopupOptions {
|
|
|
10121
10531
|
* <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
10122
10532
|
*/
|
|
10123
10533
|
onPopupResult?: (payload: PopupResult) => any;
|
|
10124
|
-
}
|
|
10534
|
+
};
|
|
10125
10535
|
|
|
10126
10536
|
/**
|
|
10127
10537
|
* The Popup result.
|
|
10128
10538
|
*
|
|
10129
10539
|
* @typeParam T - Type of data the Popup result contains
|
|
10540
|
+
* @interface
|
|
10130
10541
|
*/
|
|
10131
|
-
declare
|
|
10542
|
+
declare type PopupResult<T = any> = {
|
|
10132
10543
|
/**
|
|
10133
10544
|
* `name` and `uuid` of the popup window that called dispatched this result.
|
|
10134
10545
|
*/
|
|
@@ -10148,7 +10559,7 @@ declare interface PopupResult<T = any> {
|
|
|
10148
10559
|
* The last dispatch result.
|
|
10149
10560
|
*/
|
|
10150
10561
|
lastDispatchResult?: PopupResult;
|
|
10151
|
-
}
|
|
10562
|
+
};
|
|
10152
10563
|
|
|
10153
10564
|
declare type PopupResultBehavior = 'none' | PopupBaseBehavior;
|
|
10154
10565
|
|
|
@@ -10177,14 +10588,17 @@ declare type Position = TransitionBase & {
|
|
|
10177
10588
|
fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
|
|
10178
10589
|
```
|
|
10179
10590
|
*/
|
|
10180
|
-
|
|
10591
|
+
/**
|
|
10592
|
+
* @interface
|
|
10593
|
+
*/
|
|
10594
|
+
declare type PositioningOptions = {
|
|
10181
10595
|
/**
|
|
10182
10596
|
* Windows Only.
|
|
10183
10597
|
* If set to true, will not restore a maximized window before setting the bounds.
|
|
10184
10598
|
* This will have the effect of the maximized window staying maximized and not immediately taking this new position.
|
|
10185
10599
|
*/
|
|
10186
10600
|
skipRestore?: boolean;
|
|
10187
|
-
}
|
|
10601
|
+
};
|
|
10188
10602
|
|
|
10189
10603
|
/**
|
|
10190
10604
|
* Context menu item with an implementation provided by OpenFin.
|
|
@@ -10193,6 +10607,8 @@ declare type PrebuiltContextMenuItem = 'separator' | 'undo' | 'redo' | 'cut' | '
|
|
|
10193
10607
|
|
|
10194
10608
|
/**
|
|
10195
10609
|
* A script that is run before page load.
|
|
10610
|
+
*
|
|
10611
|
+
* @interface
|
|
10196
10612
|
*/
|
|
10197
10613
|
declare type PreloadScript = {
|
|
10198
10614
|
/**
|
|
@@ -10253,6 +10669,9 @@ declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent &
|
|
|
10253
10669
|
|
|
10254
10670
|
declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
|
|
10255
10671
|
|
|
10672
|
+
/**
|
|
10673
|
+
* @interface
|
|
10674
|
+
*/
|
|
10256
10675
|
declare type PresetLayoutOptions_2 = {
|
|
10257
10676
|
/**
|
|
10258
10677
|
* Which preset layout arrangement to use.
|
|
@@ -10263,23 +10682,44 @@ declare type PresetLayoutOptions_2 = {
|
|
|
10263
10682
|
|
|
10264
10683
|
declare type PrinterInfo = OpenFin.PrinterInfo;
|
|
10265
10684
|
|
|
10685
|
+
/**
|
|
10686
|
+
* @interface
|
|
10687
|
+
*/
|
|
10266
10688
|
declare type PrinterInfo_2 = {
|
|
10689
|
+
/**
|
|
10690
|
+
* Printer Name
|
|
10691
|
+
*/
|
|
10267
10692
|
name: string;
|
|
10693
|
+
/**
|
|
10694
|
+
* Printer Description
|
|
10695
|
+
*/
|
|
10268
10696
|
description: string;
|
|
10697
|
+
/**
|
|
10698
|
+
* Printer Status
|
|
10699
|
+
*/
|
|
10269
10700
|
status: number;
|
|
10701
|
+
/**
|
|
10702
|
+
* Indicates that system's default printer.
|
|
10703
|
+
*/
|
|
10270
10704
|
isDefault: boolean;
|
|
10271
10705
|
};
|
|
10272
10706
|
|
|
10273
10707
|
/**
|
|
10274
10708
|
* Options for printing a webpage in OpenFin.
|
|
10709
|
+
*
|
|
10710
|
+
* @interface
|
|
10275
10711
|
*/
|
|
10276
10712
|
declare type PrintOptions = {
|
|
10277
10713
|
content?: 'self';
|
|
10278
10714
|
/**
|
|
10715
|
+
* @defaultValue false
|
|
10716
|
+
*
|
|
10279
10717
|
* Disables prompting the user for print settings.
|
|
10280
10718
|
*/
|
|
10281
10719
|
silent?: boolean;
|
|
10282
10720
|
/**
|
|
10721
|
+
* @defaultValue false
|
|
10722
|
+
*
|
|
10283
10723
|
* Includes the webpage background color and image when printing.
|
|
10284
10724
|
*/
|
|
10285
10725
|
printBackground?: boolean;
|
|
@@ -10288,6 +10728,8 @@ declare type PrintOptions = {
|
|
|
10288
10728
|
*/
|
|
10289
10729
|
deviceName?: string;
|
|
10290
10730
|
/**
|
|
10731
|
+
* @defaultValue true
|
|
10732
|
+
*
|
|
10291
10733
|
* Prints in full color (greyscale otherwise).
|
|
10292
10734
|
*/
|
|
10293
10735
|
color?: boolean;
|
|
@@ -10296,6 +10738,8 @@ declare type PrintOptions = {
|
|
|
10296
10738
|
*/
|
|
10297
10739
|
margins?: Margins;
|
|
10298
10740
|
/**
|
|
10741
|
+
* @defaultValue true
|
|
10742
|
+
*
|
|
10299
10743
|
* Prints in landscape mode (portrait otherwise).
|
|
10300
10744
|
*/
|
|
10301
10745
|
landscape?: boolean;
|
|
@@ -10337,6 +10781,9 @@ declare type PrintOptions = {
|
|
|
10337
10781
|
*/
|
|
10338
10782
|
declare type ProcessAffinityStrategy = 'same' | 'different';
|
|
10339
10783
|
|
|
10784
|
+
/**
|
|
10785
|
+
* @interface
|
|
10786
|
+
*/
|
|
10340
10787
|
declare type ProcessDetails = {
|
|
10341
10788
|
/**
|
|
10342
10789
|
* The percentage of total CPU usage.
|
|
@@ -10384,8 +10831,10 @@ declare type ProcessDetails = {
|
|
|
10384
10831
|
|
|
10385
10832
|
/**
|
|
10386
10833
|
* Process logging options
|
|
10834
|
+
*
|
|
10835
|
+
* @interface
|
|
10387
10836
|
*/
|
|
10388
|
-
declare
|
|
10837
|
+
declare type ProcessLoggingOptions = {
|
|
10389
10838
|
/**
|
|
10390
10839
|
* Periodic Logging Interval (in seconds)
|
|
10391
10840
|
*/
|
|
@@ -10403,7 +10852,7 @@ declare interface ProcessLoggingOptions {
|
|
|
10403
10852
|
*/
|
|
10404
10853
|
entries?: number;
|
|
10405
10854
|
};
|
|
10406
|
-
}
|
|
10855
|
+
};
|
|
10407
10856
|
|
|
10408
10857
|
/**
|
|
10409
10858
|
* A propagated Application event.
|
|
@@ -10710,6 +11159,9 @@ declare type ProviderIdentity_7 = Identity_5 & {
|
|
|
10710
11159
|
|
|
10711
11160
|
declare type ProxyConfig = OpenFin.ProxyConfig;
|
|
10712
11161
|
|
|
11162
|
+
/**
|
|
11163
|
+
* @interface
|
|
11164
|
+
*/
|
|
10713
11165
|
declare type ProxyConfig_2 = {
|
|
10714
11166
|
/**
|
|
10715
11167
|
* The configured proxy address.
|
|
@@ -10724,11 +11176,17 @@ declare type ProxyConfig_2 = {
|
|
|
10724
11176
|
|
|
10725
11177
|
declare type ProxyInfo = OpenFin.ProxyInfo;
|
|
10726
11178
|
|
|
11179
|
+
/**
|
|
11180
|
+
* @interface
|
|
11181
|
+
*/
|
|
10727
11182
|
declare type ProxyInfo_2 = {
|
|
10728
11183
|
config: ProxyConfig_2;
|
|
10729
11184
|
system: ProxySystemInfo;
|
|
10730
11185
|
};
|
|
10731
11186
|
|
|
11187
|
+
/**
|
|
11188
|
+
* @interface
|
|
11189
|
+
*/
|
|
10732
11190
|
declare type ProxySystemInfo = {
|
|
10733
11191
|
/**
|
|
10734
11192
|
* The auto configuration url.
|
|
@@ -10748,6 +11206,9 @@ declare type ProxySystemInfo = {
|
|
|
10748
11206
|
proxy: string;
|
|
10749
11207
|
};
|
|
10750
11208
|
|
|
11209
|
+
/**
|
|
11210
|
+
* @interface
|
|
11211
|
+
*/
|
|
10751
11212
|
declare type QueryPermissionResult = {
|
|
10752
11213
|
/**
|
|
10753
11214
|
* The full name of a secured API.
|
|
@@ -10773,6 +11234,8 @@ declare type ReadImageClipboardRequest = BaseClipboardRequest & ImageFormatOptio
|
|
|
10773
11234
|
* A rectangular area on the screen.
|
|
10774
11235
|
*
|
|
10775
11236
|
* @remarks Origin is top-left. All numbers are in pixels.
|
|
11237
|
+
*
|
|
11238
|
+
* @interface
|
|
10776
11239
|
*/
|
|
10777
11240
|
declare type Rectangle = {
|
|
10778
11241
|
/**
|
|
@@ -10793,6 +11256,9 @@ declare type Rectangle = {
|
|
|
10793
11256
|
height: number;
|
|
10794
11257
|
};
|
|
10795
11258
|
|
|
11259
|
+
/**
|
|
11260
|
+
* @interface
|
|
11261
|
+
*/
|
|
10796
11262
|
declare type RectangleByEdgePositions = {
|
|
10797
11263
|
top: number;
|
|
10798
11264
|
left: number;
|
|
@@ -10808,6 +11274,9 @@ declare type RegisteredEvent = BaseEvent & {
|
|
|
10808
11274
|
type: 'registered';
|
|
10809
11275
|
};
|
|
10810
11276
|
|
|
11277
|
+
/**
|
|
11278
|
+
* @interface
|
|
11279
|
+
*/
|
|
10811
11280
|
declare type RegisterUsageData = {
|
|
10812
11281
|
data: unknown;
|
|
10813
11282
|
type: string;
|
|
@@ -10815,6 +11284,9 @@ declare type RegisterUsageData = {
|
|
|
10815
11284
|
|
|
10816
11285
|
declare type RegistryInfo = OpenFin.RegistryInfo;
|
|
10817
11286
|
|
|
11287
|
+
/**
|
|
11288
|
+
* @interface
|
|
11289
|
+
*/
|
|
10818
11290
|
declare type RegistryInfo_2 = {
|
|
10819
11291
|
data: any;
|
|
10820
11292
|
rootKey: string;
|
|
@@ -10836,6 +11308,9 @@ declare interface RemoteConfig extends ExistingConnectConfig {
|
|
|
10836
11308
|
token: string;
|
|
10837
11309
|
}
|
|
10838
11310
|
|
|
11311
|
+
/**
|
|
11312
|
+
* @interface
|
|
11313
|
+
*/
|
|
10839
11314
|
declare type ReplaceLayoutOpts = {
|
|
10840
11315
|
/**
|
|
10841
11316
|
* Layout config to be applied.
|
|
@@ -10843,6 +11318,9 @@ declare type ReplaceLayoutOpts = {
|
|
|
10843
11318
|
layout: LayoutOptions;
|
|
10844
11319
|
};
|
|
10845
11320
|
|
|
11321
|
+
/**
|
|
11322
|
+
* @interface
|
|
11323
|
+
*/
|
|
10846
11324
|
declare type ReplaceLayoutPayload = {
|
|
10847
11325
|
/**
|
|
10848
11326
|
* Object containing the layout to be applied.
|
|
@@ -10854,6 +11332,9 @@ declare type ReplaceLayoutPayload = {
|
|
|
10854
11332
|
target: Identity_5;
|
|
10855
11333
|
};
|
|
10856
11334
|
|
|
11335
|
+
/**
|
|
11336
|
+
* @interface
|
|
11337
|
+
*/
|
|
10857
11338
|
declare type ReplaceViewPayload = {
|
|
10858
11339
|
opts: {
|
|
10859
11340
|
viewToReplace: Identity_5;
|
|
@@ -10864,6 +11345,8 @@ declare type ReplaceViewPayload = {
|
|
|
10864
11345
|
|
|
10865
11346
|
/**
|
|
10866
11347
|
* Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.
|
|
11348
|
+
*
|
|
11349
|
+
* @interface
|
|
10867
11350
|
*/
|
|
10868
11351
|
declare type ResizeRegion = {
|
|
10869
11352
|
/**
|
|
@@ -10943,6 +11426,9 @@ declare type RespondingEvent = IdentityEvent & {
|
|
|
10943
11426
|
|
|
10944
11427
|
declare type ResultBehavior = 'close' | 'hide' | 'none';
|
|
10945
11428
|
|
|
11429
|
+
/**
|
|
11430
|
+
* @interface
|
|
11431
|
+
*/
|
|
10946
11432
|
declare type RGB = {
|
|
10947
11433
|
red: number;
|
|
10948
11434
|
blue: number;
|
|
@@ -11017,6 +11503,8 @@ declare type RuntimeConfig = {
|
|
|
11017
11503
|
|
|
11018
11504
|
/**
|
|
11019
11505
|
* The options object required by the downloadRuntime function.
|
|
11506
|
+
*
|
|
11507
|
+
* @interface
|
|
11020
11508
|
*/
|
|
11021
11509
|
declare type RuntimeDownloadOptions = {
|
|
11022
11510
|
/**
|
|
@@ -11025,6 +11513,9 @@ declare type RuntimeDownloadOptions = {
|
|
|
11025
11513
|
version: string;
|
|
11026
11514
|
};
|
|
11027
11515
|
|
|
11516
|
+
/**
|
|
11517
|
+
* @interface
|
|
11518
|
+
*/
|
|
11028
11519
|
declare type RuntimeDownloadProgress = {
|
|
11029
11520
|
/**
|
|
11030
11521
|
* @property { string } alias The name of the asset
|
|
@@ -11038,6 +11529,9 @@ declare type RuntimeErrorPayload = {
|
|
|
11038
11529
|
error?: ErrorPlainObject;
|
|
11039
11530
|
};
|
|
11040
11531
|
|
|
11532
|
+
/**
|
|
11533
|
+
* @interface
|
|
11534
|
+
*/
|
|
11041
11535
|
declare type RuntimeInfo = {
|
|
11042
11536
|
/**
|
|
11043
11537
|
* The runtime build architecture.
|
|
@@ -11068,6 +11562,9 @@ declare type RuntimeInfo = {
|
|
|
11068
11562
|
devtoolsPort?: number;
|
|
11069
11563
|
};
|
|
11070
11564
|
|
|
11565
|
+
/**
|
|
11566
|
+
* @interface
|
|
11567
|
+
*/
|
|
11071
11568
|
declare type RVMInfo = {
|
|
11072
11569
|
/**
|
|
11073
11570
|
* The name of action: "get-rvm-info".
|
|
@@ -11095,6 +11592,9 @@ declare type RVMInfo = {
|
|
|
11095
11592
|
'working-dir': string;
|
|
11096
11593
|
};
|
|
11097
11594
|
|
|
11595
|
+
/**
|
|
11596
|
+
* @interface
|
|
11597
|
+
*/
|
|
11098
11598
|
declare type RvmLaunchOptions = {
|
|
11099
11599
|
/**
|
|
11100
11600
|
* True if no UI when launching
|
|
@@ -11111,6 +11611,9 @@ declare type RvmLaunchOptions = {
|
|
|
11111
11611
|
subscribe?: (launch: LaunchEmitter) => void;
|
|
11112
11612
|
};
|
|
11113
11613
|
|
|
11614
|
+
/**
|
|
11615
|
+
* @interface
|
|
11616
|
+
*/
|
|
11114
11617
|
declare type ScreenshotPrintOptions = {
|
|
11115
11618
|
content: 'screenshot';
|
|
11116
11619
|
};
|
|
@@ -11119,6 +11622,9 @@ declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
|
|
|
11119
11622
|
data: ProtocolMap[T]['response'];
|
|
11120
11623
|
} & ProtocolMap[T]['specialResponse']>;
|
|
11121
11624
|
|
|
11625
|
+
/**
|
|
11626
|
+
* @interface
|
|
11627
|
+
*/
|
|
11122
11628
|
declare type SendApplicationLogResponse = {
|
|
11123
11629
|
logId: string;
|
|
11124
11630
|
};
|
|
@@ -11133,6 +11639,9 @@ declare type ServiceConfig = {
|
|
|
11133
11639
|
manifestUrl: string;
|
|
11134
11640
|
};
|
|
11135
11641
|
|
|
11642
|
+
/**
|
|
11643
|
+
* @interface
|
|
11644
|
+
*/
|
|
11136
11645
|
declare type ServiceConfiguration = {
|
|
11137
11646
|
config: object;
|
|
11138
11647
|
/**
|
|
@@ -11141,6 +11650,9 @@ declare type ServiceConfiguration = {
|
|
|
11141
11650
|
name: string;
|
|
11142
11651
|
};
|
|
11143
11652
|
|
|
11653
|
+
/**
|
|
11654
|
+
* @interface
|
|
11655
|
+
*/
|
|
11144
11656
|
declare type ServiceIdentifier = {
|
|
11145
11657
|
/**
|
|
11146
11658
|
* The name of the service.
|
|
@@ -11157,15 +11669,41 @@ declare type SessionChangedEvent = {
|
|
|
11157
11669
|
reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
|
|
11158
11670
|
};
|
|
11159
11671
|
|
|
11672
|
+
/**
|
|
11673
|
+
* An instance of a SessionContextGroup
|
|
11674
|
+
*/
|
|
11675
|
+
/**
|
|
11676
|
+
* @interface
|
|
11677
|
+
*/
|
|
11160
11678
|
declare type SessionContextGroup = {
|
|
11679
|
+
/**
|
|
11680
|
+
* The SessionContextGroup's id.
|
|
11681
|
+
*/
|
|
11161
11682
|
id: string;
|
|
11683
|
+
/**
|
|
11684
|
+
* A SessionContextGroup instance method for setting a context in the SessionContextGroup.
|
|
11685
|
+
* @param context The Context to be set.
|
|
11686
|
+
*/
|
|
11162
11687
|
setContext: (context: Context) => Promise<void>;
|
|
11688
|
+
/**
|
|
11689
|
+
* A SessionContextGroup instance method for getting the current context of a certain type.
|
|
11690
|
+
* @param type The Context Type to get. If not specified the last contextType set would get used.
|
|
11691
|
+
*/
|
|
11163
11692
|
getCurrentContext: (type?: string) => Promise<Context>;
|
|
11693
|
+
/**
|
|
11694
|
+
* A SessionContextGroup instance method for adding a handler for context change.
|
|
11695
|
+
* @param handler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
|
|
11696
|
+
* @param contextType The context type this handler should listen to. If not specified, a global handler for all context types will get created. Only one global handler is allowed per SessionContextGroup.
|
|
11697
|
+
*
|
|
11698
|
+
*/
|
|
11164
11699
|
addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
|
|
11165
11700
|
unsubscribe: () => void;
|
|
11166
11701
|
}>;
|
|
11167
11702
|
};
|
|
11168
11703
|
|
|
11704
|
+
/**
|
|
11705
|
+
* @interface
|
|
11706
|
+
*/
|
|
11169
11707
|
declare type SetWindowContextPayload = {
|
|
11170
11708
|
/**
|
|
11171
11709
|
* The requested context update.
|
|
@@ -11181,11 +11719,23 @@ declare type SetWindowContextPayload = {
|
|
|
11181
11719
|
target: Identity_5;
|
|
11182
11720
|
};
|
|
11183
11721
|
|
|
11722
|
+
/**
|
|
11723
|
+
* @interface
|
|
11724
|
+
*/
|
|
11184
11725
|
declare type SharedWorkerInfo = {
|
|
11726
|
+
/**
|
|
11727
|
+
* The unique id of the shared worker.
|
|
11728
|
+
*/
|
|
11185
11729
|
id: string;
|
|
11730
|
+
/**
|
|
11731
|
+
* The url of the shared worker.
|
|
11732
|
+
*/
|
|
11186
11733
|
url: string;
|
|
11187
11734
|
};
|
|
11188
11735
|
|
|
11736
|
+
/**
|
|
11737
|
+
* @interface
|
|
11738
|
+
*/
|
|
11189
11739
|
declare type ShortCutConfig = {
|
|
11190
11740
|
/**
|
|
11191
11741
|
* True if application has a shortcut on the desktop.
|
|
@@ -11216,14 +11766,34 @@ declare type ShownEvent = BaseViewEvent & {
|
|
|
11216
11766
|
type: 'shown';
|
|
11217
11767
|
};
|
|
11218
11768
|
|
|
11219
|
-
|
|
11220
|
-
|
|
11769
|
+
/**
|
|
11770
|
+
* Options for showing a popup menu
|
|
11771
|
+
*
|
|
11772
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
11773
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
11774
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
11775
|
+
* these with a "reducer" pattern.
|
|
11776
|
+
*
|
|
11777
|
+
* @interface
|
|
11778
|
+
*/
|
|
11779
|
+
declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
|
|
11780
|
+
/**
|
|
11781
|
+
* An array describing the menu to show.
|
|
11782
|
+
*/
|
|
11783
|
+
template: MenuItemTemplate<Data>[];
|
|
11784
|
+
/**
|
|
11785
|
+
* The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
|
|
11786
|
+
*/
|
|
11221
11787
|
x?: number;
|
|
11788
|
+
/**
|
|
11789
|
+
* The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
|
|
11790
|
+
*/
|
|
11222
11791
|
y?: number;
|
|
11223
11792
|
};
|
|
11224
11793
|
|
|
11225
11794
|
/**
|
|
11226
11795
|
* _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
11796
|
+
*
|
|
11227
11797
|
* @interface
|
|
11228
11798
|
*/
|
|
11229
11799
|
declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
|
|
@@ -11255,7 +11825,13 @@ declare type Size = TransitionBase & {
|
|
|
11255
11825
|
height: number;
|
|
11256
11826
|
};
|
|
11257
11827
|
|
|
11828
|
+
/**
|
|
11829
|
+
* @interface
|
|
11830
|
+
*/
|
|
11258
11831
|
declare type Snapshot = {
|
|
11832
|
+
/**
|
|
11833
|
+
* The array of window options objects
|
|
11834
|
+
*/
|
|
11259
11835
|
windows: WindowCreationOptions[];
|
|
11260
11836
|
snapshotDetails?: {
|
|
11261
11837
|
monitorInfo: MonitorInfo;
|
|
@@ -11267,6 +11843,9 @@ declare type Snapshot = {
|
|
|
11267
11843
|
};
|
|
11268
11844
|
};
|
|
11269
11845
|
|
|
11846
|
+
/**
|
|
11847
|
+
* @interface
|
|
11848
|
+
*/
|
|
11270
11849
|
declare type SnapshotProvider<Snapshot = unknown> = {
|
|
11271
11850
|
getSnapshot: () => Promise<Snapshot>;
|
|
11272
11851
|
applySnapshot: (snapshot: Snapshot) => Promise<void>;
|
|
@@ -11416,6 +11995,9 @@ declare type StartedEvent = IdentityEvent & {
|
|
|
11416
11995
|
type: 'started';
|
|
11417
11996
|
};
|
|
11418
11997
|
|
|
11998
|
+
/**
|
|
11999
|
+
* @interface
|
|
12000
|
+
*/
|
|
11419
12001
|
declare type SubscriptionOptions = {
|
|
11420
12002
|
/**
|
|
11421
12003
|
* The event timestamp.
|
|
@@ -12911,6 +13493,9 @@ declare namespace SystemEvents {
|
|
|
12911
13493
|
*/
|
|
12912
13494
|
declare type SystemEventType = SystemEvent['type'];
|
|
12913
13495
|
|
|
13496
|
+
/**
|
|
13497
|
+
* @interface
|
|
13498
|
+
*/
|
|
12914
13499
|
declare type SystemPermissions = {
|
|
12915
13500
|
getAllExternalWindows: boolean;
|
|
12916
13501
|
launchExternalProcess: boolean | {
|
|
@@ -12938,6 +13523,9 @@ declare type SystemPermissions = {
|
|
|
12938
13523
|
};
|
|
12939
13524
|
};
|
|
12940
13525
|
|
|
13526
|
+
/**
|
|
13527
|
+
* @interface
|
|
13528
|
+
*/
|
|
12941
13529
|
declare type SystemProcessInfo = {
|
|
12942
13530
|
apps: AppProcessInfo[];
|
|
12943
13531
|
browserProcess: NonAppProcessDetails;
|
|
@@ -13223,6 +13811,9 @@ declare type TaskBar = DipScaleRects & {
|
|
|
13223
13811
|
rect: RectangleByEdgePositions;
|
|
13224
13812
|
};
|
|
13225
13813
|
|
|
13814
|
+
/**
|
|
13815
|
+
* @interface
|
|
13816
|
+
*/
|
|
13226
13817
|
declare type TerminateExternalRequestType = {
|
|
13227
13818
|
/**
|
|
13228
13819
|
* The uuid of the running application.
|
|
@@ -13238,6 +13829,9 @@ declare type TerminateExternalRequestType = {
|
|
|
13238
13829
|
killTree: boolean;
|
|
13239
13830
|
};
|
|
13240
13831
|
|
|
13832
|
+
/**
|
|
13833
|
+
* @interface
|
|
13834
|
+
*/
|
|
13241
13835
|
declare type Time = {
|
|
13242
13836
|
/**
|
|
13243
13837
|
* The number of milliseconds the CPU has spent in user mode.
|
|
@@ -13261,14 +13855,28 @@ declare type Time = {
|
|
|
13261
13855
|
irq: number;
|
|
13262
13856
|
};
|
|
13263
13857
|
|
|
13858
|
+
/**
|
|
13859
|
+
* @interface
|
|
13860
|
+
*/
|
|
13264
13861
|
declare type Transition = {
|
|
13862
|
+
/**
|
|
13863
|
+
* The Opacity transition
|
|
13864
|
+
*/
|
|
13265
13865
|
opacity?: Opacity;
|
|
13866
|
+
/**
|
|
13867
|
+
* The Position transition
|
|
13868
|
+
*/
|
|
13266
13869
|
position?: Position;
|
|
13870
|
+
/**
|
|
13871
|
+
* The Size transition
|
|
13872
|
+
*/
|
|
13267
13873
|
size?: Size;
|
|
13268
13874
|
};
|
|
13269
13875
|
|
|
13270
13876
|
/**
|
|
13271
13877
|
* Base configuration options needed for all types of transitions.
|
|
13878
|
+
*
|
|
13879
|
+
* @interface
|
|
13272
13880
|
*/
|
|
13273
13881
|
declare type TransitionBase = {
|
|
13274
13882
|
/**
|
|
@@ -13285,6 +13893,8 @@ declare type TransitionBase = {
|
|
|
13285
13893
|
|
|
13286
13894
|
/**
|
|
13287
13895
|
* Configuration for transition between windows.
|
|
13896
|
+
*
|
|
13897
|
+
* @interface
|
|
13288
13898
|
*/
|
|
13289
13899
|
declare type TransitionOptions = {
|
|
13290
13900
|
/**
|
|
@@ -13345,6 +13955,9 @@ declare type TrayIconClickedEvent = IdentityEvent & {
|
|
|
13345
13955
|
monitorInfo: any;
|
|
13346
13956
|
};
|
|
13347
13957
|
|
|
13958
|
+
/**
|
|
13959
|
+
* @interface
|
|
13960
|
+
*/
|
|
13348
13961
|
declare type TrayInfo = {
|
|
13349
13962
|
/**
|
|
13350
13963
|
* The bound of tray icon in virtual screen pixels.
|
|
@@ -13394,9 +14007,14 @@ declare type UnregisteredEvent = BaseEvent & {
|
|
|
13394
14007
|
|
|
13395
14008
|
/**
|
|
13396
14009
|
* View options that can be updated after creation.
|
|
14010
|
+
*
|
|
14011
|
+
* @interface
|
|
13397
14012
|
*/
|
|
13398
14013
|
declare type UpdatableViewOptions = Partial<MutableViewOptions>;
|
|
13399
14014
|
|
|
14015
|
+
/**
|
|
14016
|
+
* @interface
|
|
14017
|
+
*/
|
|
13400
14018
|
declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
|
|
13401
14019
|
|
|
13402
14020
|
/**
|
|
@@ -14100,6 +14718,9 @@ declare namespace ViewEvents {
|
|
|
14100
14718
|
*/
|
|
14101
14719
|
declare type ViewEventType = ViewEvent['type'];
|
|
14102
14720
|
|
|
14721
|
+
/**
|
|
14722
|
+
* @interface
|
|
14723
|
+
*/
|
|
14103
14724
|
declare type ViewInfo = {
|
|
14104
14725
|
canNavigateBack: boolean;
|
|
14105
14726
|
canNavigateForward: boolean;
|
|
@@ -14234,6 +14855,7 @@ declare class ViewOverlay {
|
|
|
14234
14855
|
|
|
14235
14856
|
/**
|
|
14236
14857
|
* Represents the payload shape for Views that are trying to prevent an unload.
|
|
14858
|
+
* @interface
|
|
14237
14859
|
*/
|
|
14238
14860
|
declare interface ViewsPreventingUnloadPayload {
|
|
14239
14861
|
/**
|
|
@@ -14269,6 +14891,8 @@ declare type ViewState = ViewCreationOptions & {
|
|
|
14269
14891
|
};
|
|
14270
14892
|
|
|
14271
14893
|
/**
|
|
14894
|
+
* @interface
|
|
14895
|
+
*
|
|
14272
14896
|
* The statuses of views specifying which of them are trying to prevent an unload and which are not.
|
|
14273
14897
|
*/
|
|
14274
14898
|
declare interface ViewStatuses {
|
|
@@ -14284,13 +14908,22 @@ declare interface ViewStatuses {
|
|
|
14284
14908
|
|
|
14285
14909
|
/**
|
|
14286
14910
|
* Configuration for view visibility settings
|
|
14911
|
+
*
|
|
14912
|
+
* @interface
|
|
14287
14913
|
*/
|
|
14288
14914
|
declare type ViewVisibilityOption = {
|
|
14915
|
+
/**
|
|
14916
|
+
* @defaultValue false
|
|
14917
|
+
*
|
|
14918
|
+
* Enables or disables showing views when the layout splitter or a tab is being dragged.
|
|
14919
|
+
*/
|
|
14289
14920
|
enabled?: boolean;
|
|
14290
14921
|
};
|
|
14291
14922
|
|
|
14292
14923
|
/**
|
|
14293
14924
|
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
14925
|
+
*
|
|
14926
|
+
* @interface
|
|
14294
14927
|
*/
|
|
14295
14928
|
declare type ViewVisibilityOptions = {
|
|
14296
14929
|
/**
|
|
@@ -14313,8 +14946,12 @@ declare type WebContent = View_2 | _Window;
|
|
|
14313
14946
|
|
|
14314
14947
|
declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
|
|
14315
14948
|
identity: OpenFin.Identity;
|
|
14316
|
-
entityType:
|
|
14317
|
-
|
|
14949
|
+
entityType: 'window' | 'view';
|
|
14950
|
+
/**
|
|
14951
|
+
* @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14952
|
+
* @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
|
|
14953
|
+
*/
|
|
14954
|
+
constructor(wire: Transport, identity: OpenFin.Identity, entityType: 'window' | 'view');
|
|
14318
14955
|
/**
|
|
14319
14956
|
* Gets a base64 encoded image of all or part of the WebContents.
|
|
14320
14957
|
* @param options Options for the capturePage call.
|
|
@@ -16727,7 +17364,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16727
17364
|
* Calling this method will close previously opened menus.
|
|
16728
17365
|
* @experimental
|
|
16729
17366
|
* @param options
|
|
16730
|
-
*
|
|
17367
|
+
* @typeParam Data User-defined shape for data returned upon menu item click. Should be a
|
|
17368
|
+
* [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
|
|
17369
|
+
* of all possible data shapes for the entire menu, and the click handler should process
|
|
17370
|
+
* these with a "reducer" pattern.
|
|
16731
17371
|
* @example
|
|
16732
17372
|
* This could be used to show a drop down menu over views in a platform window:
|
|
16733
17373
|
* ```js
|
|
@@ -16794,7 +17434,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16794
17434
|
* })
|
|
16795
17435
|
* ```
|
|
16796
17436
|
*/
|
|
16797
|
-
showPopupMenu<
|
|
17437
|
+
showPopupMenu<Data>(options: OpenFin.ShowPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
|
|
16798
17438
|
/**
|
|
16799
17439
|
* Closes the window's popup menu, if one exists.
|
|
16800
17440
|
* @experimental
|
|
@@ -16957,6 +17597,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
16957
17597
|
|
|
16958
17598
|
declare type WindowCreationReason = 'tearout' | 'create-view-without-target' | 'api-call' | 'app-creation' | 'restore' | 'apply-snapshot';
|
|
16959
17599
|
|
|
17600
|
+
/**
|
|
17601
|
+
* @interface
|
|
17602
|
+
*/
|
|
16960
17603
|
declare type WindowDetail = {
|
|
16961
17604
|
/**
|
|
16962
17605
|
* The bottom-most coordinate of the window.
|
|
@@ -17087,6 +17730,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17087
17730
|
type: 'hotkey';
|
|
17088
17731
|
};
|
|
17089
17732
|
|
|
17733
|
+
/**
|
|
17734
|
+
* @interface
|
|
17735
|
+
*/
|
|
17090
17736
|
declare type WindowInfo = {
|
|
17091
17737
|
canNavigateBack: boolean;
|
|
17092
17738
|
canNavigateForward: boolean;
|
|
@@ -17202,6 +17848,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17202
17848
|
type: 'window-not-responding';
|
|
17203
17849
|
};
|
|
17204
17850
|
|
|
17851
|
+
/**
|
|
17852
|
+
* @interface
|
|
17853
|
+
*/
|
|
17205
17854
|
declare type WindowOptionDiff = {
|
|
17206
17855
|
[key in keyof WindowOptions]: {
|
|
17207
17856
|
oldVal: WindowOptions[key];
|
|
@@ -17275,6 +17924,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17275
17924
|
*/
|
|
17276
17925
|
declare type WindowState = 'maximized' | 'minimized' | 'normal';
|
|
17277
17926
|
|
|
17927
|
+
/**
|
|
17928
|
+
* @interface
|
|
17929
|
+
*/
|
|
17278
17930
|
declare type WindowViewsPrintOptions = {
|
|
17279
17931
|
content: 'views';
|
|
17280
17932
|
includeSelf?: boolean;
|
|
@@ -17310,6 +17962,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17310
17962
|
positioningOptions?: OpenFin.PositioningOptions;
|
|
17311
17963
|
};
|
|
17312
17964
|
|
|
17965
|
+
/**
|
|
17966
|
+
* @internal
|
|
17967
|
+
* @interface
|
|
17968
|
+
*/
|
|
17313
17969
|
declare type WorkspacePlatformOptions = {
|
|
17314
17970
|
/** Leaving this as any for now until we figure out what the shape should look like in Workspace */
|
|
17315
17971
|
[key: string]: any;
|
|
@@ -17320,6 +17976,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17320
17976
|
* @interface
|
|
17321
17977
|
*/
|
|
17322
17978
|
declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
|
|
17979
|
+
/**
|
|
17980
|
+
* Data to be written
|
|
17981
|
+
*/
|
|
17323
17982
|
data: {
|
|
17324
17983
|
text?: string;
|
|
17325
17984
|
html?: string;
|
|
@@ -17331,6 +17990,8 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17331
17990
|
* @deprecated - instead use WriteAnyClipboardRequest
|
|
17332
17991
|
*
|
|
17333
17992
|
* A generic request to write any supported data to the clipboard.
|
|
17993
|
+
*
|
|
17994
|
+
* @interface
|
|
17334
17995
|
*/
|
|
17335
17996
|
declare type WriteAnyRequestType = WriteAnyClipboardRequest;
|
|
17336
17997
|
|
|
@@ -17361,6 +18022,8 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17361
18022
|
* @deprecated - instead use OpenFin.WriteClipboardRequest
|
|
17362
18023
|
*
|
|
17363
18024
|
* A request to write data to the clipboard.
|
|
18025
|
+
*
|
|
18026
|
+
* @interface
|
|
17364
18027
|
*/
|
|
17365
18028
|
declare type WriteRequestType = WriteClipboardRequest;
|
|
17366
18029
|
|