@openfin/core 30.73.5 → 30.73.7

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.
Files changed (158) hide show
  1. package/OpenFin.d.ts +1 -1729
  2. package/fin.d.ts +3 -4
  3. package/package.json +1 -1
  4. package/src/GlobalOpenFin.d.ts +4 -0
  5. package/src/OpenFin.d.ts +2938 -0
  6. package/src/OpenFin.js +4 -0
  7. package/src/api/application/Factory.d.ts +2 -0
  8. package/src/api/application/Factory.js +4 -3
  9. package/src/api/application/Instance.d.ts +3 -1
  10. package/src/api/application/Instance.js +1 -0
  11. package/src/api/application/index.js +7 -3
  12. package/src/api/base.d.ts +19 -15
  13. package/src/api/base.js +20 -22
  14. package/src/api/clipboard/index.d.ts +2 -0
  15. package/src/api/clipboard/index.js +1 -0
  16. package/src/api/events/application.d.ts +66 -56
  17. package/src/api/events/base.d.ts +33 -15
  18. package/src/api/events/channel.d.ts +13 -8
  19. package/src/api/events/eventAggregator.js +1 -9
  20. package/src/api/events/externalApplication.d.ts +10 -5
  21. package/src/api/events/frame.d.ts +13 -7
  22. package/src/api/events/globalHotkey.d.ts +11 -10
  23. package/src/api/events/platform.d.ts +10 -16
  24. package/src/api/events/system.d.ts +48 -18
  25. package/src/api/events/typedEventEmitter.d.ts +20 -0
  26. package/src/api/events/typedEventEmitter.js +2 -0
  27. package/src/api/events/view.d.ts +38 -54
  28. package/src/api/events/webcontents.d.ts +55 -28
  29. package/src/api/events/window.d.ts +148 -134
  30. package/src/api/external-application/Factory.d.ts +1 -0
  31. package/src/api/external-application/Instance.d.ts +2 -1
  32. package/src/api/external-application/index.js +7 -3
  33. package/src/api/fin.d.ts +3 -1
  34. package/src/api/fin.js +2 -2
  35. package/src/api/frame/Factory.d.ts +1 -0
  36. package/src/api/frame/Factory.js +2 -2
  37. package/src/api/frame/Instance.d.ts +3 -1
  38. package/src/api/frame/index.js +7 -3
  39. package/src/api/global-hotkey/index.d.ts +2 -2
  40. package/src/api/global-hotkey/index.js +6 -0
  41. package/src/api/interappbus/channel/channel.d.ts +6 -4
  42. package/src/api/interappbus/channel/channels-docs.d.ts +22 -0
  43. package/src/api/interappbus/channel/channels-docs.js +22 -0
  44. package/src/api/interappbus/channel/client.d.ts +2 -1
  45. package/src/api/interappbus/channel/client.js +24 -26
  46. package/src/api/interappbus/channel/connection-manager.d.ts +1 -0
  47. package/src/api/interappbus/channel/connection-manager.js +30 -28
  48. package/src/api/interappbus/channel/index.d.ts +6 -4
  49. package/src/api/interappbus/channel/index.js +34 -19
  50. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +3 -1
  51. package/src/api/interappbus/channel/protocols/classic/strategy.js +21 -22
  52. package/src/api/interappbus/channel/protocols/index.d.ts +3 -0
  53. package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +1 -1
  54. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +3 -1
  55. package/src/api/interappbus/channel/protocols/rtc/endpoint.js +25 -27
  56. package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -1
  57. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +3 -1
  58. package/src/api/interappbus/channel/protocols/rtc/strategy.js +29 -31
  59. package/src/api/interappbus/channel/protocols/strategy.d.ts +3 -1
  60. package/src/api/interappbus/channel/provider.d.ts +8 -4
  61. package/src/api/interappbus/channel/provider.js +140 -139
  62. package/src/api/interappbus/index.js +1 -1
  63. package/src/api/interop/Factory.d.ts +2 -0
  64. package/src/api/interop/Factory.js +20 -2
  65. package/src/api/interop/InteropBroker.d.ts +62 -39
  66. package/src/api/interop/InteropBroker.js +114 -55
  67. package/src/api/interop/InteropClient.d.ts +9 -0
  68. package/src/api/interop/InteropClient.js +46 -40
  69. package/src/api/interop/SessionContextGroupBroker.d.ts +1 -0
  70. package/src/api/interop/SessionContextGroupClient.d.ts +1 -0
  71. package/src/api/interop/SessionContextGroupClient.js +22 -24
  72. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +9 -7
  73. package/src/api/interop/fdc3/PrivateChannelClient.js +6 -6
  74. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +1 -0
  75. package/src/api/interop/fdc3/fdc3-1.2.d.ts +14 -13
  76. package/src/api/interop/fdc3/fdc3-1.2.js +3 -14
  77. package/src/api/interop/fdc3/fdc3-2.0.d.ts +24 -21
  78. package/src/api/interop/fdc3/fdc3-2.0.js +27 -27
  79. package/src/api/interop/fdc3/fdc3.d.ts +12 -0
  80. package/src/api/interop/fdc3/overrideCheck.d.ts +4 -0
  81. package/src/api/interop/fdc3/overrideCheck.js +32 -0
  82. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +53 -0
  83. package/src/api/interop/fdc3/shapes/fdc3v1.js +4 -0
  84. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +75 -0
  85. package/src/api/interop/fdc3/shapes/fdc3v2.js +2 -0
  86. package/src/api/interop/fdc3/utils.d.ts +15 -5
  87. package/src/api/interop/fdc3/utils.js +29 -11
  88. package/src/api/interop/fdc3/versions.d.ts +1 -0
  89. package/src/api/interop/fdc3/versions.js +2 -0
  90. package/src/api/interop/index.js +7 -3
  91. package/src/api/interop/utils.d.ts +2 -0
  92. package/src/api/interop/utils.js +29 -15
  93. package/src/api/me.d.ts +3 -1
  94. package/src/api/platform/Factory.d.ts +6 -0
  95. package/src/api/platform/Factory.js +14 -5
  96. package/src/api/platform/Instance.d.ts +18 -3
  97. package/src/api/platform/Instance.js +30 -13
  98. package/src/api/platform/common-utils.d.ts +2 -1
  99. package/src/api/platform/index.js +7 -3
  100. package/src/api/platform/layout/Factory.d.ts +7 -1
  101. package/src/api/platform/layout/Factory.js +22 -20
  102. package/src/api/platform/layout/Instance.d.ts +6 -4
  103. package/src/api/platform/layout/Instance.js +2 -3
  104. package/src/api/platform/layout/controllers/splitter-controller.js +1 -1
  105. package/src/api/platform/layout/controllers/tab-drag-controller.d.ts +1 -0
  106. package/src/api/platform/layout/controllers/tab-drag-controller.js +1 -1
  107. package/src/api/platform/layout/index.js +7 -3
  108. package/src/api/platform/layout/shapes.d.ts +3 -1
  109. package/src/api/platform/layout/utils/bounds-observer.d.ts +1 -1
  110. package/src/api/platform/layout/utils/bounds-observer.js +7 -5
  111. package/src/api/platform/layout/utils/view-overlay.d.ts +1 -0
  112. package/src/api/platform/provider.d.ts +162 -0
  113. package/src/api/platform/provider.js +2 -0
  114. package/src/api/snapshot-source/Factory.d.ts +2 -0
  115. package/src/api/snapshot-source/Factory.js +2 -1
  116. package/src/api/snapshot-source/Instance.d.ts +1 -0
  117. package/src/api/snapshot-source/Instance.js +33 -35
  118. package/src/api/snapshot-source/index.js +7 -3
  119. package/src/api/snapshot-source/utils.d.ts +1 -0
  120. package/src/api/snapshot-source/utils.js +2 -1
  121. package/src/api/system/index.d.ts +76 -16
  122. package/src/api/system/index.js +127 -3
  123. package/src/api/view/Factory.d.ts +1 -0
  124. package/src/api/view/Factory.js +2 -2
  125. package/src/api/view/Instance.d.ts +17 -3
  126. package/src/api/view/Instance.js +20 -0
  127. package/src/api/view/index.js +7 -3
  128. package/src/api/webcontents/main.d.ts +20 -5
  129. package/src/api/webcontents/main.js +10 -0
  130. package/src/api/window/Factory.d.ts +1 -0
  131. package/src/api/window/Factory.js +2 -2
  132. package/src/api/window/Instance.d.ts +26 -3
  133. package/src/api/window/Instance.js +26 -1
  134. package/src/api/window/index.js +7 -3
  135. package/src/browser.d.ts +4 -4
  136. package/src/environment/browser.d.ts +3 -1
  137. package/src/environment/environment.d.ts +3 -1
  138. package/src/environment/node-env.d.ts +3 -1
  139. package/src/environment/node-env.js +2 -2
  140. package/src/environment/openfin-env.d.ts +3 -1
  141. package/src/environment/openfin-env.js +15 -17
  142. package/src/fdc3.d.ts +3 -0
  143. package/src/fdc3.js +1 -1
  144. package/src/mock.d.ts +2 -2
  145. package/src/mock.js +3 -3
  146. package/src/namespaces.d.ts +21 -0
  147. package/src/namespaces.js +24 -0
  148. package/src/shapes/WebOptions.d.ts +1 -0
  149. package/src/shapes/WindowOptions.d.ts +1 -0
  150. package/src/shapes/protocol.d.ts +34 -26
  151. package/src/transport/transport.d.ts +6 -5
  152. package/src/transport/transport.js +26 -28
  153. package/src/transport/wire.d.ts +9 -7
  154. package/src/util/http.d.ts +1 -1
  155. package/src/util/http.js +16 -11
  156. package/src/util/inaccessibleObject.d.ts +2 -0
  157. package/src/util/inaccessibleObject.js +49 -0
  158. package/src/util/normalize-config.js +5 -5
