mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 10:42:10 +00:00
99 lines
1.0 KiB
TypeScript
99 lines
1.0 KiB
TypeScript
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,
|
|
GX,
|
|
ITEM,
|
|
LEGEND,
|
|
LEVELUP,
|
|
MEGA,
|
|
RESTORED,
|
|
ROCKETSECRETMACHINE,
|
|
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,
|
|
|
|
/**
|
|
* PRIME Pokemon
|
|
*/
|
|
PRIME,
|
|
|
|
/**
|
|
* ACE Pokemon
|
|
*/
|
|
ACE,
|
|
|
|
/**
|
|
* Card is "rainbow"
|
|
*/
|
|
RAINBOW,
|
|
}
|
|
|
|
export default Tag
|
|
|
|
export interface TagSimple {
|
|
id: Tag
|
|
name: string
|
|
}
|
|
|
|
export type TagSingle = {
|
|
id: Tag
|
|
name: string
|
|
cards: Array<CardSimple>
|
|
}
|
|
|
|
export type TagList = List<TagSimple>
|