1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-22 19:02:10 +00:00

First deck added (still need to find a good ID)

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2021-10-20 16:17:25 +02:00
parent ef23029d24
commit 2d427e7ddf
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,40 @@
import { Deck } from '../../../../interfaces'
const deck: Deck = {
id: 'deck.bw.nv.fd',
// id: 'd-bw3-1',
// id: 'card.bw.nv.1',
name: {
en: 'Fast Daze'
},
typesFocus: ['Fire', 'Grass'],
cards: [
{ id: 'bw3-12', variant: 'holo' },
'bw3-12',
{ id: 'bw3-11', quantity: 4 },
'bw3-3',
{ id: 'bw3-2', quantity: 2 },
{ id: 'bw3-1', quantity: 3 },
'bw3-5',
{ id: 'bw3-4', quantity: 2 },
{ id: 'bw3-7', quantity: 2 },
{ id: 'bw3-6', quantity: 2 },
{ id: 'bw3-9', quantity: 3 },
'bw3-21',
{ id: 'bw3-21', quantity: 2 },
{ id: 'bw3-17', quantity: 2 },
{ id: 'bw3-16', quantity: 2 },
{ id: 'bw3-7', quantity: 2 },
{ id: 'bw1-93', quantity: 2 },
{ id: 'bw1-100', quantity: 2 },
{ id: 'bw2-91', quantity: 2 },
{ id: 'bw2-91', quantity: 2 },
'bw3-92',
{ id: 'bw1-99', quantity: 2 },
{ id: 'bw3-95', quantity: 2 },
{ id: 'bw1-105', quantity: 12 },
{ id: 'bw1-106', quantity: 6 }
]
}
export default deck

20
interfaces.d.ts vendored
View File

@ -314,3 +314,23 @@ export interface Filter {
cards: Array<string>
}
}
export interface Deck {
id: string
name: Languages
typesFocus: Array<Types>
cards: Array<{
/**
* Card Global ID
*/
id: string
/**
* Card quantity in the deck
*/
quantity?: number
/**
* Card variant
*/
variant?: keyof Omit<variants, 'normal' | 'firstEdition'>
} | string>
}