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

Updated Database

Added known swsh2 cards
Update every sets to remove the images
extension as it can be served as png, jpg and webp
Added Trainer kits sets
Added descriptions for set interface
Added new fields see #6

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-02-23 18:47:32 +01:00
parent 66d8e43a43
commit 27ba2ef104
145 changed files with 1272 additions and 237 deletions

View File

@ -60,6 +60,16 @@ interface Card {
name: string
code: string
}| Set
/**
* Override Set defaults
*/
cardTypes?: {
normal: boolean
reverse: boolean
holo: boolean
firstEd: boolean
}
}
export default Card

View File

@ -1,45 +1,120 @@
import LangList from "./LangList";
import Expansion from "./Expansion";
/**
* Set Interface containing all informations about the set
*/
export default interface Set {
// Display Name
/**
* Display Name
*/
name: LangList<string> | string
/**
* Expansion Object
*/
expansion?: Expansion
/**
* Expansion code
*/
expansionCode?: string
/**
* Set code (Also used as the slug)
*/
code: string
/**
* Trading card online code
*/
tcgoCode?: string
cardCount?: {
// total containing all secrets
/**
* total number of cards including secrets
*/
total: number
// official count on cards
/**
* number of card indicated at the bottom of each cards
*/
official: number
}
cardTypes?: {
/**
* Default: true
*/
normal: boolean
/**
* Default: true
*/
reverse: boolean
/**
* Default: true
*/
holo: boolean
/**
* Default: false
*/
ed1: boolean
}
/**
* Format of numbering
* ex: SWSH[000] mean that it has SWSH as prefix and start at 000 -> 001 -> 002 -> etc
*
* @type {string}
* @memberof Set
*/
format?: string
/**
* Release date of the set
* in format: yyyy-mm-dd
* ex: 2002-12-22
*
* @type {string}
* @memberof Set
*/
releaseDate?: string // date in format yyyy-mm-dd
// api endpoint for scrapping
/**
* Aol Endpoint for scrapping
*/
api?: string
/**
* Competition usage
*/
legal?: {
standard: boolean
expanded: boolean
}
images?: {
// thingy on bottom of cards
/**
* Symbol icon on bottom of card
* available extensions [
* webp
* jpg
* png
* ]
*/
symbol?: string
// Official logo of set
/**
* Official logo of set
* available extensions [
* webp
* jpg
* png
* ]
*/
logo?: string
}
//temp
slug?: string
subsets?: Array<Set>
/**
* Language in which the set is available
*/
availability?: LangList<boolean>
}