@@ -1,20 +1,21 @@
1
+ import type * as OpenFin from '../../OpenFin';
1
2
  import { EmitterBase } from '../base';
2
3
  import Transport from '../../transport/transport';
3
- import Identity = OpenFin.Identity;
4
- import ProxyInfo = OpenFin.ProxyInfo;
5
- import ProxyConfig = OpenFin.ProxyConfig;
6
- import SystemEvents = OpenFin.SystemEvents;
7
- import InstalledApps = OpenFin.InstalledApps;
8
- import LogInfo = OpenFin.LogInfo;
9
- import LogLevel = OpenFin.LogLevel;
10
- import GetLogRequestType = OpenFin.GetLogRequestType;
11
- import RegistryInfo = OpenFin.RegistryInfo;
12
- import EntityInfo = OpenFin.EntityInfo;
13
- import Entity = OpenFin.ApplicationType;
14
- import ApplicationState = OpenFin.ApplicationState;
15
- import ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
16
- import PrinterInfo = OpenFin.PrinterInfo;
4
+ declare type Identity = OpenFin.Identity;
5
+ declare type ProxyInfo = OpenFin.ProxyInfo;
6
+ declare type ProxyConfig = OpenFin.ProxyConfig;
7
+ declare type InstalledApps = OpenFin.InstalledApps;
8
+ declare type LogInfo = OpenFin.LogInfo;
9
+ declare type LogLevel = OpenFin.LogLevel;
10
+ declare type GetLogRequestType = OpenFin.GetLogRequestType;
11
+ declare type RegistryInfo = OpenFin.RegistryInfo;
12
+ declare type EntityInfo = OpenFin.EntityInfo;
13
+ declare type Entity = OpenFin.ApplicationType;
14
+ declare type ApplicationState = OpenFin.ApplicationState;
15
+ declare type ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
16
+ declare type PrinterInfo = OpenFin.PrinterInfo;
17
17
  /**
18
+ * @PORTED
18
19
  * AppAssetInfo interface
19
20
  * @typedef { object } AppAssetInfo
20
21
  * @property { string } src The URL to a zip file containing the package files (executables, dlls, etc…)
@@ -26,11 +27,13 @@ import PrinterInfo = OpenFin.PrinterInfo;
26
27
  * When set to false, the app will continue to load if the asset cannot be downloaded. (Default: true)
27
28
  */
