UNPKG

osrs-json-hiscores

Version:

The Old School Runescape API wrapper that does more!

59 lines (58 loc) 2.38 kB
import { BHType, Boss, ClueType, Gamemode, SkillName, ActivityName } from '../types'; export declare const BASE_URL = "https://secure.runescape.com/m=hiscore_oldschool"; export declare const STATS_URL = "index_lite.ws?player="; export declare const JSON_STATS_URL = "index_lite.json?player="; export declare const SCORES_URL = "overall.ws?"; export type GamemodeUrl = { [key in Gamemode]: string; }; export declare const GAMEMODE_URL: GamemodeUrl; export declare const SKILLS: SkillName[]; export declare const CLUES: ClueType[]; export declare const BH_MODES: BHType[]; export declare const GAMEMODES: Gamemode[]; export declare const BOSSES: Boss[]; export declare const ACTIVITIES: ActivityName[]; export type FormattedBossNames = { [key in Boss]: string; }; export declare const FORMATTED_BOSS_NAMES: FormattedBossNames; export type FormattedSkillNames = { [key in SkillName]: string; }; export declare const FORMATTED_SKILL_NAMES: FormattedSkillNames; export type FormattedClueNames = { [key in ClueType]: string; }; export declare const FORMATTED_CLUE_NAMES: FormattedClueNames; export type FormattedBHNames = { [key in BHType]: string; }; export declare const FORMATTED_BH_NAMES: FormattedBHNames; export declare const FORMATTED_LMS = "LMS - Rank"; export declare const FORMATTED_PVP_ARENA = "PvP Arena - Rank"; export declare const FORMATTED_SOUL_WARS = "Soul Wars Zeal"; export declare const FORMATTED_LEAGUE_POINTS = "League Points"; export declare const FORMATTED_DEADMAN_POINTS = "Deadman Points"; export declare const FORMATTED_RIFTS_CLOSED = "Rifts closed"; export declare const FORMATTED_COLOSSEUM_GLORY = "Colosseum Glory"; export declare const FORMATTED_COLLECTIONS_LOGGED = "Collections Logged"; export declare const INVALID_FORMAT_ERROR = "Invalid hiscores format"; export declare const PLAYER_NOT_FOUND_ERROR = "Player not found"; export declare const HISCORES_ERROR = "HiScores not responding"; export declare class InvalidFormatError extends Error { __proto__: ErrorConstructor; constructor(); } export declare class InvalidRSNError extends Error { __proto__: ErrorConstructor; constructor(message: string); } export declare class PlayerNotFoundError extends Error { __proto__: ErrorConstructor; constructor(); } export declare class HiScoresError extends Error { __proto__: ErrorConstructor; constructor(); }