@openfin/core 30.73.19 → 30.73.21
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/package.json +1 -1
- package/src/OpenFin.d.ts +61 -27
- package/src/OpenFin.js +2 -0
- package/src/api/events/system.d.ts +18 -3
- package/src/api/events/typedEventEmitter.d.ts +13 -0
- package/{fdc3.js → src/api/events/typedEventEmitter.js} +0 -0
- package/src/api/frame/Instance.d.ts +2 -1
- package/src/api/global-hotkey/index.d.ts +2 -1
- package/src/api/interop/InteropBroker.d.ts +6 -5
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +8 -8
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +14 -15
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +23 -23
- package/src/api/interop/fdc3/fdc3-2.0.js +9 -9
- package/src/api/interop/fdc3/fdc3.d.ts +13 -0
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +53 -0
- package/src/api/interop/fdc3/shapes/fdc3v1.js +4 -0
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +75 -0
- package/src/api/interop/fdc3/shapes/fdc3v2.js +2 -0
- package/src/api/interop/fdc3/utils.d.ts +7 -6
- package/src/api/interop/fdc3/utils.js +2 -2
- package/src/api/platform/Instance.d.ts +2 -1
- package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
- package/src/api/platform/layout/utils/bounds-observer.js +2 -2
- package/src/api/system/index.d.ts +15 -483
- package/src/api/system/index.js +51 -471
- package/src/api/view/Instance.d.ts +11 -2
- package/src/api/view/Instance.js +16 -0
- package/src/api/window/Instance.d.ts +2 -1
- package/src/fdc3.d.ts +3 -0
- package/src/mock.d.ts +1 -1
- package/src/shapes/protocol.d.ts +3 -1
- package/fdc3.ts +0 -264
|
@@ -1,489 +1,20 @@
|
|
|
1
1
|
import * as OpenFin from '../../OpenFin';
|
|
2
2
|
import { EmitterBase } from '../base';
|
|
3
3
|
import Transport from '../../transport/transport';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* AppAssetInfo interface
|
|
20
|
-
* @typedef { object } AppAssetInfo
|
|
21
|
-
* @property { string } src The URL to a zip file containing the package files (executables, dlls, etc…)
|
|
22
|
-
* @property { string } alias The name of the asset
|
|
23
|
-
* @property { string } version The version of the package
|
|
24
|
-
* @property { string } target Specify default executable to launch. This option can be overridden in launchExternalProcess
|
|
25
|
-
* @property { string } args The default command line arguments for the aforementioned target.
|
|
26
|
-
* @property { boolean } mandatory When set to true, the app will fail to load if the asset cannot be downloaded.
|
|
27
|
-
* When set to false, the app will continue to load if the asset cannot be downloaded. (Default: true)
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* AppAssetRequest interface
|
|
31
|
-
* @typedef { object } AppAssetRequest
|
|
32
|
-
* @property { string } alias The name of the asset
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* ApplicationState interface
|
|
36
|
-
* @typedef { object } ApplicationState
|
|
37
|
-
* @property { boolean } isPlatform true when the application is a Platform controller
|
|
38
|
-
* @property { boolean } isRunning true when the application is running
|
|
39
|
-
* @property { string } uuid uuid of the application
|
|
40
|
-
* @property { string } parentUuid uuid of the application that launches this application
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* @typedef { object } ClearCacheOption
|
|
44
|
-
* @summary Clear cache options.
|
|
45
|
-
* @desc These are the options required by the clearCache function.
|
|
46
|
-
*
|
|
47
|
-
* @property {boolean} appcache html5 application cache
|
|
48
|
-
* @property {boolean} cache browser data cache for html files and images
|
|
49
|
-
* @property {boolean} cookies browser cookies
|
|
50
|
-
* @property {boolean} localStorage browser data that can be used across sessions
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* CookieInfo interface
|
|
54
|
-
* @typedef { object } CookieInfo
|
|
55
|
-
* @property { string } name The name of the cookie
|
|
56
|
-
* @property { string } domain The domain of the cookie
|
|
57
|
-
* @property { string } path The path of the cookie
|
|
58
|
-
*/
|
|
59
|
-
/**
|
|
60
|
-
* CookieOption interface
|
|
61
|
-
* @typedef { object } CookieOption
|
|
62
|
-
* @property { string } name The name of the cookie
|
|
63
|
-
*/
|
|
64
|
-
/**
|
|
65
|
-
* CpuInfo interface
|
|
66
|
-
* @typedef { object } CpuInfo
|
|
67
|
-
* @property { string } model The model of the cpu
|
|
68
|
-
* @property { number } speed The number in MHz
|
|
69
|
-
* @property { Time } times The numbers of milliseconds the CPU has spent in different modes.
|
|
70
|
-
*/
|
|
71
|
-
/**
|
|
72
|
-
* CrashReporterState interface
|
|
73
|
-
* @typedef { object } CrashReporterState
|
|
74
|
-
* @property { boolean } diagnosticsMode In diagnostics mode the crash reporter will send diagnostic logs to
|
|
75
|
-
* the OpenFin reporting service on runtime shutdown
|
|
76
|
-
* @property { boolean } isRunning check if it's running
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* CrashReporterOptions interface
|
|
80
|
-
* @typedef { object } CrashReporterOptions
|
|
81
|
-
* @property { boolean } diagnosticsMode In diagnostics mode the crash reporter will send diagnostic logs to
|
|
82
|
-
* the OpenFin reporting service on runtime shutdown
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* DipRect interface
|
|
86
|
-
* @typedef { object } DipRect
|
|
87
|
-
* @property { Rect } dipRect The DIP coordinates
|
|
88
|
-
* @property { Rect } scaledRect The scale coordinates
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* DipScaleRects interface
|
|
92
|
-
* @typedef { object } DipScaleRects
|
|
93
|
-
* @property { Rect } dipRect The DIP coordinates
|
|
94
|
-
* @property { Rect } scaledRect The scale coordinates
|
|
95
|
-
*/
|
|
96
|
-
/**
|
|
97
|
-
* DownloadPreloadInfo interface
|
|
98
|
-
* @typedef { object } DownloadPreloadInfo
|
|
99
|
-
* @desc downloadPreloadScripts function return value
|
|
100
|
-
* @property { string } url url to the preload script
|
|
101
|
-
* @property { string } error error during preload script acquisition
|
|
102
|
-
* @property { boolean } succeess download operation success
|
|
103
|
-
*/
|
|
104
|
-
/**
|
|
105
|
-
* DownloadPreloadOption interface
|
|
106
|
-
* @typedef { object } DownloadPreloadOption
|
|
107
|
-
* @desc These are the options object required by the downloadPreloadScripts function
|
|
108
|
-
* @property { string } url url to the preload script
|
|
109
|
-
*/
|
|
110
|
-
/**
|
|
111
|
-
* ApplicationType interface
|
|
112
|
-
* @typedef { object } ApplicationType
|
|
113
|
-
* @property { string } type The type of the entity
|
|
114
|
-
* @property { string } uuid The uuid of the entity
|
|
115
|
-
*/
|
|
116
|
-
/**
|
|
117
|
-
* EntityInfo interface
|
|
118
|
-
* @typedef { object } EntityInfo
|
|
119
|
-
* @property { string } name The name of the entity
|
|
120
|
-
* @property { string } uuid The uuid of the entity
|
|
121
|
-
* @property { Identity } parent The parent of the entity
|
|
122
|
-
* @property { string } entityType The type of the entity
|
|
123
|
-
*/
|
|
124
|
-
/**
|
|
125
|
-
* ExternalApplicationInfo interface
|
|
126
|
-
* @typedef { object } ExternalApplicationInfo
|
|
127
|
-
* @property { Identity } parent The parent identity
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
* ExternalConnection interface
|
|
131
|
-
* @typedef { object } ExternalConnection
|
|
132
|
-
* @property { string } token The token to broker an external connection
|
|
133
|
-
* @property { string } uuid The uuid of the external connection
|
|
134
|
-
*/
|
|
135
|
-
/**
|
|
136
|
-
* ExternalProcessRequestType interface
|
|
137
|
-
* @typedef { object } ExternalProcessRequestType
|
|
138
|
-
* @property { string } path The file path to where the running application resides
|
|
139
|
-
* @property { string } arguments The argument passed to the running application
|
|
140
|
-
* @property { LaunchExternalProcessListener } listener This is described in the {LaunchExternalProcessListner} type definition
|
|
141
|
-
* @property { string } initialWindowState Initial window state after launching: 'normal' (default), 'minimized', 'maximized'
|
|
142
|
-
* @property { string } cwd current working directory
|
|
143
|
-
*/
|
|
144
|
-
/**
|
|
145
|
-
* FrameInfo interface
|
|
146
|
-
* @typedef { object } FrameInfo
|
|
147
|
-
* @property { string } name The name of the frame
|
|
148
|
-
* @property { string } uuid The uuid of the frame
|
|
149
|
-
* @property { EntityType } entityType The entity type, could be 'window', 'iframe', 'external connection' or 'unknown'
|
|
150
|
-
* @property { Identity } parent The parent identity
|
|
151
|
-
* @property { string } url URL
|
|
152
|
-
*/
|
|
153
|
-
/**
|
|
154
|
-
* GetLogRequestType interface
|
|
155
|
-
* @typedef { object } GetLogRequestType
|
|
156
|
-
* @property { string } name The name of the running application
|
|
157
|
-
* @property { number } endFile The file length of the log file
|
|
158
|
-
* @property { number } sizeLimit The set size limit of the log file
|
|
159
|
-
*/
|
|
160
|
-
/**
|
|
161
|
-
* GpuInfo interface
|
|
162
|
-
* @typedef { object } GpuInfo
|
|
163
|
-
* @property { string } name The graphics card name
|
|
164
|
-
*/
|
|
165
|
-
/**
|
|
166
|
-
* HostSpecs interface
|
|
167
|
-
* @typedef { object } HostSpecs
|
|
168
|
-
* @property { boolean } aeroGlassEnabled Value to check if Aero Glass theme is supported on Windows platforms
|
|
169
|
-
* @property { string } arch "x86" for 32-bit or "x86_64" for 64-bit
|
|
170
|
-
* @property { Array<CpuInfo> } cpus The same payload as Node's os.cpus()
|
|
171
|
-
* @property { GpuInfo } gpu The graphics card name
|
|
172
|
-
* @property { number } memory The same payload as Node's os.totalmem()
|
|
173
|
-
* @property { string } name The OS name and version/edition
|
|
174
|
-
* @property { boolean } screenSaver Value to check if screensaver is running. Supported on Windows only
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* Identity interface
|
|
178
|
-
* @typedef { object } Identity
|
|
179
|
-
* @property { string } name Optional - the name of the component
|
|
180
|
-
* @property { string } uuid Universally unique identifier of the application
|
|
181
|
-
*/
|
|
182
|
-
/**
|
|
183
|
-
* LogInfo interface
|
|
184
|
-
* @typedef { object } LogInfo
|
|
185
|
-
* @property { string } name The filename of the log
|
|
186
|
-
* @property { number } size The size of the log in bytes
|
|
187
|
-
* @property { string } date The unix time at which the log was created "Thu Jan 08 2015 14:40:30 GMT-0500 (Eastern Standard Time)"
|
|
188
|
-
*/
|
|
189
|
-
/**
|
|
190
|
-
* ManifestInfo interface
|
|
191
|
-
* @typedef { object } ManifestInfo
|
|
192
|
-
* @property { string } uuid The uuid of the application
|
|
193
|
-
* @property { string } manifestUrl The runtime manifest URL
|
|
194
|
-
*/
|
|
195
|
-
/**
|
|
196
|
-
* MonitorDetails interface
|
|
197
|
-
* @typedef { object } MonitorDetails
|
|
198
|
-
* @property { DipScaleRects } available The available DIP scale coordinates
|
|
199
|
-
* @property { Rect } availableRect The available monitor coordinates
|
|
200
|
-
* @property { string } deviceId The device id of the display
|
|
201
|
-
* @property { boolean } displayDeviceActive true if the display is active
|
|
202
|
-
* @property { number } deviceScaleFactor The device scale factor
|
|
203
|
-
* @property { Rect } monitorRect The monitor coordinates
|
|
204
|
-
* @property { string } name The name of the display
|
|
205
|
-
* @property { Point } dpi The dots per inch
|
|
206
|
-
* @property { DipScaleRects } monitor The monitor coordinates
|
|
207
|
-
*/
|
|
208
|
-
/**
|
|
209
|
-
* MonitorInfo interface
|
|
210
|
-
* @typedef { object } MonitorInfo
|
|
211
|
-
* @property { number } deviceScaleFactor The device scale factor
|
|
212
|
-
* @property { Point } dpi The dots per inch
|
|
213
|
-
* @property { Array<MonitorDetails> } nonPrimaryMonitors The array of monitor details
|
|
214
|
-
* @property { MonitorDetails } primaryMonitor The monitor details
|
|
215
|
-
* @property { string } reason always "api-query"
|
|
216
|
-
* @property { TaskBar } taskBar The taskbar on monitor
|
|
217
|
-
* @property { DipRect } virtualScreen The virtual display screen coordinates
|
|
218
|
-
*/
|
|
219
|
-
/**
|
|
220
|
-
* @typedef { verbose | info | warning | error | fatal } LogLevel
|
|
221
|
-
* @summary Log verbosity levels.
|
|
222
|
-
* @desc Describes the minimum level (inclusive) above which logs will be written
|
|
223
|
-
*
|
|
224
|
-
* @property { string } verbose all logs written
|
|
225
|
-
* @property { string } info info and above
|
|
226
|
-
* @property { string } warning warning and above
|
|
227
|
-
* @property { string } error error and above
|
|
228
|
-
* @property { string } fatal fatal only, indicates a crash is imminent
|
|
229
|
-
*/
|
|
230
|
-
/**
|
|
231
|
-
* PointTopLeft interface
|
|
232
|
-
* @typedef { object } PointTopLeft
|
|
233
|
-
* @property { number } top The mouse top position in virtual screen coordinates
|
|
234
|
-
* @property { number } left The mouse left position in virtual screen coordinates
|
|
235
|
-
*/
|
|
236
|
-
/**
|
|
237
|
-
* Point interface
|
|
238
|
-
* @typedef { object } Point
|
|
239
|
-
* @property { number } x The mouse x position
|
|
240
|
-
* @property { number } y The mouse y position
|
|
241
|
-
*/
|
|
242
|
-
/**
|
|
243
|
-
* ProcessInfo interface
|
|
244
|
-
* @typedef { object } ProcessInfo
|
|
245
|
-
* @property { number } cpuUsage The percentage of total CPU usage
|
|
246
|
-
* @property { string } name The application name
|
|
247
|
-
* @property { number } nonPagedPoolUsage The current nonpaged pool usage in bytes
|
|
248
|
-
* @property { number } pageFaultCount The number of page faults
|
|
249
|
-
* @property { number } pagedPoolUsage The current paged pool usage in bytes
|
|
250
|
-
* @property { number } pagefileUsage The total amount of memory in bytes that the memory manager has committed
|
|
251
|
-
* @property { number } peakNonPagedPoolUsage The peak nonpaged pool usage in bytes
|
|
252
|
-
* @property { number } peakPagedPoolUsage The peak paged pool usage in bytes
|
|
253
|
-
* @property { number } peakPagefileUsage The peak value in bytes of pagefileUsage during the lifetime of this process
|
|
254
|
-
* @property { number } peakWorkingSetSize The peak working set size in bytes
|
|
255
|
-
* @property { number } processId The native process identifier
|
|
256
|
-
* @property { string } uuid The application UUID
|
|
257
|
-
* @property { number } workingSetSize The current working set size (both shared and private data) in bytes
|
|
258
|
-
*/
|
|
259
|
-
/**
|
|
260
|
-
* SystemProcessInfo interface
|
|
261
|
-
* @typedef { object } SystemProcessInfo
|
|
262
|
-
* @property { ProcessDetails } browserProcess Info on browser process
|
|
263
|
-
* @property { Array<AppProcessInfo> } apps Array of apps and their process info
|
|
264
|
-
*/
|
|
265
|
-
/**
|
|
266
|
-
* AppProcessInfo interface
|
|
267
|
-
* @typedef { object } AppProcessInfo
|
|
268
|
-
* @property { string } uuid The uuid of the application
|
|
269
|
-
* @property { Array<EntityProcessDetails> } entities Array of process info for each window and view for the application
|
|
270
|
-
*/
|
|
271
|
-
/**
|
|
272
|
-
* EntityProcessDetails interface
|
|
273
|
-
* @typedef { object } EntityProcessDetails
|
|
274
|
-
* @property { string } uuid The uuid for the entity
|
|
275
|
-
* @property { string } name The name for the entity
|
|
276
|
-
* @property { string } url URL associated with the entity
|
|
277
|
-
* @property { string } entityType Type for the entity: window or view
|
|
278
|
-
* @property { number } cpuUsage The percentage of total CPU usage
|
|
279
|
-
* @property { number } nonPagedPoolUsage The current nonpaged pool usage in bytes
|
|
280
|
-
* @property { number } pageFaultCount The number of page faults
|
|
281
|
-
* @property { number } pagedPoolUsage The current paged pool usage in bytes
|
|
282
|
-
* @property { number } pagefileUsage The total amount of memory in bytes that the memory manager has committed
|
|
283
|
-
* @property { number } peakNonPagedPoolUsage The peak nonpaged pool usage in bytes
|
|
284
|
-
* @property { number } peakPagedPoolUsage The peak paged pool usage in bytes
|
|
285
|
-
* @property { number } peakPagefileUsage The peak value in bytes of pagefileUsage during the lifetime of this process
|
|
286
|
-
* @property { number } peakWorkingSetSize The peak working set size in bytes
|
|
287
|
-
* @property { number } privateSetSize The current working set size (not shared)
|
|
288
|
-
* @property { number } workingSetSize The current working set size (both shared and private data) in bytes
|
|
289
|
-
* @property { number } pid The native process identifier
|
|
290
|
-
* @property { Array<FrameProcessDetails> } frames Array of process info for each iframe corresponeding to the entity
|
|
291
|
-
*/
|
|
292
|
-
/**
|
|
293
|
-
* FrameProcessDetails interface
|
|
294
|
-
* @typedef { object } FrameProcessDetails
|
|
295
|
-
* @property { string } url Current URL associated with the process
|
|
296
|
-
* @property { string } entityType Type for the frame
|
|
297
|
-
* @property { number } cpuUsage The percentage of total CPU usage
|
|
298
|
-
* @property { number } nonPagedPoolUsage The current nonpaged pool usage in bytes
|
|
299
|
-
* @property { number } pageFaultCount The number of page faults
|
|
300
|
-
* @property { number } pagedPoolUsage The current paged pool usage in bytes
|
|
301
|
-
* @property { number } pagefileUsage The total amount of memory in bytes that the memory manager has committed
|
|
302
|
-
* @property { number } peakNonPagedPoolUsage The peak nonpaged pool usage in bytes
|
|
303
|
-
* @property { number } peakPagedPoolUsage The peak paged pool usage in bytes
|
|
304
|
-
* @property { number } peakPagefileUsage The peak value in bytes of pagefileUsage during the lifetime of this process
|
|
305
|
-
* @property { number } peakWorkingSetSize The peak working set size in bytes
|
|
306
|
-
* @property { number } workingSetSize The current working set size (both shared and private data) in bytes
|
|
307
|
-
* @property { number } pid The native process identifier
|
|
308
|
-
*/
|
|
309
|
-
/**
|
|
310
|
-
* ProcessDetails interface
|
|
311
|
-
* @typedef { object } ProcessDetails
|
|
312
|
-
* @property { number } cpuUsage The percentage of total CPU usage
|
|
313
|
-
* @property { number } nonPagedPoolUsage The current nonpaged pool usage in bytes
|
|
314
|
-
* @property { number } pageFaultCount The number of page faults
|
|
315
|
-
* @property { number } pagedPoolUsage The current paged pool usage in bytes
|
|
316
|
-
* @property { number } pagefileUsage The total amount of memory in bytes that the memory manager has committed
|
|
317
|
-
* @property { number } peakNonPagedPoolUsage The peak nonpaged pool usage in bytes
|
|
318
|
-
* @property { number } peakPagedPoolUsage The peak paged pool usage in bytes
|
|
319
|
-
* @property { number } peakPagefileUsage The peak value in bytes of pagefileUsage during the lifetime of this process
|
|
320
|
-
* @property { number } peakWorkingSetSize The peak working set size in bytes
|
|
321
|
-
* @property { number } workingSetSize The current working set size (both shared and private data) in bytes
|
|
322
|
-
* @property { number } pid The native process identifier
|
|
323
|
-
*/
|
|
324
|
-
/**
|
|
325
|
-
* ProxyConfig interface
|
|
326
|
-
* @typedef { object } ProxyConfig
|
|
327
|
-
* @property { string } proxyAddress The configured proxy address
|
|
328
|
-
* @property { number } proxyPort The configured proxy port
|
|
329
|
-
* @property { string } type The proxy Type
|
|
330
|
-
*/
|
|
331
|
-
/**
|
|
332
|
-
* ProxyInfo interface
|
|
333
|
-
* @typedef { object } ProxyInfo
|
|
334
|
-
* @property { ProxyConfig } config The proxy config
|
|
335
|
-
* @property { ProxySystemInfo } system The proxy system info
|
|
336
|
-
*/
|
|
337
|
-
/**
|
|
338
|
-
* QueryPermissionResult interface
|
|
339
|
-
* @typedef { object } QueryPermissionResult
|
|
340
|
-
* @property { string } permission The full name of a secured API
|
|
341
|
-
* @property { string } state 'granted' | 'denied' | 'unavailable'
|
|
342
|
-
* @property { boolean } granted true if permission is granted
|
|
343
|
-
* @property { object } [rawValue] The value of permission
|
|
344
|
-
*/
|
|
345
|
-
/**
|
|
346
|
-
* ProxySystemInfo interface
|
|
347
|
-
* @typedef { object } ProxySystemInfo
|
|
348
|
-
* @property { string } autoConfigUrl The auto configuration url
|
|
349
|
-
* @property { string } bypass The proxy bypass info
|
|
350
|
-
* @property { boolean } enabled Value to check if a proxy is enabled
|
|
351
|
-
* @property { string } proxy The proxy info
|
|
352
|
-
*/
|
|
353
|
-
/**
|
|
354
|
-
* Rect interface
|
|
355
|
-
* @typedef { object } Rect
|
|
356
|
-
* @property { number } bottom The bottom-most coordinate
|
|
357
|
-
* @property { number } left The left-most coordinate
|
|
358
|
-
* @property { number } right The right-most coordinate
|
|
359
|
-
* @property { number } top The top-most coordinate
|
|
360
|
-
*/
|
|
361
|
-
/**
|
|
362
|
-
* RegistryInfo interface
|
|
363
|
-
* @typedef { object } RegistryInfo
|
|
364
|
-
* @property { any } data The registry data
|
|
365
|
-
* @property { string } rootKey The registry root key
|
|
366
|
-
* @property { string } subkey The registry key
|
|
367
|
-
* @property { string } type The registry type
|
|
368
|
-
* @property { string } value The registry value name
|
|
369
|
-
*/
|
|
370
|
-
/**
|
|
371
|
-
* RuntimeDownloadOptions interface
|
|
372
|
-
* @typedef { object } RuntimeDownloadOptions
|
|
373
|
-
* @desc These are the options object required by the downloadRuntime function.
|
|
374
|
-
* @property { string } version The given version to download
|
|
375
|
-
*/
|
|
376
|
-
/**
|
|
377
|
-
* RuntimeInfo interface
|
|
378
|
-
* @typedef { object } RuntimeInfo
|
|
379
|
-
* @property { string } architecture The runtime build architecture
|
|
380
|
-
* @property { string } manifestUrl The runtime manifest URL
|
|
381
|
-
* @property { number } port The runtime websocket port
|
|
382
|
-
* @property { string } securityRealm The runtime security realm
|
|
383
|
-
* @property { string } version The runtime version
|
|
384
|
-
* @property { object } args the command line argument used to start the Runtime
|
|
385
|
-
* @property { string } chromeVersion The chrome version
|
|
386
|
-
* @property { string } electronVersion The electron version
|
|
387
|
-
*/
|
|
388
|
-
/**
|
|
389
|
-
* RVMInfo interface
|
|
390
|
-
* @typedef { object } RVMInfo
|
|
391
|
-
* @property { string } action The name of action: "get-rvm-info"
|
|
392
|
-
* @property { string } appLogDirectory The app log directory
|
|
393
|
-
* @property { string } path The path of OpenfinRVM.exe
|
|
394
|
-
* @property { string } 'start-time' The start time of RVM
|
|
395
|
-
* @property { string } version The version of RVM
|
|
396
|
-
* @property { string } 'working-dir' The working directory
|
|
397
|
-
*/
|
|
398
|
-
/**
|
|
399
|
-
* RvmLaunchOptions interface
|
|
400
|
-
* @typedef { object } RvmLaunchOptions
|
|
401
|
-
* @property { boolean } [noUi] true if no UI when launching
|
|
402
|
-
* @property { object } [userAppConfigArgs] The user app configuration args
|
|
403
|
-
* @property { number } [timeToLive] Timeout in seconds until RVM launch request expires
|
|
404
|
-
*/
|
|
405
|
-
/**
|
|
406
|
-
* ServiceIdentifier interface
|
|
407
|
-
* @typedef { object } ServiceIdentifier
|
|
408
|
-
* @property { string } name The name of the service
|
|
409
|
-
*/
|
|
410
|
-
/**
|
|
411
|
-
* ServiceConfiguration interface
|
|
412
|
-
* @typedef { object } ServiceConfiguration
|
|
413
|
-
* @property { object } config The service configuration
|
|
414
|
-
* @property { string } name The name of the service
|
|
415
|
-
*/
|
|
416
|
-
/**
|
|
417
|
-
* ShortCutConfig interface
|
|
418
|
-
* @typedef { object } ShortCutConfig
|
|
419
|
-
* @property { boolean } desktop true if application has a shortcut on the desktop
|
|
420
|
-
* @property { boolean } startMenu true if application has shortcut in the start menu
|
|
421
|
-
* @property { boolean } systemStartup true if application will be launched on system startup
|
|
422
|
-
*/
|
|
423
|
-
/**
|
|
424
|
-
* SubOptions interface
|
|
425
|
-
* @typedef { Object } SubOptions
|
|
426
|
-
* @property { number } timestamp The event timestamp
|
|
427
|
-
*/
|
|
428
|
-
/**
|
|
429
|
-
* TaskBar interface
|
|
430
|
-
* @typedef { object } TaskBar
|
|
431
|
-
* @property { string } edge which edge of a monitor the taskbar is on
|
|
432
|
-
* @property { Rect } rect The taskbar coordinates
|
|
433
|
-
*/
|
|
434
|
-
/**
|
|
435
|
-
* TerminateExternalRequestType interface
|
|
436
|
-
* @typedef { object } TerminateExternalRequestType
|
|
437
|
-
* @property { string } uuid The uuid of the running application
|
|
438
|
-
* @property { number } timeout Time out period before the running application terminates
|
|
439
|
-
* @property { boolean } killtree Value to terminate the running application
|
|
440
|
-
*/
|
|
441
|
-
/**
|
|
442
|
-
* Time interface
|
|
443
|
-
* @typedef { object } Time
|
|
444
|
-
* @property { number } user The number of milliseconds the CPU has spent in user mode
|
|
445
|
-
* @property { number } nice The number of milliseconds the CPU has spent in nice mode
|
|
446
|
-
* @property { number } sys The number of milliseconds the CPU has spent in sys mode
|
|
447
|
-
* @property { number } idle The number of milliseconds the CPU has spent in idle mode
|
|
448
|
-
* @property { number } irq The number of milliseconds the CPU has spent in irq mode
|
|
449
|
-
*/
|
|
450
|
-
/**
|
|
451
|
-
* TrayInfo interface
|
|
452
|
-
* @typedef { object } TrayInfo
|
|
453
|
-
* @property { Bounds } bounds The bound of tray icon in virtual screen pixels
|
|
454
|
-
* @property { MonitorInfo } monitorInfo Please see fin.System.getMonitorInfo for more information
|
|
455
|
-
* @property { number } x copy of bounds.x
|
|
456
|
-
* @property { number } y copy of bounds.y
|
|
457
|
-
*/
|
|
458
|
-
/**
|
|
459
|
-
* WindowDetail interface
|
|
460
|
-
* @typedef { object } WindowDetail
|
|
461
|
-
* @property { number } bottom The bottom-most coordinate of the window
|
|
462
|
-
* @property { number } height The height of the window
|
|
463
|
-
* @property { boolean } isShowing Value to check if the window is showing
|
|
464
|
-
* @property { number } left The left-most coordinate of the window
|
|
465
|
-
* @property { string } name The name of the window
|
|
466
|
-
* @property { number } right The right-most coordinate of the window
|
|
467
|
-
* @property { string } state The window state
|
|
468
|
-
* @property { number } top The top-most coordinate of the window
|
|
469
|
-
* @property { number } width The width of the window
|
|
470
|
-
*/
|
|
471
|
-
/**
|
|
472
|
-
* ApplicationWindowInfo interface
|
|
473
|
-
* @typedef { object } ApplicationWindowInfo
|
|
474
|
-
* @property { Array<WindowDetail> } childWindows The array of child windows details
|
|
475
|
-
* @property { WindowDetail } mainWindow The main window detail
|
|
476
|
-
* @property { string } uuid The uuid of the application
|
|
477
|
-
*/
|
|
478
|
-
/**
|
|
479
|
-
* CertifiedAppInfo interface
|
|
480
|
-
* @typedef { object } CertifiedAppInfo
|
|
481
|
-
* @property { boolean } isRunning true if the app is running
|
|
482
|
-
* @property { boolean } [isOptedIntoCertfiedApp] true if the app has opted into certification
|
|
483
|
-
* @property { boolean } [isCertified] true if the app is certified
|
|
484
|
-
* @property { boolean } [isSSLCertified] true if the app manifest's SSL certificate is valid
|
|
485
|
-
* @property { boolean } [isPresentInAppDirectory] true if the app is present in the OpenFin app directory
|
|
486
|
-
*/
|
|
4
|
+
declare type Identity = OpenFin.Identity;
|
|
5
|
+
declare type ProxyInfo = OpenFin.ProxyInfo;
|
|
6
|
+
declare type ProxyConfig = OpenFin.ProxyConfig;
|
|
7
|
+
declare type SystemEvents = OpenFin.SystemEvents;
|
|
8
|
+
declare type InstalledApps = OpenFin.InstalledApps;
|
|
9
|
+
declare type LogInfo = OpenFin.LogInfo;
|
|
10
|
+
declare type LogLevel = OpenFin.LogLevel;
|
|
11
|
+
declare type GetLogRequestType = OpenFin.GetLogRequestType;
|
|
12
|
+
declare type RegistryInfo = OpenFin.RegistryInfo;
|
|
13
|
+
declare type EntityInfo = OpenFin.EntityInfo;
|
|
14
|
+
declare type Entity = OpenFin.ApplicationType;
|
|
15
|
+
declare type ApplicationState = OpenFin.ApplicationState;
|
|
16
|
+
declare type ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
|
|
17
|
+
declare type PrinterInfo = OpenFin.PrinterInfo;
|
|
487
18
|
/**
|
|
488
19
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
|
489
20
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
|
@@ -968,3 +499,4 @@ export default class System extends EmitterBase<SystemEvents> {
|
|
|
968
499
|
*/
|
|
969
500
|
getPrinters(): Promise<PrinterInfo[]>;
|
|
970
501
|
}
|
|
502
|
+
export {};
|