28
29
  /**
30
+ * @PORTED
29
31
  * AppAssetRequest interface
30
32
  * @typedef { object } AppAssetRequest
31
33
  * @property { string } alias The name of the asset
32
34
  */
33
35
  /**
36
+ * @PORTED
34
37
  * ApplicationState interface
35
38
  * @typedef { object } ApplicationState
36
39
  * @property { boolean } isPlatform true when the application is a Platform controller
@@ -39,6 +42,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
39
42
  * @property { string } parentUuid uuid of the application that launches this application
40
43
  */
41
44
  /**
45
+ * @PORTED
42
46
  * @typedef { object } ClearCacheOption
43
47
  * @summary Clear cache options.
44
48
  * @desc These are the options required by the clearCache function.
@@ -49,6 +53,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
49
53
  * @property {boolean} localStorage browser data that can be used across sessions
50
54
  */
51
55
  /**
56
+ * @REMOVED
52
57
  * CookieInfo interface
53
58
  * @typedef { object } CookieInfo
54
59
  * @property { string } name The name of the cookie
@@ -56,11 +61,13 @@ import PrinterInfo = OpenFin.PrinterInfo;
56
61
  * @property { string } path The path of the cookie
57
62
  */
58
63
  /**
64
+ * @REMOVED
59
65
  * CookieOption interface
60
66
  * @typedef { object } CookieOption
61
67
  * @property { string } name The name of the cookie
62
68
  */
