Name of the plugin
Type of the plugin. Required in order for Dimensions to know how to use it
Deletes the user with this username or ID (generated nanoID)
Retrieves a match through its match ID
a NanoID
Resolves with match data
id of player to retrieve matches from
id of what created the matches. This can be a dimension ID or a tournament ID
offset
max number of matches to return
1 for ascending and -1 for descending in order of creation date
Get configs for a tournament. Resolves with { configs: null, status: null }
if no configs exist
id of the tournament to get configs for
Gets the last modification date of the configs for the tournament with id tournamentID
id of tournament
Gets user information. If publicView is true
, will retrieve all non-sensitive information (so it should exclude
password. Resolves with null if no user found
Gets all users with statistics in a tournament specified by the tournamentKeyName, which is a string that is the key stored in the user's statistics property mapping to the tournament's statistics. This is also the number of rankings.
offset of the users
how many users to retrieve
Performs any intialization tasks Resolves when done
Returns true if the user info indicate the user is an admin
Logs in a user, resolves with a JWT (JSON Web Token), rejects otherwise
unique username to login with
the password for the user with that username
Manipulates the dimension as necessary for this plugin. Should resolve when done
the dimension the plugin is being applied on
Registers a user, resolves when succesful, rejects otherwise
username to register with
the password for the user
any other kind of user data, (e.g email)
Store configs and status for a tournament. Should overwrite any existing config data. Resolves if successful
id of the tournament to store for
configs to store
the status to store
Updates the user with this username or ID (generated nanoID) with the provided data
Authenticates a user by a JWT, resolves with the token data signed in the loginUser function, rejects otherwise
the token
Default configs
Generated using TypeDoc
The database plugin class, of which Dimensions uses internally to store data onto the database Must be extended in order to be used as a database plugin