mirror of
https://github.com/tcgdex/compiler.git
synced 2025-07-29 07:29:50 +00:00
Added multiple endpoints (#18)
Added new endpoints: energyTypes trainerTypes suffixes stages dexIds regulationMarks variants
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
import { setToSetSimple } from './setUtil'
|
||||
import { cardIsLegal, fetchRemoteFile, smartGlob } from './util'
|
||||
import { Set, SupportedLanguages, Card, Types } from 'db/interfaces'
|
||||
import { Card as CardSingle, CardResume } from '@tcgdex/sdk/interfaces'
|
||||
import { Card as CardSingle, CardResume } from '@tcgdex/sdk/dist/types/interfaces'
|
||||
import translate from './translationUtil'
|
||||
|
||||
export async function getCardPictures(cardId: string, card: Card, lang: SupportedLanguages): Promise<string | undefined> {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { smartGlob } from './util'
|
||||
import { setToSetSimple, getSets } from './setUtil'
|
||||
import { Serie, SupportedLanguages, Set } from 'db/interfaces'
|
||||
import { Serie as SerieSingle, SerieResume } from '@tcgdex/sdk/interfaces'
|
||||
import { Serie as SerieSingle, SerieResume } from '@tcgdex/sdk/dist/types/interfaces'
|
||||
|
||||
export async function getSerie(name: string): Promise<Serie> {
|
||||
return (await import(`../db/data/${name}.js`)).default
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Set, SupportedLanguages } from 'db/interfaces'
|
||||
import { fetchRemoteFile, setIsLegal, smartGlob } from './util'
|
||||
import { cardToCardSimple, getCards } from './cardUtil'
|
||||
import { SetResume, Set as SetSingle } from '@tcgdex/sdk/interfaces'
|
||||
import { SetResume, Set as SetSingle } from '@tcgdex/sdk/dist/types/interfaces'
|
||||
|
||||
interface t {
|
||||
[key: string]: Set
|
||||
|
Reference in New Issue
Block a user