63
69
  /**
70
+ * @PORTED
64
71
  * CpuInfo interface
65
72
  * @typedef { object } CpuInfo
66
73
  * @property { string } model The model of the cpu
@@ -68,6 +75,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
68
75
  * @property { Time } times The numbers of milliseconds the CPU has spent in different modes.
69
76
  */
70
77
  /**
78
+ * @PORTED
71
79
  * CrashReporterState interface
72
80
  * @typedef { object } CrashReporterState
73
81
  * @property { boolean } diagnosticsMode In diagnostics mode the crash reporter will send diagnostic logs to
@@ -75,24 +83,28 @@ import PrinterInfo = OpenFin.PrinterInfo;
75
83
  * @property { boolean } isRunning check if it's running
76
84
  */
77
85
  /**
86
+ * @PORTED
78
87
  * CrashReporterOptions interface
79
88
  * @typedef { object } CrashReporterOptions
80
89
  * @property { boolean } diagnosticsMode In diagnostics mode the crash reporter will send diagnostic logs to
81
90
  * the OpenFin reporting service on runtime shutdown
82
91
  */
83
92
  /**
93
+ * @REMOVED
84
94
  * DipRect interface
85
95
  * @typedef { object } DipRect
86
96
  * @property { Rect } dipRect The DIP coordinates
87
97
  * @property { Rect } scaledRect The scale coordinates
88
98
  */
89
99
  /**
100
+ * @REMOVED
90
101
  * DipScaleRects interface
91
102
  * @typedef { object } DipScaleRects
92
103
  * @property { Rect } dipRect The DIP coordinates
93
104
  * @property { Rect } scaledRect The scale coordinates
94
105
  */
95
106
  /**
107
+ * @PORTED
96
108
  * DownloadPreloadInfo interface
97
109
  * @typedef { object } DownloadPreloadInfo
98
110
  * @desc downloadPreloadScripts function return value
@@ -101,18 +113,21 @@ import PrinterInfo = OpenFin.PrinterInfo;
101
113
  * @property { boolean } succeess download operation success
102
114
  */
