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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.14
4
+ - 🚀[New] Publish jsr.
5
+
3
6
  ## 1.2.13
4
7
  - 🛠️[Fix] Quick Fix.
5
8
 
package/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  ![GitHub top language](https://img.shields.io/github/languages/top/ayberkgezer/poe-api-manager?logo=typescript)
6
6
  [![ISSUES](https://img.shields.io/github/issues/ayberkgezer/poe-api-manager-ts)](https://github.com/ayberkgezer/poe-api-manager/issues)
7
7
  ![NPM Downloads](https://img.shields.io/npm/dt/poe-api-manager?logo=npm)
8
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ayberkgezer/poe-api-manager/build.yml)
8
9
 
9
10
 
10
11
  - [Introduction](#introduction)
@@ -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
  }
@@ -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");
@@ -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 {
@@ -1,15 +1,17 @@
1
- import WatchWievModule from "./modules/poe.watch/WatchViewModule";
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 WatchWievModule instance associated with this API.
8
+ * The WatchViewModule instance associated with this API.
9
+ * @type {WatchViewModule}
8
10
  */
9
- view: WatchWievModule;
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
  }
@@ -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 WatchWievModule instance associated with this API.
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);
@@ -15,6 +15,7 @@ declare abstract class PoeNinja implements IPoeNinja {
15
15
  * @param league - The league name.
16
16
  * @param typeName
17
17
  * @param type - The type.
18
+ * @implements {IPoeNinja}
18
19
  */
19
20
  constructor(league: string, typeName: string, type: string);
20
21
  /**
@@ -20,6 +20,7 @@ class PoeNinja {
20
20
  * @param league - The league name.
21
21
  * @param typeName
22
22
  * @param type - The type.
23
+ * @implements {IPoeNinja}
23
24
  */
24
25
  constructor(league, typeName, type) {
25
26
  this.league = league;
@@ -120,7 +120,7 @@ export declare class ItemViewModule {
120
120
  */
121
121
  allflameEmber: AllflameEmberModule;
122
122
  /**
123
- * Creates a new instance of ItemWievModule.
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 ItemWievModule.
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 WatchWievModule {
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 WatchWievModule;
92
+ export default WatchViewModule;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WatchWievModule = void 0;
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 WatchWievModule {
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.WatchWievModule = WatchWievModule;
122
- exports.default = WatchWievModule;
121
+ exports.WatchViewModule = WatchViewModule;
122
+ exports.default = WatchViewModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-api-manager",
3
- "version": "1.2.13",
3
+ "version": "1.2.16",
4
4
  "description": "poe.ninja and poe.watch API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",