Add OpenAPI

This commit is contained in:
2025-07-05 22:32:52 +02:00
parent acd910e013
commit 54a4f7e08a
98 changed files with 4816 additions and 696 deletions

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const Attribute = {
Wind: 'WIND',
Water: 'WATER',
Fire: 'FIRE',
Earth: 'EARTH',
Light: 'LIGHT',
Dark: 'DARK',
Divine: 'DIVINE'
} as const;
export type Attribute = typeof Attribute[keyof typeof Attribute];

View File

@@ -13,12 +13,6 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { NewCard } from './new-card';
// May contain unused imports in some cases
// @ts-ignore
import type { RegionalSet } from './regional-set';
/**
*
@@ -28,27 +22,27 @@ import type { RegionalSet } from './regional-set';
export interface CardPrint {
/**
*
* @type {number}
* @type {string}
* @memberof CardPrint
*/
'id'?: number;
/**
*
* @type {RegionalSet}
* @memberof CardPrint
*/
'regionalSet': RegionalSet;
/**
*
* @type {NewCard}
* @memberof CardPrint
*/
'card': NewCard;
'id': string;
/**
*
* @type {string}
* @memberof CardPrint
*/
'imageApiPath': string;
'name': string;
/**
*
* @type {string}
* @memberof CardPrint
*/
'regionalName'?: string | null;
/**
*
* @type {string}
* @memberof CardPrint
*/
'rarity': string;
}

View File

@@ -0,0 +1,48 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CardUpstreamFetchRequest
*/
export interface CardUpstreamFetchRequest {
/**
*
* @type {Array<string>}
* @memberof CardUpstreamFetchRequest
*/
'services': Array<string>;
/**
*
* @type {boolean}
* @memberof CardUpstreamFetchRequest
*/
'persist'?: boolean;
/**
*
* @type {string}
* @memberof CardUpstreamFetchRequest
*/
'name'?: string | null;
/**
*
* @type {number}
* @memberof CardUpstreamFetchRequest
*/
'id'?: number | null;
}

View File

@@ -13,96 +13,38 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { Attribute } from './attribute';
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { CardType } from './card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { LinkArrow } from './link-arrow';
// May contain unused imports in some cases
// @ts-ignore
import type { MonsterCard } from './monster-card';
// May contain unused imports in some cases
// @ts-ignore
import type { MonsterType } from './monster-type';
// May contain unused imports in some cases
// @ts-ignore
import type { SpellCard } from './spell-card';
// May contain unused imports in some cases
// @ts-ignore
import type { SpellCardType } from './spell-card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { TrapCard } from './trap-card';
/**
*
* @type Card
* @export
* @interface Card
*/
export interface Card {
/**
*
* @type {number}
* @memberof Card
*/
'id'?: number;
/**
*
* @type {string}
* @memberof Card
*/
'description': string;
/**
*
* @type {string}
* @memberof Card
*/
'pendulumDescription'?: string | null;
/**
*
* @type {number}
* @memberof Card
*/
'defense'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'attack'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'health'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'level'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'linkValue'?: number | null;
/**
*
* @type {string}
* @memberof Card
*/
'name': string;
/**
*
* @type {string}
* @memberof Card
*/
'type': string;
/**
*
* @type {string}
* @memberof Card
*/
'frameType': string;
/**
*
* @type {string}
* @memberof Card
*/
'archetype'?: string | null;
/**
*
* @type {string}
* @memberof Card
*/
'race'?: string | null;
/**
*
* @type {string}
* @memberof Card
*/
'attribute'?: string | null;
}
export type Card = MonsterCard | SpellCard | TrapCard;

View File

@@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface DeckCreateRequest
*/
export interface DeckCreateRequest {
/**
*
* @type {string}
* @memberof DeckCreateRequest
*/
'name': string;
}

View File

@@ -13,6 +13,9 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
/**
*
@@ -34,9 +37,9 @@ export interface Deck {
'name': string;
/**
*
* @type {{ [key: string]: number; }}
* @type {Set<CardPrint>}
* @memberof Deck
*/
'cards': { [key: string]: number; };
'prints': Set<CardPrint>;
}

View File

