mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-06-07 16:59:55 +00:00
Added a legal field to each cards
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
a3537a1af7
commit
c3791959be
32
interfaces.d.ts
vendored
32
interfaces.d.ts
vendored
@ -46,8 +46,21 @@ export interface Set extends SetResume {
|
|||||||
|
|
||||||
releaseDate: string
|
releaseDate: string
|
||||||
|
|
||||||
legal?: {
|
/**
|
||||||
|
* Designate if the set is usable in tournaments
|
||||||
|
*
|
||||||
|
* Note: this is specific to the set and if a
|
||||||
|
* card is banned from the set it will still be true
|
||||||
|
*/
|
||||||
|
legal: {
|
||||||
|
/**
|
||||||
|
* Ability to play in standard tournaments
|
||||||
|
*/
|
||||||
standard: boolean
|
standard: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ability to play in expanded tournaments
|
||||||
|
*/
|
||||||
expanded: boolean
|
expanded: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -257,6 +270,23 @@ export interface Card<SetType extends SetResume = SetResume> extends CardResume
|
|||||||
* Define the rotation mark on cards >= Sword & Shield
|
* Define the rotation mark on cards >= Sword & Shield
|
||||||
*/
|
*/
|
||||||
regulationMark?: string
|
regulationMark?: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Card ability to be played in official tournaments
|
||||||
|
*
|
||||||
|
* Note: all cards are avaialable to play in unlimited tournaments
|
||||||
|
*/
|
||||||
|
legal: {
|
||||||
|
/**
|
||||||
|
* Ability to play in standard tournaments
|
||||||
|
*/
|
||||||
|
standard: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ability to play in expanded tournaments
|
||||||
|
*/
|
||||||
|
expanded: boolean
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StringEndpointList = Array<string>
|
export type StringEndpointList = Array<string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user