@openfin/fdc3-api 39.82.13 → 39.83.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/fdc3-api-alpha.d.ts +160 -55
- package/out/fdc3-api-beta.d.ts +160 -55
- package/out/fdc3-api-public.d.ts +160 -55
- package/out/fdc3-api.d.ts +160 -55
- package/package.json +1 -1
package/out/fdc3-api.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare type ApiInjection = DomainApiSettings;
|
|
|
99
99
|
* Generated when a new Platform's API becomes responsive.
|
|
100
100
|
* @interface
|
|
101
101
|
*/
|
|
102
|
-
declare type ApiReadyEvent = BaseEvent & {
|
|
102
|
+
declare type ApiReadyEvent = BaseEvents.BaseEvent & {
|
|
103
103
|
topic: 'application';
|
|
104
104
|
type: 'platform-api-ready';
|
|
105
105
|
};
|
|
@@ -917,7 +917,7 @@ declare namespace ApplicationEvents {
|
|
|
917
917
|
PropagatedApplicationEvent,
|
|
918
918
|
PropagatedEventType_3 as PropagatedEventType,
|
|
919
919
|
PropagatedApplicationEventType,
|
|
920
|
-
|
|
920
|
+
Payload_5 as Payload,
|
|
921
921
|
ByType_3 as ByType
|
|
922
922
|
}
|
|
923
923
|
}
|
|
@@ -1736,7 +1736,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
|
|
|
1736
1736
|
* A base Channel event.
|
|
1737
1737
|
* @interface
|
|
1738
1738
|
*/
|
|
1739
|
-
declare type BaseEvent_2 = NamedEvent & {
|
|
1739
|
+
declare type BaseEvent_2 = BaseEvents.NamedEvent & {
|
|
1740
1740
|
channelName: string;
|
|
1741
1741
|
channelId: string;
|
|
1742
1742
|
};
|
|
@@ -1806,6 +1806,7 @@ declare namespace BaseEvents {
|
|
|
1806
1806
|
NotCloseRequested,
|
|
1807
1807
|
PropagatedEventType,
|
|
1808
1808
|
PropagatedEvent,
|
|
1809
|
+
Payload_2 as Payload,
|
|
1809
1810
|
EventHandler,
|
|
1810
1811
|
BaseEvent,
|
|
1811
1812
|
IdentityEvent,
|
|
@@ -1946,7 +1947,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
|
|
|
1946
1947
|
*
|
|
1947
1948
|
* @typeParam Type String key specifying the event to extract
|
|
1948
1949
|
*/
|
|
1949
|
-
declare type ByType<Type extends EventType> =
|
|
1950
|
+
declare type ByType<Type extends EventType> = Payload_3<Type>;
|
|
1950
1951
|
|
|
1951
1952
|
/**
|
|
1952
1953
|
* Extracts a single event type matching the given key from the Window {@link Event} union.
|
|
@@ -1955,7 +1956,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
|
|
|
1955
1956
|
*
|
|
1956
1957
|
* @typeParam Type String key specifying the event to extract
|
|
1957
1958
|
*/
|
|
1958
|
-
declare type ByType_2<Type extends EventType_2> =
|
|
1959
|
+
declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
|
|
1959
1960
|
|
|
1960
1961
|
/**
|
|
1961
1962
|
* Extracts a single event type matching the given key from the Application {@link Event} union.
|
|
@@ -1964,7 +1965,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
|
|
|
1964
1965
|
*
|
|
1965
1966
|
* @typeParam Type String key specifying the event to extract
|
|
1966
1967
|
*/
|
|
1967
|
-
declare type ByType_3<Type extends EventType_3> =
|
|
1968
|
+
declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
|
|
1968
1969
|
|
|
1969
1970
|
/**
|
|
1970
1971
|
* Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
|
|
@@ -1973,7 +1974,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
|
|
|
1973
1974
|
*
|
|
1974
1975
|
* @typeParam Type String key specifying the event to extract
|
|
1975
1976
|
*/
|
|
1976
|
-
declare type ByType_4<Type extends EventType_4> =
|
|
1977
|
+
declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
|
|
1977
1978
|
|
|
1978
1979
|
/**
|
|
1979
1980
|
* Extracts a single event type matching the given key from the Frame {@link Event} union.
|
|
@@ -1982,7 +1983,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
|
|
|
1982
1983
|
*
|
|
1983
1984
|
* @typeParam Type String key specifying the event to extract
|
|
1984
1985
|
*/
|
|
1985
|
-
declare type ByType_5<Type extends EventType_5> =
|
|
1986
|
+
declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
|
|
1986
1987
|
|
|
1987
1988
|
/**
|
|
1988
1989
|
* Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
|
|
@@ -1991,7 +1992,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
|
|
|
1991
1992
|
*
|
|
1992
1993
|
* @typeParam Type String key specifying the event to extract
|
|
1993
1994
|
*/
|
|
1994
|
-
declare type ByType_6<Type extends EventType_6> =
|
|
1995
|
+
declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
|
|
1995
1996
|
|
|
1996
1997
|
/**
|
|
1997
1998
|
* Extracts a single event type matching the given key from the Platform {@link Event} union.
|
|
@@ -2000,7 +2001,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
|
|
|
2000
2001
|
*
|
|
2001
2002
|
* @typeParam Type String key specifying the event to extract
|
|
2002
2003
|
*/
|
|
2003
|
-
declare type ByType_7<Type extends EventType_7> =
|
|
2004
|
+
declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
|
|
2004
2005
|
|
|
2005
2006
|
/**
|
|
2006
2007
|
* Extracts a single event type matching the given key from the System {@link Event} union.
|
|
@@ -2009,7 +2010,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
|
|
|
2009
2010
|
*
|
|
2010
2011
|
* @typeParam Type String key specifying the event to extract
|
|
2011
2012
|
*/
|
|
2012
|
-
declare type ByType_8<Type extends EventType_8> =
|
|
2013
|
+
declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
|
|
2013
2014
|
|
|
2014
2015
|
/**
|
|
2015
2016
|
* Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
|
|
@@ -2018,7 +2019,7 @@ declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
|
|
|
2018
2019
|
*
|
|
2019
2020
|
* @typeParam Type String key specifying the event to extract
|
|
2020
2021
|
*/
|
|
2021
|
-
declare type ByType_9<Type extends EventType_9> =
|
|
2022
|
+
declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
|
|
2022
2023
|
|
|
2023
2024
|
/**
|
|
2024
2025
|
* Configuration for page capture.
|
|
@@ -3757,6 +3758,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
|
3757
3758
|
|
|
3758
3759
|
/**
|
|
3759
3760
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
|
3761
|
+
* @interface
|
|
3760
3762
|
*/
|
|
3761
3763
|
declare type ContentBlockedEvent = NamedEvent & {
|
|
3762
3764
|
type: 'content-blocked';
|
|
@@ -4866,9 +4868,7 @@ declare class EventAggregator extends EmitterMap {
|
|
|
4866
4868
|
* @remarks Selects the correct type for the event
|
|
4867
4869
|
* payload from the provided union based on the provided string literal type.
|
|
4868
4870
|
*/
|
|
4869
|
-
declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload:
|
|
4870
|
-
type: EventType;
|
|
4871
|
-
}>, ...args: any[]) => void;
|
|
4871
|
+
declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
|
|
4872
4872
|
|
|
4873
4873
|
declare namespace Events {
|
|
4874
4874
|
export {
|
|
@@ -5025,7 +5025,7 @@ declare namespace ExternalApplicationEvents {
|
|
|
5025
5025
|
ExternalApplicationEvent,
|
|
5026
5026
|
EventType_4 as EventType,
|
|
5027
5027
|
ExternalApplicationEventType,
|
|
5028
|
-
|
|
5028
|
+
Payload_6 as Payload,
|
|
5029
5029
|
ByType_4 as ByType
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
@@ -5825,7 +5825,7 @@ declare namespace FrameEvents {
|
|
|
5825
5825
|
FrameEvent,
|
|
5826
5826
|
EventType_5 as EventType,
|
|
5827
5827
|
FrameEventType,
|
|
5828
|
-
|
|
5828
|
+
Payload_7 as Payload,
|
|
5829
5829
|
ByType_5 as ByType
|
|
5830
5830
|
}
|
|
5831
5831
|
}
|
|
@@ -6068,7 +6068,7 @@ declare namespace GlobalHotkeyEvents {
|
|
|
6068
6068
|
GlobalHotkeyEvent,
|
|
6069
6069
|
EventType_6 as EventType,
|
|
6070
6070
|
GlobalHotkeyEventType,
|
|
6071
|
-
|
|
6071
|
+
Payload_8 as Payload,
|
|
6072
6072
|
ByType_6 as ByType
|
|
6073
6073
|
}
|
|
6074
6074
|
}
|
|
@@ -8180,7 +8180,7 @@ declare namespace LayoutDOMEvents {
|
|
|
8180
8180
|
LayoutStateChangedEvent,
|
|
8181
8181
|
Event_12 as Event,
|
|
8182
8182
|
EventType_9 as EventType,
|
|
8183
|
-
|
|
8183
|
+
Payload_11 as Payload,
|
|
8184
8184
|
ByType_9 as ByType
|
|
8185
8185
|
}
|
|
8186
8186
|
}
|
|
@@ -8856,6 +8856,23 @@ declare type LogLevel = OpenFin.LogLevel;
|
|
|
8856
8856
|
*/
|
|
8857
8857
|
declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8858
8858
|
|
|
8859
|
+
declare type LogUploaderUIOptions = {
|
|
8860
|
+
title?: string;
|
|
8861
|
+
icon?: string;
|
|
8862
|
+
header?: string;
|
|
8863
|
+
description?: string;
|
|
8864
|
+
email?: string;
|
|
8865
|
+
website?: string;
|
|
8866
|
+
websiteDescription?: string;
|
|
8867
|
+
};
|
|
8868
|
+
|
|
8869
|
+
declare type LogUploadOptions = {
|
|
8870
|
+
endpoint: string;
|
|
8871
|
+
manifests?: string[];
|
|
8872
|
+
logs?: string[];
|
|
8873
|
+
ui?: LogUploaderUIOptions;
|
|
8874
|
+
};
|
|
8875
|
+
|
|
8859
8876
|
/**
|
|
8860
8877
|
* @interface
|
|
8861
8878
|
*/
|
|
@@ -8914,6 +8931,7 @@ declare type Manifest = {
|
|
|
8914
8931
|
enableErrorReporting?: boolean;
|
|
8915
8932
|
};
|
|
8916
8933
|
interopBrokerConfiguration: InteropBrokerOptions;
|
|
8934
|
+
logUpload?: LogUploadOptions;
|
|
8917
8935
|
};
|
|
8918
8936
|
|
|
8919
8937
|
/**
|
|
@@ -9557,6 +9575,34 @@ declare type NavigationRules = {
|
|
|
9557
9575
|
|
|
9558
9576
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
|
9559
9577
|
|
|
9578
|
+
declare interface NodeNetworkInterfaceBase {
|
|
9579
|
+
address: string;
|
|
9580
|
+
netmask: string;
|
|
9581
|
+
mac: string;
|
|
9582
|
+
internal: boolean;
|
|
9583
|
+
cidr: string | null;
|
|
9584
|
+
}
|
|
9585
|
+
|
|
9586
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
|
9587
|
+
|
|
9588
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
|
9589
|
+
family: 'IPv4';
|
|
9590
|
+
scopeid?: undefined;
|
|
9591
|
+
}
|
|
9592
|
+
|
|
9593
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
|
9594
|
+
family: 'IPv6';
|
|
9595
|
+
scopeid: number;
|
|
9596
|
+
}
|
|
9597
|
+
|
|
9598
|
+
declare interface NodeUserInfo {
|
|
9599
|
+
username: string;
|
|
9600
|
+
uid: number;
|
|
9601
|
+
gid: number;
|
|
9602
|
+
shell: string | null;
|
|
9603
|
+
homedir: string;
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9560
9606
|
/**
|
|
9561
9607
|
* @interface
|
|
9562
9608
|
*/
|
|
@@ -9769,6 +9815,8 @@ declare namespace OpenFin {
|
|
|
9769
9815
|
PlatformViewCreationOptions,
|
|
9770
9816
|
ProcessAffinityStrategy,
|
|
9771
9817
|
PlatformOptions,
|
|
9818
|
+
LogUploaderUIOptions,
|
|
9819
|
+
LogUploadOptions,
|
|
9772
9820
|
Manifest,
|
|
9773
9821
|
LayoutContent,
|
|
9774
9822
|
LayoutItemConfig,
|
|
@@ -9796,6 +9844,7 @@ declare namespace OpenFin {
|
|
|
9796
9844
|
Time,
|
|
9797
9845
|
CpuInfo,
|
|
9798
9846
|
GpuInfo,
|
|
9847
|
+
OSInfo,
|
|
9799
9848
|
HostSpecs,
|
|
9800
9849
|
PrinterInfo_2 as PrinterInfo,
|
|
9801
9850
|
Dpi,
|
|
@@ -10003,6 +10052,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10003
10052
|
diff: OpenFin.WindowOptionDiff;
|
|
10004
10053
|
};
|
|
10005
10054
|
|
|
10055
|
+
/**
|
|
10056
|
+
* @interface
|
|
10057
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
|
10058
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
|
10059
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
|
10060
|
+
*/
|
|
10061
|
+
declare type OSInfo = {
|
|
10062
|
+
platform: string;
|
|
10063
|
+
release: string;
|
|
10064
|
+
version: string;
|
|
10065
|
+
/**
|
|
10066
|
+
* Throws if a user has no username or homedir.
|
|
10067
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
|
10068
|
+
*/
|
|
10069
|
+
userInfo: NodeUserInfo;
|
|
10070
|
+
hostname: string;
|
|
10071
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
|
10072
|
+
};
|
|
10073
|
+
|
|
10006
10074
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10007
10075
|
|
|
10008
10076
|
/**
|
|
@@ -10031,86 +10099,110 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
|
10031
10099
|
error?: Success extends false ? ErrorPlainObject | undefined : never;
|
|
10032
10100
|
};
|
|
10033
10101
|
|
|
10102
|
+
/**
|
|
10103
|
+
* Extracts a single event type matching the given key from the System {@link Event} union.
|
|
10104
|
+
*
|
|
10105
|
+
* @see {@link ByType}
|
|
10106
|
+
*
|
|
10107
|
+
* @typeParam Type String key specifying the event to extract
|
|
10108
|
+
*/
|
|
10109
|
+
declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
|
|
10110
|
+
|
|
10034
10111
|
/**
|
|
10035
10112
|
* Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
|
|
10036
10113
|
*
|
|
10037
10114
|
* @typeParam Type String key specifying the event to extract
|
|
10038
10115
|
*/
|
|
10039
|
-
declare type
|
|
10116
|
+
declare type Payload_11<Type extends EventType_9> = Extract<Event_12, {
|
|
10040
10117
|
type: Type;
|
|
10041
10118
|
}>;
|
|
10042
10119
|
|
|
10120
|
+
/**
|
|
10121
|
+
* Extracts a single event type matching the given type key from the provided EmitterEvent union.
|
|
10122
|
+
*
|
|
10123
|
+
* @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
|
|
10124
|
+
* the appropriate payload union for that namespace.
|
|
10125
|
+
*
|
|
10126
|
+
* @typeParam Event Union of payloads for events on the given emitter
|
|
10127
|
+
* @see {@link ByType}
|
|
10128
|
+
*
|
|
10129
|
+
* @typeParam Type String key specifying the event to extract from the union
|
|
10130
|
+
*
|
|
10131
|
+
* @see {@link OpenFin.Events.ApplicationEvents.Payload}
|
|
10132
|
+
* @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
|
|
10133
|
+
* @see {@link OpenFin.Events.FrameEvents.Payload}
|
|
10134
|
+
* @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
|
|
10135
|
+
* @see {@link OpenFin.Events.PlatformEvents.Payload}
|
|
10136
|
+
* @see {@link OpenFin.Events.SystemEvents.Payload}
|
|
10137
|
+
* @see {@link OpenFin.Events.ViewEvents.Payload}
|
|
10138
|
+
* @see {@link OpenFin.Events.WindowEvents.Payload}
|
|
10139
|
+
*/
|
|
10140
|
+
declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
|
|
10141
|
+
type: EventType;
|
|
10142
|
+
}>;
|
|
10143
|
+
|
|
10043
10144
|
/**
|
|
10044
10145
|
* Extracts a single event type matching the given key from the View {@link Event} union.
|
|
10045
10146
|
*
|
|
10147
|
+
* @see {@link ByType}
|
|
10148
|
+
*
|
|
10046
10149
|
* @typeParam Type String key specifying the event to extract
|
|
10047
10150
|
*/
|
|
10048
|
-
declare type
|
|
10049
|
-
type: Type;
|
|
10050
|
-
}>;
|
|
10151
|
+
declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
|
|
10051
10152
|
|
|
10052
10153
|
/**
|
|
10053
10154
|
* Extracts a single event type matching the given key from the Window {@link Event} union.
|
|
10054
10155
|
*
|
|
10156
|
+
* @see {@link ByType}
|
|
10157
|
+
*
|
|
10055
10158
|
* @typeParam Type String key specifying the event to extract
|
|
10056
10159
|
*/
|
|
10057
|
-
declare type
|
|
10058
|
-
type: Type;
|
|
10059
|
-
}>;
|
|
10160
|
+
declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
|
|
10060
10161
|
|
|
10061
10162
|
/**
|
|
10062
10163
|
* Extracts a single event type matching the given key from the Application {@link Event} union.
|
|
10063
10164
|
*
|
|
10165
|
+
* @see {@link ByType}
|
|
10166
|
+
*
|
|
10064
10167
|
* @typeParam Type String key specifying the event to extract
|
|
10065
10168
|
*/
|
|
10066
|
-
declare type
|
|
10067
|
-
type: Type;
|
|
10068
|
-
}>;
|
|
10169
|
+
declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
|
|
10069
10170
|
|
|
10070
10171
|
/**
|
|
10071
10172
|
* Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
|
|
10072
10173
|
*
|
|
10174
|
+
* @see {@link ByType}
|
|
10175
|
+
*
|
|
10073
10176
|
* @typeParam Type String key specifying the event to extract
|
|
10074
10177
|
*/
|
|
10075
|
-
declare type
|
|
10076
|
-
type: Type;
|
|
10077
|
-
}>;
|
|
10178
|
+
declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
|
|
10078
10179
|
|
|
10079
10180
|
/**
|
|
10080
10181
|
* Extracts a single event type matching the given key from the Frame {@link Event} union.
|
|
10081
10182
|
*
|
|
10183
|
+
* @see {@link ByType}
|
|
10184
|
+
*
|
|
10082
10185
|
* @typeParam Type String key specifying the event to extract
|
|
10083
10186
|
*/
|
|
10084
|
-
declare type
|
|
10085
|
-
type: Type;
|
|
10086
|
-
}>;
|
|
10187
|
+
declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
|
|
10087
10188
|
|
|
10088
10189
|
/**
|
|
10089
10190
|
* Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
|
|
10090
10191
|
*
|
|
10192
|
+
* @see {@link ByType}
|
|
10193
|
+
*
|
|
10091
10194
|
* @typeParam Type String key specifying the event to extract
|
|
10092
10195
|
*/
|
|
10093
|
-
declare type
|
|
10094
|
-
type: Type;
|
|
10095
|
-
}>;
|
|
10196
|
+
declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
|
|
10096
10197
|
|
|
10097
10198
|
/**
|
|
10098
10199
|
* Extracts a single event type matching the given key from the Platform {@link Event} union.
|
|
10099
10200
|
*
|
|
10100
|
-
* @
|
|
10101
|
-
*/
|
|
10102
|
-
declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
|
|
10103
|
-
type: Type;
|
|
10104
|
-
}>;
|
|
10105
|
-
|
|
10106
|
-
/**
|
|
10107
|
-
* Extracts a single event type matching the given key from the System {@link Event} union.
|
|
10201
|
+
* @see {@link ByType}
|
|
10108
10202
|
*
|
|
10109
10203
|
* @typeParam Type String key specifying the event to extract
|
|
10110
10204
|
*/
|
|
10111
|
-
declare type Payload_9<Type extends
|
|
10112
|
-
type: Type;
|
|
10113
|
-
}>;
|
|
10205
|
+
declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
|
|
10114
10206
|
|
|
10115
10207
|
/**
|
|
10116
10208
|
* @interface
|
|
@@ -10835,7 +10927,7 @@ declare namespace PlatformEvents {
|
|
|
10835
10927
|
PlatformEvent,
|
|
10836
10928
|
EventType_7 as EventType,
|
|
10837
10929
|
PlatformEventType,
|
|
10838
|
-
|
|
10930
|
+
Payload_9 as Payload,
|
|
10839
10931
|
ByType_7 as ByType
|
|
10840
10932
|
}
|
|
10841
10933
|
}
|
|
@@ -12318,6 +12410,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12318
12410
|
};
|
|
12319
12411
|
response: void;
|
|
12320
12412
|
};
|
|
12413
|
+
'get-host-specs': GetterCall<OpenFin.HostSpecs>;
|
|
12414
|
+
'get-os-info': GetterCall<OpenFin.OSInfo>;
|
|
12321
12415
|
'system-get-printers': GetterCall<OpenFin.PrinterInfo[]>;
|
|
12322
12416
|
'system-register-shutdown-handler': VoidCall;
|
|
12323
12417
|
'get-domain-settings': ApiCall<OpenFin.ApplicationIdentity, OpenFin.DefaultDomainSettings>;
|
|
@@ -13174,7 +13268,7 @@ declare type Snapshot = {
|
|
|
13174
13268
|
* _Note_ - In the case of using a custom provider, if a window has a layout property but does not call _Layout.init_ this event may not fire.
|
|
13175
13269
|
* @interface
|
|
13176
13270
|
*/
|
|
13177
|
-
declare type SnapshotAppliedEvent = BaseEvent & {
|
|
13271
|
+
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
|
13178
13272
|
topic: 'application';
|
|
13179
13273
|
type: 'platform-snapshot-applied';
|
|
13180
13274
|
};
|
|
@@ -13664,7 +13758,8 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
|
13664
13758
|
*/
|
|
13665
13759
|
getRvmInfo(): Promise<OpenFin.RVMInfo>;
|
|
13666
13760
|
/**
|
|
13667
|
-
* Retrieves system information.
|
|
13761
|
+
* Retrieves general system information. If you need more detailed information about the
|
|
13762
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
|
13668
13763
|
*
|
|
13669
13764
|
* @example
|
|
13670
13765
|
* ```js
|
|
@@ -13672,6 +13767,15 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
|
|
|
13672
13767
|
* ```
|
|
13673
13768
|
*/
|
|
13674
13769
|
getHostSpecs(): Promise<OpenFin.HostSpecs>;
|
|
13770
|
+
/**
|
|
13771
|
+
* Retrieves information about the OS and the currently logged in user.
|
|
13772
|
+
*
|
|
13773
|
+
* @example
|
|
13774
|
+
* ```js
|
|
13775
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
|
13776
|
+
* ```
|
|
13777
|
+
*/
|
|
13778
|
+
getOSInfo(): Promise<OpenFin.OSInfo>;
|
|
13675
13779
|
/**
|
|
13676
13780
|
* Runs an executable or batch file. A path to the file must be included in options.
|
|
13677
13781
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
|
@@ -14785,7 +14889,7 @@ declare namespace SystemEvents {
|
|
|
14785
14889
|
SystemEvent,
|
|
14786
14890
|
EventType_8 as EventType,
|
|
14787
14891
|
SystemEventType,
|
|
14788
|
-
|
|
14892
|
+
Payload_10 as Payload,
|
|
14789
14893
|
ByType_8 as ByType
|
|
14790
14894
|
}
|
|
14791
14895
|
}
|
|
@@ -14799,6 +14903,7 @@ declare type SystemEventType = EventType_8;
|
|
|
14799
14903
|
* @interface
|
|
14800
14904
|
*/
|
|
14801
14905
|
declare type SystemPermissions = {
|
|
14906
|
+
getOSInfo: boolean;
|
|
14802
14907
|
getAllExternalWindows: boolean;
|
|
14803
14908
|
launchExternalProcess: boolean | {
|
|
14804
14909
|
enabled: boolean;
|
|
@@ -15956,7 +16061,7 @@ declare namespace ViewEvents {
|
|
|
15956
16061
|
PropagatedViewEvent,
|
|
15957
16062
|
PropagatedEventType_2 as PropagatedEventType,
|
|
15958
16063
|
PropagatedViewEventType,
|
|
15959
|
-
|
|
16064
|
+
Payload_3 as Payload,
|
|
15960
16065
|
ByType
|
|
15961
16066
|
}
|
|
15962
16067
|
}
|
|
@@ -18480,7 +18585,7 @@ declare namespace WindowEvents {
|
|
|
18480
18585
|
PropagatedEvent_3 as PropagatedEvent,
|
|
18481
18586
|
PropagatedWindowEvent,
|
|
18482
18587
|
PropagatedWindowEventType,
|
|
18483
|
-
|
|
18588
|
+
Payload_4 as Payload,
|
|
18484
18589
|
ByType_2 as ByType
|
|
18485
18590
|
}
|
|
18486
18591
|
}
|