@@ -1,9 +1,26 @@
export * from './attribute';
export * from './card';
export * from './card-print';
export * from './card-type';
export * from './card-upstream-fetch-request';
export * from './deck';
export * from './new-card';
export * from './page-deck';
export * from './deck-create-request';
export * from './job-dto';
export * from './job-status';
export * from './link-arrow';
export * from './monster-card';
export * from './monster-card-type';
export * from './monster-type';
export * from './page';
export * from './page-card-dto';
export * from './page-card-print-dto';
export * from './page-deck-dto';
export * from './page-set-dto';
export * from './region';
export * from './region-code-alias';
export * from './regional-set';
export * from './set-prefix';
export * from './set-dto';
export * from './spell-card';
export * from './spell-card-type';
export * from './trap-card';
export * from './trap-card-type';

View File

@@ -0,0 +1,65 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { JobStatus } from './job-status';
/**
*
* @export
* @interface JobDto
*/
export interface JobDto {
/**
*
* @type {number}
* @memberof JobDto
*/
'id'?: number;
/**
*
* @type {number}
* @memberof JobDto
*/
'pendingJobs'?: number | null;
/**
*
* @type {number}
* @memberof JobDto
*/
'processingJobs'?: number | null;
/**
*
* @type {number}
* @memberof JobDto
*/
'completedJobs'?: number | null;
/**
*
* @type {number}
* @memberof JobDto
*/
'failedJobs'?: number | null;
/**
*
* @type {JobStatus}
* @memberof JobDto
*/
'status': JobStatus;
}

View File

@@ -0,0 +1,33 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const JobStatus = {
Pending: 'PENDING',
Processing: 'PROCESSING',
Completed: 'COMPLETED',
Failed: 'FAILED'
} as const;
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const LinkArrow = {
TopLeft: 'TOP_LEFT',
Top: 'TOP',
TopRight: 'TOP_RIGHT',
Left: 'LEFT',
Right: 'RIGHT',
BottomLeft: 'BOTTOM_LEFT',
Bottom: 'BOTTOM',
BottomRight: 'BOTTOM_RIGHT'
} as const;
export type LinkArrow = typeof LinkArrow[keyof typeof LinkArrow];

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const MonsterCardType = {
Normal: 'NORMAL',
Effect: 'EFFECT',
Ritual: 'RITUAL',
Fusion: 'FUSION',
Synchro: 'SYNCHRO',
Xyz: 'XYZ',
Link: 'LINK'
} as const;
export type MonsterCardType = typeof MonsterCardType[keyof typeof MonsterCardType];

View File

@@ -0,0 +1,146 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { Attribute } from './attribute';
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { CardType } from './card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { LinkArrow } from './link-arrow';
// May contain unused imports in some cases
// @ts-ignore
import type { MonsterCardType } from './monster-card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { MonsterType } from './monster-type';
/**
*
* @export
* @interface MonsterCard
*/
export interface MonsterCard {
/**
*
* @type {number}
* @memberof MonsterCard
*/
'id'?: number;
/**
*
* @type {CardType}
* @memberof MonsterCard
*/
'cardType': CardType;
/**
*
* @type {string}
* @memberof MonsterCard
*/
'description': string;
/**
*
* @type {string}
* @memberof MonsterCard
*/
'name': string;
/**
*
* @type {Set<CardPrint>}
* @memberof MonsterCard
*/
'cardPrints': Set<CardPrint>;
/**
*
* @type {string}
* @memberof MonsterCard
*/
'monsterEffect'?: string | null;
/**
*
* @type {number}
* @memberof MonsterCard
*/
'attack'?: number | null;
/**
*
* @type {number}
* @memberof MonsterCard
*/
'defense'?: number | null;
/**
*
* @type {number}
* @memberof MonsterCard
*/
'level'?: number | null;
/**
*
* @type {boolean}
* @memberof MonsterCard
*/
'isPendulum'?: boolean;
/**
*
* @type {number}
* @memberof MonsterCard
*/
'pendulumScale'?: number | null;
/**
*
* @type {string}
* @memberof MonsterCard
*/
'pendulumEffect'?: string | null;
/**
*
* @type {number}
* @memberof MonsterCard
*/
'linkValue'?: number | null;
/**
*
* @type {MonsterCardType}
* @memberof MonsterCard
*/
'subType': MonsterCardType;
/**
*
* @type {MonsterType}
* @memberof MonsterCard
*/
'monsterType': MonsterType;
/**
*
* @type {Attribute}
* @memberof MonsterCard
*/
'attribute': Attribute;
/**
*
* @type {Set<LinkArrow>}
* @memberof MonsterCard
*/
'linkArrows': Set<LinkArrow>;
}

View File

