Compare commits
51 Commits
18719f1ad9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3737ceb33a | |||
| 5ae114aeb1 | |||
| 0f30cdf8bb | |||
| a7905e4158 | |||
| 5c9c0cde60 | |||
| 7713c8e4ae | |||
| 9450d560c4 | |||
| fcd1e4c888 | |||
| 47c468bab6 | |||
| 1f0b08c122 | |||
| e6ccae9af3 | |||
| b3e4f76b18 | |||
| bff0b35c5f | |||
| bdeaa34851 | |||
| 7c2c6834c2 | |||
| 7dc4c9192b | |||
| e895602aa4 | |||
| 9c743ed514 | |||
| 520f59a0ca | |||
| ad8772d112 | |||
| c06b75ab96 | |||
| b0d66c9aa0 | |||
| 6b23bfb39f | |||
| 202959dd9e | |||
| 53fc2ed8fb | |||
| dfac93e1ff | |||
| fc95c3fdfd | |||
| 8c9d38de35 | |||
| 10d5edced9 | |||
| 855996486b | |||
| 9148bb3463 | |||
| edeffa7012 | |||
| 3d244e5e83 | |||
| 05f9255ef0 | |||
| c942450e86 | |||
| 00759473f2 | |||
| d9acd72d7b | |||
| 2639a5301a | |||
| 460b7aee72 | |||
| 3c393a1e0b | |||
| 0189b0db15 | |||
| 78b8c60329 | |||
| 48bbc03a91 | |||
| d493800226 | |||
| 55622d7a4d | |||
| 79814b18b1 | |||
| bb114f16e0 | |||
| 50009b7e61 | |||
| 54a4f7e08a | |||
| acd910e013 | |||
| 2545c0840d |
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
.gitignore
|
||||
openapitools.json
|
||||
README.md
|
||||
.vscode
|
||||
.idea
|
||||
.gitea
|
||||
45
.gitea/workflows/release.yml
Normal file
45
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Create and Push Release
|
||||
run-name: Create and Push Release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
AUTHENTIK_URL: https://auth.smoothbrain.win
|
||||
REGISTRY_URL: gitea.smoothbrain.win
|
||||
IMAGE_OWNER: rak
|
||||
IMAGE_NAME: dex-ui-vue
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get version
|
||||
id: get-version
|
||||
run: |
|
||||
version=$(cat package.json | jq -r '.version')
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Docker Login to Gitea Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_URL }}
|
||||
username: ${{ secrets.CI_SERVICE_ACCOUNT }}
|
||||
password: ${{ secrets.CI_SERVICE_ACCOUNT_PASSWORD }}
|
||||
|
||||
- name: Build & Push Image
|
||||
env:
|
||||
TAG: ${{ steps.get-version.outputs.version }}
|
||||
QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.CI_SERVICE_ACCOUNT }}
|
||||
QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.CI_SERVICE_ACCOUNT_PASSWORD }}
|
||||
run: |
|
||||
docker build -f docker/Dockerfile \
|
||||
-t $REGISTRY_URL/$IMAGE_OWNER/$IMAGE_NAME:$TAG \
|
||||
-t $REGISTRY_URL/$IMAGE_OWNER/$IMAGE_NAME:latest \
|
||||
.
|
||||
|
||||
docker push $REGISTRY_URL/$IMAGE_OWNER/$IMAGE_NAME:$TAG
|
||||
docker push $REGISTRY_URL/$IMAGE_OWNER/$IMAGE_NAME:latest
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@ yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
docker/docker-compose.yml
|
||||
|
||||
node_modules
|
||||
dist
|
||||
|
||||
36
docker/Dockerfile
Normal file
36
docker/Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
# Stage 1: Build application
|
||||
FROM node:22-bookworm-slim AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Create runtime image
|
||||
FROM nginxinc/nginx-unprivileged:1.25-alpine AS runtime
|
||||
|
||||
# Create writable directories
|
||||
USER root
|
||||
RUN mkdir -p /runtime-config && \
|
||||
chown nginx:nginx /runtime-config && \
|
||||
chown -R nginx:nginx /var/cache/nginx && \
|
||||
chown -R nginx:nginx /var/run
|
||||
USER nginx
|
||||
|
||||
# Copy built assets
|
||||
COPY --from=builder --chown=nginx:nginx /app/dist /usr/share/nginx/html
|
||||
|
||||
# Copy nginx config template
|
||||
COPY --chown=nginx:nginx nginx.conf.template /etc/nginx/templates/
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY --chown=nginx:nginx docker/entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Make entrypoint executable
|
||||
USER root
|
||||
RUN chmod +x /entrypoint.sh
|
||||
USER nginx
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
48
docker/docker-compose.yml
Normal file
48
docker/docker-compose.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
|
||||
be:
|
||||
image: gitea.smoothbrain.win/rak/dex:latest
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
QUARKUS_DATASOURCE_JDBC_URL:
|
||||
QUARKUS_DATASOURCE_USERNAME:
|
||||
QUARKUS_DATASOURCE_PASSWORD:
|
||||
QUARKUS_OIDC_AUTH_SERVER_URL:
|
||||
QUARKUS_OIDC_CLIENT_ID:
|
||||
QUARKUS_OIDC_CREDENTIALS_SECRET:
|
||||
QUARKUS_OIDC_TOKEN_AUDIENCE:
|
||||
QUARKUS_OIDC_TOKEN_ISSUER:
|
||||
QUARKUS_HTTP_INSECURE_REQUESTS: enabled
|
||||
DEX_FILE_PATH:
|
||||
networks:
|
||||
- dex
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- be
|
||||
environment:
|
||||
API_HOST: be
|
||||
API_PORT: 8080
|
||||
networks:
|
||||
- dex
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_PASSWORD: dex
|
||||
POSTGRES_DB: dex
|
||||
POSTGRES_USER: dex
|
||||
networks:
|
||||
- dex
|
||||
|
||||
networks:
|
||||
dex:
|
||||
18
docker/entrypoint.sh
Normal file
18
docker/entrypoint.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Create runtime config file in writable location
|
||||
#cat > /runtime-config/config.js <<EOF
|
||||
#window.__APP_CONFIG__ = {
|
||||
# API_HOST: "${API_HOST}",
|
||||
# API_PORT: "${API_PORT}"
|
||||
#};
|
||||
#EOF
|
||||
|
||||
# Generate nginx config from template (if using)
|
||||
if [ -f "/etc/nginx/templates/nginx.conf.template" ]; then
|
||||
envsubst '${API_HOST} ${API_PORT}' < /etc/nginx/templates/nginx.conf.template > /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
# Start Nginx
|
||||
exec nginx -g "daemon off;"
|
||||
@@ -6,6 +6,10 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + Vue + TS</title>
|
||||
</head>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
|
||||
88
nginx.conf.template
Normal file
88
nginx.conf.template
Normal file
@@ -0,0 +1,88 @@
|
||||
# Main nginx configuration
|
||||
worker_processes auto;
|
||||
error_log /dev/stderr warn;
|
||||
pid /tmp/nginx.pid; # Use writable location for PID
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
access_log /dev/stdout;
|
||||
client_body_temp_path /tmp/client_temp;
|
||||
proxy_temp_path /tmp/proxy_temp;
|
||||
fastcgi_temp_path /tmp/fastcgi_temp;
|
||||
uwsgi_temp_path /tmp/uwsgi_temp;
|
||||
scgi_temp_path /tmp/scgi_temp;
|
||||
absolute_redirect off;
|
||||
|
||||
map $http_origin $cors_origin {
|
||||
default "";
|
||||
"~*" $http_origin;
|
||||
}
|
||||
|
||||
resolver 127.0.0.11 valid=10s ipv6=off;
|
||||
|
||||
upstream backend {
|
||||
server ${API_HOST}:8080;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Handle client-side routing
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
# Security headers
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options "DENY";
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||
}
|
||||
|
||||
# Serve config.js from the writable location
|
||||
location = /config.js {
|
||||
alias /runtime-config/config.js;
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
# Proxy to Quarkus
|
||||
proxy_pass http://backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# Relay CORS headers from the backend
|
||||
proxy_pass_header Access-Control-Allow-Origin;
|
||||
proxy_pass_header Access-Control-Allow-Methods;
|
||||
proxy_pass_header Access-Control-Allow-Headers;
|
||||
proxy_pass_header Access-Control-Allow-Credentials;
|
||||
}
|
||||
|
||||
# Cache static assets
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
# Security headers
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
||||
}
|
||||
}
|
||||
22
openapitools.json
Normal file
22
openapitools.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||
"spaces": 2,
|
||||
"generator-cli": {
|
||||
"version": "7.13.0",
|
||||
"generators": {
|
||||
"v2.0": {
|
||||
"generatorName": "typescript-axios",
|
||||
"inputSpec": "http://localhost:8080/q/openapi",
|
||||
"output": "#{cwd}/src/api//#{name}",
|
||||
"apiNameSuffix": "Service",
|
||||
"additionalProperties": {
|
||||
"apiPackage": "service",
|
||||
"modelPackage": "model",
|
||||
"withSeparateModelsAndApi": true,
|
||||
"supportsES6": false,
|
||||
"useSingleRequestParameter": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2931
package-lock.json
generated
2931
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@@ -1,28 +1,36 @@
|
||||
{
|
||||
"name": "dex-ui-vue",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.14",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"openapi-generator": "openapi-generator-cli generate"
|
||||
},
|
||||
"dependencies": {
|
||||
"@primeuix/themes": "^1.0.3",
|
||||
"@tailwindcss/vite": "^4.1.5",
|
||||
"primevue": "^4.3.3",
|
||||
"tailwindcss": "^4.1.5",
|
||||
"@primeuix/themes": "^1.2.1",
|
||||
"@tailwindcss/vite": "^4.1.11",
|
||||
"@types/node": "^24.0.14",
|
||||
"@vueuse/core": "^13.5.0",
|
||||
"axios": "^1.10.0",
|
||||
"oidc-client-ts": "^3.3.0",
|
||||
"pinia": "^3.0.3",
|
||||
"primeicons": "^7.0.0",
|
||||
"primevue": "^4.3.6",
|
||||
"tailwindcss": "^4.1.11",
|
||||
"tailwindcss-primeui": "^0.6.1",
|
||||
"vue": "^3.5.13",
|
||||
"vue": "^3.5.17",
|
||||
"vue-router": "^4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^5.2.2",
|
||||
"@openapitools/openapi-generator-cli": "^2.20.2",
|
||||
"@vitejs/plugin-vue": "^6.0.0",
|
||||
"@vue/tsconfig": "^0.7.0",
|
||||
"typescript": "~5.7.2",
|
||||
"unplugin-vue-components": "^28.5.0",
|
||||
"vite": "^6.3.1",
|
||||
"vite": "^7.0.2",
|
||||
"vue-tsc": "^2.2.8"
|
||||
}
|
||||
}
|
||||
|
||||
4
public/config.template.js
Normal file
4
public/config.template.js
Normal file
@@ -0,0 +1,4 @@
|
||||
window.__RUNTIME_CONFIG__ = {
|
||||
API_HOST: "__API_HOST__",
|
||||
API_PORT: "__API_PORT__"
|
||||
};
|
||||
96
src/App.vue
96
src/App.vue
@@ -1,19 +1,93 @@
|
||||
<script setup lang="ts">
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="absolute flex flex-col h-32 top-0 items-center justify-between">
|
||||
<h1>Hello App!</h1>
|
||||
<div class="flex flex-col size-full">
|
||||
<!-- Navigator here -->
|
||||
<Menubar
|
||||
:model="items"
|
||||
class="fixed w-full top-0 z-10"
|
||||
>
|
||||
<template #end>
|
||||
<div class="flex items-center gap-2">
|
||||
<div
|
||||
class="flex"
|
||||
v-if="authStore.isAuthenticated"
|
||||
>
|
||||
<div class="flex flex-row items-center mr-4">
|
||||
<Avatar icon="pi pi-user" class="mr-2" shape="circle"/>
|
||||
<p>
|
||||
<strong>Current route path:</strong> {{ $route.fullPath }}
|
||||
{{ authStore!.user!.profile.preferred_username}}
|
||||
</p>
|
||||
<div class="flex w-full justify-between items-center">
|
||||
<RouterLink to="/">Go to Home</RouterLink>
|
||||
<RouterLink to="/foo">Go to Foo</RouterLink>
|
||||
</div>
|
||||
<Button
|
||||
label="Logout"
|
||||
icon="pi pi-user"
|
||||
@click="authStore.logout()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<main>
|
||||
<Button
|
||||
v-else
|
||||
label="Login"
|
||||
icon="pi pi-user"
|
||||
@click="authStore.login()"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</Menubar>
|
||||
<main class="app-main w-full pt-[60px]">
|
||||
<Toast/>
|
||||
<RouterView/>
|
||||
</main>
|
||||
<footer class="fixed bottom-0 right-0">
|
||||
v{{ version }}
|
||||
</footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {ref} from "vue";
|
||||
import {useRouter} from "vue-router";
|
||||
import Toast from 'primevue/toast';
|
||||
import {useAuthStore} from "./stores/auth.ts";
|
||||
// noinspection ES6UnusedImports Used in template
|
||||
import { version } from '../package.json'
|
||||
|
||||
const authStore = useAuthStore();
|
||||
const router = useRouter();
|
||||
|
||||
const items = ref([
|
||||
{
|
||||
label: 'Home',
|
||||
icon: 'pi pi-home',
|
||||
command: () => {
|
||||
router.push('/');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Sets',
|
||||
icon: 'pi pi-mobile',
|
||||
command: () => {
|
||||
router.push('/sets');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'My Decks',
|
||||
icon: 'pi pi-book',
|
||||
command: () => {
|
||||
router.push('/decks');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'My Cards',
|
||||
icon: 'pi pi-mobile',
|
||||
command: () => {
|
||||
router.push('/cards');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Jobs',
|
||||
icon: 'pi pi-mobile',
|
||||
command: () => {
|
||||
router.push('/jobs');
|
||||
}
|
||||
}
|
||||
]);
|
||||
</script>
|
||||
7
src/api/mutableTypes.ts
Normal file
7
src/api/mutableTypes.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type {CardServiceGetCardPageRequest} from "./openapi";
|
||||
|
||||
export type Mutable<T> = {
|
||||
-readonly [K in keyof T]: T[K];
|
||||
};
|
||||
|
||||
export type MutableCardRequest = Mutable<CardServiceGetCardPageRequest>;
|
||||
4
src/api/openapi/.gitignore
vendored
Normal file
4
src/api/openapi/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
wwwroot/*.js
|
||||
node_modules
|
||||
typings
|
||||
dist
|
||||
1
src/api/openapi/.npmignore
Normal file
1
src/api/openapi/.npmignore
Normal file
@@ -0,0 +1 @@
|
||||
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
|
||||
23
src/api/openapi/.openapi-generator-ignore
Normal file
23
src/api/openapi/.openapi-generator-ignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
||||
79
src/api/openapi/.openapi-generator/FILES
Normal file
79
src/api/openapi/.openapi-generator/FILES
Normal file
@@ -0,0 +1,79 @@
|
||||
.gitignore
|
||||
.npmignore
|
||||
api.ts
|
||||
base.ts
|
||||
common.ts
|
||||
configuration.ts
|
||||
docs/Attribute.md
|
||||
docs/Card.md
|
||||
docs/CardPageSearchRequest.md
|
||||
docs/CardPrint.md
|
||||
docs/CardPrintService.md
|
||||
docs/CardService.md
|
||||
docs/CardType.md
|
||||
docs/CardUpstreamFetchRequest.md
|
||||
docs/Deck.md
|
||||
docs/DeckCreateRequest.md
|
||||
docs/DeckService.md
|
||||
docs/JobDto.md
|
||||
docs/JobService.md
|
||||
docs/JobStatus.md
|
||||
docs/JobType.md
|
||||
docs/LinkArrow.md
|
||||
docs/MonsterCard.md
|
||||
docs/MonsterCardSubType.md
|
||||
docs/MonsterCardType.md
|
||||
docs/MonsterType.md
|
||||
docs/Page.md
|
||||
docs/PageCardDto.md
|
||||
docs/PageCardPrintDto.md
|
||||
docs/PageDeckDto.md
|
||||
docs/PageJobDto.md
|
||||
docs/PageSetDto.md
|
||||
docs/Region.md
|
||||
docs/RegionCodeAlias.md
|
||||
docs/RegionalSet.md
|
||||
docs/SetDto.md
|
||||
docs/SetService.md
|
||||
docs/SpellCard.md
|
||||
docs/SpellCardType.md
|
||||
docs/TrapCard.md
|
||||
docs/TrapCardType.md
|
||||
git_push.sh
|
||||
index.ts
|
||||
model/attribute.ts
|
||||
model/card-page-search-request.ts
|
||||
model/card-print.ts
|
||||
model/card-type.ts
|
||||
model/card-upstream-fetch-request.ts
|
||||
model/card.ts
|
||||
model/deck-create-request.ts
|
||||
model/deck.ts
|
||||
model/index.ts
|
||||
model/job-dto.ts
|
||||
model/job-status.ts
|
||||
model/job-type.ts
|
||||
model/link-arrow.ts
|
||||
model/monster-card-sub-type.ts
|
||||
model/monster-card-type.ts
|
||||
model/monster-card.ts
|
||||
model/monster-type.ts
|
||||
model/page-card-dto.ts
|
||||
model/page-card-print-dto.ts
|
||||
model/page-deck-dto.ts
|
||||
model/page-job-dto.ts
|
||||
model/page-set-dto.ts
|
||||
model/page.ts
|
||||
model/region-code-alias.ts
|
||||
model/region.ts
|
||||
model/regional-set.ts
|
||||
model/set-dto.ts
|
||||
model/spell-card-type.ts
|
||||
model/spell-card.ts
|
||||
model/trap-card-type.ts
|
||||
model/trap-card.ts
|
||||
service/card-print-service.ts
|
||||
service/card-service.ts
|
||||
service/deck-service.ts
|
||||
service/job-service.ts
|
||||
service/set-service.ts
|
||||
1
src/api/openapi/.openapi-generator/VERSION
Normal file
1
src/api/openapi/.openapi-generator/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
7.13.0
|
||||
22
src/api/openapi/api.ts
Normal file
22
src/api/openapi/api.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export * from './service/card-service';
|
||||
export * from './service/card-print-service';
|
||||
export * from './service/deck-service';
|
||||
export * from './service/job-service';
|
||||
export * from './service/set-service';
|
||||
|
||||
86
src/api/openapi/base.ts
Normal file
86
src/api/openapi/base.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from './configuration';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
|
||||
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const COLLECTION_FORMATS = {
|
||||
csv: ",",
|
||||
ssv: " ",
|
||||
tsv: "\t",
|
||||
pipes: "|",
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RequestArgs
|
||||
*/
|
||||
export interface RequestArgs {
|
||||
url: string;
|
||||
options: RawAxiosRequestConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @class BaseAPI
|
||||
*/
|
||||
export class BaseAPI {
|
||||
protected configuration: Configuration | undefined;
|
||||
|
||||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||
if (configuration) {
|
||||
this.configuration = configuration;
|
||||
this.basePath = configuration.basePath ?? basePath;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @class RequiredError
|
||||
* @extends {Error}
|
||||
*/
|
||||
export class RequiredError extends Error {
|
||||
constructor(public field: string, msg?: string) {
|
||||
super(msg);
|
||||
this.name = "RequiredError"
|
||||
}
|
||||
}
|
||||
|
||||
interface ServerMap {
|
||||
[key: string]: {
|
||||
url: string,
|
||||
description: string,
|
||||
}[];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const operationServerMap: ServerMap = {
|
||||
}
|
||||
150
src/api/openapi/common.ts
Normal file
150
src/api/openapi/common.ts
Normal file
@@ -0,0 +1,150 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from "./configuration";
|
||||
import type { RequestArgs } from "./base";
|
||||
import type { AxiosInstance, AxiosResponse } from 'axios';
|
||||
import { RequiredError } from "./base";
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DUMMY_BASE_URL = 'https://example.com'
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws {RequiredError}
|
||||
* @export
|
||||
*/
|
||||
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
||||
if (paramValue === null || paramValue === undefined) {
|
||||
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
||||
if (configuration && configuration.apiKey) {
|
||||
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
||||
? await configuration.apiKey(keyParamName)
|
||||
: await configuration.apiKey;
|
||||
object[keyParamName] = localVarApiKeyValue;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
||||
if (configuration && (configuration.username || configuration.password)) {
|
||||
object["auth"] = { username: configuration.username, password: configuration.password };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const accessToken = typeof configuration.accessToken === 'function'
|
||||
? await configuration.accessToken()
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + accessToken;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? await configuration.accessToken(name, scopes)
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
}
|
||||
|
||||
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
||||
if (parameter == null) return;
|
||||
if (typeof parameter === "object") {
|
||||
if (Array.isArray(parameter)) {
|
||||
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
||||
}
|
||||
else {
|
||||
Object.keys(parameter).forEach(currentKey =>
|
||||
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
||||
);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (urlSearchParams.has(key)) {
|
||||
urlSearchParams.append(key, parameter);
|
||||
}
|
||||
else {
|
||||
urlSearchParams.set(key, parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
||||
const searchParams = new URLSearchParams(url.search);
|
||||
setFlattenedQueryParams(searchParams, objects);
|
||||
url.search = searchParams.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
||||
const nonString = typeof value !== 'string';
|
||||
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
||||
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
||||
: nonString;
|
||||
return needsSerialization
|
||||
? JSON.stringify(value !== undefined ? value : {})
|
||||
: (value || "");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const toPathString = function (url: URL) {
|
||||
return url.pathname + url.search + url.hash
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
||||
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
||||
return axios.request<T, R>(axiosRequestArgs);
|
||||
};
|
||||
}
|
||||
115
src/api/openapi/configuration.ts
Normal file
115
src/api/openapi/configuration.ts
Normal file
@@ -0,0 +1,115 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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 ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
serverIndex?: number;
|
||||
baseOptions?: any;
|
||||
formDataCtor?: new () => any;
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
/**
|
||||
* parameter for apiKey security
|
||||
* @param name security name
|
||||
* @memberof Configuration
|
||||
*/
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* parameter for oauth2 security
|
||||
* @param name security name
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
basePath?: string;
|
||||
/**
|
||||
* override server index
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
serverIndex?: number;
|
||||
/**
|
||||
* base options for axios calls
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
baseOptions?: any;
|
||||
/**
|
||||
* The FormData constructor that will be used to create multipart form data
|
||||
* requests. You can inject this here so that execution environments that
|
||||
* do not support the FormData class can still run the generated client.
|
||||
*
|
||||
* @type {new () => FormData}
|
||||
*/
|
||||
formDataCtor?: new () => any;
|
||||
|
||||
constructor(param: ConfigurationParameters = {}) {
|
||||
this.apiKey = param.apiKey;
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.basePath = param.basePath;
|
||||
this.serverIndex = param.serverIndex;
|
||||
this.baseOptions = {
|
||||
...param.baseOptions,
|
||||
headers: {
|
||||
...param.baseOptions?.headers,
|
||||
},
|
||||
};
|
||||
this.formDataCtor = param.formDataCtor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given MIME is a JSON MIME.
|
||||
* JSON MIME examples:
|
||||
* application/json
|
||||
* application/json; charset=UTF8
|
||||
* APPLICATION/JSON
|
||||
* application/vnd.company+json
|
||||
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
||||
* @return True if the given MIME is JSON, false otherwise.
|
||||
*/
|
||||
public isJsonMime(mime: string): boolean {
|
||||
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
||||
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
||||
}
|
||||
}
|
||||
20
src/api/openapi/docs/Attribute.md
Normal file
20
src/api/openapi/docs/Attribute.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Attribute
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Wind` (value: `'WIND'`)
|
||||
|
||||
* `Water` (value: `'WATER'`)
|
||||
|
||||
* `Fire` (value: `'FIRE'`)
|
||||
|
||||
* `Earth` (value: `'EARTH'`)
|
||||
|
||||
* `Light` (value: `'LIGHT'`)
|
||||
|
||||
* `Dark` (value: `'DARK'`)
|
||||
|
||||
* `Divine` (value: `'DIVINE'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
54
src/api/openapi/docs/Card.md
Normal file
54
src/api/openapi/docs/Card.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# Card
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
|
||||
**description** | **string** | | [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**cardPrints** | [**Array<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
**monsterEffect** | **string** | | [optional] [default to undefined]
|
||||
**attack** | **number** | | [optional] [default to undefined]
|
||||
**defense** | **number** | | [optional] [default to undefined]
|
||||
**level** | **number** | | [optional] [default to undefined]
|
||||
**isPendulum** | **boolean** | | [optional] [default to undefined]
|
||||
**pendulumScale** | **number** | | [optional] [default to undefined]
|
||||
**pendulumEffect** | **string** | | [optional] [default to undefined]
|
||||
**linkValue** | **number** | | [optional] [default to undefined]
|
||||
**type** | [**SpellCardType**](SpellCardType.md) | | [default to undefined]
|
||||
**monsterType** | [**MonsterType**](MonsterType.md) | | [default to undefined]
|
||||
**attribute** | [**Attribute**](Attribute.md) | | [default to undefined]
|
||||
**linkArrows** | [**Set<LinkArrow>**](LinkArrow.md) | | [default to undefined]
|
||||
**subTypes** | [**Set<MonsterCardSubType>**](MonsterCardSubType.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Card } from './api';
|
||||
|
||||
const instance: Card = {
|
||||
id,
|
||||
cardType,
|
||||
description,
|
||||
name,
|
||||
cardPrints,
|
||||
monsterEffect,
|
||||
attack,
|
||||
defense,
|
||||
level,
|
||||
isPendulum,
|
||||
pendulumScale,
|
||||
pendulumEffect,
|
||||
linkValue,
|
||||
type,
|
||||
monsterType,
|
||||
attribute,
|
||||
linkArrows,
|
||||
subTypes,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
72
src/api/openapi/docs/CardPageSearchRequest.md
Normal file
72
src/api/openapi/docs/CardPageSearchRequest.md
Normal file
@@ -0,0 +1,72 @@
|
||||
# CardPageSearchRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**name** | **string** | | [optional] [default to undefined]
|
||||
**cardTypes** | [**Array<CardType>**](CardType.md) | | [optional] [default to undefined]
|
||||
**monsterCardTypes** | [**Array<MonsterCardType>**](MonsterCardType.md) | | [optional] [default to undefined]
|
||||
**spellCardType** | [**SpellCardType**](SpellCardType.md) | | [optional] [default to undefined]
|
||||
**trapCardType** | [**TrapCardType**](TrapCardType.md) | | [optional] [default to undefined]
|
||||
**attack** | **number** | | [optional] [default to undefined]
|
||||
**attackMin** | **number** | | [optional] [default to undefined]
|
||||
**attackMax** | **number** | | [optional] [default to undefined]
|
||||
**defense** | **number** | | [optional] [default to undefined]
|
||||
**defenseMin** | **number** | | [optional] [default to undefined]
|
||||
**defenseMax** | **number** | | [optional] [default to undefined]
|
||||
**level** | **number** | | [optional] [default to undefined]
|
||||
**levelMin** | **number** | | [optional] [default to undefined]
|
||||
**levelMax** | **number** | | [optional] [default to undefined]
|
||||
**isPendulum** | **boolean** | | [optional] [default to undefined]
|
||||
**pendulumScale** | **number** | | [optional] [default to undefined]
|
||||
**pendulumScaleMin** | **number** | | [optional] [default to undefined]
|
||||
**pendulumScaleMax** | **number** | | [optional] [default to undefined]
|
||||
**linkValue** | **number** | | [optional] [default to undefined]
|
||||
**linkValueMin** | **number** | | [optional] [default to undefined]
|
||||
**linkValueMax** | **number** | | [optional] [default to undefined]
|
||||
**linkArrows** | [**Array<LinkArrow>**](LinkArrow.md) | | [optional] [default to undefined]
|
||||
**monsterCardSubTypes** | [**Array<MonsterCardSubType>**](MonsterCardSubType.md) | | [optional] [default to undefined]
|
||||
**attributes** | [**Array<Attribute>**](Attribute.md) | | [optional] [default to undefined]
|
||||
**pendulum** | **boolean** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { CardPageSearchRequest } from './api';
|
||||
|
||||
const instance: CardPageSearchRequest = {
|
||||
page,
|
||||
pageSize,
|
||||
name,
|
||||
cardTypes,
|
||||
monsterCardTypes,
|
||||
spellCardType,
|
||||
trapCardType,
|
||||
attack,
|
||||
attackMin,
|
||||
attackMax,
|
||||
defense,
|
||||
defenseMin,
|
||||
defenseMax,
|
||||
level,
|
||||
levelMin,
|
||||
levelMax,
|
||||
isPendulum,
|
||||
pendulumScale,
|
||||
pendulumScaleMin,
|
||||
pendulumScaleMax,
|
||||
linkValue,
|
||||
linkValueMin,
|
||||
linkValueMax,
|
||||
linkArrows,
|
||||
monsterCardSubTypes,
|
||||
attributes,
|
||||
pendulum,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
src/api/openapi/docs/CardPrint.md
Normal file
26
src/api/openapi/docs/CardPrint.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# CardPrint
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | | [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**regionalName** | **string** | | [optional] [default to undefined]
|
||||
**rarity** | **string** | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { CardPrint } from './api';
|
||||
|
||||
const instance: CardPrint = {
|
||||
id,
|
||||
name,
|
||||
regionalName,
|
||||
rarity,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
64
src/api/openapi/docs/CardPrintService.md
Normal file
64
src/api/openapi/docs/CardPrintService.md
Normal file
@@ -0,0 +1,64 @@
|
||||
# CardPrintService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**getCardPrintPage**](#getcardprintpage) | **GET** /api/prints | Get a page of Card Prints with optional name query parameter|
|
||||
|
||||
# **getCardPrintPage**
|
||||
> PageCardPrintDto getCardPrintPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CardPrintService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CardPrintService(configuration);
|
||||
|
||||
let name: string; // (optional) (default to undefined)
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardPrintPage(
|
||||
name,
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | (optional) defaults to undefined|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageCardPrintDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Card Prints Page retrieved | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
290
src/api/openapi/docs/CardService.md
Normal file
290
src/api/openapi/docs/CardService.md
Normal file
@@ -0,0 +1,290 @@
|
||||
# CardService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**fetchUpstream**](#fetchupstream) | **POST** /api/cards/fetch | Fetch Cards by ID or Name from any upstream service|
|
||||
|[**getCardById**](#getcardbyid) | **GET** /api/cards/{id} | Get a singular Card by its ID|
|
||||
|[**getCardImageById**](#getcardimagebyid) | **GET** /api/cards/{id}/image | Get the image of a Card by its ID|
|
||||
|[**getCardPage**](#getcardpage) | **GET** /api/cards | Get a page of Cards with optional name query parameter|
|
||||
|
||||
# **fetchUpstream**
|
||||
> Array<Card> fetchUpstream(cardUpstreamFetchRequest)
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CardService,
|
||||
Configuration,
|
||||
CardUpstreamFetchRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CardService(configuration);
|
||||
|
||||
let cardUpstreamFetchRequest: CardUpstreamFetchRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.fetchUpstream(
|
||||
cardUpstreamFetchRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **cardUpstreamFetchRequest** | **CardUpstreamFetchRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<Card>**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Cards retrieved | - |
|
||||
|**404** | Card with Name or ID cannot be found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardById**
|
||||
> Card getCardById()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CardService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CardService(configuration);
|
||||
|
||||
let id: number; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardById(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**number**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Card**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Card retrieved | - |
|
||||
|**404** | Card with ID cannot be found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardImageById**
|
||||
> File getCardImageById()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CardService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CardService(configuration);
|
||||
|
||||
let id: number; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardImageById(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**number**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**File**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/octet-stream
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Card image retrieved | - |
|
||||
|**404** | Card image for ID cannot be found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardPage**
|
||||
> PageCardDto getCardPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CardService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CardService(configuration);
|
||||
|
||||
let attack: number; // (optional) (default to undefined)
|
||||
let attackMax: number; // (optional) (default to undefined)
|
||||
let attackMin: number; // (optional) (default to undefined)
|
||||
let attributes: Array<Attribute>; // (optional) (default to undefined)
|
||||
let cardTypes: Array<CardType>; // (optional) (default to undefined)
|
||||
let defense: number; // (optional) (default to undefined)
|
||||
let defenseMax: number; // (optional) (default to undefined)
|
||||
let defenseMin: number; // (optional) (default to undefined)
|
||||
let isPendulum: boolean; // (optional) (default to undefined)
|
||||
let level: number; // (optional) (default to undefined)
|
||||
let levelMax: number; // (optional) (default to undefined)
|
||||
let levelMin: number; // (optional) (default to undefined)
|
||||
let linkArrows: Array<LinkArrow>; // (optional) (default to undefined)
|
||||
let linkValue: number; // (optional) (default to undefined)
|
||||
let linkValueMax: number; // (optional) (default to undefined)
|
||||
let linkValueMin: number; // (optional) (default to undefined)
|
||||
let monsterCardSubTypes: Array<MonsterCardSubType>; // (optional) (default to undefined)
|
||||
let monsterCardTypes: Array<MonsterCardType>; // (optional) (default to undefined)
|
||||
let name: string; // (optional) (default to undefined)
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
let pendulumScale: number; // (optional) (default to undefined)
|
||||
let pendulumScaleMax: number; // (optional) (default to undefined)
|
||||
let pendulumScaleMin: number; // (optional) (default to undefined)
|
||||
let spellCardType: SpellCardType; // (optional) (default to undefined)
|
||||
let trapCardType: TrapCardType; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardPage(
|
||||
attack,
|
||||
attackMax,
|
||||
attackMin,
|
||||
attributes,
|
||||
cardTypes,
|
||||
defense,
|
||||
defenseMax,
|
||||
defenseMin,
|
||||
isPendulum,
|
||||
level,
|
||||
levelMax,
|
||||
levelMin,
|
||||
linkArrows,
|
||||
linkValue,
|
||||
linkValueMax,
|
||||
linkValueMin,
|
||||
monsterCardSubTypes,
|
||||
monsterCardTypes,
|
||||
name,
|
||||
page,
|
||||
pageSize,
|
||||
pendulumScale,
|
||||
pendulumScaleMax,
|
||||
pendulumScaleMin,
|
||||
spellCardType,
|
||||
trapCardType
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **attack** | [**number**] | | (optional) defaults to undefined|
|
||||
| **attackMax** | [**number**] | | (optional) defaults to undefined|
|
||||
| **attackMin** | [**number**] | | (optional) defaults to undefined|
|
||||
| **attributes** | **Array<Attribute>** | | (optional) defaults to undefined|
|
||||
| **cardTypes** | **Array<CardType>** | | (optional) defaults to undefined|
|
||||
| **defense** | [**number**] | | (optional) defaults to undefined|
|
||||
| **defenseMax** | [**number**] | | (optional) defaults to undefined|
|
||||
| **defenseMin** | [**number**] | | (optional) defaults to undefined|
|
||||
| **isPendulum** | [**boolean**] | | (optional) defaults to undefined|
|
||||
| **level** | [**number**] | | (optional) defaults to undefined|
|
||||
| **levelMax** | [**number**] | | (optional) defaults to undefined|
|
||||
| **levelMin** | [**number**] | | (optional) defaults to undefined|
|
||||
| **linkArrows** | **Array<LinkArrow>** | | (optional) defaults to undefined|
|
||||
| **linkValue** | [**number**] | | (optional) defaults to undefined|
|
||||
| **linkValueMax** | [**number**] | | (optional) defaults to undefined|
|
||||
| **linkValueMin** | [**number**] | | (optional) defaults to undefined|
|
||||
| **monsterCardSubTypes** | **Array<MonsterCardSubType>** | | (optional) defaults to undefined|
|
||||
| **monsterCardTypes** | **Array<MonsterCardType>** | | (optional) defaults to undefined|
|
||||
| **name** | [**string**] | | (optional) defaults to undefined|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pendulumScale** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pendulumScaleMax** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pendulumScaleMin** | [**number**] | | (optional) defaults to undefined|
|
||||
| **spellCardType** | **SpellCardType** | | (optional) defaults to undefined|
|
||||
| **trapCardType** | **TrapCardType** | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageCardDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Page for the given query | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
14
src/api/openapi/docs/CardType.md
Normal file
14
src/api/openapi/docs/CardType.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# CardType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Monster` (value: `'MONSTER'`)
|
||||
|
||||
* `Spell` (value: `'SPELL'`)
|
||||
|
||||
* `Trap` (value: `'TRAP'`)
|
||||
|
||||
* `Unknown` (value: `'UNKNOWN'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
src/api/openapi/docs/CardUpstreamFetchRequest.md
Normal file
26
src/api/openapi/docs/CardUpstreamFetchRequest.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# CardUpstreamFetchRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**services** | **Array<string>** | | [default to undefined]
|
||||
**persist** | **boolean** | | [optional] [default to undefined]
|
||||
**name** | **string** | | [optional] [default to undefined]
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { CardUpstreamFetchRequest } from './api';
|
||||
|
||||
const instance: CardUpstreamFetchRequest = {
|
||||
services,
|
||||
persist,
|
||||
name,
|
||||
id,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
24
src/api/openapi/docs/Deck.md
Normal file
24
src/api/openapi/docs/Deck.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Deck
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**prints** | [**Set<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Deck } from './api';
|
||||
|
||||
const instance: Deck = {
|
||||
id,
|
||||
name,
|
||||
prints,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
src/api/openapi/docs/DeckCreateRequest.md
Normal file
20
src/api/openapi/docs/DeckCreateRequest.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# DeckCreateRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DeckCreateRequest } from './api';
|
||||
|
||||
const instance: DeckCreateRequest = {
|
||||
name,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
224
src/api/openapi/docs/DeckService.md
Normal file
224
src/api/openapi/docs/DeckService.md
Normal file
@@ -0,0 +1,224 @@
|
||||
# DeckService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**addCardToDeck**](#addcardtodeck) | **POST** /api/decks/{deckName}/{cardId} | Add a Card by its ID to a Deck by its name|
|
||||
|[**createDeck**](#createdeck) | **POST** /api/decks | Create a Deck with a given name|
|
||||
|[**getDeckByName**](#getdeckbyname) | **GET** /api/decks/{name} | Get a singular Deck by its name|
|
||||
|[**getDecks**](#getdecks) | **GET** /api/decks | Get a page of Decks with optional name query parameter|
|
||||
|
||||
# **addCardToDeck**
|
||||
> addCardToDeck()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DeckService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DeckService(configuration);
|
||||
|
||||
let cardId: number; // (default to undefined)
|
||||
let deckName: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.addCardToDeck(
|
||||
cardId,
|
||||
deckName
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **cardId** | [**number**] | | defaults to undefined|
|
||||
| **deckName** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**201** | Card successfully added to Deck | - |
|
||||
|**404** | Deck with name cannot be found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **createDeck**
|
||||
> createDeck(deckCreateRequest)
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DeckService,
|
||||
Configuration,
|
||||
DeckCreateRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DeckService(configuration);
|
||||
|
||||
let deckCreateRequest: DeckCreateRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.createDeck(
|
||||
deckCreateRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **deckCreateRequest** | **DeckCreateRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**401** | Deck successfully created | - |
|
||||
|**409** | Card with name already exists | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getDeckByName**
|
||||
> Deck getDeckByName()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DeckService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DeckService(configuration);
|
||||
|
||||
let name: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getDeckByName(
|
||||
name
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Deck**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Deck retrieved | - |
|
||||
|**404** | Deck with name cannot be found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getDecks**
|
||||
> PageDeckDto getDecks()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DeckService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DeckService(configuration);
|
||||
|
||||
let name: string; // (optional) (default to undefined)
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getDecks(
|
||||
name,
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | (optional) defaults to undefined|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageDeckDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Page of Decks for given query | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
58
src/api/openapi/docs/JobControllerService.md
Normal file
58
src/api/openapi/docs/JobControllerService.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# JobControllerService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**apiJobsNameGet**](#apijobsnameget) | **GET** /api/jobs/{name} | Get Deck By Name|
|
||||
|
||||
# **apiJobsNameGet**
|
||||
> string apiJobsNameGet()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobControllerService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobControllerService(configuration);
|
||||
|
||||
let name: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiJobsNameGet(
|
||||
name
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**string**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: text/plain
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
38
src/api/openapi/docs/JobDto.md
Normal file
38
src/api/openapi/docs/JobDto.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# JobDto
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**totalJobs** | **number** | | [optional] [default to undefined]
|
||||
**pendingJobs** | **number** | | [optional] [default to undefined]
|
||||
**processingJobs** | **number** | | [optional] [default to undefined]
|
||||
**completedJobs** | **number** | | [optional] [default to undefined]
|
||||
**failedJobs** | **number** | | [optional] [default to undefined]
|
||||
**childrenIds** | **Array<number>** | | [optional] [default to undefined]
|
||||
**attempts** | **number** | | [optional] [default to undefined]
|
||||
**status** | [**JobStatus**](JobStatus.md) | | [default to undefined]
|
||||
**type** | [**JobType**](JobType.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { JobDto } from './api';
|
||||
|
||||
const instance: JobDto = {
|
||||
id,
|
||||
totalJobs,
|
||||
pendingJobs,
|
||||
processingJobs,
|
||||
completedJobs,
|
||||
failedJobs,
|
||||
childrenIds,
|
||||
attempts,
|
||||
status,
|
||||
type,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
366
src/api/openapi/docs/JobService.md
Normal file
366
src/api/openapi/docs/JobService.md
Normal file
@@ -0,0 +1,366 @@
|
||||
# JobService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**getAllJobs**](#getalljobs) | **GET** /api/jobs | Get status of all Jobs|
|
||||
|[**getCardPrintImportJobPage**](#getcardprintimportjobpage) | **GET** /api/jobs/cardPrintImports | Get a page of all CardSetImportJobs|
|
||||
|[**getCardPrintImportJobStatusById**](#getcardprintimportjobstatusbyid) | **GET** /api/jobs/cardPrintImport/{id} | Get status of CardPrintImportJob|
|
||||
|[**getCardSetImportJobPage**](#getcardsetimportjobpage) | **GET** /api/jobs/cardSetImports | Get a page of all CardSetImportJobs|
|
||||
|[**getCardSetImportJobStatusById**](#getcardsetimportjobstatusbyid) | **GET** /api/jobs/cardSetImport/{id} | Get status of CardSetImportJob|
|
||||
|[**getRegionalSetImportJobPage**](#getregionalsetimportjobpage) | **GET** /api/jobs/regionalSetImports | Get a page of all CardSetImportJobs|
|
||||
|[**getRegionalSetImportJobStatusById**](#getregionalsetimportjobstatusbyid) | **GET** /api/jobs/regionalSetImport/{id} | Get status of RegionalSetImportJob|
|
||||
|
||||
# **getAllJobs**
|
||||
> Array<JobDto> getAllJobs()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
const { status, data } = await apiInstance.getAllJobs();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not have any parameters.
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<JobDto>**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardPrintImportJobPage**
|
||||
> PageJobDto getCardPrintImportJobPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardPrintImportJobPage(
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageJobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardPrintImportJobStatusById**
|
||||
> JobDto getCardPrintImportJobStatusById()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let id: number; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardPrintImportJobStatusById(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**number**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**JobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardSetImportJobPage**
|
||||
> PageJobDto getCardSetImportJobPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardSetImportJobPage(
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageJobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardSetImportJobStatusById**
|
||||
> JobDto getCardSetImportJobStatusById()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let id: number; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardSetImportJobStatusById(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**number**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**JobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getRegionalSetImportJobPage**
|
||||
> PageJobDto getRegionalSetImportJobPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getRegionalSetImportJobPage(
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageJobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getRegionalSetImportJobStatusById**
|
||||
> JobDto getRegionalSetImportJobStatusById()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
JobService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new JobService(configuration);
|
||||
|
||||
let id: number; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getRegionalSetImportJobStatusById(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**number**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**JobDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | OK | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
14
src/api/openapi/docs/JobStatus.md
Normal file
14
src/api/openapi/docs/JobStatus.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# JobStatus
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Pending` (value: `'PENDING'`)
|
||||
|
||||
* `Processing` (value: `'PROCESSING'`)
|
||||
|
||||
* `Completed` (value: `'COMPLETED'`)
|
||||
|
||||
* `Failed` (value: `'FAILED'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
12
src/api/openapi/docs/JobType.md
Normal file
12
src/api/openapi/docs/JobType.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# JobType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `CardSet` (value: `'CARD_SET'`)
|
||||
|
||||
* `RegionalSet` (value: `'REGIONAL_SET'`)
|
||||
|
||||
* `CardPrint` (value: `'CARD_PRINT'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
22
src/api/openapi/docs/LinkArrow.md
Normal file
22
src/api/openapi/docs/LinkArrow.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# LinkArrow
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `TopLeft` (value: `'TOP_LEFT'`)
|
||||
|
||||
* `Top` (value: `'TOP'`)
|
||||
|
||||
* `TopRight` (value: `'TOP_RIGHT'`)
|
||||
|
||||
* `Left` (value: `'LEFT'`)
|
||||
|
||||
* `Right` (value: `'RIGHT'`)
|
||||
|
||||
* `BottomLeft` (value: `'BOTTOM_LEFT'`)
|
||||
|
||||
* `Bottom` (value: `'BOTTOM'`)
|
||||
|
||||
* `BottomRight` (value: `'BOTTOM_RIGHT'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
54
src/api/openapi/docs/MonsterCard.md
Normal file
54
src/api/openapi/docs/MonsterCard.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# MonsterCard
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
|
||||
**description** | **string** | | [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**cardPrints** | [**Array<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
**monsterEffect** | **string** | | [optional] [default to undefined]
|
||||
**attack** | **number** | | [optional] [default to undefined]
|
||||
**defense** | **number** | | [optional] [default to undefined]
|
||||
**level** | **number** | | [optional] [default to undefined]
|
||||
**isPendulum** | **boolean** | | [optional] [default to undefined]
|
||||
**pendulumScale** | **number** | | [optional] [default to undefined]
|
||||
**pendulumEffect** | **string** | | [optional] [default to undefined]
|
||||
**linkValue** | **number** | | [optional] [default to undefined]
|
||||
**type** | [**MonsterCardType**](MonsterCardType.md) | | [default to undefined]
|
||||
**monsterType** | [**MonsterType**](MonsterType.md) | | [default to undefined]
|
||||
**attribute** | [**Attribute**](Attribute.md) | | [default to undefined]
|
||||
**linkArrows** | [**Set<LinkArrow>**](LinkArrow.md) | | [default to undefined]
|
||||
**subTypes** | [**Set<MonsterCardSubType>**](MonsterCardSubType.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { MonsterCard } from './api';
|
||||
|
||||
const instance: MonsterCard = {
|
||||
id,
|
||||
cardType,
|
||||
description,
|
||||
name,
|
||||
cardPrints,
|
||||
monsterEffect,
|
||||
attack,
|
||||
defense,
|
||||
level,
|
||||
isPendulum,
|
||||
pendulumScale,
|
||||
pendulumEffect,
|
||||
linkValue,
|
||||
type,
|
||||
monsterType,
|
||||
attribute,
|
||||
linkArrows,
|
||||
subTypes,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
src/api/openapi/docs/MonsterCardSubType.md
Normal file
20
src/api/openapi/docs/MonsterCardSubType.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# MonsterCardSubType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Tuner` (value: `'TUNER'`)
|
||||
|
||||
* `Flip` (value: `'FLIP'`)
|
||||
|
||||
* `Toon` (value: `'TOON'`)
|
||||
|
||||
* `Spirit` (value: `'SPIRIT'`)
|
||||
|
||||
* `Union` (value: `'UNION'`)
|
||||
|
||||
* `Gemini` (value: `'GEMINI'`)
|
||||
|
||||
* `Token` (value: `'TOKEN'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
src/api/openapi/docs/MonsterCardSubTypeEnum.md
Normal file
20
src/api/openapi/docs/MonsterCardSubTypeEnum.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# MonsterCardSubTypeEnum
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Tuner` (value: `'TUNER'`)
|
||||
|
||||
* `Flip` (value: `'FLIP'`)
|
||||
|
||||
* `Toon` (value: `'TOON'`)
|
||||
|
||||
* `Spirit` (value: `'SPIRIT'`)
|
||||
|
||||
* `Union` (value: `'UNION'`)
|
||||
|
||||
* `Gemini` (value: `'GEMINI'`)
|
||||
|
||||
* `Token` (value: `'TOKEN'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
src/api/openapi/docs/MonsterCardType.md
Normal file
20
src/api/openapi/docs/MonsterCardType.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# MonsterCardType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Normal` (value: `'NORMAL'`)
|
||||
|
||||
* `Effect` (value: `'EFFECT'`)
|
||||
|
||||
* `Ritual` (value: `'RITUAL'`)
|
||||
|
||||
* `Fusion` (value: `'FUSION'`)
|
||||
|
||||
* `Synchro` (value: `'SYNCHRO'`)
|
||||
|
||||
* `Xyz` (value: `'XYZ'`)
|
||||
|
||||
* `Link` (value: `'LINK'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
58
src/api/openapi/docs/MonsterType.md
Normal file
58
src/api/openapi/docs/MonsterType.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# MonsterType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Aqua` (value: `'AQUA'`)
|
||||
|
||||
* `Beast` (value: `'BEAST'`)
|
||||
|
||||
* `BeastWarrior` (value: `'BEAST_WARRIOR'`)
|
||||
|
||||
* `CreatorGod` (value: `'CREATOR_GOD'`)
|
||||
|
||||
* `Cyberse` (value: `'CYBERSE'`)
|
||||
|
||||
* `Dinosaur` (value: `'DINOSAUR'`)
|
||||
|
||||
* `DivineBeast` (value: `'DIVINE_BEAST'`)
|
||||
|
||||
* `Dragon` (value: `'DRAGON'`)
|
||||
|
||||
* `Fairy` (value: `'FAIRY'`)
|
||||
|
||||
* `Fiend` (value: `'FIEND'`)
|
||||
|
||||
* `Fish` (value: `'FISH'`)
|
||||
|
||||
* `Insect` (value: `'INSECT'`)
|
||||
|
||||
* `Illusion` (value: `'ILLUSION'`)
|
||||
|
||||
* `Machine` (value: `'MACHINE'`)
|
||||
|
||||
* `Plant` (value: `'PLANT'`)
|
||||
|
||||
* `Psychic` (value: `'PSYCHIC'`)
|
||||
|
||||
* `Pyro` (value: `'PYRO'`)
|
||||
|
||||
* `Reptile` (value: `'REPTILE'`)
|
||||
|
||||
* `Rock` (value: `'ROCK'`)
|
||||
|
||||
* `SeaSerpent` (value: `'SEA_SERPENT'`)
|
||||
|
||||
* `Spellcaster` (value: `'SPELLCASTER'`)
|
||||
|
||||
* `Thunder` (value: `'THUNDER'`)
|
||||
|
||||
* `Warrior` (value: `'WARRIOR'`)
|
||||
|
||||
* `WingedBeast` (value: `'WINGED_BEAST'`)
|
||||
|
||||
* `Wyrm` (value: `'WYRM'`)
|
||||
|
||||
* `Zombie` (value: `'ZOMBIE'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/Page.md
Normal file
29
src/api/openapi/docs/Page.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Page
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | **Array<any>** | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Page } from './api';
|
||||
|
||||
const instance: Page = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/PageCardDto.md
Normal file
29
src/api/openapi/docs/PageCardDto.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# PageCardDto
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | [**Array<Card>**](Card.md) | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { PageCardDto } from './api';
|
||||
|
||||
const instance: PageCardDto = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/PageCardPrintDto.md
Normal file
29
src/api/openapi/docs/PageCardPrintDto.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# PageCardPrintDto
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | [**Array<CardPrint>**](CardPrint.md) | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { PageCardPrintDto } from './api';
|
||||
|
||||
const instance: PageCardPrintDto = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/PageDeckDto.md
Normal file
29
src/api/openapi/docs/PageDeckDto.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# PageDeckDto
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | [**Array<Deck>**](Deck.md) | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { PageDeckDto } from './api';
|
||||
|
||||
const instance: PageDeckDto = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/PageJobDto.md
Normal file
29
src/api/openapi/docs/PageJobDto.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# PageJobDto
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | [**Array<JobDto>**](JobDto.md) | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { PageJobDto } from './api';
|
||||
|
||||
const instance: PageJobDto = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
29
src/api/openapi/docs/PageSetDto.md
Normal file
29
src/api/openapi/docs/PageSetDto.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# PageSetDto
|
||||
|
||||
Page of items
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | [**Array<SetDto>**](SetDto.md) | Items in the page | [default to undefined]
|
||||
**page** | **number** | | [optional] [default to undefined]
|
||||
**pageSize** | **number** | | [optional] [default to undefined]
|
||||
**totalPages** | **number** | | [optional] [default to undefined]
|
||||
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { PageSetDto } from './api';
|
||||
|
||||
const instance: PageSetDto = {
|
||||
content,
|
||||
page,
|
||||
pageSize,
|
||||
totalPages,
|
||||
totalRecords,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
34
src/api/openapi/docs/Region.md
Normal file
34
src/api/openapi/docs/Region.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Region
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `AsianEnglish` (value: `'ASIAN_ENGLISH'`)
|
||||
|
||||
* `Japanese` (value: `'JAPANESE'`)
|
||||
|
||||
* `JapaneseAsian` (value: `'JAPANESE_ASIAN'`)
|
||||
|
||||
* `English` (value: `'ENGLISH'`)
|
||||
|
||||
* `EuropeanEnglish` (value: `'EUROPEAN_ENGLISH'`)
|
||||
|
||||
* `Korean` (value: `'KOREAN'`)
|
||||
|
||||
* `French` (value: `'FRENCH'`)
|
||||
|
||||
* `FrenchCanadian` (value: `'FRENCH_CANADIAN'`)
|
||||
|
||||
* `NaEnglish` (value: `'NA_ENGLISH'`)
|
||||
|
||||
* `Oceanic` (value: `'OCEANIC'`)
|
||||
|
||||
* `German` (value: `'GERMAN'`)
|
||||
|
||||
* `Portuguese` (value: `'PORTUGUESE'`)
|
||||
|
||||
* `Italian` (value: `'ITALIAN'`)
|
||||
|
||||
* `Spanish` (value: `'SPANISH'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
24
src/api/openapi/docs/RegionCodeAlias.md
Normal file
24
src/api/openapi/docs/RegionCodeAlias.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# RegionCodeAlias
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**alias** | **string** | | [default to undefined]
|
||||
**region** | [**Region**](Region.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { RegionCodeAlias } from './api';
|
||||
|
||||
const instance: RegionCodeAlias = {
|
||||
id,
|
||||
alias,
|
||||
region,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
src/api/openapi/docs/RegionalSet.md
Normal file
26
src/api/openapi/docs/RegionalSet.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# RegionalSet
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**prefix** | **string** | | [default to undefined]
|
||||
**region** | **string** | | [default to undefined]
|
||||
**cardPrints** | [**Array<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { RegionalSet } from './api';
|
||||
|
||||
const instance: RegionalSet = {
|
||||
id,
|
||||
prefix,
|
||||
region,
|
||||
cardPrints,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
src/api/openapi/docs/SetDto.md
Normal file
20
src/api/openapi/docs/SetDto.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# SetDto
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { SetDto } from './api';
|
||||
|
||||
const instance: SetDto = {
|
||||
name,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
22
src/api/openapi/docs/SetPrefix.md
Normal file
22
src/api/openapi/docs/SetPrefix.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# SetPrefix
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { SetPrefix } from './api';
|
||||
|
||||
const instance: SetPrefix = {
|
||||
id,
|
||||
name,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
217
src/api/openapi/docs/SetService.md
Normal file
217
src/api/openapi/docs/SetService.md
Normal file
@@ -0,0 +1,217 @@
|
||||
# SetService
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**apiSetsNameGet**](#apisetsnameget) | **GET** /api/sets/{name} | Find Set By Name|
|
||||
|[**apiSetsNameNewGet**](#apisetsnamenewget) | **GET** /api/sets/{name}/new | Fetch And Persist From Upstream|
|
||||
|[**getCardSetPage**](#getcardsetpage) | **GET** /api/sets | Get a page of Card Sets with optional name query parameter|
|
||||
|[**scrapeSetByName**](#scrapesetbyname) | **GET** /api/sets/{name}/scrape | Scrape a CardSet via name query parameter|
|
||||
|
||||
# **apiSetsNameGet**
|
||||
> SetDto apiSetsNameGet()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
SetService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new SetService(configuration);
|
||||
|
||||
let name: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiSetsNameGet(
|
||||
name
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**SetDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Set retrieved | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **apiSetsNameNewGet**
|
||||
> Array<SetDto> apiSetsNameNewGet()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
SetService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new SetService(configuration);
|
||||
|
||||
let name: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiSetsNameNewGet(
|
||||
name
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<SetDto>**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Set retrieved | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **getCardSetPage**
|
||||
> PageSetDto getCardSetPage()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
SetService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new SetService(configuration);
|
||||
|
||||
let name: string; // (optional) (default to undefined)
|
||||
let page: number; // (optional) (default to undefined)
|
||||
let pageSize: number; // (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.getCardSetPage(
|
||||
name,
|
||||
page,
|
||||
pageSize
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | (optional) defaults to undefined|
|
||||
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**PageSetDto**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Page for the given query | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **scrapeSetByName**
|
||||
> scrapeSetByName()
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
SetService,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new SetService(configuration);
|
||||
|
||||
let name: string; // (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.scrapeSetByName(
|
||||
name
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **name** | [**string**] | | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Set retrieved | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
30
src/api/openapi/docs/SpellCard.md
Normal file
30
src/api/openapi/docs/SpellCard.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# SpellCard
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
|
||||
**description** | **string** | | [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**cardPrints** | [**Array<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
**type** | [**SpellCardType**](SpellCardType.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { SpellCard } from './api';
|
||||
|
||||
const instance: SpellCard = {
|
||||
id,
|
||||
cardType,
|
||||
description,
|
||||
name,
|
||||
cardPrints,
|
||||
type,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
18
src/api/openapi/docs/SpellCardType.md
Normal file
18
src/api/openapi/docs/SpellCardType.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# SpellCardType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Normal` (value: `'NORMAL'`)
|
||||
|
||||
* `Continuous` (value: `'CONTINUOUS'`)
|
||||
|
||||
* `Equip` (value: `'EQUIP'`)
|
||||
|
||||
* `QuickPlay` (value: `'QUICK_PLAY'`)
|
||||
|
||||
* `Field` (value: `'FIELD'`)
|
||||
|
||||
* `Ritual` (value: `'RITUAL'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
30
src/api/openapi/docs/TrapCard.md
Normal file
30
src/api/openapi/docs/TrapCard.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# TrapCard
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **number** | | [optional] [default to undefined]
|
||||
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
|
||||
**description** | **string** | | [default to undefined]
|
||||
**name** | **string** | | [default to undefined]
|
||||
**cardPrints** | [**Array<CardPrint>**](CardPrint.md) | | [default to undefined]
|
||||
**type** | [**TrapCardType**](TrapCardType.md) | | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { TrapCard } from './api';
|
||||
|
||||
const instance: TrapCard = {
|
||||
id,
|
||||
cardType,
|
||||
description,
|
||||
name,
|
||||
cardPrints,
|
||||
type,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
12
src/api/openapi/docs/TrapCardType.md
Normal file
12
src/api/openapi/docs/TrapCardType.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# TrapCardType
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `Normal` (value: `'NORMAL'`)
|
||||
|
||||
* `Continuous` (value: `'CONTINUOUS'`)
|
||||
|
||||
* `Counter` (value: `'COUNTER'`)
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
57
src/api/openapi/git_push.sh
Normal file
57
src/api/openapi/git_push.sh
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
release_note=$3
|
||||
git_host=$4
|
||||
|
||||
if [ "$git_host" = "" ]; then
|
||||
git_host="github.com"
|
||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||
fi
|
||||
|
||||
if [ "$git_user_id" = "" ]; then
|
||||
git_user_id="GIT_USER_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||
fi
|
||||
|
||||
if [ "$git_repo_id" = "" ]; then
|
||||
git_repo_id="GIT_REPO_ID"
|
||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||
fi
|
||||
|
||||
if [ "$release_note" = "" ]; then
|
||||
release_note="Minor update"
|
||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||
fi
|
||||
|
||||
# Initialize the local directory as a Git repository
|
||||
git init
|
||||
|
||||
# Adds the files in the local repository and stages them for commit.
|
||||
git add .
|
||||
|
||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||
git commit -m "$release_note"
|
||||
|
||||
# Sets the new remote
|
||||
git_remote=$(git remote)
|
||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||
|
||||
if [ "$GIT_TOKEN" = "" ]; then
|
||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
else
|
||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
git pull origin master
|
||||
|
||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||
git push origin master 2>&1 | grep -v 'To https'
|
||||
18
src/api/openapi/index.ts
Normal file
18
src/api/openapi/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export * from "./api";
|
||||
export * from "./configuration";
|
||||
export * from "./model";
|
||||
36
src/api/openapi/model/attribute.ts
Normal file
36
src/api/openapi/model/attribute.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
209
src/api/openapi/model/card-page-search-request.ts
Normal file
209
src/api/openapi/model/card-page-search-request.ts
Normal file
@@ -0,0 +1,209 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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 { 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 { MonsterCardSubType } from './monster-card-sub-type';
|
||||
// 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 { SpellCardType } from './spell-card-type';
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { TrapCardType } from './trap-card-type';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CardPageSearchRequest
|
||||
*/
|
||||
export interface CardPageSearchRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'page'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'pageSize'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'name'?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CardType>}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'cardTypes'?: Array<CardType> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MonsterCardType>}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'monsterCardTypes'?: Array<MonsterCardType> | null;
|
||||
/**
|
||||
*
|
||||
* @type {SpellCardType}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'spellCardType'?: SpellCardType | null;
|
||||
/**
|
||||
*
|
||||
* @type {TrapCardType}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'trapCardType'?: TrapCardType | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'attack'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'attackMin'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'attackMax'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'defense'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'defenseMin'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'defenseMax'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'level'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'levelMin'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'levelMax'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'isPendulum'?: boolean | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'pendulumScale'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'pendulumScaleMin'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'pendulumScaleMax'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'linkValue'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'linkValueMin'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'linkValueMax'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<LinkArrow>}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'linkArrows'?: Array<LinkArrow> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<MonsterCardSubType>}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'monsterCardSubTypes'?: Array<MonsterCardSubType> | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Attribute>}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'attributes'?: Array<Attribute> | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CardPageSearchRequest
|
||||
*/
|
||||
'pendulum'?: boolean;
|
||||
}
|
||||
|
||||
|
||||
|
||||
48
src/api/openapi/model/card-print.ts
Normal file
48
src/api/openapi/model/card-print.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 CardPrint
|
||||
*/
|
||||
export interface CardPrint {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPrint
|
||||
*/
|
||||
'id': string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPrint
|
||||
*/
|
||||
'name': string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPrint
|
||||
*/
|
||||
'regionalName'?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPrint
|
||||
*/
|
||||
'rarity': string;
|
||||
}
|
||||
|
||||
33
src/api/openapi/model/card-type.ts
Normal file
33
src/api/openapi/model/card-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 CardType = {
|
||||
Monster: 'MONSTER',
|
||||
Spell: 'SPELL',
|
||||
Trap: 'TRAP',
|
||||
Unknown: 'UNKNOWN'
|
||||
} as const;
|
||||
|
||||
export type CardType = typeof CardType[keyof typeof CardType];
|
||||
|
||||
|
||||
|
||||
48
src/api/openapi/model/card-upstream-fetch-request.ts
Normal file
48
src/api/openapi/model/card-upstream-fetch-request.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
53
src/api/openapi/model/card.ts
Normal file
53
src/api/openapi/model/card.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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 { MonsterCard } from './monster-card';
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { MonsterCardSubType } from './monster-card-sub-type';
|
||||
// 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
|
||||
*/
|
||||
export type Card = MonsterCard | SpellCard | TrapCard;
|
||||
|
||||
|
||||
30
src/api/openapi/model/deck-create-request.ts
Normal file
30
src/api/openapi/model/deck-create-request.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
45
src/api/openapi/model/deck.ts
Normal file
45
src/api/openapi/model/deck.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface Deck
|
||||
*/
|
||||
export interface Deck {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Deck
|
||||
*/
|
||||
'id'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Deck
|
||||
*/
|
||||
'name': string;
|
||||
/**
|
||||
*
|
||||
* @type {Set<CardPrint>}
|
||||
* @memberof Deck
|
||||
*/
|
||||
'prints': Set<CardPrint>;
|
||||
}
|
||||
|
||||
30
src/api/openapi/model/index.ts
Normal file
30
src/api/openapi/model/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export * from './attribute';
|
||||
export * from './card';
|
||||
export * from './card-page-search-request';
|
||||
export * from './card-print';
|
||||
export * from './card-type';
|
||||
export * from './card-upstream-fetch-request';
|
||||
export * from './deck';
|
||||
export * from './deck-create-request';
|
||||
export * from './job-dto';
|
||||
export * from './job-status';
|
||||
export * from './job-type';
|
||||
export * from './link-arrow';
|
||||
export * from './monster-card';
|
||||
export * from './monster-card-sub-type';
|
||||
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-job-dto';
|
||||
export * from './page-set-dto';
|
||||
export * from './region';
|
||||
export * from './region-code-alias';
|
||||
export * from './regional-set';
|
||||
export * from './set-dto';
|
||||
export * from './spell-card';
|
||||
export * from './spell-card-type';
|
||||
export * from './trap-card';
|
||||
export * from './trap-card-type';
|
||||
92
src/api/openapi/model/job-dto.ts
Normal file
92
src/api/openapi/model/job-dto.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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';
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { JobType } from './job-type';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface JobDto
|
||||
*/
|
||||
export interface JobDto {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'id'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'totalJobs'?: number | null;
|
||||
/**
|
||||
*
|
||||
* @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 {Array<number>}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'childrenIds'?: Array<number> | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'attempts'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {JobStatus}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'status': JobStatus;
|
||||
/**
|
||||
*
|
||||
* @type {JobType}
|
||||
* @memberof JobDto
|
||||
*/
|
||||
'type': JobType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
33
src/api/openapi/model/job-status.ts
Normal file
33
src/api/openapi/model/job-status.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
32
src/api/openapi/model/job-type.ts
Normal file
32
src/api/openapi/model/job-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 JobType = {
|
||||
CardSet: 'CARD_SET',
|
||||
RegionalSet: 'REGIONAL_SET',
|
||||
CardPrint: 'CARD_PRINT'
|
||||
} as const;
|
||||
|
||||
export type JobType = typeof JobType[keyof typeof JobType];
|
||||
|
||||
|
||||
|
||||
37
src/api/openapi/model/link-arrow.ts
Normal file
37
src/api/openapi/model/link-arrow.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
36
src/api/openapi/model/monster-card-sub-type-enum.ts
Normal file
36
src/api/openapi/model/monster-card-sub-type-enum.ts
Normal 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 MonsterCardSubTypeEnum = {
|
||||
Tuner: 'TUNER',
|
||||
Flip: 'FLIP',
|
||||
Toon: 'TOON',
|
||||
Spirit: 'SPIRIT',
|
||||
Union: 'UNION',
|
||||
Gemini: 'GEMINI',
|
||||
Token: 'TOKEN'
|
||||
} as const;
|
||||
|
||||
export type MonsterCardSubTypeEnum = typeof MonsterCardSubTypeEnum[keyof typeof MonsterCardSubTypeEnum];
|
||||
|
||||
|
||||
|
||||
36
src/api/openapi/model/monster-card-sub-type.ts
Normal file
36
src/api/openapi/model/monster-card-sub-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 MonsterCardSubType = {
|
||||
Tuner: 'TUNER',
|
||||
Flip: 'FLIP',
|
||||
Toon: 'TOON',
|
||||
Spirit: 'SPIRIT',
|
||||
Union: 'UNION',
|
||||
Gemini: 'GEMINI',
|
||||
Token: 'TOKEN'
|
||||
} as const;
|
||||
|
||||
export type MonsterCardSubType = typeof MonsterCardSubType[keyof typeof MonsterCardSubType];
|
||||
|
||||
|
||||
|
||||
36
src/api/openapi/model/monster-card-type.ts
Normal file
36
src/api/openapi/model/monster-card-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
155
src/api/openapi/model/monster-card.ts
Normal file
155
src/api/openapi/model/monster-card.ts
Normal file
@@ -0,0 +1,155 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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 { MonsterCardSubType } from './monster-card-sub-type';
|
||||
// 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 {Array<CardPrint>}
|
||||
* @memberof MonsterCard
|
||||
*/
|
||||
'cardPrints': Array<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
|
||||
*/
|
||||
'type': MonsterCardType;
|
||||
/**
|
||||
*
|
||||
* @type {MonsterType}
|
||||
* @memberof MonsterCard
|
||||
*/
|
||||
'monsterType': MonsterType;
|
||||
/**
|
||||
*
|
||||
* @type {Attribute}
|
||||
* @memberof MonsterCard
|
||||
*/
|
||||
'attribute': Attribute;
|
||||
/**
|
||||
*
|
||||
* @type {Set<LinkArrow>}
|
||||
* @memberof MonsterCard
|
||||
*/
|
||||
'linkArrows': Set<LinkArrow>;
|
||||
/**
|
||||
*
|
||||
* @type {Set<MonsterCardSubType>}
|
||||
* @memberof MonsterCard
|
||||
*/
|
||||
'subTypes': Set<MonsterCardSubType>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
55
src/api/openapi/model/monster-type.ts
Normal file
55
src/api/openapi/model/monster-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
57
src/api/openapi/model/page-card-dto.ts
Normal file
57
src/api/openapi/model/page-card-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
57
src/api/openapi/model/page-card-print-dto.ts
Normal file
57
src/api/openapi/model/page-card-print-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
57
src/api/openapi/model/page-deck-dto.ts
Normal file
57
src/api/openapi/model/page-deck-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 { Deck } from './deck';
|
||||
|
||||
/**
|
||||
* Page of items
|
||||
* @export
|
||||
* @interface PageDeckDto
|
||||
*/
|
||||
export interface PageDeckDto {
|
||||
/**
|
||||
* Items in the page
|
||||
* @type {Array<Deck>}
|
||||
* @memberof PageDeckDto
|
||||
*/
|
||||
'content': Array<Deck>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageDeckDto
|
||||
*/
|
||||
'page'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageDeckDto
|
||||
*/
|
||||
'pageSize'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageDeckDto
|
||||
*/
|
||||
'totalPages'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageDeckDto
|
||||
*/
|
||||
'totalRecords'?: number | null;
|
||||
}
|
||||
|
||||
57
src/api/openapi/model/page-job-dto.ts
Normal file
57
src/api/openapi/model/page-job-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 { JobDto } from './job-dto';
|
||||
|
||||
/**
|
||||
* Page of items
|
||||
* @export
|
||||
* @interface PageJobDto
|
||||
*/
|
||||
export interface PageJobDto {
|
||||
/**
|
||||
* Items in the page
|
||||
* @type {Array<JobDto>}
|
||||
* @memberof PageJobDto
|
||||
*/
|
||||
'content': Array<JobDto>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageJobDto
|
||||
*/
|
||||
'page'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageJobDto
|
||||
*/
|
||||
'pageSize'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageJobDto
|
||||
*/
|
||||
'totalPages'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PageJobDto
|
||||
*/
|
||||
'totalRecords'?: number | null;
|
||||
}
|
||||
|
||||
57
src/api/openapi/model/page-set-dto.ts
Normal file
57
src/api/openapi/model/page-set-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
54
src/api/openapi/model/page.ts
Normal file
54
src/api/openapi/model/page.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
47
src/api/openapi/model/region-code-alias.ts
Normal file
47
src/api/openapi/model/region-code-alias.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
43
src/api/openapi/model/region.ts
Normal file
43
src/api/openapi/model/region.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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 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];
|
||||
|
||||
|
||||
|
||||
51
src/api/openapi/model/regional-set.ts
Normal file
51
src/api/openapi/model/regional-set.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RegionalSet
|
||||
*/
|
||||
export interface RegionalSet {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RegionalSet
|
||||
*/
|
||||
'id'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegionalSet
|
||||
*/
|
||||
'prefix': string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RegionalSet
|
||||
*/
|
||||
'region': string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CardPrint>}
|
||||
* @memberof RegionalSet
|
||||
*/
|
||||
'cardPrints': Array<CardPrint>;
|
||||
}
|
||||
|
||||
30
src/api/openapi/model/set-dto.ts
Normal file
30
src/api/openapi/model/set-dto.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
36
src/api/openapi/model/set-prefix.ts
Normal file
36
src/api/openapi/model/set-prefix.ts
Normal 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
|
||||
* @interface SetPrefix
|
||||
*/
|
||||
export interface SetPrefix {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SetPrefix
|
||||
*/
|
||||
'id'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SetPrefix
|
||||
*/
|
||||
'name': string;
|
||||
}
|
||||
|
||||
35
src/api/openapi/model/spell-card-type.ts
Normal file
35
src/api/openapi/model/spell-card-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
71
src/api/openapi/model/spell-card.ts
Normal file
71
src/api/openapi/model/spell-card.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 {Array<CardPrint>}
|
||||
* @memberof SpellCard
|
||||
*/
|
||||
'cardPrints': Array<CardPrint>;
|
||||
/**
|
||||
*
|
||||
* @type {SpellCardType}
|
||||
* @memberof SpellCard
|
||||
*/
|
||||
'type': SpellCardType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
32
src/api/openapi/model/trap-card-type.ts
Normal file
32
src/api/openapi/model/trap-card-type.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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];
|
||||
|
||||
|
||||
|
||||
71
src/api/openapi/model/trap-card.ts
Normal file
71
src/api/openapi/model/trap-card.ts
Normal 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.6
|
||||
*
|
||||
*
|
||||
* 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 { TrapCardType } from './trap-card-type';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TrapCard
|
||||
*/
|
||||
export interface TrapCard {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'id'?: number;
|
||||
/**
|
||||
*
|
||||
* @type {CardType}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'cardType': CardType;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'description': string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'name': string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CardPrint>}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'cardPrints': Array<CardPrint>;
|
||||
/**
|
||||
*
|
||||
* @type {TrapCardType}
|
||||
* @memberof TrapCard
|
||||
*/
|
||||
'type': TrapCardType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
172
src/api/openapi/service/card-print-service.ts
Normal file
172
src/api/openapi/service/card-print-service.ts
Normal file
@@ -0,0 +1,172 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from '../configuration';
|
||||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||
// @ts-ignore
|
||||
import type { PageCardPrintDto } from '../model';
|
||||
/**
|
||||
* CardPrintService - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const CardPrintServiceAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Card Prints with optional name query parameter
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardPrintPage: async (name?: string | null, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/prints`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (pageSize !== undefined) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* CardPrintService - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const CardPrintServiceFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = CardPrintServiceAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Card Prints with optional name query parameter
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardPrintPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageCardPrintDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPrintPage(name, page, pageSize, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CardPrintService.getCardPrintPage']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* CardPrintService - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const CardPrintServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = CardPrintServiceFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Card Prints with optional name query parameter
|
||||
* @param {CardPrintServiceGetCardPrintPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardPrintPage(requestParameters: CardPrintServiceGetCardPrintPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageCardPrintDto> {
|
||||
return localVarFp.getCardPrintPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for getCardPrintPage operation in CardPrintService.
|
||||
* @export
|
||||
* @interface CardPrintServiceGetCardPrintPageRequest
|
||||
*/
|
||||
export interface CardPrintServiceGetCardPrintPageRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardPrintServiceGetCardPrintPage
|
||||
*/
|
||||
readonly name?: string | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPrintServiceGetCardPrintPage
|
||||
*/
|
||||
readonly page?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardPrintServiceGetCardPrintPage
|
||||
*/
|
||||
readonly pageSize?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* CardPrintService - object-oriented interface
|
||||
* @export
|
||||
* @class CardPrintService
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class CardPrintService extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Card Prints with optional name query parameter
|
||||
* @param {CardPrintServiceGetCardPrintPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CardPrintService
|
||||
*/
|
||||
public getCardPrintPage(requestParameters: CardPrintServiceGetCardPrintPageRequest = {}, options?: RawAxiosRequestConfig) {
|
||||
return CardPrintServiceFp(this.configuration).getCardPrintPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
740
src/api/openapi/service/card-service.ts
Normal file
740
src/api/openapi/service/card-service.ts
Normal file
@@ -0,0 +1,740 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from '../configuration';
|
||||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||
// @ts-ignore
|
||||
import type { Attribute } from '../model';
|
||||
// @ts-ignore
|
||||
import type { Card } from '../model';
|
||||
// @ts-ignore
|
||||
import type { CardType } from '../model';
|
||||
// @ts-ignore
|
||||
import type { CardUpstreamFetchRequest } from '../model';
|
||||
// @ts-ignore
|
||||
import type { LinkArrow } from '../model';
|
||||
// @ts-ignore
|
||||
import type { MonsterCardSubType } from '../model';
|
||||
// @ts-ignore
|
||||
import type { MonsterCardType } from '../model';
|
||||
// @ts-ignore
|
||||
import type { PageCardDto } from '../model';
|
||||
// @ts-ignore
|
||||
import type { SpellCardType } from '../model';
|
||||
// @ts-ignore
|
||||
import type { TrapCardType } from '../model';
|
||||
/**
|
||||
* CardService - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const CardServiceAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch Cards by ID or Name from any upstream service
|
||||
* @param {CardUpstreamFetchRequest} cardUpstreamFetchRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchUpstream: async (cardUpstreamFetchRequest: CardUpstreamFetchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'cardUpstreamFetchRequest' is not null or undefined
|
||||
assertParamExists('fetchUpstream', 'cardUpstreamFetchRequest', cardUpstreamFetchRequest)
|
||||
const localVarPath = `/api/cards/fetch`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(cardUpstreamFetchRequest, localVarRequestOptions, configuration)
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Card by its ID
|
||||
* @param {number} id
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
assertParamExists('getCardById', 'id', id)
|
||||
const localVarPath = `/api/cards/{id}`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get the image of a Card by its ID
|
||||
* @param {number} id
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardImageById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
assertParamExists('getCardImageById', 'id', id)
|
||||
const localVarPath = `/api/cards/{id}/image`
|
||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Cards with optional name query parameter
|
||||
* @param {number | null} [attack]
|
||||
* @param {number | null} [attackMax]
|
||||
* @param {number | null} [attackMin]
|
||||
* @param {Array<Attribute> | null} [attributes]
|
||||
* @param {Array<CardType> | null} [cardTypes]
|
||||
* @param {number | null} [defense]
|
||||
* @param {number | null} [defenseMax]
|
||||
* @param {number | null} [defenseMin]
|
||||
* @param {boolean | null} [isPendulum]
|
||||
* @param {number | null} [level]
|
||||
* @param {number | null} [levelMax]
|
||||
* @param {number | null} [levelMin]
|
||||
* @param {Array<LinkArrow> | null} [linkArrows]
|
||||
* @param {number | null} [linkValue]
|
||||
* @param {number | null} [linkValueMax]
|
||||
* @param {number | null} [linkValueMin]
|
||||
* @param {Array<MonsterCardSubType> | null} [monsterCardSubTypes]
|
||||
* @param {Array<MonsterCardType> | null} [monsterCardTypes]
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {number | null} [pendulumScale]
|
||||
* @param {number | null} [pendulumScaleMax]
|
||||
* @param {number | null} [pendulumScaleMin]
|
||||
* @param {SpellCardType | null} [spellCardType]
|
||||
* @param {TrapCardType | null} [trapCardType]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardPage: async (attack?: number | null, attackMax?: number | null, attackMin?: number | null, attributes?: Array<Attribute> | null, cardTypes?: Array<CardType> | null, defense?: number | null, defenseMax?: number | null, defenseMin?: number | null, isPendulum?: boolean | null, level?: number | null, levelMax?: number | null, levelMin?: number | null, linkArrows?: Array<LinkArrow> | null, linkValue?: number | null, linkValueMax?: number | null, linkValueMin?: number | null, monsterCardSubTypes?: Array<MonsterCardSubType> | null, monsterCardTypes?: Array<MonsterCardType> | null, name?: string | null, page?: number, pageSize?: number, pendulumScale?: number | null, pendulumScaleMax?: number | null, pendulumScaleMin?: number | null, spellCardType?: SpellCardType | null, trapCardType?: TrapCardType | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cards`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (attack !== undefined) {
|
||||
localVarQueryParameter['attack'] = attack;
|
||||
}
|
||||
|
||||
if (attackMax !== undefined) {
|
||||
localVarQueryParameter['attackMax'] = attackMax;
|
||||
}
|
||||
|
||||
if (attackMin !== undefined) {
|
||||
localVarQueryParameter['attackMin'] = attackMin;
|
||||
}
|
||||
|
||||
if (attributes) {
|
||||
localVarQueryParameter['attributes'] = attributes;
|
||||
}
|
||||
|
||||
if (cardTypes) {
|
||||
localVarQueryParameter['cardTypes'] = cardTypes;
|
||||
}
|
||||
|
||||
if (defense !== undefined) {
|
||||
localVarQueryParameter['defense'] = defense;
|
||||
}
|
||||
|
||||
if (defenseMax !== undefined) {
|
||||
localVarQueryParameter['defenseMax'] = defenseMax;
|
||||
}
|
||||
|
||||
if (defenseMin !== undefined) {
|
||||
localVarQueryParameter['defenseMin'] = defenseMin;
|
||||
}
|
||||
|
||||
if (isPendulum !== undefined) {
|
||||
localVarQueryParameter['isPendulum'] = isPendulum;
|
||||
}
|
||||
|
||||
if (level !== undefined) {
|
||||
localVarQueryParameter['level'] = level;
|
||||
}
|
||||
|
||||
if (levelMax !== undefined) {
|
||||
localVarQueryParameter['levelMax'] = levelMax;
|
||||
}
|
||||
|
||||
if (levelMin !== undefined) {
|
||||
localVarQueryParameter['levelMin'] = levelMin;
|
||||
}
|
||||
|
||||
if (linkArrows) {
|
||||
localVarQueryParameter['linkArrows'] = linkArrows;
|
||||
}
|
||||
|
||||
if (linkValue !== undefined) {
|
||||
localVarQueryParameter['linkValue'] = linkValue;
|
||||
}
|
||||
|
||||
if (linkValueMax !== undefined) {
|
||||
localVarQueryParameter['linkValueMax'] = linkValueMax;
|
||||
}
|
||||
|
||||
if (linkValueMin !== undefined) {
|
||||
localVarQueryParameter['linkValueMin'] = linkValueMin;
|
||||
}
|
||||
|
||||
if (monsterCardSubTypes) {
|
||||
localVarQueryParameter['monsterCardSubTypes'] = monsterCardSubTypes;
|
||||
}
|
||||
|
||||
if (monsterCardTypes) {
|
||||
localVarQueryParameter['monsterCardTypes'] = monsterCardTypes;
|
||||
}
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (pageSize !== undefined) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
if (pendulumScale !== undefined) {
|
||||
localVarQueryParameter['pendulumScale'] = pendulumScale;
|
||||
}
|
||||
|
||||
if (pendulumScaleMax !== undefined) {
|
||||
localVarQueryParameter['pendulumScaleMax'] = pendulumScaleMax;
|
||||
}
|
||||
|
||||
if (pendulumScaleMin !== undefined) {
|
||||
localVarQueryParameter['pendulumScaleMin'] = pendulumScaleMin;
|
||||
}
|
||||
|
||||
if (spellCardType !== undefined) {
|
||||
localVarQueryParameter['spellCardType'] = spellCardType;
|
||||
}
|
||||
|
||||
if (trapCardType !== undefined) {
|
||||
localVarQueryParameter['trapCardType'] = trapCardType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* CardService - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const CardServiceFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = CardServiceAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch Cards by ID or Name from any upstream service
|
||||
* @param {CardUpstreamFetchRequest} cardUpstreamFetchRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async fetchUpstream(cardUpstreamFetchRequest: CardUpstreamFetchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Card>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchUpstream(cardUpstreamFetchRequest, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CardService.fetchUpstream']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Card by its ID
|
||||
* @param {number} id
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Card>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardById(id, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CardService.getCardById']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get the image of a Card by its ID
|
||||
* @param {number} id
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardImageById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardImageById(id, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CardService.getCardImageById']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Cards with optional name query parameter
|
||||
* @param {number | null} [attack]
|
||||
* @param {number | null} [attackMax]
|
||||
* @param {number | null} [attackMin]
|
||||
* @param {Array<Attribute> | null} [attributes]
|
||||
* @param {Array<CardType> | null} [cardTypes]
|
||||
* @param {number | null} [defense]
|
||||
* @param {number | null} [defenseMax]
|
||||
* @param {number | null} [defenseMin]
|
||||
* @param {boolean | null} [isPendulum]
|
||||
* @param {number | null} [level]
|
||||
* @param {number | null} [levelMax]
|
||||
* @param {number | null} [levelMin]
|
||||
* @param {Array<LinkArrow> | null} [linkArrows]
|
||||
* @param {number | null} [linkValue]
|
||||
* @param {number | null} [linkValueMax]
|
||||
* @param {number | null} [linkValueMin]
|
||||
* @param {Array<MonsterCardSubType> | null} [monsterCardSubTypes]
|
||||
* @param {Array<MonsterCardType> | null} [monsterCardTypes]
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {number | null} [pendulumScale]
|
||||
* @param {number | null} [pendulumScaleMax]
|
||||
* @param {number | null} [pendulumScaleMin]
|
||||
* @param {SpellCardType | null} [spellCardType]
|
||||
* @param {TrapCardType | null} [trapCardType]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardPage(attack?: number | null, attackMax?: number | null, attackMin?: number | null, attributes?: Array<Attribute> | null, cardTypes?: Array<CardType> | null, defense?: number | null, defenseMax?: number | null, defenseMin?: number | null, isPendulum?: boolean | null, level?: number | null, levelMax?: number | null, levelMin?: number | null, linkArrows?: Array<LinkArrow> | null, linkValue?: number | null, linkValueMax?: number | null, linkValueMin?: number | null, monsterCardSubTypes?: Array<MonsterCardSubType> | null, monsterCardTypes?: Array<MonsterCardType> | null, name?: string | null, page?: number, pageSize?: number, pendulumScale?: number | null, pendulumScaleMax?: number | null, pendulumScaleMin?: number | null, spellCardType?: SpellCardType | null, trapCardType?: TrapCardType | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageCardDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPage(attack, attackMax, attackMin, attributes, cardTypes, defense, defenseMax, defenseMin, isPendulum, level, levelMax, levelMin, linkArrows, linkValue, linkValueMax, linkValueMin, monsterCardSubTypes, monsterCardTypes, name, page, pageSize, pendulumScale, pendulumScaleMax, pendulumScaleMin, spellCardType, trapCardType, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CardService.getCardPage']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* CardService - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const CardServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = CardServiceFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch Cards by ID or Name from any upstream service
|
||||
* @param {CardServiceFetchUpstreamRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchUpstream(requestParameters: CardServiceFetchUpstreamRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>> {
|
||||
return localVarFp.fetchUpstream(requestParameters.cardUpstreamFetchRequest, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Card by its ID
|
||||
* @param {CardServiceGetCardByIdRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardById(requestParameters: CardServiceGetCardByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Card> {
|
||||
return localVarFp.getCardById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get the image of a Card by its ID
|
||||
* @param {CardServiceGetCardImageByIdRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardImageById(requestParameters: CardServiceGetCardImageByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
||||
return localVarFp.getCardImageById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Cards with optional name query parameter
|
||||
* @param {CardServiceGetCardPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardPage(requestParameters: CardServiceGetCardPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageCardDto> {
|
||||
return localVarFp.getCardPage(requestParameters.attack, requestParameters.attackMax, requestParameters.attackMin, requestParameters.attributes, requestParameters.cardTypes, requestParameters.defense, requestParameters.defenseMax, requestParameters.defenseMin, requestParameters.isPendulum, requestParameters.level, requestParameters.levelMax, requestParameters.levelMin, requestParameters.linkArrows, requestParameters.linkValue, requestParameters.linkValueMax, requestParameters.linkValueMin, requestParameters.monsterCardSubTypes, requestParameters.monsterCardTypes, requestParameters.name, requestParameters.page, requestParameters.pageSize, requestParameters.pendulumScale, requestParameters.pendulumScaleMax, requestParameters.pendulumScaleMin, requestParameters.spellCardType, requestParameters.trapCardType, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for fetchUpstream operation in CardService.
|
||||
* @export
|
||||
* @interface CardServiceFetchUpstreamRequest
|
||||
*/
|
||||
export interface CardServiceFetchUpstreamRequest {
|
||||
/**
|
||||
*
|
||||
* @type {CardUpstreamFetchRequest}
|
||||
* @memberof CardServiceFetchUpstream
|
||||
*/
|
||||
readonly cardUpstreamFetchRequest: CardUpstreamFetchRequest
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getCardById operation in CardService.
|
||||
* @export
|
||||
* @interface CardServiceGetCardByIdRequest
|
||||
*/
|
||||
export interface CardServiceGetCardByIdRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardById
|
||||
*/
|
||||
readonly id: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getCardImageById operation in CardService.
|
||||
* @export
|
||||
* @interface CardServiceGetCardImageByIdRequest
|
||||
*/
|
||||
export interface CardServiceGetCardImageByIdRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardImageById
|
||||
*/
|
||||
readonly id: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getCardPage operation in CardService.
|
||||
* @export
|
||||
* @interface CardServiceGetCardPageRequest
|
||||
*/
|
||||
export interface CardServiceGetCardPageRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly attack?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly attackMax?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly attackMin?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {Array<Attribute>}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly attributes?: Array<Attribute> | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {Array<CardType>}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly cardTypes?: Array<CardType> | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly defense?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly defenseMax?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly defenseMin?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly isPendulum?: boolean | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly level?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly levelMax?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly levelMin?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {Array<LinkArrow>}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly linkArrows?: Array<LinkArrow> | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly linkValue?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly linkValueMax?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly linkValueMin?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {Array<MonsterCardSubType>}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly monsterCardSubTypes?: Array<MonsterCardSubType> | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {Array<MonsterCardType>}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly monsterCardTypes?: Array<MonsterCardType> | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly name?: string | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly page?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly pageSize?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly pendulumScale?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly pendulumScaleMax?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly pendulumScaleMin?: number | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {SpellCardType}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly spellCardType?: SpellCardType | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {TrapCardType}
|
||||
* @memberof CardServiceGetCardPage
|
||||
*/
|
||||
readonly trapCardType?: TrapCardType | null
|
||||
}
|
||||
|
||||
/**
|
||||
* CardService - object-oriented interface
|
||||
* @export
|
||||
* @class CardService
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class CardService extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch Cards by ID or Name from any upstream service
|
||||
* @param {CardServiceFetchUpstreamRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CardService
|
||||
*/
|
||||
public fetchUpstream(requestParameters: CardServiceFetchUpstreamRequest, options?: RawAxiosRequestConfig) {
|
||||
return CardServiceFp(this.configuration).fetchUpstream(requestParameters.cardUpstreamFetchRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Card by its ID
|
||||
* @param {CardServiceGetCardByIdRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CardService
|
||||
*/
|
||||
public getCardById(requestParameters: CardServiceGetCardByIdRequest, options?: RawAxiosRequestConfig) {
|
||||
return CardServiceFp(this.configuration).getCardById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Get the image of a Card by its ID
|
||||
* @param {CardServiceGetCardImageByIdRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CardService
|
||||
*/
|
||||
public getCardImageById(requestParameters: CardServiceGetCardImageByIdRequest, options?: RawAxiosRequestConfig) {
|
||||
return CardServiceFp(this.configuration).getCardImageById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Cards with optional name query parameter
|
||||
* @param {CardServiceGetCardPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CardService
|
||||
*/
|
||||
public getCardPage(requestParameters: CardServiceGetCardPageRequest = {}, options?: RawAxiosRequestConfig) {
|
||||
return CardServiceFp(this.configuration).getCardPage(requestParameters.attack, requestParameters.attackMax, requestParameters.attackMin, requestParameters.attributes, requestParameters.cardTypes, requestParameters.defense, requestParameters.defenseMax, requestParameters.defenseMin, requestParameters.isPendulum, requestParameters.level, requestParameters.levelMax, requestParameters.levelMin, requestParameters.linkArrows, requestParameters.linkValue, requestParameters.linkValueMax, requestParameters.linkValueMin, requestParameters.monsterCardSubTypes, requestParameters.monsterCardTypes, requestParameters.name, requestParameters.page, requestParameters.pageSize, requestParameters.pendulumScale, requestParameters.pendulumScaleMax, requestParameters.pendulumScaleMin, requestParameters.spellCardType, requestParameters.trapCardType, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
439
src/api/openapi/service/deck-service.ts
Normal file
439
src/api/openapi/service/deck-service.ts
Normal file
@@ -0,0 +1,439 @@
|
||||
/* 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.6
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from '../configuration';
|
||||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||
// @ts-ignore
|
||||
import type { Deck } from '../model';
|
||||
// @ts-ignore
|
||||
import type { DeckCreateRequest } from '../model';
|
||||
// @ts-ignore
|
||||
import type { PageDeckDto } from '../model';
|
||||
/**
|
||||
* DeckService - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const DeckServiceAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Add a Card by its ID to a Deck by its name
|
||||
* @param {number} cardId
|
||||
* @param {string} deckName
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
addCardToDeck: async (cardId: number, deckName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'cardId' is not null or undefined
|
||||
assertParamExists('addCardToDeck', 'cardId', cardId)
|
||||
// verify required parameter 'deckName' is not null or undefined
|
||||
assertParamExists('addCardToDeck', 'deckName', deckName)
|
||||
const localVarPath = `/api/decks/{deckName}/{cardId}`
|
||||
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)))
|
||||
.replace(`{${"deckName"}}`, encodeURIComponent(String(deckName)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Create a Deck with a given name
|
||||
* @param {DeckCreateRequest} deckCreateRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createDeck: async (deckCreateRequest: DeckCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'deckCreateRequest' is not null or undefined
|
||||
assertParamExists('createDeck', 'deckCreateRequest', deckCreateRequest)
|
||||
const localVarPath = `/api/decks`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(deckCreateRequest, localVarRequestOptions, configuration)
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Deck by its name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDeckByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getDeckByName', 'name', name)
|
||||
const localVarPath = `/api/decks/{name}`
|
||||
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Decks with optional name query parameter
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDecks: async (name?: string | null, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/decks`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page;
|
||||
}
|
||||
|
||||
if (pageSize !== undefined) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* DeckService - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const DeckServiceFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = DeckServiceAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Add a Card by its ID to a Deck by its name
|
||||
* @param {number} cardId
|
||||
* @param {string} deckName
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async addCardToDeck(cardId: number, deckName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.addCardToDeck(cardId, deckName, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['DeckService.addCardToDeck']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Create a Deck with a given name
|
||||
* @param {DeckCreateRequest} deckCreateRequest
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async createDeck(deckCreateRequest: DeckCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeck(deckCreateRequest, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['DeckService.createDeck']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Deck by its name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getDeckByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deck>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeckByName(name, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['DeckService.getDeckByName']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Decks with optional name query parameter
|
||||
* @param {string | null} [name]
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageDeckDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getDecks(name, page, pageSize, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['DeckService.getDecks']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* DeckService - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const DeckServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = DeckServiceFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Add a Card by its ID to a Deck by its name
|
||||
* @param {DeckServiceAddCardToDeckRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
addCardToDeck(requestParameters: DeckServiceAddCardToDeckRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.addCardToDeck(requestParameters.cardId, requestParameters.deckName, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Create a Deck with a given name
|
||||
* @param {DeckServiceCreateDeckRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createDeck(requestParameters: DeckServiceCreateDeckRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.createDeck(requestParameters.deckCreateRequest, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Deck by its name
|
||||
* @param {DeckServiceGetDeckByNameRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDeckByName(requestParameters: DeckServiceGetDeckByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<Deck> {
|
||||
return localVarFp.getDeckByName(requestParameters.name, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Decks with optional name query parameter
|
||||
* @param {DeckServiceGetDecksRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDecks(requestParameters: DeckServiceGetDecksRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageDeckDto> {
|
||||
return localVarFp.getDecks(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for addCardToDeck operation in DeckService.
|
||||
* @export
|
||||
* @interface DeckServiceAddCardToDeckRequest
|
||||
*/
|
||||
export interface DeckServiceAddCardToDeckRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DeckServiceAddCardToDeck
|
||||
*/
|
||||
readonly cardId: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeckServiceAddCardToDeck
|
||||
*/
|
||||
readonly deckName: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for createDeck operation in DeckService.
|
||||
* @export
|
||||
* @interface DeckServiceCreateDeckRequest
|
||||
*/
|
||||
export interface DeckServiceCreateDeckRequest {
|
||||
/**
|
||||
*
|
||||
* @type {DeckCreateRequest}
|
||||
* @memberof DeckServiceCreateDeck
|
||||
*/
|
||||
readonly deckCreateRequest: DeckCreateRequest
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getDeckByName operation in DeckService.
|
||||
* @export
|
||||
* @interface DeckServiceGetDeckByNameRequest
|
||||
*/
|
||||
export interface DeckServiceGetDeckByNameRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeckServiceGetDeckByName
|
||||
*/
|
||||
readonly name: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getDecks operation in DeckService.
|
||||
* @export
|
||||
* @interface DeckServiceGetDecksRequest
|
||||
*/
|
||||
export interface DeckServiceGetDecksRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DeckServiceGetDecks
|
||||
*/
|
||||
readonly name?: string | null
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DeckServiceGetDecks
|
||||
*/
|
||||
readonly page?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DeckServiceGetDecks
|
||||
*/
|
||||
readonly pageSize?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* DeckService - object-oriented interface
|
||||
* @export
|
||||
* @class DeckService
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class DeckService extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Add a Card by its ID to a Deck by its name
|
||||
* @param {DeckServiceAddCardToDeckRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DeckService
|
||||
*/
|
||||
public addCardToDeck(requestParameters: DeckServiceAddCardToDeckRequest, options?: RawAxiosRequestConfig) {
|
||||
return DeckServiceFp(this.configuration).addCardToDeck(requestParameters.cardId, requestParameters.deckName, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Create a Deck with a given name
|
||||
* @param {DeckServiceCreateDeckRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DeckService
|
||||
*/
|
||||
public createDeck(requestParameters: DeckServiceCreateDeckRequest, options?: RawAxiosRequestConfig) {
|
||||
return DeckServiceFp(this.configuration).createDeck(requestParameters.deckCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Get a singular Deck by its name
|
||||
* @param {DeckServiceGetDeckByNameRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DeckService
|
||||
*/
|
||||
public getDeckByName(requestParameters: DeckServiceGetDeckByNameRequest, options?: RawAxiosRequestConfig) {
|
||||
return DeckServiceFp(this.configuration).getDeckByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of Decks with optional name query parameter
|
||||
* @param {DeckServiceGetDecksRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DeckService
|
||||
*/
|
||||
public getDecks(requestParameters: DeckServiceGetDecksRequest = {}, options?: RawAxiosRequestConfig) {
|
||||
return DeckServiceFp(this.configuration).getDecks(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
147
src/api/openapi/service/job-controller-service.ts
Normal file
147
src/api/openapi/service/job-controller-service.ts
Normal file
@@ -0,0 +1,147 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
|
||||
import type { Configuration } from '../configuration';
|
||||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
||||
import globalAxios from 'axios';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||
/**
|
||||
* JobControllerService - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const JobControllerServiceAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get Deck By Name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiJobsNameGet: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('apiJobsNameGet', 'name', name)
|
||||
const localVarPath = `/api/jobs/{name}`
|
||||
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* JobControllerService - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const JobControllerServiceFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = JobControllerServiceAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get Deck By Name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiJobsNameGet(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.apiJobsNameGet(name, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['JobControllerService.apiJobsNameGet']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* JobControllerService - factory interface
|
||||
* @export
|
||||
*/
|
||||
export const JobControllerServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = JobControllerServiceFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Get Deck By Name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiJobsNameGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
||||
return localVarFp.apiJobsNameGet(name, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* JobControllerService - interface
|
||||
* @export
|
||||
* @interface JobControllerService
|
||||
*/
|
||||
export interface JobControllerServiceInterface {
|
||||
/**
|
||||
*
|
||||
* @summary Get Deck By Name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof JobControllerServiceInterface
|
||||
*/
|
||||
apiJobsNameGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* JobControllerService - object-oriented interface
|
||||
* @export
|
||||
* @class JobControllerService
|
||||
* @extends {BaseAPI}
|
||||
*/
|
||||
export class JobControllerService extends BaseAPI implements JobControllerServiceInterface {
|
||||
/**
|
||||
*
|
||||
* @summary Get Deck By Name
|
||||
* @param {string} name
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof JobControllerService
|
||||
*/
|
||||
public apiJobsNameGet(name: string, options?: RawAxiosRequestConfig) {
|
||||
return JobControllerServiceFp(this.configuration).apiJobsNameGet(name, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user