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