diff --git a/interfaces/Card.ts b/interfaces/Card.ts index f87dcf2..5300425 100644 --- a/interfaces/Card.ts +++ b/interfaces/Card.ts @@ -19,21 +19,72 @@ export interface CardSimple { export interface CardSingle { // General id: string - localId: number|string + + /** + * The Set Card ID + */ + localId: number | string + + /** + * The card Name + */ name: string + + /** + * The Card Picture + * it doesn't contains the ext as it is available as .png, .jpg, .webp (HINT: use .webp then .png then .jpg) + */ image?: { low: string high?: string } + + /** + * Card Tags + */ tags?: Array + + /** + * Card illustrator informations + */ illustrator?: IllustratorSimple + + /** + * Card Rarity + */ rarity: RaritySimple + + /** + * Card Category + */ category: CategorySimple + + /** + * Card Set + */ set: { + /** + * Set Display name + */ name: string + + /** + * Set code/id + */ code: string } + /** + * This will be set for each cards + * define all the variants for a specific card + */ + variants: { + normal: boolean + reverse: boolean + holo: boolean + firstEd: boolean + } + /** * Some Pokémons have item like a berry */ @@ -80,7 +131,7 @@ type Card = { // Card informations (from top to bottom of card) name: LangList hp?: number //optionnal because energy/trainer cards might have not any hp - type?: Array // ex for multiple https://api.pokemon.com/us/pokemon-tcg/pokemon-cards/ex-series/ex13/17/ + type?: Array // ex for multiple https://www.tcgdex.net/database/ex/ex13/17 image?: { low: LangList diff --git a/package.json b/package.json index a4ea44c..a7275c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tcgdex/sdk", - "version": "1.7.0", + "version": "1.8.0", "main": "./tcgdex.js", "types": "./tcgdex.d.ts", "repository": "https://github.com/tcgdex/javascript-sdk.git",