Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchSaveSeat

Interface: MatchSaveSeat ​

Defined in: packages/ts-sdk/src/generated/types/common.ts:4264

One seat's deck contribution to a save payload.

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

console.log(matchSaveSeat)

Properties ​

authenticated ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { authenticated } = matchSaveSeat

console.log(authenticated)

authenticated: boolean

Defined in: packages/ts-sdk/src/generated/types/common.ts:4268

Whether the seat joined from an authenticated app session.


avatarUrl? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { avatarUrl } = matchSaveSeat

console.log(avatarUrl)

optional avatarUrl?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4272

Public avatar image URL the seat joined with.


deck ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { deck: matchSaveSeatDeck } = matchSaveSeat

console.log(matchSaveSeatDeck)

deck: DeckInput

Defined in: packages/ts-sdk/src/generated/types/common.ts:4277

Original deck input for this seat. Re-validated against the catalog at restore time so the rebuilt match holds the same card definitions.


deckId? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { deckId } = matchSaveSeat

console.log(deckId)

optional deckId?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4281

Freeform client deck id captured for app-side reconciliation.


deckTitle? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { deckTitle } = matchSaveSeat

console.log(deckTitle)

optional deckTitle?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4285

Captured display name for the submitted deck.


formatSetup? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { formatSetup } = matchSaveSeat

console.log(formatSetup)

optional formatSetup?: FormatSetupInput | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4290

Format-specific setup data (sideboard wells, limited pools, etc.) that was attached when the seat first joined.


name? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { name } = matchSaveSeat

console.log(name)

optional name?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4295

Display name the seat joined with. Restored alongside the deck so the projected SeatState.name survives save/restore round-trips.


profileUrl? ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { profileUrl } = matchSaveSeat

console.log(profileUrl)

optional profileUrl?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:4299

Public profile page URL the seat joined with.


seat ​

Example:

ts
import type { MatchSaveSeat } from '@my-swu/simulator-client'

const matchSaveSeat: MatchSaveSeat = {
  "seat": "one",
  "deck": {
    "leaders": [],
    "cards": [],
    "sideboard": [],
  },
  "authenticated": false,
}

const { seat: matchSaveSeatSeat } = matchSaveSeat

console.log(matchSaveSeatSeat)

seat: Seat

Defined in: packages/ts-sdk/src/generated/types/common.ts:4303

Seat this deck was registered against.

Released under the MIT License.