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:
38
meta/definitions/api.d.ts
vendored
38
meta/definitions/api.d.ts
vendored
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user