@my-swu/simulator-client / CreateTournamentRoomRequest
Interface: CreateTournamentRoomRequest
Defined in: packages/ts-sdk/src/generated/types/common.ts:1024
Request body for creating one sealed/draft tournament room.
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
console.log(createTournamentRoomRequest)Properties
bestOfMatches
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { bestOfMatches } = createTournamentRoomRequest
console.log(bestOfMatches)bestOfMatches:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:1025
draftRounds
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { draftRounds } = createTournamentRoomRequest
console.log(draftRounds)draftRounds:
DraftRoundConfig[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:1026
eventKind
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { eventKind } = createTournamentRoomRequest
console.log(eventKind)eventKind:
LimitedEventKind
Defined in: packages/ts-sdk/src/generated/types/common.ts:1027
historyIdentities
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { historyIdentities } = createTournamentRoomRequest
console.log(historyIdentities)historyIdentities:
HistoryIdentityInput[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:1031
Personal identities that should own the host player's history.
hostAuthenticated
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { hostAuthenticated } = createTournamentRoomRequest
console.log(hostAuthenticated)hostAuthenticated:
boolean
Defined in: packages/ts-sdk/src/generated/types/common.ts:1035
Whether the host joined from an authenticated app session.
hostAvatarUrl?
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { hostAvatarUrl } = createTournamentRoomRequest
console.log(hostAvatarUrl)
optionalhostAvatarUrl?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:1036
hostName
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { hostName } = createTournamentRoomRequest
console.log(hostName)hostName:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:1037
hostProfileUrl?
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { hostProfileUrl } = createTournamentRoomRequest
console.log(hostProfileUrl)
optionalhostProfileUrl?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:1038
matchSeed?
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { matchSeed } = createTournamentRoomRequest
console.log(matchSeed)
optionalmatchSeed?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:1042
Optional deterministic seed reused for every duel table match.
packSeed?
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { packSeed } = createTournamentRoomRequest
console.log(packSeed)
optionalpackSeed?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:1046
Optional deterministic seed for limited pack/leader generation.
pickTimerEnabled
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { pickTimerEnabled } = createTournamentRoomRequest
console.log(pickTimerEnabled)pickTimerEnabled:
boolean
Defined in: packages/ts-sdk/src/generated/types/common.ts:1050
Enables the per-pick countdown with auto-pick on timeout (draft only).
playerCount
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { playerCount } = createTournamentRoomRequest
console.log(playerCount)playerCount:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:1051
sealedPackCount?
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { sealedPackCount } = createTournamentRoomRequest
console.log(sealedPackCount)
optionalsealedPackCount?:number|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:1052
setCode
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { setCode } = createTournamentRoomRequest
console.log(setCode)setCode:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:1053
visibility
Example:
import type { CreateTournamentRoomRequest } from '@my-swu/simulator-client'
const createTournamentRoomRequest: CreateTournamentRoomRequest = {
"eventKind": "draft",
"setCode": 'example',
"playerCount": 2,
"bestOfMatches": 1,
"draftRounds": [],
"pickTimerEnabled": false,
"visibility": "private",
"hostName": 'example',
"hostAuthenticated": false,
"historyIdentities": [],
}
const { visibility } = createTournamentRoomRequest
console.log(visibility)visibility:
LobbyVisibility
Defined in: packages/ts-sdk/src/generated/types/common.ts:1054
