@overwolf/ow-electron-packages-types 1.1.0-beta.4 → 1.1.0-beta.5
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/package.json +1 -1
- package/types.d.ts +28 -7
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -56,6 +56,9 @@ interface IOverwolfUtilityApi {
|
|
|
56
56
|
/**
|
|
57
57
|
* Scans the system for installed games that match the provided filter.
|
|
58
58
|
*
|
|
59
|
+
* If a game is installed on multiple platforms (e.g. both Steam and Epic Games),
|
|
60
|
+
* each installation is returned as a separate `InstalledGameInfo` entry.
|
|
61
|
+
*
|
|
59
62
|
* @param filter - Optional. Configuration specifying which games to include in the scan.
|
|
60
63
|
* @returns A promise that resolves to an array of `InstalledGameInfo` objects representing the installed games.
|
|
61
64
|
*/
|
|
@@ -69,13 +72,13 @@ interface IOverwolfUtilityApi {
|
|
|
69
72
|
* @throws {HelperInstallError} exitCode 1223 — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
70
73
|
* @throws {HelperInstallError} any other non-zero exitCode — installation failed
|
|
71
74
|
*/
|
|
72
|
-
installHighElevationHelper(): Promise<void>;
|
|
75
|
+
installHighElevationHelper?(): Promise<void>;
|
|
73
76
|
|
|
74
77
|
/**
|
|
75
78
|
* Returns true if ow-electron helpers is already installed in
|
|
76
79
|
* %CommonProgramFiles%\<app-name>\.
|
|
77
80
|
*/
|
|
78
|
-
isHighElevationHelperInstalled(): Promise<boolean>;
|
|
81
|
+
isHighElevationHelperInstalled?(): Promise<boolean>;
|
|
79
82
|
|
|
80
83
|
/**
|
|
81
84
|
* Fires when a tracked game is launched.
|
|
@@ -4622,14 +4625,16 @@ type GameInfoType = 'Game' | 'Launcher' | undefined;
|
|
|
4622
4625
|
|
|
4623
4626
|
/**
|
|
4624
4627
|
* Information about a game installed on the user's system.
|
|
4625
|
-
*
|
|
4628
|
+
*
|
|
4626
4629
|
* Includes:
|
|
4627
4630
|
* - The Game's ID.
|
|
4628
|
-
* - Installation path.
|
|
4631
|
+
* - Installation path and install folder.
|
|
4632
|
+
* - Steam store ID (if installed via Steam).
|
|
4633
|
+
* - Epic Games store ID (if installed via Epic Games Launcher).
|
|
4629
4634
|
* - Name of the game.
|
|
4630
4635
|
* - Type (`game` or `launcher`).
|
|
4631
4636
|
* - Overlay support status.
|
|
4632
|
-
*
|
|
4637
|
+
*
|
|
4633
4638
|
*/
|
|
4634
4639
|
type InstalledGameInfo = {
|
|
4635
4640
|
/**
|
|
@@ -4642,6 +4647,22 @@ type InstalledGameInfo = {
|
|
|
4642
4647
|
*/
|
|
4643
4648
|
path?: string;
|
|
4644
4649
|
|
|
4650
|
+
/**
|
|
4651
|
+
* The root folder where the game is installed.
|
|
4652
|
+
* (when detected from steam or epic)
|
|
4653
|
+
*/
|
|
4654
|
+
installFolder?: string;
|
|
4655
|
+
|
|
4656
|
+
/**
|
|
4657
|
+
* The game's Steam store ID.
|
|
4658
|
+
*/
|
|
4659
|
+
steamId?: number;
|
|
4660
|
+
|
|
4661
|
+
/**
|
|
4662
|
+
* The game's Epic Games store ID.
|
|
4663
|
+
*/
|
|
4664
|
+
epicId?: string;
|
|
4665
|
+
|
|
4645
4666
|
/**
|
|
4646
4667
|
* Name of the game.
|
|
4647
4668
|
*/
|
|
@@ -5449,13 +5470,13 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
5449
5470
|
* @throws {HelperInstallError} exitCode 1223 — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
5450
5471
|
* @throws {HelperInstallError} any other non-zero exitCode — installation failed
|
|
5451
5472
|
*/
|
|
5452
|
-
installHighElevationHelper(): Promise<void>;
|
|
5473
|
+
installHighElevationHelper?(): Promise<void>;
|
|
5453
5474
|
|
|
5454
5475
|
/**
|
|
5455
5476
|
* Returns true if ow-electron helpers is already installed in
|
|
5456
5477
|
* %CommonProgramFiles%\<app-name>\.
|
|
5457
5478
|
*/
|
|
5458
|
-
isHighElevationHelperInstalled(): Promise<boolean>;
|
|
5479
|
+
isHighElevationHelperInstalled?(): Promise<boolean>;
|
|
5459
5480
|
|
|
5460
5481
|
/**
|
|
5461
5482
|
* Fires when an internal error occurs within the overlay system.
|