@my-swu/simulator-client / TournamentRoomsResource
Interface: TournamentRoomsResource
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:34
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
console.log(tournamentRoomsResource)Methods
applyEventCommand()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { applyEventCommand } = tournamentRoomsResource
console.log(applyEventCommand)applyEventCommand(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:74
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
close()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { close } = tournamentRoomsResource
console.log(close)close(
roomId,request,options?):Promise<TournamentRoomResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:105
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomResponse>
create()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { create } = tournamentRoomsResource
console.log(create)create(
request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:35
Parameters
request
options?
Returns
Promise<TournamentRoomAccessResponse>
createSession()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { createSession } = tournamentRoomsResource
console.log(createSession)createSession(
access):TournamentRoomSession
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:110
Parameters
access
TournamentRoomAccessResponse | TournamentRoomAccessInput
Returns
createTable()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { createTable } = tournamentRoomsResource
console.log(createTable)createTable(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:84
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
get()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { get } = tournamentRoomsResource
console.log(get)get(
roomId,options?):Promise<TournamentRoomSnapshot>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:40
Parameters
roomId
string
options?
Returns
Promise<TournamentRoomSnapshot>
join()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { join } = tournamentRoomsResource
console.log(join)join(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:44
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
joinTable()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { joinTable } = tournamentRoomsResource
console.log(joinTable)joinTable(
roomId,tableId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:89
Parameters
roomId
string
tableId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
leave()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { leave } = tournamentRoomsResource
console.log(leave)leave(
roomId,request,options?):Promise<void>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:100
Parameters
roomId
string
request
options?
Returns
Promise<void>
list()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { list } = tournamentRoomsResource
console.log(list)list(
options?):Promise<TournamentRoomListResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:39
Parameters
options?
Returns
Promise<TournamentRoomListResponse>
returnMatch()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { returnMatch } = tournamentRoomsResource
console.log(returnMatch)returnMatch(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:95
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
sendChat()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { sendChat } = tournamentRoomsResource
console.log(sendChat)sendChat(
roomId,request,options?):Promise<TournamentRoomChatResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:64
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomChatResponse>
startEvent()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { startEvent } = tournamentRoomsResource
console.log(startEvent)startEvent(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:69
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
submitDeck()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { submitDeck } = tournamentRoomsResource
console.log(submitDeck)submitDeck(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:79
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
sync()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { sync } = tournamentRoomsResource
console.log(sync)sync(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:49
Parameters
roomId
string
request
options?
Returns
Promise<TournamentRoomAccessResponse>
updatePlayer()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { updatePlayer } = tournamentRoomsResource
console.log(updatePlayer)updatePlayer(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:54
Parameters
roomId
string
request
UpdateTournamentRoomPlayerRequest
options?
Returns
Promise<TournamentRoomAccessResponse>
updateSettings()
Example:
import { createSimulatorClient } from '@my-swu/simulator-client'
// Point this at the simulator HTTP origin for /health and /api routes.
const simulatorClient = createSimulatorClient({
baseUrl: 'http://127.0.0.1:4000',
})
const tournamentRoomsResource = simulatorClient.tournamentRooms
const { updateSettings } = tournamentRoomsResource
console.log(updateSettings)updateSettings(
roomId,request,options?):Promise<TournamentRoomAccessResponse>
Defined in: packages/ts-sdk/src/resources/tournament-rooms.ts:59
Parameters
roomId
string
request
UpdateTournamentRoomSettingsRequest
options?
Returns
Promise<TournamentRoomAccessResponse>