@@ -0,0 +1,55 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const MonsterType = {
Aqua: 'AQUA',
Beast: 'BEAST',
BeastWarrior: 'BEAST_WARRIOR',
CreatorGod: 'CREATOR_GOD',
Cyberse: 'CYBERSE',
Dinosaur: 'DINOSAUR',
DivineBeast: 'DIVINE_BEAST',
Dragon: 'DRAGON',
Fairy: 'FAIRY',
Fiend: 'FIEND',
Fish: 'FISH',
Insect: 'INSECT',
Illusion: 'ILLUSION',
Machine: 'MACHINE',
Plant: 'PLANT',
Psychic: 'PSYCHIC',
Pyro: 'PYRO',
Reptile: 'REPTILE',
Rock: 'ROCK',
SeaSerpent: 'SEA_SERPENT',
Spellcaster: 'SPELLCASTER',
Thunder: 'THUNDER',
Warrior: 'WARRIOR',
WingedBeast: 'WINGED_BEAST',
Wyrm: 'WYRM',
Zombie: 'ZOMBIE'
} as const;
export type MonsterType = typeof MonsterType[keyof typeof MonsterType];

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { Card } from './card';
/**
* Page of items
* @export
* @interface PageCardDto
*/
export interface PageCardDto {
/**
* Items in the page
* @type {Array<Card>}
* @memberof PageCardDto
*/
'content': Array<Card>;
/**
*
* @type {number}
* @memberof PageCardDto
*/
'page'?: number;
/**
*
* @type {number}
* @memberof PageCardDto
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof PageCardDto
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof PageCardDto
*/
'totalRecords'?: number | null;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
/**
* Page of items
* @export
* @interface PageCardPrintDto
*/
export interface PageCardPrintDto {
/**
* Items in the page
* @type {Array<CardPrint>}
* @memberof PageCardPrintDto
*/
'content': Array<CardPrint>;
/**
*
* @type {number}
* @memberof PageCardPrintDto
*/
'page'?: number;
/**
*
* @type {number}
* @memberof PageCardPrintDto
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof PageCardPrintDto
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof PageCardPrintDto
*/
'totalRecords'?: number | null;
}

View File

@@ -18,34 +18,40 @@
import type { Deck } from './deck';
/**
*
* Page of items
* @export
* @interface PageDeck
* @interface PageDeckDto
*/
export interface PageDeck {
export interface PageDeckDto {
/**
*
* Items in the page
* @type {Array<Deck>}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'content': Array<Deck>;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'page'?: number;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof PageDeckDto
*/
'totalRecords'?: number | null;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { SetDto } from './set-dto';
/**
* Page of items
* @export
* @interface PageSetDto
*/
export interface PageSetDto {
/**
* Items in the page
* @type {Array<SetDto>}
* @memberof PageSetDto
*/
'content': Array<SetDto>;
/**
*
* @type {number}
* @memberof PageSetDto
*/
'page'?: number;
/**
*
* @type {number}
* @memberof PageSetDto
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof PageSetDto
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof PageSetDto
*/
'totalRecords'?: number | null;
}

View File

@@ -0,0 +1,54 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Page of items
* @export
* @interface Page
*/
export interface Page {
/**
* Items in the page
* @type {Array<any>}
* @memberof Page
*/
'content': Array<any>;
/**
*
* @type {number}
* @memberof Page
*/
'page'?: number;
/**
*
* @type {number}
* @memberof Page
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof Page
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof Page
*/
'totalRecords'?: number | null;
}

View File

@@ -0,0 +1,47 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { Region } from './region';
/**
*
* @export
* @interface RegionCodeAlias
*/
export interface RegionCodeAlias {
/**
*
* @type {number}
* @memberof RegionCodeAlias
*/
'id'?: number;
/**
*
* @type {string}
* @memberof RegionCodeAlias
*/
'alias': string;
/**
*
* @type {Region}
* @memberof RegionCodeAlias
*/
'region': Region;
}

View File

@@ -13,33 +13,31 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { RegionalSet } from './regional-set';
/**
*
* @export
* @interface Region
* @enum {string}
*/
export interface Region {
/**
*
* @type {number}
* @memberof Region
*/
'id': number;
/**
*
* @type {string}
* @memberof Region
*/
'name': string;
/**
*
* @type {Set<RegionalSet>}
* @memberof Region
*/
'regionalSets': Set<RegionalSet>;
}
export const Region = {
AsianEnglish: 'ASIAN_ENGLISH',
Japanese: 'JAPANESE',
JapaneseAsian: 'JAPANESE_ASIAN',
English: 'ENGLISH',
EuropeanEnglish: 'EUROPEAN_ENGLISH',
Korean: 'KOREAN',
French: 'FRENCH',
FrenchCanadian: 'FRENCH_CANADIAN',
NaEnglish: 'NA_ENGLISH',
Oceanic: 'OCEANIC',
German: 'GERMAN',
Portuguese: 'PORTUGUESE',
Italian: 'ITALIAN',
Spanish: 'SPANISH'
} as const;
export type Region = typeof Region[keyof typeof Region];

View File

@@ -16,12 +16,6 @@
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { Region } from './region';
// May contain unused imports in some cases
// @ts-ignore
import type { SetPrefix } from './set-prefix';
/**
*
@@ -34,24 +28,24 @@ export interface RegionalSet {
* @type {number}
* @memberof RegionalSet
*/
'id': number;
'id'?: number;
/**
*
* @type {SetPrefix}
* @type {string}
* @memberof RegionalSet
*/
'prefix': SetPrefix;
'prefix': string;
/**
*
* @type {Region}
* @type {string}
* @memberof RegionalSet
*/
'region': Region;
'region': string;
/**
*
* @type {Set<CardPrint>}
* @type {Array<CardPrint>}
* @memberof RegionalSet
*/
'cardPrints': Set<CardPrint>;
'cardPrints': Array<CardPrint>;
}

View File

@@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface SetDto
*/
export interface SetDto {
/**
*
* @type {string}
* @memberof SetDto
*/
'name': string;
}

View File

@@ -13,9 +13,6 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { RegionalSet } from './regional-set';
/**
*
@@ -28,18 +25,12 @@ export interface SetPrefix {
* @type {number}
* @memberof SetPrefix
*/
'id': number;
'id'?: number;
/**
*
* @type {string}
* @memberof SetPrefix
*/
'name': string;
/**
*
* @type {Set<RegionalSet>}
* @memberof SetPrefix
*/
'regionalSets': Set<RegionalSet>;
}

View File

@@ -0,0 +1,35 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const SpellCardType = {
Normal: 'NORMAL',
Continuous: 'CONTINUOUS',
Equip: 'EQUIP',
QuickPlay: 'QUICK_PLAY',
Field: 'FIELD',
Ritual: 'RITUAL'
} as const;
export type SpellCardType = typeof SpellCardType[keyof typeof SpellCardType];

View File

@@ -0,0 +1,71 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { CardType } from './card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { SpellCardType } from './spell-card-type';
/**
*
* @export
* @interface SpellCard
*/
export interface SpellCard {
/**
*
* @type {number}
* @memberof SpellCard
*/
'id'?: number;
/**
*
* @type {CardType}
* @memberof SpellCard
*/
'cardType': CardType;
/**
*
* @type {string}
* @memberof SpellCard
*/
'description': string;
/**
*
* @type {string}
* @memberof SpellCard
*/
'name': string;
/**
*
* @type {Set<CardPrint>}
* @memberof SpellCard
*/
'cardPrints': Set<CardPrint>;
/**
*
* @type {SpellCardType}
* @memberof SpellCard
*/
'subType': SpellCardType;
}

View File

@@ -0,0 +1,32 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const TrapCardType = {
Normal: 'NORMAL',
Continuous: 'CONTINUOUS',
Counter: 'COUNTER'
} as const;
export type TrapCardType = typeof TrapCardType[keyof typeof TrapCardType];

View File

@@ -19,43 +19,52 @@ import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { CardType } from './card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { TrapCardType } from './trap-card-type';
/**
*
* @export
* @interface NewCard
* @interface TrapCard
*/
export interface NewCard {
export interface TrapCard {
/**
*
* @type {number}
* @memberof NewCard
* @memberof TrapCard
*/
'id'?: number;
/**
*
* @type {CardType}
* @memberof NewCard
* @memberof TrapCard
*/
'cardType': CardType;
/**
*
* @type {string}
* @memberof NewCard
* @memberof TrapCard
*/
'description': string;
/**
*
* @type {string}
* @memberof NewCard
* @memberof TrapCard
*/
'name': string;
/**
*
* @type {Set<CardPrint>}
* @memberof NewCard
* @memberof TrapCard
*/
'cardPrints': Set<CardPrint>;
/**
*
* @type {TrapCardType}
* @memberof TrapCard
*/
'subType': TrapCardType;
}