Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

datastore

datastore: Datastore

name

name: string = "GCloud Data Store"

type

type: Type = Plugin.Type.DATABASE

Methods

deleteUser

  • deleteUser(usernameOrID: string): Promise<void>

getMatch

  • getMatch(id: NanoID): Promise<any>

Private getMatchDatastoreKey

  • getMatchDatastoreKey(matchID: NanoID): Key

getPlayerMatches

  • getPlayerMatches(playerID: NanoID, governID: NanoID, offset?: number, limit?: number, order?: number): Promise<Array<Match>>

getTournamentConfigs

Private getTournamentConfigsDatastoreKey

  • getTournamentConfigsDatastoreKey(tournamentID: NanoID): Key

getTournamentConfigsModificationDate

  • getTournamentConfigsModificationDate(tournamentID: NanoID): Promise<Date>

getUser

  • getUser(usernameOrID: string, publicView?: boolean): Promise<User>

Private getUserDatastoreKey

  • getUserDatastoreKey(username: string): Key

getUsersInTournament

  • getUsersInTournament(tournamentKey: string, offset?: number, limit?: number): Promise<Array<User>>

initialize

  • initialize(): Promise<void>

isAdmin

loginUser

  • loginUser(username: string, password: string): Promise<string>

manipulate

  • manipulate(dimension: Dimension): Promise<void>

registerUser

  • registerUser(username: string, password: string, userData?: any): Promise<void>

storeMatch

  • storeMatch(match: Match, governID: NanoID): Promise<any>

storeTournamentConfigs

updateUser

  • updateUser(usernameOrID: string, update: Partial<User>): Promise<void>

verifyToken

  • verifyToken(jwt: string): Promise<any>

Object literals

configs

configs: object

Default configs

saveMatches

saveMatches: true = true

saveTournamentMatches

saveTournamentMatches: true = true

Generated using TypeDoc