mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 10:42:10 +00:00
Updated Interfaces
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
593b17b55f
commit
53afc67b72
@ -3,6 +3,12 @@ export interface AbilityTypeSimple {
|
|||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type AbilityTypeSingle = {
|
||||||
|
id: AbilityType
|
||||||
|
name: string
|
||||||
|
cards: string
|
||||||
|
}
|
||||||
|
|
||||||
enum AbilityType {
|
enum AbilityType {
|
||||||
POKEBODY,
|
POKEBODY,
|
||||||
POKEPOWER,
|
POKEPOWER,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { CardSimple } from "./Card";
|
import { CardSimple } from "./Card";
|
||||||
|
import { List } from "./General";
|
||||||
|
|
||||||
export type IllustratorSingle = {
|
export type IllustratorSingle = {
|
||||||
id: number,
|
id: number,
|
||||||
@ -11,10 +12,7 @@ export interface IllustratorSimple {
|
|||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IllustratorsList {
|
export type IllustratorsList = List<IllustratorSimple>
|
||||||
count: number
|
|
||||||
list: Array<IllustratorSimple>
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Illustrator {
|
interface Illustrator {
|
||||||
id: number
|
id: number
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
import { List } from "./General"
|
||||||
|
import { CardSimple } from "./Card"
|
||||||
|
|
||||||
export enum Rarity {
|
export enum Rarity {
|
||||||
Common,
|
Common,
|
||||||
Uncommon,
|
Uncommon,
|
||||||
@ -30,3 +33,11 @@ export interface RaritySimple {
|
|||||||
id: Rarity
|
id: Rarity
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RaritySingle = {
|
||||||
|
id: Rarity
|
||||||
|
name: string
|
||||||
|
cards: Array<CardSimple>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type RarityList = List<RaritySimple>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { CardSimple } from "./Card";
|
import { CardSimple } from "./Card";
|
||||||
|
import { List } from "./General";
|
||||||
|
|
||||||
export type RetreatSimple = number
|
export type RetreatSimple = number
|
||||||
|
|
||||||
@ -7,7 +8,4 @@ export interface RetreatSingle {
|
|||||||
cards: Array<CardSimple>
|
cards: Array<CardSimple>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RetreatList {
|
export type RetreatList = List<RetreatSimple>
|
||||||
count: number,
|
|
||||||
list: Array<RetreatSimple>
|
|
||||||
}
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
import { List } from "./General"
|
||||||
|
import { CardSimple } from "./Card"
|
||||||
|
|
||||||
enum Tag {
|
enum Tag {
|
||||||
BASIC,
|
BASIC,
|
||||||
BASICENERGY,
|
BASICENERGY,
|
||||||
@ -29,3 +32,11 @@ export interface TagSimple {
|
|||||||
id: Tag
|
id: Tag
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type TagSingle = {
|
||||||
|
id: Tag
|
||||||
|
name: string
|
||||||
|
cards: Array<CardSimple>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type TagList = List<TagSimple>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
import { List } from "./General"
|
||||||
|
import { CardSimple } from "./Card"
|
||||||
|
|
||||||
enum Type {
|
enum Type {
|
||||||
COLORLESS,
|
COLORLESS,
|
||||||
DARKNESS,
|
DARKNESS,
|
||||||
@ -17,4 +20,12 @@ export interface TypeSimple {
|
|||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type TypeSingle = {
|
||||||
|
id: Type
|
||||||
|
name: string
|
||||||
|
cards: Array<CardSimple>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type TypeList = List<TypeSimple>
|
||||||
|
|
||||||
export default Type
|
export default Type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user