mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-08-16 09:08:52 +00:00
Compare commits
1 Commits
pokemon
...
Aviortheki
Author | SHA1 | Date | |
---|---|---|---|
b97ddc2b47 |
2
.github/workflows/comment-pr.yml
vendored
2
.github/workflows/comment-pr.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
344
interfaces.d.ts
vendored
344
interfaces.d.ts
vendored
@@ -1,100 +1,11 @@
|
|||||||
export type SupportedLanguages =
|
export type SupportedLanguages =
|
||||||
// inter languages
|
// inter languages
|
||||||
| 'en' // English en-US
|
'en' | 'fr' | 'es' | 'es-mx' | 'it' | 'pt' | 'pt-br' | 'pt-pt' | 'de' | 'nl' | 'pl' | 'ru' |
|
||||||
| 'fr' // French fr-FR
|
|
||||||
| 'es' // Spanish es-ES
|
|
||||||
| 'es-mx' // Latin America Spanish es-MX
|
|
||||||
| 'it' // Italian it-IT
|
|
||||||
| 'pt' // a merge of `pt-br` & `pt-pt`
|
|
||||||
| 'pt-br' // Brazilian Portuguese pt-BR
|
|
||||||
| 'pt-pt' // Portugal Portuguese pt-PT
|
|
||||||
| 'de' // German de-DE
|
|
||||||
| 'nl' // Dutch nl-NL
|
|
||||||
| 'pl' // Polish pl-PL
|
|
||||||
| 'ru' // Russian ru-RU
|
|
||||||
|
|
||||||
// Asian languages
|
// Asian languages
|
||||||
| 'ja' // Japanese ja-JP
|
'ja' | 'ko' | 'zh-tw' | 'id' | 'th' | 'zh-cn'
|
||||||
| 'ko' // korean ko-KO
|
|
||||||
| 'zh-tw' // Traditionnal Chinese zh-TW
|
|
||||||
| 'id' // Indonesian id-ID
|
|
||||||
| 'th' // Thai th-TH
|
|
||||||
| 'zh-cn' // Simplified Chinese zh-CN
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The list of Pokémon types
|
|
||||||
*/
|
|
||||||
export type Types =
|
|
||||||
| 'Grass'
|
|
||||||
| 'Fire'
|
|
||||||
| 'Water'
|
|
||||||
| 'Lightning'
|
|
||||||
| 'Psychic'
|
|
||||||
| 'Fighting'
|
|
||||||
| 'Darkness'
|
|
||||||
| 'Metal'
|
|
||||||
| 'Dragon'
|
|
||||||
| 'Fairy'
|
|
||||||
| 'Colorless'
|
|
||||||
|
|
||||||
export type Rarity =
|
|
||||||
| 'ACE SPEC Rare'
|
|
||||||
| 'Amazing Rare'
|
|
||||||
| 'Classic Collection'
|
|
||||||
| 'Common'
|
|
||||||
|
|
||||||
| 'Double rare'
|
|
||||||
| 'Full Art Trainer'
|
|
||||||
| 'Holo Rare'
|
|
||||||
| 'Holo Rare V'
|
|
||||||
|
|
||||||
| 'Holo Rare VMAX'
|
|
||||||
| 'Holo Rare VSTAR'
|
|
||||||
| 'Hyper rare'
|
|
||||||
| 'Illustration rare'
|
|
||||||
|
|
||||||
| 'LEGEND'
|
|
||||||
| 'None'
|
|
||||||
| 'Radiant Rare'
|
|
||||||
| 'Rare'
|
|
||||||
| 'Rare Holo'
|
|
||||||
| 'Rare Holo LV.X'
|
|
||||||
|
|
||||||
| 'Rare PRIME'
|
|
||||||
| 'Secret Rare'
|
|
||||||
| 'Shiny Ultra Rare'
|
|
||||||
| 'Shiny rare'
|
|
||||||
| 'Shiny rare V'
|
|
||||||
|
|
||||||
| 'Shiny rare VMAX'
|
|
||||||
| 'Special illustration rare'
|
|
||||||
| 'Ultra Rare'
|
|
||||||
| 'Uncommon'
|
|
||||||
|
|
||||||
// Pokémon TCG Pocket Rarities
|
|
||||||
| 'One Diamond'
|
|
||||||
| 'Two Diamond'
|
|
||||||
| 'Three Diamond'
|
|
||||||
| 'Four Diamond'
|
|
||||||
| 'One Star'
|
|
||||||
| 'Two Star'
|
|
||||||
| 'Three Star'
|
|
||||||
| 'Crown'
|
|
||||||
| 'One Shiny'
|
|
||||||
| 'Two Shiny'
|
|
||||||
/**
|
|
||||||
* utility to help in multi language strings
|
|
||||||
*/
|
|
||||||
export type Languages<T = string> = Partial<Record<SupportedLanguages, T>>
|
export type Languages<T = string> = Partial<Record<SupportedLanguages, T>>
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper to define an ISO date
|
|
||||||
*/
|
|
||||||
type ISODate = `${number}-${number}-${number}`
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Definition of a serie
|
|
||||||
*/
|
|
||||||
export interface Serie {
|
export interface Serie {
|
||||||
id: string
|
id: string
|
||||||
name: Languages
|
name: Languages
|
||||||
@@ -105,6 +16,49 @@ export interface Serie {
|
|||||||
energies?: Array<Types>
|
energies?: Array<Types>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface variants {
|
||||||
|
/**
|
||||||
|
* Card base version
|
||||||
|
*/
|
||||||
|
normal?: boolean
|
||||||
|
/**
|
||||||
|
* Holo Reverse
|
||||||
|
* (colored Background holographic)
|
||||||
|
*/
|
||||||
|
reverse?: boolean
|
||||||
|
/**
|
||||||
|
* Holo Card
|
||||||
|
* (illustration holographic)
|
||||||
|
*/
|
||||||
|
holo?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* can have a first Edition stamp
|
||||||
|
*/
|
||||||
|
firstEdition?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Can be found in Jumob Format
|
||||||
|
*/
|
||||||
|
jumbo?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Card has a pre-release stamp
|
||||||
|
*/
|
||||||
|
preRelease?: boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Card has a W stamp
|
||||||
|
*/
|
||||||
|
wPromo?: true
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Types = 'Colorless' | 'Darkness' | 'Dragon' |
|
||||||
|
'Fairy' | 'Fighting' | 'Fire' |
|
||||||
|
'Grass' | 'Lightning' | 'Metal' |
|
||||||
|
'Psychic' | 'Water'
|
||||||
|
|
||||||
|
type ISODate = `${number}-${number}-${number}`
|
||||||
|
|
||||||
export interface Set {
|
export interface Set {
|
||||||
id: string
|
id: string
|
||||||
@@ -127,55 +81,17 @@ export interface Set {
|
|||||||
releaseDate: ISODate | Languages<ISODate>
|
releaseDate: ISODate | Languages<ISODate>
|
||||||
}
|
}
|
||||||
|
|
||||||
type VariantShortcut =
|
export interface Card {
|
||||||
| 'normal' // = { type: 'normal' }
|
|
||||||
| 'foil'
|
|
||||||
| 'reverse'
|
|
||||||
|
|
||||||
type VariantDefinition = {
|
|
||||||
/**
|
|
||||||
* if not set it is `normal`
|
|
||||||
*/
|
|
||||||
type?: 'normal' | 'holo' | 'reverse'
|
|
||||||
size?:
|
|
||||||
| 'jumbo'
|
|
||||||
| 'standard'
|
|
||||||
stamp?: '1st edition' | 'w-promo' | 'pre-release'
|
|
||||||
} & ({
|
|
||||||
type: 'holo'
|
|
||||||
foil?: string
|
|
||||||
} | {
|
|
||||||
type: 'reverse'
|
|
||||||
foil?: 'pokeball' | 'hyperball'
|
|
||||||
})
|
|
||||||
|
|
||||||
type Variant = VariantShortcut | VariantDefinition
|
|
||||||
|
|
||||||
/**
|
|
||||||
* base interface with everything in common between cards
|
|
||||||
*/
|
|
||||||
interface BaseCard {
|
|
||||||
/**
|
/**
|
||||||
* Card Name (Including the suffix if next to card name)
|
* Card Name (Including the suffix if next to card name)
|
||||||
*/
|
*/
|
||||||
name: Languages
|
name: Languages
|
||||||
subtitle?: Languages
|
|
||||||
|
|
||||||
/**
|
|
||||||
* the card number
|
|
||||||
*/
|
|
||||||
number?: string
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card illustrator
|
* Card illustrator
|
||||||
*/
|
*/
|
||||||
illustrator?: string
|
illustrator?: string
|
||||||
|
|
||||||
copyright?: {
|
|
||||||
text: Language
|
|
||||||
year?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* indicate in which boosters the card is available
|
* indicate in which boosters the card is available
|
||||||
*/
|
*/
|
||||||
@@ -218,12 +134,28 @@ interface BaseCard {
|
|||||||
* - Ultra Rare: https://www.tcgdex.net/database/Sword-&-Shield/Shining-Fates/18-Cinderace-V
|
* - Ultra Rare: https://www.tcgdex.net/database/Sword-&-Shield/Shining-Fates/18-Cinderace-V
|
||||||
* - Uncommon: https://www.tcgdex.net/database/Sword-&-Shield/Darkness-Ablaze/136-Furret
|
* - Uncommon: https://www.tcgdex.net/database/Sword-&-Shield/Darkness-Ablaze/136-Furret
|
||||||
*/
|
*/
|
||||||
rarity?: Rarity
|
rarity: 'ACE SPEC Rare' | 'Amazing Rare' | 'Classic Collection' | 'Common' |
|
||||||
|
'Double rare' | 'Full Art Trainer' | 'Holo Rare' | 'Holo Rare V' |
|
||||||
|
'Holo Rare VMAX' | 'Holo Rare VSTAR' | 'Hyper rare' | 'Illustration rare' |
|
||||||
|
'LEGEND' | 'None' | 'Radiant Rare' | 'Rare' | 'Rare Holo' | 'Rare Holo LV.X' |
|
||||||
|
'Rare PRIME' | 'Secret Rare' | 'Shiny Ultra Rare' | 'Shiny rare' | 'Shiny rare V' |
|
||||||
|
'Shiny rare VMAX' | 'Special illustration rare' | 'Ultra Rare' | 'Uncommon' |
|
||||||
|
// Pokémon TCG Pocket Rarities
|
||||||
|
'One Diamond' | 'Two Diamond' | 'Three Diamond' | 'Four Diamond' | 'One Star' | 'Two Star' | 'Three Star' | 'Crown' | 'One Shiny' | 'Two Shiny'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card Variants
|
* Card Category
|
||||||
|
*
|
||||||
|
* - Pokemon
|
||||||
|
* - Trainer
|
||||||
|
* - Energy
|
||||||
*/
|
*/
|
||||||
variants?: Array<Variant>
|
category: 'Pokemon' | 'Trainer' | 'Energy'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Card Variants (Override Set Variants)
|
||||||
|
*/
|
||||||
|
variants?: variants
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card Set
|
* Card Set
|
||||||
@@ -238,17 +170,45 @@ interface BaseCard {
|
|||||||
regulationMark?: string
|
regulationMark?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* indicate the pokémons that are present on the card graphic
|
* Pokemon only elements
|
||||||
*/
|
*/
|
||||||
pokemons?: Array<string | {
|
|
||||||
name: string
|
|
||||||
isShiny?: boolean
|
|
||||||
}>
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pokemon Pokedex ID
|
||||||
|
*/
|
||||||
|
dexId?: Array<number>
|
||||||
|
|
||||||
export interface PokemonCard extends BaseCard {
|
/**
|
||||||
category: 'Pokemon'
|
* Pokemon HP
|
||||||
|
*/
|
||||||
|
hp?: number
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pokemon Types
|
||||||
|
*/
|
||||||
|
types?: Array<Types> // ex for multiple https://www.tcgdex.net/database/ex/ex13/17
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pokemon Sub Evolution
|
||||||
|
*/
|
||||||
|
evolveFrom?: Languages
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pokemon Weight
|
||||||
|
*/
|
||||||
|
weight?: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pokemon Description
|
||||||
|
*/
|
||||||
|
description?: Languages
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Level of the Pokemon
|
||||||
|
*
|
||||||
|
* NOTE: can be equal to 'X' when the pokemon is a LEVEL-UP one
|
||||||
|
*/
|
||||||
|
level?: number | string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pokemon Stage
|
* Pokemon Stage
|
||||||
@@ -279,43 +239,6 @@ export interface PokemonCard extends BaseCard {
|
|||||||
*/
|
*/
|
||||||
suffix?: 'EX' | 'GX' | 'V' | 'Legend' | 'Prime' | 'SP' | 'TAG TEAM-GX'
|
suffix?: 'EX' | 'GX' | 'V' | 'Legend' | 'Prime' | 'SP' | 'TAG TEAM-GX'
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon HP
|
|
||||||
*/
|
|
||||||
hp?: number
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon Types
|
|
||||||
*/
|
|
||||||
types?: Array<Types> // ex for multiple https://www.tcgdex.net/database/ex/ex13/17
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon Pokedex ID
|
|
||||||
*/
|
|
||||||
dexId?: Array<number>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon Sub Evolution
|
|
||||||
*/
|
|
||||||
evolveFrom?: Languages
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon Weight
|
|
||||||
*/
|
|
||||||
weight?: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon Description
|
|
||||||
*/
|
|
||||||
description?: Languages
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Level of the Pokemon
|
|
||||||
*
|
|
||||||
* NOTE: can be equal to 'X' when the pokemon is a LEVEL-UP one
|
|
||||||
*/
|
|
||||||
level?: number | string
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pokemon Held Item
|
* Pokemon Held Item
|
||||||
*
|
*
|
||||||
@@ -348,63 +271,38 @@ export interface PokemonCard extends BaseCard {
|
|||||||
}>
|
}>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Pokémon Weakness
|
* Pokemon Weaknesses
|
||||||
*
|
|
||||||
* Old cards don't have text with their weakness, but the rules indicate that it does `x2`
|
|
||||||
*/
|
*/
|
||||||
weakness?: {
|
weaknesses?: Array<{
|
||||||
/**
|
type: Types
|
||||||
* the list of types the pokemon is weak to
|
value?: string
|
||||||
*/
|
}>
|
||||||
types: Array<Types>
|
|
||||||
/**
|
|
||||||
* the full line text of the weakness (exlucding types)
|
|
||||||
*/
|
|
||||||
text?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
resistance?: {
|
resistances?: Array<{
|
||||||
types: Array<Types>
|
type: Types
|
||||||
text: string
|
value?: string
|
||||||
}
|
}>
|
||||||
|
|
||||||
/**
|
|
||||||
* The retreat count of the card
|
|
||||||
*/
|
|
||||||
retreat?: number
|
retreat?: number
|
||||||
}
|
|
||||||
|
|
||||||
export interface TrainerCard extends BaseCard {
|
//Trainer/Energy
|
||||||
category: 'Trainer'
|
|
||||||
effect?: Languages
|
effect?: Languages
|
||||||
|
|
||||||
/**
|
|
||||||
* Pokemon HP
|
|
||||||
*/
|
|
||||||
hp?: number
|
|
||||||
|
|
||||||
// Trainer Only
|
// Trainer Only
|
||||||
trainerType?: 'Supporter' // https://www.tcgdex.net/database/ex/ex7/83
|
trainerType?: 'Supporter' | // https://www.tcgdex.net/database/ex/ex7/83
|
||||||
| 'Item' // https://www.tcgdex.net/database/ex/ex7/89
|
'Item' | // https://www.tcgdex.net/database/ex/ex7/89
|
||||||
| 'Stadium' // https://www.tcgdex.net/database/ex/ex7/87
|
'Stadium' | // https://www.tcgdex.net/database/ex/ex7/87
|
||||||
| 'Tool' // https://www.tcgdex.net/database/neo/neo1/93
|
'Tool' | // https://www.tcgdex.net/database/neo/neo1/93
|
||||||
| 'Ace Spec' // https://www.tcgdex.net/database/bw/bw7/139
|
'Ace Spec' | // https://www.tcgdex.net/database/bw/bw7/139
|
||||||
| 'Technical Machine' // https://www.tcgdex.net/database/ecard/ecard1/144
|
'Technical Machine' | // https://www.tcgdex.net/database/ecard/ecard1/144
|
||||||
| 'Goldenrod Game Corner' // https://www.tcgdex.net/database/neo/neo1/83
|
'Goldenrod Game Corner' | // https://www.tcgdex.net/database/neo/neo1/83
|
||||||
| 'Rocket\'s Secret Machine' // https://www.tcgdex.net/database/ex/ex7/84
|
'Rocket\'s Secret Machine' // https://www.tcgdex.net/database/ex/ex7/84
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface EnergyCard extends BaseCard {
|
|
||||||
category: 'Energy'
|
|
||||||
effect?: Languages
|
|
||||||
|
|
||||||
// Energy Only
|
// Energy Only
|
||||||
energyType?: 'Normal' // https://www.tcgdex.net/database/ecard/ecard1/160
|
energyType?: 'Normal' | // https://www.tcgdex.net/database/ecard/ecard1/160
|
||||||
| 'Special' // https://www.tcgdex.net/database/ecard/ecard1/158
|
'Special' // https://www.tcgdex.net/database/ecard/ecard1/158
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Card = PokemonCard | TrainerCard | EnergyCard
|
|
||||||
/**
|
/**
|
||||||
* Filter for cards legality
|
* Filter for cards legality
|
||||||
*/
|
*/
|
||||||
|
159
meta/definitions/api.d.ts
vendored
159
meta/definitions/api.d.ts
vendored
@@ -162,7 +162,6 @@ export interface Card extends CardResume {
|
|||||||
* - Secret Rare
|
* - Secret Rare
|
||||||
*/
|
*/
|
||||||
rarity: string;
|
rarity: string;
|
||||||
// rarity: { icon: string, designation: string }
|
|
||||||
/**
|
/**
|
||||||
* Card Category
|
* Card Category
|
||||||
*
|
*
|
||||||
@@ -170,44 +169,11 @@ export interface Card extends CardResume {
|
|||||||
* - Trainer
|
* - Trainer
|
||||||
* - Energy
|
* - Energy
|
||||||
*/
|
*/
|
||||||
category: string
|
category: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card Variants
|
* Card Variants (Override Set Variants)
|
||||||
* @deprecated `variants` is deprecated in favor of the current `variants_detailed` that contains more informations & is WAY more precise
|
|
||||||
*/
|
*/
|
||||||
variants?: variants
|
variants?: variants;
|
||||||
|
|
||||||
/**
|
|
||||||
* define the list of variants the card is available in
|
|
||||||
*/
|
|
||||||
variants_detailed?: Array<{
|
|
||||||
/**
|
|
||||||
* define the variant type
|
|
||||||
* - normal: no holographic elements
|
|
||||||
* - holo: the illustration has a foil
|
|
||||||
* - reverse: everything but the illustration is foiled
|
|
||||||
*/
|
|
||||||
type: 'normal' | 'holo' | 'reverse'
|
|
||||||
/**
|
|
||||||
* define the size of the card
|
|
||||||
* - standard: the classic size of a card
|
|
||||||
* - jumbo: also said oversized, big card.
|
|
||||||
*/
|
|
||||||
size?: 'standard' | 'jumbo'
|
|
||||||
/**
|
|
||||||
* indicate that this variant has a stamp
|
|
||||||
* - 1st edition: a 1st edition card (mostly for the first serie of the game)
|
|
||||||
* - w-promo:
|
|
||||||
* - pre-release:
|
|
||||||
*/
|
|
||||||
stamp?: '1st edition' | 'w-promo' | 'pre-release'
|
|
||||||
/**
|
|
||||||
* for the holo & reverse, **optionnnal** indicate which foil is used on the card
|
|
||||||
*/
|
|
||||||
foil?: 'pokeball' | 'hyperball'
|
|
||||||
}>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card Set
|
* Card Set
|
||||||
*/
|
*/
|
||||||
@@ -294,71 +260,22 @@ export interface Card extends CardResume {
|
|||||||
* Pokemon Attacks
|
* Pokemon Attacks
|
||||||
*/
|
*/
|
||||||
attacks?: Array<{
|
attacks?: Array<{
|
||||||
cost?: Array<string>
|
cost?: Array<string>;
|
||||||
/**
|
name: string;
|
||||||
* the attack name
|
effect?: string;
|
||||||
*/
|
damage?: string | number;
|
||||||
name: string
|
|
||||||
/**
|
|
||||||
* the attack effect
|
|
||||||
*/
|
|
||||||
effect?: string
|
|
||||||
/**
|
|
||||||
* The damage text or number
|
|
||||||
*/
|
|
||||||
damage?: string | number
|
|
||||||
/**
|
|
||||||
* the damage amount as a number
|
|
||||||
*/
|
|
||||||
amount?: number
|
|
||||||
/**
|
|
||||||
* the damage operator as a standardized character
|
|
||||||
*/
|
|
||||||
operator?: '+' | 'x' | '-'
|
|
||||||
}>;
|
}>;
|
||||||
/**
|
/**
|
||||||
* Pokemon Weaknesses
|
* Pokemon Weaknesses
|
||||||
*/
|
*/
|
||||||
weaknesses?: Array<{
|
weaknesses?: Array<{
|
||||||
/**
|
type: string;
|
||||||
* Indicate the type the Pokémon is weak to
|
value?: string;
|
||||||
*/
|
}>;
|
||||||
type: string
|
|
||||||
/**
|
|
||||||
* the full line text of the weakness (excluding the type)
|
|
||||||
*/
|
|
||||||
value?: string
|
|
||||||
/**
|
|
||||||
* the amount as a number
|
|
||||||
* note: not set for old card but it is a `2`
|
|
||||||
*/
|
|
||||||
amount?: number
|
|
||||||
/**
|
|
||||||
* the operator
|
|
||||||
* note: not set for old cards, but it is a `x`
|
|
||||||
*/
|
|
||||||
operator?: '+' | 'x'
|
|
||||||
}>
|
|
||||||
|
|
||||||
resistances?: Array<{
|
resistances?: Array<{
|
||||||
/**
|
type: string;
|
||||||
* Indicate the type the Pokémon resist
|
value?: string;
|
||||||
*/
|
}>;
|
||||||
type: string
|
|
||||||
/**
|
|
||||||
* the full line text of the resistance (excluding the type)
|
|
||||||
*/
|
|
||||||
value: string
|
|
||||||
/**
|
|
||||||
* the amount as a number
|
|
||||||
*/
|
|
||||||
amount: number
|
|
||||||
/**
|
|
||||||
* the operator, currently always a `-`
|
|
||||||
*/
|
|
||||||
operator: '-'
|
|
||||||
}>
|
|
||||||
|
|
||||||
retreat?: number;
|
retreat?: number;
|
||||||
effect?: string;
|
effect?: string;
|
||||||
trainerType?: string;
|
trainerType?: string;
|
||||||
@@ -376,11 +293,11 @@ export interface Card extends CardResume {
|
|||||||
/**
|
/**
|
||||||
* Ability to play in standard tournaments
|
* Ability to play in standard tournaments
|
||||||
*/
|
*/
|
||||||
standard: boolean
|
standard: boolean;
|
||||||
/**
|
/**
|
||||||
* Ability to play in expanded tournaments
|
* Ability to play in expanded tournaments
|
||||||
*/
|
*/
|
||||||
expanded: boolean
|
expanded: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -388,52 +305,6 @@ export interface Card extends CardResume {
|
|||||||
*/
|
*/
|
||||||
boosters?: Array<Booster>
|
boosters?: Array<Booster>
|
||||||
|
|
||||||
/**
|
|
||||||
* the list of Pokémons that appear on the card
|
|
||||||
*/
|
|
||||||
pokemons?: Array<{
|
|
||||||
/**
|
|
||||||
* the National Pokédex ID of the Pokémon
|
|
||||||
*
|
|
||||||
* note: you can then fetch aditionnal infos thorugh pokeapi.co like https://pokeapi.co/api/v2/pokemon/{id}
|
|
||||||
*/
|
|
||||||
id: number
|
|
||||||
/**
|
|
||||||
* The Pokémon name
|
|
||||||
*/
|
|
||||||
name: string
|
|
||||||
/**
|
|
||||||
* indicate if the pokémon is shiny or not
|
|
||||||
*/
|
|
||||||
isShiny?: true
|
|
||||||
}>
|
|
||||||
|
|
||||||
/**
|
|
||||||
* get the copyright informations about the card
|
|
||||||
*/
|
|
||||||
copyright?: {
|
|
||||||
text: string
|
|
||||||
year?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The card no.
|
|
||||||
*/
|
|
||||||
number: {
|
|
||||||
/**
|
|
||||||
* the first part of the no. (if there is no `/` it will include everything)
|
|
||||||
*/
|
|
||||||
nominator: string
|
|
||||||
/**
|
|
||||||
* a parseable area as a number (ex: 065 = 65, GG55 = 55)
|
|
||||||
*/
|
|
||||||
numeric: number
|
|
||||||
/**
|
|
||||||
* The second part of the no (skipped if there is no `/`)
|
|
||||||
*/
|
|
||||||
denominator?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
updated: string
|
updated: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user