103
115
  /**
116
+ * @PORTED
104
117
  * DownloadPreloadOption interface
105
118
  * @typedef { object } DownloadPreloadOption
106
119
  * @desc These are the options object required by the downloadPreloadScripts function
107
120
  * @property { string } url url to the preload script
108
121
  */
109
122
  /**
123
+ * @REMOVED
110
124
  * ApplicationType interface
111
125
  * @typedef { object } ApplicationType
112
126
  * @property { string } type The type of the entity
113
127
  * @property { string } uuid The uuid of the entity
114
128
  */
115
129
  /**
130
+ * @REMOVED
116
131
  * EntityInfo interface
117
132
  * @typedef { object } EntityInfo
118
133
  * @property { string } name The name of the entity
@@ -121,17 +136,20 @@ import PrinterInfo = OpenFin.PrinterInfo;
121
136
  * @property { string } entityType The type of the entity
122
137
  */
123
138
  /**
139
+ * @REMOVED
124
140
  * ExternalApplicationInfo interface
125
141
  * @typedef { object } ExternalApplicationInfo
126
142
  * @property { Identity } parent The parent identity
127
143
  */
128
144
  /**
145
+ * @PORTED
129
146
  * ExternalConnection interface
130
147
  * @typedef { object } ExternalConnection
131
148
  * @property { string } token The token to broker an external connection
132
149
  * @property { string } uuid The uuid of the external connection
133
150
  */
134
151
  /**
152
+ * @PORTED
135
153
  * ExternalProcessRequestType interface
136
154
  * @typedef { object } ExternalProcessRequestType
137
155
  * @property { string } path The file path to where the running application resides
@@ -141,14 +159,17 @@ import PrinterInfo = OpenFin.PrinterInfo;
141
159
  * @property { string } cwd current working directory
142
160
  */
143
161
  /**
162
+ * @REMOVED
144
163
  * FrameInfo interface
145
164
  * @typedef { object } FrameInfo
146
165
  * @property { string } name The name of the frame
147
166
  * @property { string } uuid The uuid of the frame
148
167
  * @property { EntityType } entityType The entity type, could be 'window', 'iframe', 'external connection' or 'unknown'
149
168
  * @property { Identity } parent The parent identity
169
+ * @property { string } url URL
150
170
  */
151
171
  /**
172
+ * @PORTED
152
173
  * GetLogRequestType interface
153
174
  * @typedef { object } GetLogRequestType
154
175
  * @property { string } name The name of the running application
@@ -156,11 +177,13 @@ import PrinterInfo = OpenFin.PrinterInfo;
156
177
  * @property { number } sizeLimit The set size limit of the log file
157
178
  */
158
179
  /**
180
+ * @REMOVED
159
181
  * GpuInfo interface
160
182
  * @typedef { object } GpuInfo
161
183
  * @property { string } name The graphics card name
162
184
  */
163
185
  /**
186
+ * @PORTED
164
187
  * HostSpecs interface
165
188
  * @typedef { object } HostSpecs
166
189
  * @property { boolean } aeroGlassEnabled Value to check if Aero Glass theme is supported on Windows platforms
@@ -172,12 +195,14 @@ import PrinterInfo = OpenFin.PrinterInfo;
172
195
  * @property { boolean } screenSaver Value to check if screensaver is running. Supported on Windows only
173
196
  */
174
197
  /**
198
+ * @PORTED
175
199
  * Identity interface
176
200
  * @typedef { object } Identity
177
201
  * @property { string } name Optional - the name of the component
178
202
  * @property { string } uuid Universally unique identifier of the application
179
203
  */
180
204
  /**
205
+ * @PORTED
181
206
  * LogInfo interface
182
207
  * @typedef { object } LogInfo
183
208
  * @property { string } name The filename of the log
@@ -185,12 +210,14 @@ import PrinterInfo = OpenFin.PrinterInfo;
185
210
  * @property { string } date The unix time at which the log was created "Thu Jan 08 2015 14:40:30 GMT-0500 (Eastern Standard Time)"
186
211
  */
