osrs-json-hiscores 2.14.1 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -144,6 +144,7 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
144
144
  | Dagannoth Rex | `dagannothRex` |
145
145
  | Dagannoth Supreme | `dagannothSupreme` |
146
146
  | Deranged Archaeologist | `derangedArchaeologist` |
147
+ | Duke Sucellus | `dukeSucellus` |
147
148
  | General Graardor | `generalGraardor` |
148
149
  | Giant Mole | `giantMole` |
149
150
  | Grotesque Guardians | `grotesqueGuardians` |
@@ -166,6 +167,8 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
166
167
  | Tempoross | `tempoross` |
167
168
  | The Gauntlet | `gauntlet` |
168
169
  | The Corrupted Gauntlet | `corruptedGauntlet` |
170
+ | The Leviathan | `leviathan` |
171
+ | The Whisperer | `whisperer` |
169
172
  | Theatre Of Blood | `theatreOfBlood` |
170
173
  | Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` |
171
174
  | Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` |
@@ -173,6 +176,7 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
173
176
  | Tombs of Amascut: Expert Mode | `tombsOfAmascutExpertMode` |
174
177
  | TzKal-Zuk | `tzKalZuk` |
175
178
  | TzTok-Jad | `tzTokJad` |
179
+ | Vardorvis | `vardorvis` |
176
180
  | Venenatis | `venenatis` |
177
181
  | Vetion | `vetion` |
178
182
  | Vorkath | `vorkath` |
package/lib/hiscores.d.ts CHANGED
@@ -1,47 +1,47 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- import { Player, Stats, Gamemode, SkillName, PlayerSkillRow, ActivityName, PlayerActivityRow, GetStatsOptions } from './types';
3
- /**
4
- * Screen scrapes the hiscores to get the formatted rsn of a player.
5
- *
6
- * @param rsn Username of the player.
7
- * @param config Optional axios request config object.
8
- * @returns Formatted version of the rsn.
9
- */
10
- export declare function getRSNFormat(rsn: string, config?: AxiosRequestConfig): Promise<string>;
11
- /**
12
- * Parses CSV string of raw stats and returns a stats object.
13
- *
14
- * @param csv Raw CSV from the official OSRS API.
15
- * @returns Parsed stats object.
16
- */
17
- export declare function parseStats(csv: string): Stats;
18
- /**
19
- * Fetches stats from the OSRS API and consolidates the info into a player object.
20
- *
21
- * **Note:** This function will make up to 5 separate network requests.
22
- * As such, it is highly subject to the performance of the official OSRS API.
23
- *
24
- * @param rsn Username of the player.
25
- * @returns Player object.
26
- */
27
- export declare function getStats(rsn: string, options?: GetStatsOptions): Promise<Player>;
28
- /**
29
- * Fetches stats from the OSRS API and returns them as an object.
30
- *
31
- * @param rsn Username of the player.
32
- * @param mode Gamemode to fetch ranks for.
33
- * @param config Optional axios request config object.
34
- * @returns Stats object.
35
- */
36
- export declare function getStatsByGamemode(rsn: string, mode?: Gamemode, config?: AxiosRequestConfig): Promise<Stats>;
37
- export declare function getSkillPage(skill: SkillName, mode?: Gamemode, page?: number, config?: AxiosRequestConfig): Promise<PlayerSkillRow[]>;
38
- /**
39
- * Screen scrapes a hiscores page of an activity or boss and returns an array of up to 25 players.
40
- *
41
- * @param activity Name of the activity or boss to fetch hiscores for.
42
- * @param mode Gamemode to fetch ranks for.
43
- * @param page Page number.
44
- * @param config Optional axios request config object.
45
- * @returns Array of `PlayerActivityRow` objects.
46
- */
47
- export declare function getActivityPage(activity: ActivityName, mode?: Gamemode, page?: number, config?: AxiosRequestConfig): Promise<PlayerActivityRow[]>;
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { Player, Stats, Gamemode, SkillName, PlayerSkillRow, ActivityName, PlayerActivityRow, GetStatsOptions } from './types';
3
+ /**
4
+ * Screen scrapes the hiscores to get the formatted rsn of a player.
5
+ *
6
+ * @param rsn Username of the player.
7
+ * @param config Optional axios request config object.
8
+ * @returns Formatted version of the rsn.
9
+ */
10
+ export declare function getRSNFormat(rsn: string, config?: AxiosRequestConfig): Promise<string>;
11
+ /**
12
+ * Parses CSV string of raw stats and returns a stats object.
13
+ *
14
+ * @param csv Raw CSV from the official OSRS API.
15
+ * @returns Parsed stats object.
16
+ */
17
+ export declare function parseStats(csv: string): Stats;
18
+ /**
19
+ * Fetches stats from the OSRS API and consolidates the info into a player object.
20
+ *
21
+ * **Note:** This function will make up to 5 separate network requests.
22
+ * As such, it is highly subject to the performance of the official OSRS API.
23
+ *
24
+ * @param rsn Username of the player.
25
+ * @returns Player object.
26
+ */
27
+ export declare function getStats(rsn: string, options?: GetStatsOptions): Promise<Player>;
28
+ /**
29
+ * Fetches stats from the OSRS API and returns them as an object.
30
+ *
31
+ * @param rsn Username of the player.
32
+ * @param mode Gamemode to fetch ranks for.
33
+ * @param config Optional axios request config object.
34
+ * @returns Stats object.
35
+ */
36
+ export declare function getStatsByGamemode(rsn: string, mode?: Gamemode, config?: AxiosRequestConfig): Promise<Stats>;
37
+ export declare function getSkillPage(skill: SkillName, mode?: Gamemode, page?: number, config?: AxiosRequestConfig): Promise<PlayerSkillRow[]>;
38
+ /**
39
+ * Screen scrapes a hiscores page of an activity or boss and returns an array of up to 25 players.
40
+ *
41
+ * @param activity Name of the activity or boss to fetch hiscores for.
42
+ * @param mode Gamemode to fetch ranks for.
43
+ * @param page Page number.
44
+ * @param config Optional axios request config object.
45
+ * @returns Array of `PlayerActivityRow` objects.
46
+ */
47
+ export declare function getActivityPage(activity: ActivityName, mode?: Gamemode, page?: number, config?: AxiosRequestConfig): Promise<PlayerActivityRow[]>;