poe-api-manager 1.2.13 → 1.2.16
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/Changelog.md +3 -0
- package/README.md +1 -0
- package/dist/lib/NinjaAPI.d.ts +4 -2
- package/dist/lib/NinjaAPI.js +4 -2
- package/dist/lib/Utils.d.ts +5 -4
- package/dist/lib/Utils.js +5 -4
- package/dist/lib/WatchAPI.d.ts +6 -4
- package/dist/lib/WatchAPI.js +4 -2
- package/dist/lib/modules/AbstractClass/PoeNinja.d.ts +1 -0
- package/dist/lib/modules/AbstractClass/PoeNinja.js +1 -0
- package/dist/lib/modules/poe.ninja/itemView/ItemViewModule.d.ts +1 -1
- package/dist/lib/modules/poe.ninja/itemView/ItemViewModule.js +1 -1
- package/dist/lib/modules/poe.watch/WatchViewModule.d.ts +2 -2
- package/dist/lib/modules/poe.watch/WatchViewModule.js +4 -4
- package/package.json +1 -1
package/Changelog.md
CHANGED
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
[](https://github.com/ayberkgezer/poe-api-manager/issues)
|
|
7
7
|

|
|
8
|
+

|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
- [Introduction](#introduction)
|
package/dist/lib/NinjaAPI.d.ts
CHANGED
|
@@ -2,20 +2,22 @@ import { CurrencyViewModule } from "./modules/poe.ninja/currencyView/CurrencyVie
|
|
|
2
2
|
import { ItemViewModule } from "./modules/poe.ninja/itemView/ItemViewModule";
|
|
3
3
|
/**
|
|
4
4
|
* Represents an API for interacting with the poe.ninja API.
|
|
5
|
+
* @class
|
|
5
6
|
*/
|
|
6
7
|
export declare class NinjaAPI {
|
|
7
8
|
/**
|
|
8
9
|
* The CurrencyViewModule instance for fetching currency-related data.
|
|
10
|
+
* @type {CurrencyViewModule}
|
|
9
11
|
*/
|
|
10
12
|
currencyView: CurrencyViewModule;
|
|
11
13
|
/**
|
|
12
14
|
* The ItemViewModule instance for fetching item-related data.
|
|
13
|
-
*
|
|
15
|
+
* @type {ItemViewModule}
|
|
14
16
|
*/
|
|
15
17
|
itemView: ItemViewModule;
|
|
16
18
|
/**
|
|
17
19
|
* Creates an instance of NinjaAPI.
|
|
18
|
-
* @param league The PoE league for which data is requested.
|
|
20
|
+
* @param {string} league The PoE league for which data is requested.
|
|
19
21
|
*/
|
|
20
22
|
constructor(league: string);
|
|
21
23
|
}
|
package/dist/lib/NinjaAPI.js
CHANGED
|
@@ -5,20 +5,22 @@ const CurrencyViewModule_1 = require("./modules/poe.ninja/currencyView/CurrencyV
|
|
|
5
5
|
const ItemViewModule_1 = require("./modules/poe.ninja/itemView/ItemViewModule");
|
|
6
6
|
/**
|
|
7
7
|
* Represents an API for interacting with the poe.ninja API.
|
|
8
|
+
* @class
|
|
8
9
|
*/
|
|
9
10
|
class NinjaAPI {
|
|
10
11
|
/**
|
|
11
12
|
* The CurrencyViewModule instance for fetching currency-related data.
|
|
13
|
+
* @type {CurrencyViewModule}
|
|
12
14
|
*/
|
|
13
15
|
currencyView;
|
|
14
16
|
/**
|
|
15
17
|
* The ItemViewModule instance for fetching item-related data.
|
|
16
|
-
*
|
|
18
|
+
* @type {ItemViewModule}
|
|
17
19
|
*/
|
|
18
20
|
itemView;
|
|
19
21
|
/**
|
|
20
22
|
* Creates an instance of NinjaAPI.
|
|
21
|
-
* @param league The PoE league for which data is requested.
|
|
23
|
+
* @param {string} league The PoE league for which data is requested.
|
|
22
24
|
*/
|
|
23
25
|
constructor(league) {
|
|
24
26
|
this.currencyView = new CurrencyViewModule_1.CurrencyViewModule(league, "currencyoverview");
|
package/dist/lib/Utils.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A utility class.
|
|
3
|
+
* @class
|
|
3
4
|
*/
|
|
4
5
|
declare class Utils {
|
|
5
6
|
constructor();
|
|
6
7
|
/**
|
|
7
8
|
* Fetches the list of leagues for the game.
|
|
8
|
-
* @returns The array of league names.
|
|
9
|
+
* @returns {string[]} The array of league names.
|
|
9
10
|
* @throws If there's an error fetching the leagues.
|
|
10
11
|
*/
|
|
11
12
|
getLeagues(): Promise<string[]>;
|
|
12
13
|
/**
|
|
13
14
|
* Filters properties of objects in an array based on the specified properties.
|
|
14
15
|
*
|
|
15
|
-
* @param data - The array of objects to filter.
|
|
16
|
-
* @param properties - The array of property names to include in the result.
|
|
17
|
-
* @returns - An array of objects with only the specified properties.
|
|
16
|
+
* @param {object[]} data - The array of objects to filter.
|
|
17
|
+
* @param {string[]} properties - The array of property names to include in the result.
|
|
18
|
+
* @returns {object[]} - An array of objects with only the specified properties.
|
|
18
19
|
*/
|
|
19
20
|
filterProperties(data: object[], properties: string[]): Promise<object[]>;
|
|
20
21
|
}
|
package/dist/lib/Utils.js
CHANGED
|
@@ -7,12 +7,13 @@ const getLeagues_1 = __importDefault(require("./modules/utils/getLeagues"));
|
|
|
7
7
|
const propertyFilter_1 = __importDefault(require("./modules/mainfunctions/propertyFilter"));
|
|
8
8
|
/**
|
|
9
9
|
* A utility class.
|
|
10
|
+
* @class
|
|
10
11
|
*/
|
|
11
12
|
class Utils {
|
|
12
13
|
constructor() { }
|
|
13
14
|
/**
|
|
14
15
|
* Fetches the list of leagues for the game.
|
|
15
|
-
* @returns The array of league names.
|
|
16
|
+
* @returns {string[]} The array of league names.
|
|
16
17
|
* @throws If there's an error fetching the leagues.
|
|
17
18
|
*/
|
|
18
19
|
async getLeagues() {
|
|
@@ -26,9 +27,9 @@ class Utils {
|
|
|
26
27
|
/**
|
|
27
28
|
* Filters properties of objects in an array based on the specified properties.
|
|
28
29
|
*
|
|
29
|
-
* @param data - The array of objects to filter.
|
|
30
|
-
* @param properties - The array of property names to include in the result.
|
|
31
|
-
* @returns - An array of objects with only the specified properties.
|
|
30
|
+
* @param {object[]} data - The array of objects to filter.
|
|
31
|
+
* @param {string[]} properties - The array of property names to include in the result.
|
|
32
|
+
* @returns {object[]} - An array of objects with only the specified properties.
|
|
32
33
|
*/
|
|
33
34
|
async filterProperties(data, properties) {
|
|
34
35
|
try {
|
package/dist/lib/WatchAPI.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import WatchViewModule from "./modules/poe.watch/WatchViewModule";
|
|
2
2
|
/**
|
|
3
3
|
* Represents an API for interacting with a poe.watch service.
|
|
4
|
+
* @class
|
|
4
5
|
*/
|
|
5
6
|
export declare class WatchAPI {
|
|
6
7
|
/**
|
|
7
|
-
* The
|
|
8
|
+
* The WatchViewModule instance associated with this API.
|
|
9
|
+
* @type {WatchViewModule}
|
|
8
10
|
*/
|
|
9
|
-
view:
|
|
11
|
+
view: WatchViewModule;
|
|
10
12
|
/**
|
|
11
13
|
* Creates an instance of WatchAPI.
|
|
12
|
-
* @param league - The league for which the API should be initialized.
|
|
14
|
+
* @param {string} league - The league for which the API should be initialized.
|
|
13
15
|
*/
|
|
14
16
|
constructor(league: string);
|
|
15
17
|
}
|
package/dist/lib/WatchAPI.js
CHANGED
|
@@ -7,15 +7,17 @@ exports.WatchAPI = void 0;
|
|
|
7
7
|
const WatchViewModule_1 = __importDefault(require("./modules/poe.watch/WatchViewModule"));
|
|
8
8
|
/**
|
|
9
9
|
* Represents an API for interacting with a poe.watch service.
|
|
10
|
+
* @class
|
|
10
11
|
*/
|
|
11
12
|
class WatchAPI {
|
|
12
13
|
/**
|
|
13
|
-
* The
|
|
14
|
+
* The WatchViewModule instance associated with this API.
|
|
15
|
+
* @type {WatchViewModule}
|
|
14
16
|
*/
|
|
15
17
|
view;
|
|
16
18
|
/**
|
|
17
19
|
* Creates an instance of WatchAPI.
|
|
18
|
-
* @param league - The league for which the API should be initialized.
|
|
20
|
+
* @param {string} league - The league for which the API should be initialized.
|
|
19
21
|
*/
|
|
20
22
|
constructor(league) {
|
|
21
23
|
this.view = new WatchViewModule_1.default(league);
|
|
@@ -120,7 +120,7 @@ export declare class ItemViewModule {
|
|
|
120
120
|
*/
|
|
121
121
|
allflameEmber: AllflameEmberModule;
|
|
122
122
|
/**
|
|
123
|
-
* Creates a new instance of
|
|
123
|
+
* Creates a new instance of ItemViewModule.
|
|
124
124
|
* @param league - The Path of Exile league for which the item information is retrieved.
|
|
125
125
|
* @param typeName - The type of item information to retrieve.
|
|
126
126
|
*/
|
|
@@ -123,7 +123,7 @@ class ItemViewModule {
|
|
|
123
123
|
*/
|
|
124
124
|
allflameEmber;
|
|
125
125
|
/**
|
|
126
|
-
* Creates a new instance of
|
|
126
|
+
* Creates a new instance of ItemViewModule.
|
|
127
127
|
* @param league - The Path of Exile league for which the item information is retrieved.
|
|
128
128
|
* @param typeName - The type of item information to retrieve.
|
|
129
129
|
*/
|
|
@@ -2,7 +2,7 @@ import { CurrencyModule, AccessoryModule, ArmourModule, BaseModule, BeastModule,
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents a module for fetching data related to Watchstones and Watchstone Regions.
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class WatchViewModule {
|
|
6
6
|
/**
|
|
7
7
|
* Module for fetching data related to Currency.
|
|
8
8
|
*/
|
|
@@ -89,4 +89,4 @@ export declare class WatchWievModule {
|
|
|
89
89
|
*/
|
|
90
90
|
constructor(league: string);
|
|
91
91
|
}
|
|
92
|
-
export default
|
|
92
|
+
export default WatchViewModule;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WatchViewModule = void 0;
|
|
4
4
|
const Modules_1 = require("./allModules/Modules");
|
|
5
5
|
/**
|
|
6
6
|
* Represents a module for fetching data related to Watchstones and Watchstone Regions.
|
|
7
7
|
*/
|
|
8
|
-
class
|
|
8
|
+
class WatchViewModule {
|
|
9
9
|
/**
|
|
10
10
|
* Module for fetching data related to Currency.
|
|
11
11
|
*/
|
|
@@ -118,5 +118,5 @@ class WatchWievModule {
|
|
|
118
118
|
this.weapon = new Modules_1.WeaponModule(league);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
exports.
|
|
122
|
-
exports.default =
|
|
121
|
+
exports.WatchViewModule = WatchViewModule;
|
|
122
|
+
exports.default = WatchViewModule;
|