@openfin/core 38.82.61 → 38.82.63
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/mock-alpha.d.ts +63 -1
- package/out/mock-beta.d.ts +63 -1
- package/out/mock-public.d.ts +63 -1
- package/out/mock.d.ts +63 -1
- package/out/mock.js +13 -1
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
@@ -3705,6 +3705,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3705
3705
|
|
3706
3706
|
/**
|
3707
3707
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3708
|
+
* @interface
|
3708
3709
|
*/
|
3709
3710
|
declare type ContentBlockedEvent = NamedEvent & {
|
3710
3711
|
type: 'content-blocked';
|
@@ -8905,6 +8906,34 @@ declare type NavigationRules = {
|
|
8905
8906
|
|
8906
8907
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8907
8908
|
|
8909
|
+
declare interface NodeNetworkInterfaceBase {
|
8910
|
+
address: string;
|
8911
|
+
netmask: string;
|
8912
|
+
mac: string;
|
8913
|
+
internal: boolean;
|
8914
|
+
cidr: string | null;
|
8915
|
+
}
|
8916
|
+
|
8917
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8918
|
+
|
8919
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8920
|
+
family: 'IPv4';
|
8921
|
+
scopeid?: undefined;
|
8922
|
+
}
|
8923
|
+
|
8924
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8925
|
+
family: 'IPv6';
|
8926
|
+
scopeid: number;
|
8927
|
+
}
|
8928
|
+
|
8929
|
+
declare interface NodeUserInfo {
|
8930
|
+
username: string;
|
8931
|
+
uid: number;
|
8932
|
+
gid: number;
|
8933
|
+
shell: string | null;
|
8934
|
+
homedir: string;
|
8935
|
+
}
|
8936
|
+
|
8908
8937
|
/**
|
8909
8938
|
* @interface
|
8910
8939
|
*/
|
@@ -9134,6 +9163,7 @@ declare namespace OpenFin_2 {
|
|
9134
9163
|
Time,
|
9135
9164
|
CpuInfo,
|
9136
9165
|
GpuInfo,
|
9166
|
+
OSInfo,
|
9137
9167
|
HostSpecs,
|
9138
9168
|
PrinterInfo_2 as PrinterInfo,
|
9139
9169
|
Dpi,
|
@@ -9343,6 +9373,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9343
9373
|
diff: OpenFin_2.WindowOptionDiff;
|
9344
9374
|
};
|
9345
9375
|
|
9376
|
+
/**
|
9377
|
+
* @interface
|
9378
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9379
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9380
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9381
|
+
*/
|
9382
|
+
declare type OSInfo = {
|
9383
|
+
platform: string;
|
9384
|
+
release: string;
|
9385
|
+
version: string;
|
9386
|
+
/**
|
9387
|
+
* Throws if a user has no username or homedir.
|
9388
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9389
|
+
*/
|
9390
|
+
userInfo: NodeUserInfo;
|
9391
|
+
hostname: string;
|
9392
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9393
|
+
};
|
9394
|
+
|
9346
9395
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9347
9396
|
|
9348
9397
|
/**
|
@@ -11604,6 +11653,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11604
11653
|
};
|
11605
11654
|
response: void;
|
11606
11655
|
};
|
11656
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11657
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11607
11658
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11608
11659
|
'system-register-shutdown-handler': VoidCall;
|
11609
11660
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12944,7 +12995,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12944
12995
|
*/
|
12945
12996
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12946
12997
|
/**
|
12947
|
-
* Retrieves system information.
|
12998
|
+
* Retrieves general system information. If you need more detailed information about the
|
12999
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12948
13000
|
*
|
12949
13001
|
* @example
|
12950
13002
|
* ```js
|
@@ -12952,6 +13004,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12952
13004
|
* ```
|
12953
13005
|
*/
|
12954
13006
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13007
|
+
/**
|
13008
|
+
* Retrieves information about the OS and the currently logged in user.
|
13009
|
+
*
|
13010
|
+
* @example
|
13011
|
+
* ```js
|
13012
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13013
|
+
* ```
|
13014
|
+
*/
|
13015
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12955
13016
|
/**
|
12956
13017
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12957
13018
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14079,6 +14140,7 @@ declare type SystemEventType = EventType_8;
|
|
14079
14140
|
* @interface
|
14080
14141
|
*/
|
14081
14142
|
declare type SystemPermissions = {
|
14143
|
+
getOSInfo: boolean;
|
14082
14144
|
getAllExternalWindows: boolean;
|
14083
14145
|
launchExternalProcess: boolean | {
|
14084
14146
|
enabled: boolean;
|
package/out/mock-beta.d.ts
CHANGED
@@ -3705,6 +3705,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3705
3705
|
|
3706
3706
|
/**
|
3707
3707
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3708
|
+
* @interface
|
3708
3709
|
*/
|
3709
3710
|
declare type ContentBlockedEvent = NamedEvent & {
|
3710
3711
|
type: 'content-blocked';
|
@@ -8905,6 +8906,34 @@ declare type NavigationRules = {
|
|
8905
8906
|
|
8906
8907
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8907
8908
|
|
8909
|
+
declare interface NodeNetworkInterfaceBase {
|
8910
|
+
address: string;
|
8911
|
+
netmask: string;
|
8912
|
+
mac: string;
|
8913
|
+
internal: boolean;
|
8914
|
+
cidr: string | null;
|
8915
|
+
}
|
8916
|
+
|
8917
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8918
|
+
|
8919
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8920
|
+
family: 'IPv4';
|
8921
|
+
scopeid?: undefined;
|
8922
|
+
}
|
8923
|
+
|
8924
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8925
|
+
family: 'IPv6';
|
8926
|
+
scopeid: number;
|
8927
|
+
}
|
8928
|
+
|
8929
|
+
declare interface NodeUserInfo {
|
8930
|
+
username: string;
|
8931
|
+
uid: number;
|
8932
|
+
gid: number;
|
8933
|
+
shell: string | null;
|
8934
|
+
homedir: string;
|
8935
|
+
}
|
8936
|
+
|
8908
8937
|
/**
|
8909
8938
|
* @interface
|
8910
8939
|
*/
|
@@ -9134,6 +9163,7 @@ declare namespace OpenFin_2 {
|
|
9134
9163
|
Time,
|
9135
9164
|
CpuInfo,
|
9136
9165
|
GpuInfo,
|
9166
|
+
OSInfo,
|
9137
9167
|
HostSpecs,
|
9138
9168
|
PrinterInfo_2 as PrinterInfo,
|
9139
9169
|
Dpi,
|
@@ -9343,6 +9373,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9343
9373
|
diff: OpenFin_2.WindowOptionDiff;
|
9344
9374
|
};
|
9345
9375
|
|
9376
|
+
/**
|
9377
|
+
* @interface
|
9378
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9379
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9380
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9381
|
+
*/
|
9382
|
+
declare type OSInfo = {
|
9383
|
+
platform: string;
|
9384
|
+
release: string;
|
9385
|
+
version: string;
|
9386
|
+
/**
|
9387
|
+
* Throws if a user has no username or homedir.
|
9388
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9389
|
+
*/
|
9390
|
+
userInfo: NodeUserInfo;
|
9391
|
+
hostname: string;
|
9392
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9393
|
+
};
|
9394
|
+
|
9346
9395
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9347
9396
|
|
9348
9397
|
/**
|
@@ -11604,6 +11653,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11604
11653
|
};
|
11605
11654
|
response: void;
|
11606
11655
|
};
|
11656
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11657
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11607
11658
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11608
11659
|
'system-register-shutdown-handler': VoidCall;
|
11609
11660
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12944,7 +12995,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12944
12995
|
*/
|
12945
12996
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12946
12997
|
/**
|
12947
|
-
* Retrieves system information.
|
12998
|
+
* Retrieves general system information. If you need more detailed information about the
|
12999
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12948
13000
|
*
|
12949
13001
|
* @example
|
12950
13002
|
* ```js
|
@@ -12952,6 +13004,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12952
13004
|
* ```
|
12953
13005
|
*/
|
12954
13006
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13007
|
+
/**
|
13008
|
+
* Retrieves information about the OS and the currently logged in user.
|
13009
|
+
*
|
13010
|
+
* @example
|
13011
|
+
* ```js
|
13012
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13013
|
+
* ```
|
13014
|
+
*/
|
13015
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12955
13016
|
/**
|
12956
13017
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12957
13018
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14079,6 +14140,7 @@ declare type SystemEventType = EventType_8;
|
|
14079
14140
|
* @interface
|
14080
14141
|
*/
|
14081
14142
|
declare type SystemPermissions = {
|
14143
|
+
getOSInfo: boolean;
|
14082
14144
|
getAllExternalWindows: boolean;
|
14083
14145
|
launchExternalProcess: boolean | {
|
14084
14146
|
enabled: boolean;
|
package/out/mock-public.d.ts
CHANGED
@@ -3705,6 +3705,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3705
3705
|
|
3706
3706
|
/**
|
3707
3707
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3708
|
+
* @interface
|
3708
3709
|
*/
|
3709
3710
|
declare type ContentBlockedEvent = NamedEvent & {
|
3710
3711
|
type: 'content-blocked';
|
@@ -8905,6 +8906,34 @@ declare type NavigationRules = {
|
|
8905
8906
|
|
8906
8907
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
8907
8908
|
|
8909
|
+
declare interface NodeNetworkInterfaceBase {
|
8910
|
+
address: string;
|
8911
|
+
netmask: string;
|
8912
|
+
mac: string;
|
8913
|
+
internal: boolean;
|
8914
|
+
cidr: string | null;
|
8915
|
+
}
|
8916
|
+
|
8917
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
8918
|
+
|
8919
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
8920
|
+
family: 'IPv4';
|
8921
|
+
scopeid?: undefined;
|
8922
|
+
}
|
8923
|
+
|
8924
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
8925
|
+
family: 'IPv6';
|
8926
|
+
scopeid: number;
|
8927
|
+
}
|
8928
|
+
|
8929
|
+
declare interface NodeUserInfo {
|
8930
|
+
username: string;
|
8931
|
+
uid: number;
|
8932
|
+
gid: number;
|
8933
|
+
shell: string | null;
|
8934
|
+
homedir: string;
|
8935
|
+
}
|
8936
|
+
|
8908
8937
|
/**
|
8909
8938
|
* @interface
|
8910
8939
|
*/
|
@@ -9134,6 +9163,7 @@ declare namespace OpenFin_2 {
|
|
9134
9163
|
Time,
|
9135
9164
|
CpuInfo,
|
9136
9165
|
GpuInfo,
|
9166
|
+
OSInfo,
|
9137
9167
|
HostSpecs,
|
9138
9168
|
PrinterInfo_2 as PrinterInfo,
|
9139
9169
|
Dpi,
|
@@ -9343,6 +9373,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9343
9373
|
diff: OpenFin_2.WindowOptionDiff;
|
9344
9374
|
};
|
9345
9375
|
|
9376
|
+
/**
|
9377
|
+
* @interface
|
9378
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9379
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9380
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9381
|
+
*/
|
9382
|
+
declare type OSInfo = {
|
9383
|
+
platform: string;
|
9384
|
+
release: string;
|
9385
|
+
version: string;
|
9386
|
+
/**
|
9387
|
+
* Throws if a user has no username or homedir.
|
9388
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9389
|
+
*/
|
9390
|
+
userInfo: NodeUserInfo;
|
9391
|
+
hostname: string;
|
9392
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9393
|
+
};
|
9394
|
+
|
9346
9395
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9347
9396
|
|
9348
9397
|
/**
|
@@ -11604,6 +11653,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11604
11653
|
};
|
11605
11654
|
response: void;
|
11606
11655
|
};
|
11656
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
11657
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
11607
11658
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
11608
11659
|
'system-register-shutdown-handler': VoidCall;
|
11609
11660
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -12944,7 +12995,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12944
12995
|
*/
|
12945
12996
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
12946
12997
|
/**
|
12947
|
-
* Retrieves system information.
|
12998
|
+
* Retrieves general system information. If you need more detailed information about the
|
12999
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
12948
13000
|
*
|
12949
13001
|
* @example
|
12950
13002
|
* ```js
|
@@ -12952,6 +13004,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
12952
13004
|
* ```
|
12953
13005
|
*/
|
12954
13006
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13007
|
+
/**
|
13008
|
+
* Retrieves information about the OS and the currently logged in user.
|
13009
|
+
*
|
13010
|
+
* @example
|
13011
|
+
* ```js
|
13012
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13013
|
+
* ```
|
13014
|
+
*/
|
13015
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
12955
13016
|
/**
|
12956
13017
|
* Runs an executable or batch file. A path to the file must be included in options.
|
12957
13018
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14079,6 +14140,7 @@ declare type SystemEventType = EventType_8;
|
|
14079
14140
|
* @interface
|
14080
14141
|
*/
|
14081
14142
|
declare type SystemPermissions = {
|
14143
|
+
getOSInfo: boolean;
|
14082
14144
|
getAllExternalWindows: boolean;
|
14083
14145
|
launchExternalProcess: boolean | {
|
14084
14146
|
enabled: boolean;
|
package/out/mock.d.ts
CHANGED
@@ -3764,6 +3764,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
|
|
3764
3764
|
|
3765
3765
|
/**
|
3766
3766
|
* Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
|
3767
|
+
* @interface
|
3767
3768
|
*/
|
3768
3769
|
declare type ContentBlockedEvent = NamedEvent & {
|
3769
3770
|
type: 'content-blocked';
|
@@ -9210,6 +9211,34 @@ declare type NavigationRules = {
|
|
9210
9211
|
|
9211
9212
|
declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
|
9212
9213
|
|
9214
|
+
declare interface NodeNetworkInterfaceBase {
|
9215
|
+
address: string;
|
9216
|
+
netmask: string;
|
9217
|
+
mac: string;
|
9218
|
+
internal: boolean;
|
9219
|
+
cidr: string | null;
|
9220
|
+
}
|
9221
|
+
|
9222
|
+
declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
|
9223
|
+
|
9224
|
+
declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
|
9225
|
+
family: 'IPv4';
|
9226
|
+
scopeid?: undefined;
|
9227
|
+
}
|
9228
|
+
|
9229
|
+
declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
|
9230
|
+
family: 'IPv6';
|
9231
|
+
scopeid: number;
|
9232
|
+
}
|
9233
|
+
|
9234
|
+
declare interface NodeUserInfo {
|
9235
|
+
username: string;
|
9236
|
+
uid: number;
|
9237
|
+
gid: number;
|
9238
|
+
shell: string | null;
|
9239
|
+
homedir: string;
|
9240
|
+
}
|
9241
|
+
|
9213
9242
|
/**
|
9214
9243
|
* @interface
|
9215
9244
|
*/
|
@@ -9449,6 +9478,7 @@ declare namespace OpenFin_2 {
|
|
9449
9478
|
Time,
|
9450
9479
|
CpuInfo,
|
9451
9480
|
GpuInfo,
|
9481
|
+
OSInfo,
|
9452
9482
|
HostSpecs,
|
9453
9483
|
PrinterInfo_2 as PrinterInfo,
|
9454
9484
|
Dpi,
|
@@ -9658,6 +9688,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
9658
9688
|
diff: OpenFin_2.WindowOptionDiff;
|
9659
9689
|
};
|
9660
9690
|
|
9691
|
+
/**
|
9692
|
+
* @interface
|
9693
|
+
* The keys represent the output from calling individual Node `os` APIs.
|
9694
|
+
* For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
|
9695
|
+
* see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
|
9696
|
+
*/
|
9697
|
+
declare type OSInfo = {
|
9698
|
+
platform: string;
|
9699
|
+
release: string;
|
9700
|
+
version: string;
|
9701
|
+
/**
|
9702
|
+
* Throws if a user has no username or homedir.
|
9703
|
+
* See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
|
9704
|
+
*/
|
9705
|
+
userInfo: NodeUserInfo;
|
9706
|
+
hostname: string;
|
9707
|
+
networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
|
9708
|
+
};
|
9709
|
+
|
9661
9710
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
9662
9711
|
|
9663
9712
|
/**
|
@@ -11997,6 +12046,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
11997
12046
|
};
|
11998
12047
|
response: void;
|
11999
12048
|
};
|
12049
|
+
'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
|
12050
|
+
'get-os-info': GetterCall<OpenFin_2.OSInfo>;
|
12000
12051
|
'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
|
12001
12052
|
'system-register-shutdown-handler': VoidCall;
|
12002
12053
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
@@ -13343,7 +13394,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
13343
13394
|
*/
|
13344
13395
|
getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
|
13345
13396
|
/**
|
13346
|
-
* Retrieves system information.
|
13397
|
+
* Retrieves general system information. If you need more detailed information about the
|
13398
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
13347
13399
|
*
|
13348
13400
|
* @example
|
13349
13401
|
* ```js
|
@@ -13351,6 +13403,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
13351
13403
|
* ```
|
13352
13404
|
*/
|
13353
13405
|
getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
|
13406
|
+
/**
|
13407
|
+
* Retrieves information about the OS and the currently logged in user.
|
13408
|
+
*
|
13409
|
+
* @example
|
13410
|
+
* ```js
|
13411
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
13412
|
+
* ```
|
13413
|
+
*/
|
13414
|
+
getOSInfo(): Promise<OpenFin_2.OSInfo>;
|
13354
13415
|
/**
|
13355
13416
|
* Runs an executable or batch file. A path to the file must be included in options.
|
13356
13417
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|
@@ -14478,6 +14539,7 @@ declare type SystemEventType = EventType_8;
|
|
14478
14539
|
* @interface
|
14479
14540
|
*/
|
14480
14541
|
declare type SystemPermissions = {
|
14542
|
+
getOSInfo: boolean;
|
14481
14543
|
getAllExternalWindows: boolean;
|
14482
14544
|
launchExternalProcess: boolean | {
|
14483
14545
|
enabled: boolean;
|
package/out/mock.js
CHANGED
@@ -6396,7 +6396,8 @@ class System extends base_1$i.EmitterBase {
|
|
6396
6396
|
return this.wire.sendAction('get-rvm-info').then(({ payload }) => payload.data);
|
6397
6397
|
}
|
6398
6398
|
/**
|
6399
|
-
* Retrieves system information.
|
6399
|
+
* Retrieves general system information. If you need more detailed information about the
|
6400
|
+
* OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
|
6400
6401
|
*
|
6401
6402
|
* @example
|
6402
6403
|
* ```js
|
@@ -6406,6 +6407,17 @@ class System extends base_1$i.EmitterBase {
|
|
6406
6407
|
getHostSpecs() {
|
6407
6408
|
return this.wire.sendAction('get-host-specs').then(({ payload }) => payload.data);
|
6408
6409
|
}
|
6410
|
+
/**
|
6411
|
+
* Retrieves information about the OS and the currently logged in user.
|
6412
|
+
*
|
6413
|
+
* @example
|
6414
|
+
* ```js
|
6415
|
+
* fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
|
6416
|
+
* ```
|
6417
|
+
*/
|
6418
|
+
getOSInfo() {
|
6419
|
+
return this.wire.sendAction('get-os-info').then(({ payload }) => payload.data);
|
6420
|
+
}
|
6409
6421
|
/**
|
6410
6422
|
* Runs an executable or batch file. A path to the file must be included in options.
|
6411
6423
|
* <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
|