1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-29 07:19:19 +00:00

feat: add boosters to API (#737)

This commit is contained in:
2025-05-18 00:53:26 +02:00
committed by GitHub
parent 8ca40f410d
commit c809b14783
815 changed files with 3183 additions and 960 deletions

View File

@ -2,6 +2,34 @@
* This file define how the API is architectured for the Compiler and the Javascript/Typescript SDK
*/
/**
* Booster interface
*/
export interface Booster {
/**
* the booster ID
*
* boo_<set_id>-<booster_name>
*/
id: `boo_${string}-${string}`
/**
* the name of the booster
*/
name: string
/**
* the logo of the booster
*/
logo?: string
/**
* the front of the booster pack
*/
artwork_front?: string
/**
* the back of the booster pack
*/
artwork_back?: string
}
/**
* /series endpoint
*/
@ -54,6 +82,11 @@ export interface Set extends SetResume {
tcgOnline?: string;
variants?: variants;
releaseDate: string;
/**
* The boosters available in this set
*/
boosters?: Array<Booster>
/**
* Designate if the set is usable in tournaments
*
@ -267,6 +300,11 @@ export interface Card extends CardResume {
expanded: boolean;
}
/**
* the boosters in which the card is available
*/
boosters?: Array<Booster>
updated: string
}