mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-04 13:19:21 +00:00
Updated sdk to 1.3.0
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -41,40 +41,11 @@ export interface CardSingle {
|
||||
name: string
|
||||
effect: string
|
||||
}
|
||||
cardTypes?: {
|
||||
/**
|
||||
* normal card without anything special
|
||||
*
|
||||
*
|
||||
* @type {boolean} consider `undefined` to true
|
||||
*/
|
||||
normal?: boolean
|
||||
/**
|
||||
* Card which has a holographic background
|
||||
* but not the picture
|
||||
*
|
||||
* @type {boolean} `undefined` === `true`
|
||||
*/
|
||||
reverse?: boolean
|
||||
/**
|
||||
* Card which has a hologaphic picture
|
||||
*
|
||||
* @type {boolean} `undefined` === `false`
|
||||
*/
|
||||
holo?: boolean
|
||||
/**
|
||||
* Card which can have a `1st ed` icon
|
||||
*
|
||||
* only the base expansion should received it
|
||||
*
|
||||
* @type {boolean} `undefined` === `false`
|
||||
*/
|
||||
firstEd?: boolean
|
||||
}
|
||||
|
||||
// Pokémon only
|
||||
hp?: number
|
||||
dexId?: number
|
||||
lvl?: number
|
||||
type?: Array<TypeSimple>
|
||||
evolveFrom?: string
|
||||
evolveTo?: Array<string>
|
||||
|
@ -1,8 +1,19 @@
|
||||
import { List } from "./General"
|
||||
import { CardSimple } from "./Card"
|
||||
|
||||
/**
|
||||
* Anum of "Tags" each card can contains
|
||||
*
|
||||
* @enum {number}
|
||||
*/
|
||||
enum Tag {
|
||||
/**
|
||||
* basic pokémon
|
||||
*/
|
||||
BASIC,
|
||||
|
||||
/**
|
||||
* Basic Energy
|
||||
*/
|
||||
BASICENERGY,
|
||||
BREAK,
|
||||
EX,
|
||||
@ -16,14 +27,44 @@ enum Tag {
|
||||
SP,
|
||||
SPECIAL,
|
||||
STADIUM,
|
||||
/**
|
||||
* Stage 1 pokémon
|
||||
*/
|
||||
STAGE1,
|
||||
|
||||
/**
|
||||
* Stage 2 Pokémon
|
||||
*/
|
||||
STAGE2,
|
||||
SUPPORTER,
|
||||
TAGTEAM,
|
||||
TECHNICALMACHINE,
|
||||
TOOL,
|
||||
|
||||
/**
|
||||
* V Pokémon
|
||||
*/
|
||||
V,
|
||||
|
||||
/**
|
||||
* VMAX Pokémon
|
||||
*/
|
||||
VMAX,
|
||||
|
||||
/**
|
||||
* The card is available with the holographic picture
|
||||
*/
|
||||
HASHOLO,
|
||||
|
||||
/**
|
||||
* Card can have a 1st badge
|
||||
*/
|
||||
HAS1ST,
|
||||
|
||||
/**
|
||||
* Card is full art (art is not in the frame)
|
||||
*/
|
||||
ISFULLART,
|
||||
}
|
||||
|
||||
export default Tag
|
||||
|
Reference in New Issue
Block a user