187
212
  /**
213
+ * @PORTED
188
214
  * ManifestInfo interface
189
215
  * @typedef { object } ManifestInfo
190
216
  * @property { string } uuid The uuid of the application
191
217
  * @property { string } manifestUrl The runtime manifest URL
192
218
  */
193
219
  /**
220
+ * @PORTED
194
221
  * MonitorDetails interface
195
222
  * @typedef { object } MonitorDetails
196
223
  * @property { DipScaleRects } available The available DIP scale coordinates
@@ -204,6 +231,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
204
231
  * @property { DipScaleRects } monitor The monitor coordinates
205
232
  */
206
233
  /**
234
+ * @PORTED
207
235
  * MonitorInfo interface
208
236
  * @typedef { object } MonitorInfo
209
237
  * @property { number } deviceScaleFactor The device scale factor
@@ -215,6 +243,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
215
243
  * @property { DipRect } virtualScreen The virtual display screen coordinates
216
244
  */
217
245
  /**
246
+ * @PORTED
218
247
  * @typedef { verbose | info | warning | error | fatal } LogLevel
219
248
  * @summary Log verbosity levels.
220
249
  * @desc Describes the minimum level (inclusive) above which logs will be written
@@ -226,18 +255,21 @@ import PrinterInfo = OpenFin.PrinterInfo;
226
255
  * @property { string } fatal fatal only, indicates a crash is imminent
227
256
  */
228
257
  /**
258
+ * @PORTED
229
259
  * PointTopLeft interface
230
260
  * @typedef { object } PointTopLeft
231
261
  * @property { number } top The mouse top position in virtual screen coordinates
232
262
  * @property { number } left The mouse left position in virtual screen coordinates
233
263
  */
234
264
  /**
265
+ * @PORTED
235
266
  * Point interface
236
267
  * @typedef { object } Point
237
268
  * @property { number } x The mouse x position
238
269
  * @property { number } y The mouse y position
239
270
  */
240
271
  /**
272
+ * @REMOVED
241
273
  * ProcessInfo interface
242
274
  * @typedef { object } ProcessInfo
243
275
  * @property { number } cpuUsage The percentage of total CPU usage
@@ -255,18 +287,21 @@ import PrinterInfo = OpenFin.PrinterInfo;
255
287
  * @property { number } workingSetSize The current working set size (both shared and private data) in bytes
256
288
  */
257
289
  /**
290
+ * @REMOVED
258
291
  * SystemProcessInfo interface
259
292
  * @typedef { object } SystemProcessInfo
260
293
  * @property { ProcessDetails } browserProcess Info on browser process
261
294
  * @property { Array<AppProcessInfo> } apps Array of apps and their process info
262
295
  */
263
296
  /**
297
+ * @PORTED
264
298
  * AppProcessInfo interface
265
299
  * @typedef { object } AppProcessInfo
266
300
  * @property { string } uuid The uuid of the application
267
301
  * @property { Array<EntityProcessDetails> } entities Array of process info for each window and view for the application
268
302
  */
269
303
  /**
304
+ * @REMOVED
270
305
  * EntityProcessDetails interface
271
306
  * @typedef { object } EntityProcessDetails
272
307
  * @property { string } uuid The uuid for the entity
@@ -288,6 +323,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
288
323
  * @property { Array<FrameProcessDetails> } frames Array of process info for each iframe corresponeding to the entity
289
324
  */
290
325
  /**
326
+ * @PORTED
291
327
  * FrameProcessDetails interface
292
328
  * @typedef { object } FrameProcessDetails
293
329
  * @property { string } url Current URL associated with the process
@@ -305,6 +341,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
305
341
  * @property { number } pid The native process identifier
306
342
  */
307
343
  /**
344
+ * @PORTED
308
345
  * ProcessDetails interface
309
346
  * @typedef { object } ProcessDetails
310
347
  * @property { number } cpuUsage The percentage of total CPU usage
@@ -320,6 +357,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
320
357
  * @property { number } pid The native process identifier
321
358
  */
