Class GravaticBooster

Hierarchy

  • GravaticBooster

Constructors

Properties

api: ISCApi

Methods

  • Returns the player rankings for the given toon and gateway. Note that this returns all rankings for all toons for the given player, not just the requested toon.

    Parameters

    Returns Promise<AccountRankings>

    player rankings

  • Returns the current season number (e.g., 13).

    Returns Promise<number>

    The current season number

  • Returns "full" account information, more time consuming API call.

    Remarks

    Corresponds to the bw api endpoint auroraProfileByToon with the property mask scr_profile.

    See

    FullAccount for fields returned.

    Throws

    EntityNotFoundError if no such account could be found

    Parameters

    Returns Promise<FullAccount>

    "full" account information

  • Returns the gateway with the given id or region.

    Throws

    EntityNotFoundError if no such gateway could be found

    Parameters

    Returns Gateway

    The gateway with the given id or region

  • Returns all known gateways. This is just a static list of gateways, since they're expected to be non-changing. The only dynamic data is the number of online users, which is accessible via the onlineUsers method on the returned gateway objects.

    Returns Gateway[]

    All known gateways

  • Returns the leaderboard with the given id or game mode, gateway, and season combination.

    Remarks

    The default lookup properties (if leaderboard id is not used) are the current season, 1v1, and the global gateway.

    Throws

    EntityNotFoundError if no such leaderboard could be found

    Parameters

    Returns Promise<Leaderboard>

    The selected leaderboard

  • Returns the leaderboards.

    Remarks

    Leaderboards are the combination of game mode, gateway, and season. Each leaderboard has a unique id, which is used for making other queries. For example, when fetching player rankings, you must specify the leaderboard.

    Returns Promise<Leaderboard[]>

    The leaderboards

  • Returns the 1v1 maps listing

    Returns Promise<Map[]>

    The 1v1 maps listing

  • Returns a generator that yields the match history for the given player.

    Parameters

    • toon: string

      The player's in-game id

    • gateway: GatewayLookupProps

      The gateway the player plays on

    • leaderboardProps: LeaderboardLookupProps

      The leaderboard to query

    • Optional limit: number

      The maximum number of matches to return

    Returns AsyncGenerator<Match, void, void>

    A generator that yields the match history for the given player

  • Returns a "minimal" account profile for the given toon and gateway.

    Remarks

    This corresponds to the bw api endpoint auroraProfileByToon with the property mask scr_mmgameloading.

    See

    MinimalAccount for fields returned.

    Throws

    EntityNotFoundError if no such account could be found

    Parameters

    Returns Promise<MinimalAccount>

    A "minimal" account profile for the given toon and gateway

  • Returns a "minimal" account profile for the given toon and gateway, with the number of games played in the last week accessible on the account's profiles.

    Remarks

    This corresponds to the bw api endpoint auroraProfileByToon with the property mask scr_mmtooninfo.

    See

    MinimalAccountWithGamesPlayedLastWeek for fields returned.

    Throws

    EntityNotFoundError if no such account could be found

    Parameters

    Returns Promise<MinimalAccountWithGamesPlayedLastWeek>

    A "minimal" account profile for the given toon and gateway, with the number of games played in the last week

  • Returns the number of online users on the given gateway.

    Throws

    EntityNotFoundError if no such gateway could be found

    Parameters

    Returns Promise<number>

    The number of online users on the given gateway

  • Parameters

    • search: string

    Returns Promise<PlayerSearchResult[]>

  • Given a leaderboardProps and an index (0-indexed rank), returns the player ranking at that index.

    Parameters

    • index: number

      The index of the ranking to query

    • leaderboardProps: LeaderboardLookupProps = {}

      The leaderboard to query

    Returns Promise<Ranking>

    The player ranking at the given index

  • Returns a generator that yields the rankings for the given leaderboard.

    Parameters

    • leaderboardProps: LeaderboardLookupProps = {}
    • begin: number = 0

      The index of the first ranking to return (0-indexed)

    • Optional limit: number

      The maximum number of rankings to return

    Returns AsyncGenerator<Ranking, void, unknown>

  • Returns the replays for the given match.

    Parameters

    • matchId: string

      The id of the match to query

    Returns Promise<Replays>

    The replays for the given match

Generated using TypeDoc