tcgdex / cards-database

Pokémon Trading Card Game Card (TCG) Database for the TCGdex API. ⭐ Leave a star if the project interest you !
https://www.tcgdex.net
MIT License
131 stars 31 forks source link

enhancement: Add the list of products that were marketed with the set #503

Open Aviortheking opened 2 months ago

Aviortheking commented 2 months ago

Data affected

Please explain in more details what idea you have

example from https://tcg.pokemon.com/en-us/expansions/scarlet-violet/#featured-products

it includes some informations :

There might be other intersting informations to register about them but hard to standardize like the number of boosters, cards and additional elements sold in it

interface Product {
    name: string
    // Price of the product in cents (Integer, ex: 12€ is 1200) 
    price?: Language<number>
    category: 'Elite Trainer Box' | 'Build & Battle Box' | 'Build & Battle Stadium' | 'Booster Box' | 'Booster Bundle'
    images?: Array<{
        url: string
        background: 'transparent' | 'light' | 'dark'
    }>
}

I'll have to start something before it get lost to time.