322
359
  /**
360
+ * @PORTED
323
361
  * ProxyConfig interface
324
362
  * @typedef { object } ProxyConfig
325
363
  * @property { string } proxyAddress The configured proxy address
@@ -327,12 +365,14 @@ import PrinterInfo = OpenFin.PrinterInfo;
327
365
  * @property { string } type The proxy Type
328
366
  */
329
367
  /**
368
+ * @REMOVED
330
369
  * ProxyInfo interface
331
370
  * @typedef { object } ProxyInfo
332
371
  * @property { ProxyConfig } config The proxy config
333
372
  * @property { ProxySystemInfo } system The proxy system info
334
373
  */
335
374
  /**
375
+ * @PORTED
336
376
  * QueryPermissionResult interface
337
377
  * @typedef { object } QueryPermissionResult
338
378
  * @property { string } permission The full name of a secured API
@@ -341,6 +381,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
341
381
  * @property { object } [rawValue] The value of permission
342
382
  */
343
383
  /**
384
+ * @PORTED
344
385
  * ProxySystemInfo interface
345
386
  * @typedef { object } ProxySystemInfo
346
387
  * @property { string } autoConfigUrl The auto configuration url
@@ -349,6 +390,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
349
390
  * @property { string } proxy The proxy info
350
391
  */
351
392
  /**
393
+ * @REMOVED
352
394
  * Rect interface
353
395
  * @typedef { object } Rect
354
396
  * @property { number } bottom The bottom-most coordinate
@@ -357,6 +399,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
357
399
  * @property { number } top The top-most coordinate
358
400
  */
359
401
  /**
402
+ * @REMOVED
360
403
  * RegistryInfo interface
361
404
  * @typedef { object } RegistryInfo
362
405
  * @property { any } data The registry data
@@ -366,12 +409,14 @@ import PrinterInfo = OpenFin.PrinterInfo;
366
409
  * @property { string } value The registry value name
367
410
  */
368
411
  /**
412
+ * @PORTED
369
413
  * RuntimeDownloadOptions interface
370
414
  * @typedef { object } RuntimeDownloadOptions
371
415
  * @desc These are the options object required by the downloadRuntime function.
372
416
  * @property { string } version The given version to download
373
417
  */
374
418
  /**
419
+ * @PORTED
375
420
  * RuntimeInfo interface
376
421
  * @typedef { object } RuntimeInfo
377
422
  * @property { string } architecture The runtime build architecture
@@ -384,6 +429,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
384
429
  * @property { string } electronVersion The electron version
385
430
  */
386
431
  /**
432
+ * @PORTED
387
433
  * RVMInfo interface
388
434
  * @typedef { object } RVMInfo
389
435
  * @property { string } action The name of action: "get-rvm-info"
@@ -394,24 +440,29 @@ import PrinterInfo = OpenFin.PrinterInfo;
394
440
  * @property { string } 'working-dir' The working directory
395
441
  */
396
442
  /**
443
+ * @PORTED
397
444
  * RvmLaunchOptions interface
398
445
  * @typedef { object } RvmLaunchOptions
399
446
  * @property { boolean } [noUi] true if no UI when launching
400
447
  * @property { object } [userAppConfigArgs] The user app configuration args
401
448
  * @property { number } [timeToLive] Timeout in seconds until RVM launch request expires
449
+ * @property { Function } [subscribe] Called whenever app version resolver events occur.
402
450
  */
403
451
  /**
452
+ * @PORTED
404
453
  * ServiceIdentifier interface
405
454
  * @typedef { object } ServiceIdentifier
406
455
  * @property { string } name The name of the service
407
456
  */
408
457
  /**
458
+ * @PORTED
409
459
  * ServiceConfiguration interface
410
460
  * @typedef { object } ServiceConfiguration
411
461
  * @property { object } config The service configuration
412
462
  * @property { string } name The name of the service
413
463
  */
