@openfin/core 40.82.1 → 40.82.5
Sign up to get free protection for your applications and to get access to all the features.
- package/out/mock-alpha.d.ts +71 -1
- package/out/mock-beta.d.ts +71 -1
- package/out/mock-public.d.ts +71 -1
- package/out/mock.d.ts +71 -1
- package/out/mock.js +13 -1
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3702
3702
|
|
3703
3703
|
/**
|
3704
3704
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3705
|
+
* @interface
|
3705
3706
|
*/
|
3706
3707
|
declare type ContentBlockedEvent = NamedEvent & {
|
3707
3708
|
type: 'content-blocked';
|
@@ -8909,6 +8910,42 @@ declare type NavigationRules = {
|
|
8909
8910
|
|
8910
8911
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8911
8912
|
|
8913
|
+
declare interface NodeNetworkInterfaceBase {
|
8914
|
+
address: string;
|
8915
|
+
netmask: string;
|
8916
|
+
mac: string;
|
8917
|
+
internal: boolean;
|
8918
|
+
cidr: string | null;
|
8919
|
+
}
|
8920
|
+
|
8921
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8922
|
+
|
8923
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8924
|
+
family: 'IPv4';
|
8925
|
+
scopeid?: undefined;
|
8926
|
+
}
|
8927
|
+
|
8928
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8929
|
+
family: 'IPv6';
|
8930
|
+
scopeid: number;
|
8931
|
+
}
|
8932
|
+
|
8933
|
+
declare interface NodeUserInfo {
|
8934
|
+
username: string;
|
8935
|
+
uid: number;
|
8936
|
+
gid: number;
|
8937
|
+
shell: string | null;
|
8938
|
+
homedir: string;
|
8939
|
+
}
|
8940
|
+
|
8941
|
+
declare interface NodeUserInfo {
|
8942
|
+
username: string;
|
8943
|
+
uid: number;
|
8944
|
+
gid: number;
|
8945
|
+
shell: string | null;
|
8946
|
+
homedir: string;
|
8947
|
+
}
|
8948
|
+
|
8912
8949
|
/**
|
8913
8950
|
* @interface
|
8914
8951
|
*/
|
@@ -9138,6 +9175,7 @@ declare namespace OpenFin_2 {
|
|
9138
9175
|
Time,
|
9139
9176
|
CpuInfo,
|
9140
9177
|
GpuInfo,
|
9178
|
+
OSInfo,
|
9141
9179
|
HostSpecs,
|
9142
9180
|
PrinterInfo_2 as PrinterInfo,
|
9143
9181
|
Dpi,
|
@@ -9347,6 +9385,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9347
9385
|
diff: OpenFin_2.WindowOptionDiff;
|
9348
9386
|
};
|
9349
9387
|
|
9388
|
+
/**
|
9389
|
+
* @interface
|
9390
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9391
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9392
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9393
|
+
*/
|
9394
|
+
declare type OSInfo = {
|
9395
|
+
platform: string;
|
9396
|
+
release: string;
|
9397
|
+
version: string;
|
9398
|
+
/**
|
9399
|
+
* Throws if a user has no username or homedir.
|
9400
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9401
|
+
*/
|
9402
|
+
userInfo: NodeUserInfo;
|
9403
|
+
hostname: string;
|
9404
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9405
|
+
};
|
9406
|
+
|
9350
9407
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9351
9408
|
|
9352
9409
|
/**
|
@@ -11608,6 +11665,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11608
11665
|
};
|
11609
11666
|
response: void;
|
11610
11667
|
};
|
11668
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11669
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11611
11670
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11612
11671
|
'system-register-shutdown-handler': VoidCall;
|
11613
11672
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12948,7 +13007,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12948
13007
|
*/
|
12949
13008
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12950
13009
|
/**
|
12951
|
-
* Retrieves system information.
|
13010
|
+
* Retrieves general system information. If you need more detailed information about the
|
13011
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12952
13012
|
*
|
12953
13013
|
* @example
|
12954
13014
|
* ```js
|
@@ -12956,6 +13016,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12956
13016
|
* ```
|
12957
13017
|
*/
|
12958
13018
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13019
|
+
/**
|
13020
|
+
* Retrieves information about the OS and the currently logged in user.
|
13021
|
+
*
|
13022
|
+
* @example
|
13023
|
+
* ```js
|
13024
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13025
|
+
* ```
|
13026
|
+
*/
|
13027
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12959
13028
|
/**
|
12960
13029
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12961
13030
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14083,6 +14152,7 @@ declare type SystemEventType = EventType_8;
|
|
14083
14152
|
* @interface
|
14084
14153
|
*/
|
14085
14154
|
declare type SystemPermissions = {
|
14155
|
+
getOSInfo: boolean;
|
14086
14156
|
getAllExternalWindows: boolean;
|
14087
14157
|
launchExternalProcess: boolean | {
|
14088
14158
|
enabled: boolean;
|
package/out/mock-beta.d.ts
CHANGED
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3702
3702
|
|
3703
3703
|
/**
|
3704
3704
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3705
|
+
* @interface
|
3705
3706
|
*/
|
3706
3707
|
declare type ContentBlockedEvent = NamedEvent & {
|
3707
3708
|
type: 'content-blocked';
|
@@ -8909,6 +8910,42 @@ declare type NavigationRules = {
|
|
8909
8910
|
|
8910
8911
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8911
8912
|
|
8913
|
+
declare interface NodeNetworkInterfaceBase {
|
8914
|
+
address: string;
|
8915
|
+
netmask: string;
|
8916
|
+
mac: string;
|
8917
|
+
internal: boolean;
|
8918
|
+
cidr: string | null;
|
8919
|
+
}
|
8920
|
+
|
8921
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8922
|
+
|
8923
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8924
|
+
family: 'IPv4';
|
8925
|
+
scopeid?: undefined;
|
8926
|
+
}
|
8927
|
+
|
8928
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8929
|
+
family: 'IPv6';
|
8930
|
+
scopeid: number;
|
8931
|
+
}
|
8932
|
+
|
8933
|
+
declare interface NodeUserInfo {
|
8934
|
+
username: string;
|
8935
|
+
uid: number;
|
8936
|
+
gid: number;
|
8937
|
+
shell: string | null;
|
8938
|
+
homedir: string;
|
8939
|
+
}
|
8940
|
+
|
8941
|
+
declare interface NodeUserInfo {
|
8942
|
+
username: string;
|
8943
|
+
uid: number;
|
8944
|
+
gid: number;
|
8945
|
+
shell: string | null;
|
8946
|
+
homedir: string;
|
8947
|
+
}
|
8948
|
+
|
8912
8949
|
/**
|
8913
8950
|
* @interface
|
8914
8951
|
*/
|
@@ -9138,6 +9175,7 @@ declare namespace OpenFin_2 {
|
|
9138
9175
|
Time,
|
9139
9176
|
CpuInfo,
|
9140
9177
|
GpuInfo,
|
9178
|
+
OSInfo,
|
9141
9179
|
HostSpecs,
|
9142
9180
|
PrinterInfo_2 as PrinterInfo,
|
9143
9181
|
Dpi,
|
@@ -9347,6 +9385,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9347
9385
|
diff: OpenFin_2.WindowOptionDiff;
|
9348
9386
|
};
|
9349
9387
|
|
9388
|
+
/**
|
9389
|
+
* @interface
|
9390
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9391
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9392
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9393
|
+
*/
|
9394
|
+
declare type OSInfo = {
|
9395
|
+
platform: string;
|
9396
|
+
release: string;
|
9397
|
+
version: string;
|
9398
|
+
/**
|
9399
|
+
* Throws if a user has no username or homedir.
|
9400
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9401
|
+
*/
|
9402
|
+
userInfo: NodeUserInfo;
|
9403
|
+
hostname: string;
|
9404
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9405
|
+
};
|
9406
|
+
|
9350
9407
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9351
9408
|
|
9352
9409
|
/**
|
@@ -11608,6 +11665,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11608
11665
|
};
|
11609
11666
|
response: void;
|
11610
11667
|
};
|
11668
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11669
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11611
11670
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11612
11671
|
'system-register-shutdown-handler': VoidCall;
|
11613
11672
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12948,7 +13007,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12948
13007
|
*/
|
12949
13008
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12950
13009
|
/**
|
12951
|
-
* Retrieves system information.
|
13010
|
+
* Retrieves general system information. If you need more detailed information about the
|
13011
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12952
13012
|
*
|
12953
13013
|
* @example
|
12954
13014
|
* ```js
|
@@ -12956,6 +13016,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12956
13016
|
* ```
|
12957
13017
|
*/
|
12958
13018
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13019
|
+
/**
|
13020
|
+
* Retrieves information about the OS and the currently logged in user.
|
13021
|
+
*
|
13022
|
+
* @example
|
13023
|
+
* ```js
|
13024
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13025
|
+
* ```
|
13026
|
+
*/
|
13027
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12959
13028
|
/**
|
12960
13029
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12961
13030
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14083,6 +14152,7 @@ declare type SystemEventType = EventType_8;
|
|
14083
14152
|
* @interface
|
14084
14153
|
*/
|
14085
14154
|
declare type SystemPermissions = {
|
14155
|
+
getOSInfo: boolean;
|
14086
14156
|
getAllExternalWindows: boolean;
|
14087
14157
|
launchExternalProcess: boolean | {
|
14088
14158
|
enabled: boolean;
|
package/out/mock-public.d.ts
CHANGED
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3702
3702
|
|
3703
3703
|
/**
|
3704
3704
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3705
|
+
* @interface
|
3705
3706
|
*/
|
3706
3707
|
declare type ContentBlockedEvent = NamedEvent & {
|
3707
3708
|
type: 'content-blocked';
|
@@ -8909,6 +8910,42 @@ declare type NavigationRules = {
|
|
8909
8910
|
|
8910
8911
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8911
8912
|
|
8913
|
+
declare interface NodeNetworkInterfaceBase {
|
8914
|
+
address: string;
|
8915
|
+
netmask: string;
|
8916
|
+
mac: string;
|
8917
|
+
internal: boolean;
|
8918
|
+
cidr: string | null;
|
8919
|
+
}
|
8920
|
+
|
8921
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8922
|
+
|
8923
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8924
|
+
family: 'IPv4';
|
8925
|
+
scopeid?: undefined;
|
8926
|
+
}
|
8927
|
+
|
8928
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8929
|
+
family: 'IPv6';
|
8930
|
+
scopeid: number;
|
8931
|
+
}
|
8932
|
+
|
8933
|
+
declare interface NodeUserInfo {
|
8934
|
+
username: string;
|
8935
|
+
uid: number;
|
8936
|
+
gid: number;
|
8937
|
+
shell: string | null;
|
8938
|
+
homedir: string;
|
8939
|
+
}
|
8940
|
+
|
8941
|
+
declare interface NodeUserInfo {
|
8942
|
+
username: string;
|
8943
|
+
uid: number;
|
8944
|
+
gid: number;
|
8945
|
+
shell: string | null;
|
8946
|
+
homedir: string;
|
8947
|
+
}
|
8948
|
+
|
8912
8949
|
/**
|
8913
8950
|
* @interface
|
8914
8951
|
*/
|
@@ -9138,6 +9175,7 @@ declare namespace OpenFin_2 {
|
|
9138
9175
|
Time,
|
9139
9176
|
CpuInfo,
|
9140
9177
|
GpuInfo,
|
9178
|
+
OSInfo,
|
9141
9179
|
HostSpecs,
|
9142
9180
|
PrinterInfo_2 as PrinterInfo,
|
9143
9181
|
Dpi,
|
@@ -9347,6 +9385,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9347
9385
|
diff: OpenFin_2.WindowOptionDiff;
|
9348
9386
|
};
|
9349
9387
|
|
9388
|
+
/**
|
9389
|
+
* @interface
|
9390
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9391
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9392
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9393
|
+
*/
|
9394
|
+
declare type OSInfo = {
|
9395
|
+
platform: string;
|
9396
|
+
release: string;
|
9397
|
+
version: string;
|
9398
|
+
/**
|
9399
|
+
* Throws if a user has no username or homedir.
|
9400
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9401
|
+
*/
|
9402
|
+
userInfo: NodeUserInfo;
|
9403
|
+
hostname: string;
|
9404
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9405
|
+
};
|
9406
|
+
|
9350
9407
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9351
9408
|
|
9352
9409
|
/**
|
@@ -11608,6 +11665,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11608
11665
|
};
|
11609
11666
|
response: void;
|
11610
11667
|
};
|
11668
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11669
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11611
11670
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11612
11671
|
'system-register-shutdown-handler': VoidCall;
|
11613
11672
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12948,7 +13007,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12948
13007
|
*/
|
12949
13008
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12950
13009
|
/**
|
12951
|
-
* Retrieves system information.
|
13010
|
+
* Retrieves general system information. If you need more detailed information about the
|
13011
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12952
13012
|
*
|
12953
13013
|
* @example
|
12954
13014
|
* ```js
|
@@ -12956,6 +13016,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12956
13016
|
* ```
|
12957
13017
|
*/
|
12958
13018
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13019
|
+
/**
|
13020
|
+
* Retrieves information about the OS and the currently logged in user.
|
13021
|
+
*
|
13022
|
+
* @example
|
13023
|
+
* ```js
|
13024
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13025
|
+
* ```
|
13026
|
+
*/
|
13027
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12959
13028
|
/**
|
12960
13029
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12961
13030
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14083,6 +14152,7 @@ declare type SystemEventType = EventType_8;
|
|
14083
14152
|
* @interface
|
14084
14153
|
*/
|
14085
14154
|
declare type SystemPermissions = {
|
14155
|
+
getOSInfo: boolean;
|
14086
14156
|
getAllExternalWindows: boolean;
|
14087
14157
|
launchExternalProcess: boolean | {
|
14088
14158
|
enabled: boolean;
|
package/out/mock.d.ts
CHANGED
@@ -3761,6 +3761,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3761
3761
|
|
3762
3762
|
/**
|
3763
3763
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3764
|
+
* @interface
|
3764
3765
|
*/
|
3765
3766
|
declare type ContentBlockedEvent = NamedEvent & {
|
3766
3767
|
type: 'content-blocked';
|
@@ -9214,6 +9215,42 @@ declare type NavigationRules = {
|
|
9214
9215
|
|
9215
9216
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
9216
9217
|
|
9218
|
+
declare interface NodeNetworkInterfaceBase {
|
9219
|
+
address: string;
|
9220
|
+
netmask: string;
|
9221
|
+
mac: string;
|
9222
|
+
internal: boolean;
|
9223
|
+
cidr: string | null;
|
9224
|
+
}
|
9225
|
+
|
9226
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
9227
|
+
|
9228
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
9229
|
+
family: 'IPv4';
|
9230
|
+
scopeid?: undefined;
|
9231
|
+
}
|
9232
|
+
|
9233
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
9234
|
+
family: 'IPv6';
|
9235
|
+
scopeid: number;
|
9236
|
+
}
|
9237
|
+
|
9238
|
+
declare interface NodeUserInfo {
|
9239
|
+
username: string;
|
9240
|
+
uid: number;
|
9241
|
+
gid: number;
|
9242
|
+
shell: string | null;
|
9243
|
+
homedir: string;
|
9244
|
+
}
|
9245
|
+
|
9246
|
+
declare interface NodeUserInfo {
|
9247
|
+
username: string;
|
9248
|
+
uid: number;
|
9249
|
+
gid: number;
|
9250
|
+
shell: string | null;
|
9251
|
+
homedir: string;
|
9252
|
+
}
|
9253
|
+
|
9217
9254
|
/**
|
9218
9255
|
* @interface
|
9219
9256
|
*/
|
@@ -9453,6 +9490,7 @@ declare namespace OpenFin_2 {
|
|
9453
9490
|
Time,
|
9454
9491
|
CpuInfo,
|
9455
9492
|
GpuInfo,
|
9493
|
+
OSInfo,
|
9456
9494
|
HostSpecs,
|
9457
9495
|
PrinterInfo_2 as PrinterInfo,
|
9458
9496
|
Dpi,
|
@@ -9662,6 +9700,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9662
9700
|
diff: OpenFin_2.WindowOptionDiff;
|
9663
9701
|
};
|
9664
9702
|
|
9703
|
+
/**
|
9704
|
+
* @interface
|
9705
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9706
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9707
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9708
|
+
*/
|
9709
|
+
declare type OSInfo = {
|
9710
|
+
platform: string;
|
9711
|
+
release: string;
|
9712
|
+
version: string;
|
9713
|
+
/**
|
9714
|
+
* Throws if a user has no username or homedir.
|
9715
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9716
|
+
*/
|
9717
|
+
userInfo: NodeUserInfo;
|
9718
|
+
hostname: string;
|
9719
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9720
|
+
};
|
9721
|
+
|
9665
9722
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9666
9723
|
|
9667
9724
|
/**
|
@@ -12001,6 +12058,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
12001
12058
|
};
|
12002
12059
|
response: void;
|
12003
12060
|
};
|
12061
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
12062
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
12004
12063
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
12005
12064
|
'system-register-shutdown-handler': VoidCall;
|
12006
12065
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -13347,7 +13406,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
13347
13406
|
*/
|
13348
13407
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
13349
13408
|
/**
|
13350
|
-
* Retrieves system information.
|
13409
|
+
* Retrieves general system information. If you need more detailed information about the
|
13410
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
13351
13411
|
*
|
13352
13412
|
* @example
|
13353
13413
|
* ```js
|
@@ -13355,6 +13415,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
13355
13415
|
* ```
|
13356
13416
|
*/
|
13357
13417
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13418
|
+
/**
|
13419
|
+
* Retrieves information about the OS and the currently logged in user.
|
13420
|
+
*
|
13421
|
+
* @example
|
13422
|
+
* ```js
|
13423
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13424
|
+
* ```
|
13425
|
+
*/
|
13426
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
13358
13427
|
/**
|
13359
13428
|
* Runs an executable or batch file. A path to the file must be included in options.
|
13360
13429
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14482,6 +14551,7 @@ declare type SystemEventType = EventType_8;
|
|
14482
14551
|
* @interface
|
14483
14552
|
*/
|
14484
14553
|
declare type SystemPermissions = {
|
14554
|
+
getOSInfo: boolean;
|
14485
14555
|
getAllExternalWindows: boolean;
|
14486
14556
|
launchExternalProcess: boolean | {
|
14487
14557
|
enabled: boolean;
|
package/out/mock.js
CHANGED
@@ -6393,7 +6393,8 @@ class System extends base_1$i.EmitterBase {
|
|
6393
6393
|
return this.wire.sendAction('get-rvm-info').then(({ payload }) => payload.data);
|
6394
6394
|
}
|
6395
6395
|
/**
|
6396
|
-
* Retrieves system information.
|
6396
|
+
* Retrieves general system information. If you need more detailed information about the
|
6397
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
6397
6398
|
*
|
6398
6399
|
* @example
|
6399
6400
|
* ```js
|
@@ -6403,6 +6404,17 @@ class System extends base_1$i.EmitterBase {
|
|
6403
6404
|
getHostSpecs() {
|
6404
6405
|
return this.wire.sendAction('get-host-specs').then(({ payload }) => payload.data);
|
6405
6406
|
}
|
6407
|
+
/**
|
6408
|
+
* Retrieves information about the OS and the currently logged in user.
|
6409
|
+
*
|
6410
|
+
* @example
|
6411
|
+
* ```js
|
6412
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
6413
|
+
* ```
|
6414
|
+
*/
|
6415
|
+
getOSInfo() {
|
6416
|
+
return this.wire.sendAction('get-os-info').then(({ payload }) => payload.data);
|
6417
|
+
}
|
6406
6418
|
/**
|
6407
6419
|
* Runs an executable or batch file. A path to the file must be included in options.
|
6408
6420
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|