414
464
  /**
465
+ * @PORTED
415
466
  * ShortCutConfig interface
416
467
  * @typedef { object } ShortCutConfig
417
468
  * @property { boolean } desktop true if application has a shortcut on the desktop
@@ -419,17 +470,20 @@ import PrinterInfo = OpenFin.PrinterInfo;
419
470
  * @property { boolean } systemStartup true if application will be launched on system startup
420
471
  */
421
472
  /**
473
+ * @PORTED
422
474
  * SubOptions interface
423
475
  * @typedef { Object } SubOptions
424
476
  * @property { number } timestamp The event timestamp
425
477
  */
426
478
  /**
479
+ * @PORTED
427
480
  * TaskBar interface
428
481
  * @typedef { object } TaskBar
429
482
  * @property { string } edge which edge of a monitor the taskbar is on
430
483
  * @property { Rect } rect The taskbar coordinates
431
484
  */
432
485
  /**
486
+ * @PORTED
433
487
  * TerminateExternalRequestType interface
434
488
  * @typedef { object } TerminateExternalRequestType
435
489
  * @property { string } uuid The uuid of the running application
@@ -437,6 +491,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
437
491
  * @property { boolean } killtree Value to terminate the running application
438
492
  */
439
493
  /**
494
+ * @PORTED
440
495
  * Time interface
441
496
  * @typedef { object } Time
442
497
  * @property { number } user The number of milliseconds the CPU has spent in user mode
@@ -446,6 +501,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
446
501
  * @property { number } irq The number of milliseconds the CPU has spent in irq mode
447
502
  */
448
503
  /**
504
+ * @PORTED
449
505
  * TrayInfo interface
450
506
  * @typedef { object } TrayInfo
451
507
  * @property { Bounds } bounds The bound of tray icon in virtual screen pixels
@@ -454,6 +510,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
454
510
  * @property { number } y copy of bounds.y
455
511
  */
456
512
  /**
513
+ * @PORTED
457
514
  * WindowDetail interface
458
515
  * @typedef { object } WindowDetail
459
516
  * @property { number } bottom The bottom-most coordinate of the window
@@ -467,6 +524,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
467
524
  * @property { number } width The width of the window
468
525
  */
469
526
  /**
527
+ * @PORTED
470
528
  * ApplicationWindowInfo interface
471
529
  * @typedef { object } ApplicationWindowInfo
472
530
  * @property { Array<WindowDetail> } childWindows The array of child windows details
@@ -474,6 +532,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
474
532
  * @property { string } uuid The uuid of the application
475
533
  */
476
534
  /**
535
+ * @REMOVED
477
536
  * CertifiedAppInfo interface
478
537
  * @typedef { object } CertifiedAppInfo
479
538
  * @property { boolean } isRunning true if the app is running
@@ -488,7 +547,7 @@ import PrinterInfo = OpenFin.PrinterInfo;
488
547
  * clearing the cache and exiting the runtime as well as listen to <a href="tutorial-System.EventEmitter.html">system events</a>.
489
548
  * @namespace
490
549
  */
491
- export default class System extends EmitterBase<SystemEvents> {
550
+ export default class System extends EmitterBase<OpenFin.SystemEvent> {
492
551
  constructor(wire: Transport);
493
552
  private sendExternalProcessRequest;
494
553
  /**
@@ -769,7 +828,7 @@ export default class System extends EmitterBase<SystemEvents> {
769
828
  * Runs an executable or batch file. A path to the file must be included in options.
770
829
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
771
830
  * <br> Note: This method is restricted by default and must be enabled via
772
- * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>.
831
+ * <a href="https://developers.openfin.co/docs/api-security">API security settings</a>. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.
773
832
  * @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface
774
833
  * @return {Promise.<Identity>}
775
834
  * @tutorial System.launchExternalProcess
@@ -966,3 +1025,4 @@ export default class System extends EmitterBase<SystemEvents> {
966
1025
  */
967
1026
  getPrinters(): Promise<PrinterInfo[]>;
968
1027
  }
1028
+ export {};