Compare commits

..

49 Commits

Author SHA1 Message Date
3737ceb33a Bump version 2025-07-19 16:41:23 +02:00
5ae114aeb1 Add CreateDeckView
Amend CSS
Correct auth callback
2025-07-19 16:41:08 +02:00
0f30cdf8bb Bump version 2025-07-19 15:11:24 +02:00
a7905e4158 Add version footer 2025-07-19 15:11:17 +02:00
5c9c0cde60 Amend redirect URI 2025-07-17 17:52:24 +02:00
7713c8e4ae Add CardSetImportModal 2025-07-17 17:48:44 +02:00
9450d560c4 Update OpenAPI 2025-07-17 17:48:35 +02:00
fcd1e4c888 Bump version 2025-07-17 17:14:46 +02:00
47c468bab6 Correct callback 2025-07-17 17:14:34 +02:00
1f0b08c122 Add debug logging 2025-07-17 15:03:38 +02:00
e6ccae9af3 Amend API URL 2025-07-17 14:36:17 +02:00
b3e4f76b18 Amend API URL 2025-07-17 14:29:10 +02:00
bff0b35c5f Bump version 2025-07-17 13:56:01 +02:00
bdeaa34851 Correct nginx proxy 2025-07-17 13:55:44 +02:00
7c2c6834c2 Amend API base URL 2025-07-17 13:37:16 +02:00
7dc4c9192b Amend API base URL 2025-07-17 13:36:56 +02:00
e895602aa4 Amend port 2025-07-17 13:12:10 +02:00
9c743ed514 Update OpenAPI, amend TS issues 2025-07-17 13:11:20 +02:00
520f59a0ca Amend .gitignore 2025-07-15 20:57:52 +02:00
ad8772d112 Amend env var stubs 2025-07-15 20:57:21 +02:00
c06b75ab96 Add Compose YML 2025-07-15 20:57:05 +02:00
b0d66c9aa0 Bump version 2025-07-15 18:12:54 +02:00
6b23bfb39f Amend Upstream URL 2025-07-15 18:12:46 +02:00
202959dd9e Amend Upstream URL 2025-07-15 18:05:11 +02:00
53fc2ed8fb Amend Upstream URL 2025-07-15 17:51:54 +02:00
dfac93e1ff Amend Upstream URL 2025-07-15 17:51:02 +02:00
fc95c3fdfd Amend CORS and NGINX 2025-07-15 17:33:39 +02:00
8c9d38de35 Add missing item in Dockerfile 2025-07-15 16:21:19 +02:00
10d5edced9 Add missing item in Dockerfile 2025-07-15 16:18:48 +02:00
855996486b Bump version 2025-07-15 16:15:45 +02:00
9148bb3463 Amend CORS 2025-07-15 16:15:10 +02:00
edeffa7012 Bump version 2025-07-15 14:56:59 +02:00
3d244e5e83 Bump version 2025-07-15 14:53:59 +02:00
05f9255ef0 Amend API path 2025-07-15 14:53:43 +02:00
c942450e86 Amend API path 2025-07-15 14:45:22 +02:00
00759473f2 Correct Docker build CI/CD 2025-07-15 14:11:45 +02:00
d9acd72d7b Fix Dockerization 2025-07-15 14:09:42 +02:00
2639a5301a Add latest tag 2025-07-15 11:34:17 +02:00
460b7aee72 Add latest tag 2025-07-15 11:31:59 +02:00
3c393a1e0b Bump version 2025-07-15 11:27:03 +02:00
0189b0db15 Add Docker CI/CD 2025-07-15 11:18:30 +02:00
78b8c60329 Add Docker CI/CD 2025-07-15 11:11:39 +02:00
48bbc03a91 Add Docker CI/CD 2025-07-15 11:10:35 +02:00
d493800226 Add Docker CI/CD 2025-07-15 11:06:04 +02:00
55622d7a4d Add Docker CI/CD 2025-07-15 11:04:32 +02:00
79814b18b1 Amend dynamic imports 2025-07-15 11:04:21 +02:00
bb114f16e0 Amend Job logic 2025-07-14 23:01:22 +02:00
50009b7e61 Implement CardFilterPanel 2025-07-10 21:54:55 +02:00
54a4f7e08a Add OpenAPI 2025-07-05 22:32:52 +02:00
139 changed files with 9101 additions and 1076 deletions

6
.dockerignore Normal file
View File

@@ -0,0 +1,6 @@
.gitignore
openapitools.json
README.md
.vscode
.idea
.gitea

View 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
View File

@@ -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
View 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
View 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
View 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;"

View File

@@ -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
View 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;
}
}

View File

@@ -13,9 +13,8 @@
"apiPackage": "service",
"modelPackage": "model",
"withSeparateModelsAndApi": true,
"npmName": "restClient",
"supportsES6": "true",
"withInterfaces": true
"supportsES6": false,
"useSingleRequestParameter": true
}
}
}

893
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,31 +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",
"openapi-generator": "openapi-generator-cli generate -i http://localhost:8080/q/openapi --api-name-suffix 'Service' -g typescript-axios -o src/api/openpi -c openapi-generator-config.json"
"openapi-generator": "openapi-generator-cli generate"
},
"dependencies": {
"@primeuix/themes": "^1.0.3",
"@tailwindcss/vite": "^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",
"primevue": "^4.3.3",
"tailwindcss": "^4.1.5",
"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": {
"@openapitools/openapi-generator-cli": "^2.20.2",
"@vitejs/plugin-vue": "^5.2.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"
}
}

View File

@@ -0,0 +1,4 @@
window.__RUNTIME_CONFIG__ = {
API_HOST: "__API_HOST__",
API_PORT: "__API_PORT__"
};

View File

@@ -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>
<p>
<strong>Current route path:</strong> {{ $route.fullPath }}
</p>
<div class="flex w-full justify-between items-center">
<RouterLink to="/">Go to Home</RouterLink>
<RouterLink to="/foo">Go to Foo</RouterLink>
<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>
{{ authStore!.user!.profile.preferred_username}}
</p>
</div>
<Button
label="Logout"
icon="pi pi-user"
@click="authStore.logout()"
/>
</div>
<Button
v-else
label="Login"
icon="pi pi-user"
@click="authStore.login()"
/>
</div>
</div>
<main class="w-dvw">
<RouterView/>
</template>
</Menubar>
<main class="app-main w-full pt-[60px]">
<Toast/>
<RouterView/>
</main>
</template>
<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
View 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>;

View File

@@ -1,36 +1,79 @@
.gitignore
.npmignore
.openapi-generator-ignore
README.md
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/NewCard.md
docs/PageDeck.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/SetPrefix.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/new-card.ts
model/page-deck.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-prefix.ts
package.json
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
tsconfig.esm.json
tsconfig.json
service/job-service.ts
service/set-service.ts

View File

@@ -1,81 +0,0 @@
## restClient@0.0.1
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
Environment
* Node.js
* Webpack
* Browserify
Language level
* ES5 - you must have a Promises/A+ library installed
* ES6
Module system
* CommonJS
* ES6 module system
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
### Building
To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```
### Publishing
First build the package then run `npm publish`
### Consuming
navigate to the folder of your consuming project and run one of the following commands.
_published:_
```
npm install restClient@0.0.1 --save
```
_unPublished (not recommended):_
```
npm install PATH_TO_GENERATED_PACKAGE --save
```
### Documentation for API Endpoints
All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CardService* | [**apiCardsIdNewPut**](docs/CardService.md#apicardsidnewput) | **PUT** /api/cards/{id}/new | Test
*CardService* | [**getCardById**](docs/CardService.md#getcardbyid) | **GET** /api/cards/{id} | Get a singular Card by its ID
*CardService* | [**getCardImageById**](docs/CardService.md#getcardimagebyid) | **GET** /api/cards/{id}/image | Get the image of a Card by its ID
*CardService* | [**getCards**](docs/CardService.md#getcards) | **GET** /api/cards | Get a page of Cards with optional name query parameter
*DeckService* | [**addCardToDeck**](docs/DeckService.md#addcardtodeck) | **POST** /api/decks/{deckName}/{cardId} | Add a Card by its ID to a Deck by its name
*DeckService* | [**createDeck**](docs/DeckService.md#createdeck) | **POST** /api/decks | Create a Deck with a given name
*DeckService* | [**getDeckByName**](docs/DeckService.md#getdeckbyname) | **GET** /api/decks/{name} | Get a singular Deck by its name
*DeckService* | [**getDecks**](docs/DeckService.md#getdecks) | **GET** /api/decks | Get a page of Decks with optional name query parameter
### Documentation For Models
- [Card](docs/Card.md)
- [CardPrint](docs/CardPrint.md)
- [CardType](docs/CardType.md)
- [Deck](docs/Deck.md)
- [NewCard](docs/NewCard.md)
- [PageDeck](docs/PageDeck.md)
- [Region](docs/Region.md)
- [RegionalSet](docs/RegionalSet.md)
- [SetPrefix](docs/SetPrefix.md)
<a id="documentation-for-authorization"></a>
## Documentation For Authorization
Endpoints do not require authorization.

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,5 +15,8 @@
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';

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View 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)

View File

@@ -6,40 +6,48 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [optional] [default to undefined]
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
**description** | **string** | | [default to undefined]
**pendulumDescription** | **string** | | [optional] [default to undefined]
**defense** | **number** | | [optional] [default to undefined]
**attack** | **number** | | [optional] [default to undefined]
**health** | **number** | | [optional] [default to undefined]
**level** | **number** | | [optional] [default to undefined]
**linkValue** | **number** | | [optional] [default to undefined]
**name** | **string** | | [default to undefined]
**type** | **string** | | [default to undefined]
**frameType** | **string** | | [default to undefined]
**archetype** | **string** | | [optional] [default to undefined]
**race** | **string** | | [optional] [default to undefined]
**attribute** | **string** | | [optional] [default to undefined]
**cardPrints** | [**Array&lt;CardPrint&gt;**](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&lt;LinkArrow&gt;**](LinkArrow.md) | | [default to undefined]
**subTypes** | [**Set&lt;MonsterCardSubType&gt;**](MonsterCardSubType.md) | | [default to undefined]
## Example
```typescript
import { Card } from 'restClient';
import { Card } from './api';
const instance: Card = {
id,
cardType,
description,
pendulumDescription,
defense,
attack,
health,
level,
linkValue,
name,
cardPrints,
monsterEffect,
attack,
defense,
level,
isPendulum,
pendulumScale,
pendulumEffect,
linkValue,
type,
frameType,
archetype,
race,
monsterType,
attribute,
linkArrows,
subTypes,
};
```

View 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&lt;CardType&gt;**](CardType.md) | | [optional] [default to undefined]
**monsterCardTypes** | [**Array&lt;MonsterCardType&gt;**](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&lt;LinkArrow&gt;**](LinkArrow.md) | | [optional] [default to undefined]
**monsterCardSubTypes** | [**Array&lt;MonsterCardSubType&gt;**](MonsterCardSubType.md) | | [optional] [default to undefined]
**attributes** | [**Array&lt;Attribute&gt;**](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)

View File

@@ -5,21 +5,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [optional] [default to undefined]
**regionalSet** | [**RegionalSet**](RegionalSet.md) | | [default to undefined]
**card** | [**NewCard**](NewCard.md) | | [default to undefined]
**imageApiPath** | **string** | | [default to undefined]
**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 'restClient';
import { CardPrint } from './api';
const instance: CardPrint = {
id,
regionalSet,
card,
imageApiPath,
name,
regionalName,
rarity,
};
```

View 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)

View File

@@ -4,13 +4,13 @@ All URIs are relative to *http://localhost*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**apiCardsIdNewPut**](#apicardsidnewput) | **PUT** /api/cards/{id}/new | Test|
|[**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|
|[**getCards**](#getcards) | **GET** /api/cards | Get a page of Cards with optional name query parameter|
|[**getCardPage**](#getcardpage) | **GET** /api/cards | Get a page of Cards with optional name query parameter|
# **apiCardsIdNewPut**
> apiCardsIdNewPut()
# **fetchUpstream**
> Array<Card> fetchUpstream(cardUpstreamFetchRequest)
### Example
@@ -18,16 +18,17 @@ All URIs are relative to *http://localhost*
```typescript
import {
CardService,
Configuration
} from 'restClient';
Configuration,
CardUpstreamFetchRequest
} from './api';
const configuration = new Configuration();
const apiInstance = new CardService(configuration);
let id: number; // (default to undefined)
let cardUpstreamFetchRequest: CardUpstreamFetchRequest; //
const { status, data } = await apiInstance.apiCardsIdNewPut(
id
const { status, data } = await apiInstance.fetchUpstream(
cardUpstreamFetchRequest
);
```
@@ -35,12 +36,12 @@ const { status, data } = await apiInstance.apiCardsIdNewPut(
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | | defaults to undefined|
| **cardUpstreamFetchRequest** | **CardUpstreamFetchRequest**| | |
### Return type
void (empty response body)
**Array<Card>**
### Authorization
@@ -48,19 +49,20 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | No Content | - |
|**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**
> NewCard getCardById()
> Card getCardById()
### Example
@@ -69,7 +71,7 @@ No authorization required
import {
CardService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new CardService(configuration);
@@ -90,7 +92,7 @@ const { status, data } = await apiInstance.getCardById(
### Return type
**NewCard**
**Card**
### Authorization
@@ -120,7 +122,7 @@ No authorization required
import {
CardService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new CardService(configuration);
@@ -161,8 +163,8 @@ No authorization required
[[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)
# **getCards**
> Array<Card> getCards()
# **getCardPage**
> PageCardDto getCardPage()
### Example
@@ -171,19 +173,65 @@ No authorization required
import {
CardService,
Configuration
} from 'restClient';
} 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.getCards(
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
pageSize,
pendulumScale,
pendulumScaleMax,
pendulumScaleMin,
spellCardType,
trapCardType
);
```
@@ -191,14 +239,37 @@ const { status, data } = await apiInstance.getCards(
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **attack** | [**number**] | | (optional) defaults to undefined|
| **attackMax** | [**number**] | | (optional) defaults to undefined|
| **attackMin** | [**number**] | | (optional) defaults to undefined|
| **attributes** | **Array&lt;Attribute&gt;** | | (optional) defaults to undefined|
| **cardTypes** | **Array&lt;CardType&gt;** | | (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&lt;LinkArrow&gt;** | | (optional) defaults to undefined|
| **linkValue** | [**number**] | | (optional) defaults to undefined|
| **linkValueMax** | [**number**] | | (optional) defaults to undefined|
| **linkValueMin** | [**number**] | | (optional) defaults to undefined|
| **monsterCardSubTypes** | **Array&lt;MonsterCardSubType&gt;** | | (optional) defaults to undefined|
| **monsterCardTypes** | **Array&lt;MonsterCardType&gt;** | | (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
**Array<Card>**
**PageCardDto**
### Authorization

View File

@@ -0,0 +1,26 @@
# CardUpstreamFetchRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**services** | **Array&lt;string&gt;** | | [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)

View File

@@ -7,17 +7,17 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [optional] [default to undefined]
**name** | **string** | | [default to undefined]
**cards** | **{ [key: string]: number; }** | | [default to undefined]
**prints** | [**Set&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
## Example
```typescript
import { Deck } from 'restClient';
import { Deck } from './api';
const instance: Deck = {
id,
name,
cards,
prints,
};
```

View 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)

View File

@@ -19,7 +19,7 @@ All URIs are relative to *http://localhost*
import {
DeckService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new DeckService(configuration);
@@ -64,7 +64,7 @@ No authorization required
[[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(deck)
> createDeck(deckCreateRequest)
### Example
@@ -73,16 +73,16 @@ No authorization required
import {
DeckService,
Configuration,
Deck
} from 'restClient';
DeckCreateRequest
} from './api';
const configuration = new Configuration();
const apiInstance = new DeckService(configuration);
let deck: Deck; //
let deckCreateRequest: DeckCreateRequest; //
const { status, data } = await apiInstance.createDeck(
deck
deckCreateRequest
);
```
@@ -90,7 +90,7 @@ const { status, data } = await apiInstance.createDeck(
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **deck** | **Deck**| | |
| **deckCreateRequest** | **DeckCreateRequest**| | |
### Return type
@@ -125,7 +125,7 @@ No authorization required
import {
DeckService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new DeckService(configuration);
@@ -167,7 +167,7 @@ No authorization required
[[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**
> PageDeck getDecks()
> PageDeckDto getDecks()
### Example
@@ -176,7 +176,7 @@ No authorization required
import {
DeckService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new DeckService(configuration);
@@ -203,7 +203,7 @@ const { status, data } = await apiInstance.getDecks(
### Return type
**PageDeck**
**PageDeckDto**
### Authorization

View 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)

View 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&lt;number&gt;** | | [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)

View 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)

View 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)

View 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)

View 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)

View 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&lt;CardPrint&gt;**](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&lt;LinkArrow&gt;**](LinkArrow.md) | | [default to undefined]
**subTypes** | [**Set&lt;MonsterCardSubType&gt;**](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)

View 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)

View 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)

View 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)

View 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)

View File

@@ -1,25 +1,28 @@
# PageDeck
# Page
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;Deck&gt;**](Deck.md) | | [default to undefined]
**content** | **Array&lt;any&gt;** | 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 { PageDeck } from 'restClient';
import { Page } from './api';
const instance: PageDeck = {
const instance: Page = {
content,
page,
pageSize,
totalPages,
totalRecords,
};
```

View File

@@ -0,0 +1,29 @@
# PageCardDto
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;Card&gt;**](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)

View File

@@ -0,0 +1,29 @@
# PageCardPrintDto
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;CardPrint&gt;**](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)

View File

@@ -0,0 +1,29 @@
# PageDeckDto
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;Deck&gt;**](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)

View File

@@ -0,0 +1,29 @@
# PageJobDto
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;JobDto&gt;**](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)

View File

@@ -0,0 +1,29 @@
# PageSetDto
Page of items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | [**Array&lt;SetDto&gt;**](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)

View File

@@ -1,24 +1,34 @@
# Region
## Properties
## Enum
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [default to undefined]
**name** | **string** | | [default to undefined]
**regionalSets** | [**Set&lt;RegionalSet&gt;**](RegionalSet.md) | | [default to undefined]
* `AsianEnglish` (value: `'ASIAN_ENGLISH'`)
## Example
* `Japanese` (value: `'JAPANESE'`)
```typescript
import { Region } from 'restClient';
* `JapaneseAsian` (value: `'JAPANESE_ASIAN'`)
const instance: Region = {
id,
name,
regionalSets,
};
```
* `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)

View 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)

View File

@@ -5,15 +5,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [default to undefined]
**prefix** | [**SetPrefix**](SetPrefix.md) | | [default to undefined]
**region** | [**Region**](Region.md) | | [default to undefined]
**cardPrints** | [**Set&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
**id** | **number** | | [optional] [default to undefined]
**prefix** | **string** | | [default to undefined]
**region** | **string** | | [default to undefined]
**cardPrints** | [**Array&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
## Example
```typescript
import { RegionalSet } from 'restClient';
import { RegionalSet } from './api';
const instance: RegionalSet = {
id,

View 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)

View File

@@ -5,19 +5,17 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **number** | | [default to undefined]
**id** | **number** | | [optional] [default to undefined]
**name** | **string** | | [default to undefined]
**regionalSets** | [**Set&lt;RegionalSet&gt;**](RegionalSet.md) | | [default to undefined]
## Example
```typescript
import { SetPrefix } from 'restClient';
import { SetPrefix } from './api';
const instance: SetPrefix = {
id,
name,
regionalSets,
};
```

View 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)

View 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&lt;CardPrint&gt;**](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)

View 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)

View File

@@ -1,4 +1,4 @@
# NewCard
# TrapCard
## Properties
@@ -9,19 +9,21 @@ Name | Type | Description | Notes
**cardType** | [**CardType**](CardType.md) | | [default to undefined]
**description** | **string** | | [default to undefined]
**name** | **string** | | [default to undefined]
**cardPrints** | [**Set&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
**cardPrints** | [**Array&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
**type** | [**TrapCardType**](TrapCardType.md) | | [default to undefined]
## Example
```typescript
import { NewCard } from 'restClient';
import { TrapCard } from './api';
const instance: NewCard = {
const instance: TrapCard = {
id,
cardType,
description,
name,
cardPrints,
type,
};
```

View 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)

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View 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;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,12 +13,6 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { NewCard } from './new-card';
// May contain unused imports in some cases
// @ts-ignore
import type { RegionalSet } from './regional-set';
/**
*
@@ -28,27 +22,27 @@ import type { RegionalSet } from './regional-set';
export interface CardPrint {
/**
*
* @type {number}
* @type {string}
* @memberof CardPrint
*/
'id'?: number;
/**
*
* @type {RegionalSet}
* @memberof CardPrint
*/
'regionalSet': RegionalSet;
/**
*
* @type {NewCard}
* @memberof CardPrint
*/
'card': NewCard;
'id': string;
/**
*
* @type {string}
* @memberof CardPrint
*/
'imageApiPath': string;
'name': string;
/**
*
* @type {string}
* @memberof CardPrint
*/
'regionalName'?: string | null;
/**
*
* @type {string}
* @memberof CardPrint
*/
'rarity': string;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@@ -0,0 +1,48 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,96 +13,41 @@
*/
// 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
* @interface Card
*/
export interface Card {
/**
*
* @type {number}
* @memberof Card
*/
'id'?: number;
/**
*
* @type {string}
* @memberof Card
*/
'description': string;
/**
*
* @type {string}
* @memberof Card
*/
'pendulumDescription'?: string | null;
/**
*
* @type {number}
* @memberof Card
*/
'defense'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'attack'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'health'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'level'?: number | null;
/**
*
* @type {number}
* @memberof Card
*/
'linkValue'?: number | null;
/**
*
* @type {string}
* @memberof Card
*/
'name': string;
/**
*
* @type {string}
* @memberof Card
*/
'type': string;
/**
*
* @type {string}
* @memberof Card
*/
'frameType': string;
/**
*
* @type {string}
* @memberof Card
*/
'archetype'?: string | null;
/**
*
* @type {string}
* @memberof Card
*/
'race'?: string | null;
/**
*
* @type {string}
* @memberof Card
*/
'attribute'?: string | null;
}
export type Card = MonsterCard | SpellCard | TrapCard;

View File

@@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,9 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
/**
*
@@ -34,9 +37,9 @@ export interface Deck {
'name': string;
/**
*
* @type {{ [key: string]: number; }}
* @type {Set<CardPrint>}
* @memberof Deck
*/
'cards': { [key: string]: number; };
'prints': Set<CardPrint>;
}

View File

@@ -1,9 +1,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 './new-card';
export * from './page-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-prefix';
export * from './set-dto';
export * from './spell-card';
export * from './spell-card-type';
export * from './trap-card';
export * from './trap-card-type';

View File

@@ -0,0 +1,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;
}

View File

@@ -0,0 +1,33 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,32 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,37 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @enum {string}
*/
export const 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];

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View 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>;
}

View File

@@ -0,0 +1,55 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,34 +18,40 @@
import type { Deck } from './deck';
/**
*
* Page of items
* @export
* @interface PageDeck
* @interface PageDeckDto
*/
export interface PageDeck {
export interface PageDeckDto {
/**
*
* Items in the page
* @type {Array<Deck>}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'content': Array<Deck>;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'page'?: number;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'pageSize'?: number;
/**
*
* @type {number}
* @memberof PageDeck
* @memberof PageDeckDto
*/
'totalPages'?: number;
/**
*
* @type {number}
* @memberof PageDeckDto
*/
'totalRecords'?: number | null;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -0,0 +1,54 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -0,0 +1,47 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,33 +13,31 @@
*/
// May contain unused imports in some cases
// @ts-ignore
import type { RegionalSet } from './regional-set';
/**
*
* @export
* @interface Region
* @enum {string}
*/
export interface Region {
/**
*
* @type {number}
* @memberof Region
*/
'id': number;
/**
*
* @type {string}
* @memberof Region
*/
'name': string;
/**
*
* @type {Set<RegionalSet>}
* @memberof Region
*/
'regionalSets': Set<RegionalSet>;
}
export const Region = {
AsianEnglish: 'ASIAN_ENGLISH',
Japanese: 'JAPANESE',
JapaneseAsian: 'JAPANESE_ASIAN',
English: 'ENGLISH',
EuropeanEnglish: 'EUROPEAN_ENGLISH',
Korean: 'KOREAN',
French: 'FRENCH',
FrenchCanadian: 'FRENCH_CANADIAN',
NaEnglish: 'NA_ENGLISH',
Oceanic: 'OCEANIC',
German: 'GERMAN',
Portuguese: 'PORTUGUESE',
Italian: 'ITALIAN',
Spanish: 'SPANISH'
} as const;
export type Region = typeof Region[keyof typeof Region];

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,12 +16,6 @@
// May contain unused imports in some cases
// @ts-ignore
import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { Region } from './region';
// May contain unused imports in some cases
// @ts-ignore
import type { SetPrefix } from './set-prefix';
/**
*
@@ -34,24 +28,24 @@ export interface RegionalSet {
* @type {number}
* @memberof RegionalSet
*/
'id': number;
'id'?: number;
/**
*
* @type {SetPrefix}
* @type {string}
* @memberof RegionalSet
*/
'prefix': SetPrefix;
'prefix': string;
/**
*
* @type {Region}
* @type {string}
* @memberof RegionalSet
*/
'region': Region;
'region': string;
/**
*
* @type {Set<CardPrint>}
* @type {Array<CardPrint>}
* @memberof RegionalSet
*/
'cardPrints': Set<CardPrint>;
'cardPrints': Array<CardPrint>;
}

View File

@@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

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

View File

@@ -0,0 +1,35 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -0,0 +1,71 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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;
}

View File

@@ -0,0 +1,32 @@
/* tslint:disable */
/* eslint-disable */
/**
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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];

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,43 +19,52 @@ import type { CardPrint } from './card-print';
// May contain unused imports in some cases
// @ts-ignore
import type { CardType } from './card-type';
// May contain unused imports in some cases
// @ts-ignore
import type { TrapCardType } from './trap-card-type';
/**
*
* @export
* @interface NewCard
* @interface TrapCard
*/
export interface NewCard {
export interface TrapCard {
/**
*
* @type {number}
* @memberof NewCard
* @memberof TrapCard
*/
'id'?: number;
/**
*
* @type {CardType}
* @memberof NewCard
* @memberof TrapCard
*/
'cardType': CardType;
/**
*
* @type {string}
* @memberof NewCard
* @memberof TrapCard
*/
'description': string;
/**
*
* @type {string}
* @memberof NewCard
* @memberof TrapCard
*/
'name': string;
/**
*
* @type {Set<CardPrint>}
* @memberof NewCard
* @type {Array<CardPrint>}
* @memberof TrapCard
*/
'cardPrints': Set<CardPrint>;
'cardPrints': Array<CardPrint>;
/**
*
* @type {TrapCardType}
* @memberof TrapCard
*/
'type': TrapCardType;
}

View File

@@ -1,33 +0,0 @@
{
"name": "restClient",
"version": "0.0.1",
"description": "OpenAPI client for restClient",
"author": "OpenAPI-Generator Contributors",
"repository": {
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
},
"keywords": [
"axios",
"typescript",
"openapi-client",
"openapi-generator",
"restClient"
],
"license": "Unlicense",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "npm run build"
},
"dependencies": {
"axios": "^1.6.1"
},
"devDependencies": {
"@types/node": "12.11.5 - 12.20.42",
"typescript": "^4.0 || ^5.0"
}
}

View 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));
}
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,25 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
// @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 { NewCard } from '../model';
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
@@ -33,16 +49,15 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
return {
/**
*
* @summary Test
* @param {number} id
* @summary Fetch Cards by ID or Name from any upstream service
* @param {CardUpstreamFetchRequest} cardUpstreamFetchRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCardsIdNewPut: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('apiCardsIdNewPut', 'id', id)
const localVarPath = `/api/cards/{id}/new`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
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;
@@ -50,15 +65,18 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
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),
@@ -136,13 +154,36 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
/**
*
* @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}
*/
getCards: async (name?: string | null, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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);
@@ -155,6 +196,78 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
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;
}
@@ -167,6 +280,26 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
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);
@@ -190,15 +323,15 @@ export const CardServiceFp = function(configuration?: Configuration) {
return {
/**
*
* @summary Test
* @param {number} id
* @summary Fetch Cards by ID or Name from any upstream service
* @param {CardUpstreamFetchRequest} cardUpstreamFetchRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.apiCardsIdNewPut(id, options);
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.apiCardsIdNewPut']?.[localVarOperationServerIndex]?.url;
const localVarOperationServerBasePath = operationServerMap['CardService.fetchUpstream']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
@@ -208,7 +341,7 @@ export const CardServiceFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NewCard>> {
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;
@@ -230,16 +363,39 @@ export const CardServiceFp = function(configuration?: Configuration) {
/**
*
* @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 getCards(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Card>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCards(name, page, pageSize, options);
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.getCards']?.[localVarOperationServerIndex]?.url;
const localVarOperationServerBasePath = operationServerMap['CardService.getCardPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
}
@@ -254,97 +410,276 @@ export const CardServiceFactory = function (configuration?: Configuration, baseP
return {
/**
*
* @summary Test
* @param {number} id
* @summary Fetch Cards by ID or Name from any upstream service
* @param {CardServiceFetchUpstreamRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.apiCardsIdNewPut(id, options).then((request) => request(axios, basePath));
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 {number} id
* @param {CardServiceGetCardByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NewCard> {
return localVarFp.getCardById(id, options).then((request) => request(axios, basePath));
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 {number} id
* @param {CardServiceGetCardImageByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardImageById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
return localVarFp.getCardImageById(id, options).then((request) => request(axios, basePath));
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 {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {CardServiceGetCardPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCards(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>> {
return localVarFp.getCards(name, page, pageSize, options).then((request) => request(axios, basePath));
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));
},
};
};
/**
* CardService - interface
* Request parameters for fetchUpstream operation in CardService.
* @export
* @interface CardService
* @interface CardServiceFetchUpstreamRequest
*/
export interface CardServiceInterface {
export interface CardServiceFetchUpstreamRequest {
/**
*
* @summary Test
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardServiceInterface
* @type {CardUpstreamFetchRequest}
* @memberof CardServiceFetchUpstream
*/
apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
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
/**
*
* @summary Get a singular Card by its ID
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardServiceInterface
* @type {number}
* @memberof CardServiceGetCardPage
*/
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NewCard>;
readonly attackMax?: number | null
/**
*
* @summary Get the image of a Card by its ID
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardServiceInterface
* @type {number}
* @memberof CardServiceGetCardPage
*/
getCardImageById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
readonly attackMin?: number | null
/**
*
* @summary Get a page of Cards with optional name query parameter
* @param {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardServiceInterface
* @type {Array<Attribute>}
* @memberof CardServiceGetCardPage
*/
getCards(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>>;
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
}
/**
@@ -353,55 +688,53 @@ export interface CardServiceInterface {
* @class CardService
* @extends {BaseAPI}
*/
export class CardService extends BaseAPI implements CardServiceInterface {
export class CardService extends BaseAPI {
/**
*
* @summary Test
* @param {number} id
* @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 apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).apiCardsIdNewPut(id, options).then((request) => request(this.axios, this.basePath));
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 {number} id
* @param {CardServiceGetCardByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardService
*/
public getCardById(id: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).getCardById(id, options).then((request) => request(this.axios, this.basePath));
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 {number} id
* @param {CardServiceGetCardImageByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardService
*/
public getCardImageById(id: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).getCardImageById(id, options).then((request) => request(this.axios, this.basePath));
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 {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {CardServiceGetCardPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CardService
*/
public getCards(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).getCards(name, page, pageSize, options).then((request) => request(this.axios, this.basePath));
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));
}
}

View File

@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,7 +24,9 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
// @ts-ignore
import type { Deck } from '../model';
// @ts-ignore
import type { PageDeck } from '../model';
import type { DeckCreateRequest } from '../model';
// @ts-ignore
import type { PageDeckDto } from '../model';
/**
* DeckService - axios parameter creator
* @export
@@ -72,13 +74,13 @@ export const DeckServiceAxiosParamCreator = function (configuration?: Configurat
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {DeckCreateRequest} deckCreateRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createDeck: async (deck: Deck, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'deck' is not null or undefined
assertParamExists('createDeck', 'deck', deck)
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);
@@ -98,7 +100,7 @@ export const DeckServiceAxiosParamCreator = function (configuration?: Configurat
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(deck, localVarRequestOptions, configuration)
localVarRequestOptions.data = serializeDataIfNeeded(deckCreateRequest, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -211,12 +213,12 @@ export const DeckServiceFp = function(configuration?: Configuration) {
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {DeckCreateRequest} deckCreateRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createDeck(deck: Deck, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeck(deck, options);
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);
@@ -243,7 +245,7 @@ export const DeckServiceFp = function(configuration?: Configuration) {
* @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<PageDeck>> {
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;
@@ -262,98 +264,121 @@ export const DeckServiceFactory = function (configuration?: Configuration, baseP
/**
*
* @summary Add a Card by its ID to a Deck by its name
* @param {number} cardId
* @param {string} deckName
* @param {DeckServiceAddCardToDeckRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
addCardToDeck(cardId: number, deckName: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.addCardToDeck(cardId, deckName, options).then((request) => request(axios, basePath));
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 {Deck} deck
* @param {DeckServiceCreateDeckRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createDeck(deck: Deck, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.createDeck(deck, options).then((request) => request(axios, basePath));
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 {string} name
* @param {DeckServiceGetDeckByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getDeckByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise<Deck> {
return localVarFp.getDeckByName(name, options).then((request) => request(axios, basePath));
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 {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {DeckServiceGetDecksRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeck> {
return localVarFp.getDecks(name, page, pageSize, options).then((request) => request(axios, basePath));
getDecks(requestParameters: DeckServiceGetDecksRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageDeckDto> {
return localVarFp.getDecks(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
};
};
/**
* DeckService - interface
* Request parameters for addCardToDeck operation in DeckService.
* @export
* @interface DeckService
* @interface DeckServiceAddCardToDeckRequest
*/
export interface DeckServiceInterface {
export interface DeckServiceAddCardToDeckRequest {
/**
*
* @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}
* @memberof DeckServiceInterface
* @type {number}
* @memberof DeckServiceAddCardToDeck
*/
addCardToDeck(cardId: number, deckName: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
readonly cardId: number
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckServiceInterface
* @type {string}
* @memberof DeckServiceAddCardToDeck
*/
createDeck(deck: Deck, options?: RawAxiosRequestConfig): AxiosPromise<void>;
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
/**
*
* @summary Get a singular Deck by its name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckServiceInterface
* @type {number}
* @memberof DeckServiceGetDecks
*/
getDeckByName(name: string, options?: RawAxiosRequestConfig): AxiosPromise<Deck>;
readonly page?: number
/**
*
* @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}
* @memberof DeckServiceInterface
* @type {number}
* @memberof DeckServiceGetDecks
*/
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeck>;
readonly pageSize?: number
}
/**
@@ -362,56 +387,53 @@ export interface DeckServiceInterface {
* @class DeckService
* @extends {BaseAPI}
*/
export class DeckService extends BaseAPI implements DeckServiceInterface {
export class DeckService extends BaseAPI {
/**
*
* @summary Add a Card by its ID to a Deck by its name
* @param {number} cardId
* @param {string} deckName
* @param {DeckServiceAddCardToDeckRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckService
*/
public addCardToDeck(cardId: number, deckName: string, options?: RawAxiosRequestConfig) {
return DeckServiceFp(this.configuration).addCardToDeck(cardId, deckName, options).then((request) => request(this.axios, this.basePath));
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 {Deck} deck
* @param {DeckServiceCreateDeckRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckService
*/
public createDeck(deck: Deck, options?: RawAxiosRequestConfig) {
return DeckServiceFp(this.configuration).createDeck(deck, options).then((request) => request(this.axios, this.basePath));
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 {string} name
* @param {DeckServiceGetDeckByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckService
*/
public getDeckByName(name: string, options?: RawAxiosRequestConfig) {
return DeckServiceFp(this.configuration).getDeckByName(name, options).then((request) => request(this.axios, this.basePath));
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 {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {DeckServiceGetDecksRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckService
*/
public getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
return DeckServiceFp(this.configuration).getDecks(name, page, pageSize, options).then((request) => request(this.axios, this.basePath));
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));
}
}

View 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));
}
}

View File

@@ -0,0 +1,666 @@
/* 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 { JobDto } from '../model';
// @ts-ignore
import type { PageJobDto } from '../model';
/**
* JobService - axios parameter creator
* @export
*/
export const JobServiceAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Get status of all Jobs
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAllJobs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/jobs`;
// 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 all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/jobs/cardPrintImports`;
// 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 (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,
};
},
/**
*
* @summary Get status of CardPrintImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintImportJobStatusById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getCardPrintImportJobStatusById', 'id', id)
const localVarPath = `/api/jobs/cardPrintImport/{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 a page of all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/jobs/cardSetImports`;
// 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 (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,
};
},
/**
*
* @summary Get status of CardSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetImportJobStatusById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getCardSetImportJobStatusById', 'id', id)
const localVarPath = `/api/jobs/cardSetImport/{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 a page of all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getRegionalSetImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/jobs/regionalSetImports`;
// 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 (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,
};
},
/**
*
* @summary Get status of RegionalSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getRegionalSetImportJobStatusById: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getRegionalSetImportJobStatusById', 'id', id)
const localVarPath = `/api/jobs/regionalSetImport/{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,
};
},
}
};
/**
* JobService - functional programming interface
* @export
*/
export const JobServiceFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = JobServiceAxiosParamCreator(configuration)
return {
/**
*
* @summary Get status of all Jobs
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getAllJobs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<JobDto>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobs(options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getAllJobs']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardPrintImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPrintImportJobPage(page, pageSize, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get status of CardPrintImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardPrintImportJobStatusById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPrintImportJobStatusById(id, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobStatusById']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardSetImportJobPage(page, pageSize, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get status of CardSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardSetImportJobStatusById(id, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobStatusById']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getRegionalSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionalSetImportJobPage(page, pageSize, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getRegionalSetImportJobPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get status of RegionalSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getRegionalSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionalSetImportJobStatusById(id, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['JobService.getRegionalSetImportJobStatusById']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
}
};
/**
* JobService - factory interface
* @export
*/
export const JobServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = JobServiceFp(configuration)
return {
/**
*
* @summary Get status of all Jobs
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getAllJobs(options?: RawAxiosRequestConfig): AxiosPromise<Array<JobDto>> {
return localVarFp.getAllJobs(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetCardPrintImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintImportJobPage(requestParameters: JobServiceGetCardPrintImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
return localVarFp.getCardPrintImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get status of CardPrintImportJob
* @param {JobServiceGetCardPrintImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintImportJobStatusById(requestParameters: JobServiceGetCardPrintImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetCardSetImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetImportJobPage(requestParameters: JobServiceGetCardSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
return localVarFp.getCardSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get status of CardSetImportJob
* @param {JobServiceGetCardSetImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetImportJobStatusById(requestParameters: JobServiceGetCardSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetRegionalSetImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getRegionalSetImportJobPage(requestParameters: JobServiceGetRegionalSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
return localVarFp.getRegionalSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get status of RegionalSetImportJob
* @param {JobServiceGetRegionalSetImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getRegionalSetImportJobStatusById(requestParameters: JobServiceGetRegionalSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getRegionalSetImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for getCardPrintImportJobPage operation in JobService.
* @export
* @interface JobServiceGetCardPrintImportJobPageRequest
*/
export interface JobServiceGetCardPrintImportJobPageRequest {
/**
*
* @type {number}
* @memberof JobServiceGetCardPrintImportJobPage
*/
readonly page?: number
/**
*
* @type {number}
* @memberof JobServiceGetCardPrintImportJobPage
*/
readonly pageSize?: number
}
/**
* Request parameters for getCardPrintImportJobStatusById operation in JobService.
* @export
* @interface JobServiceGetCardPrintImportJobStatusByIdRequest
*/
export interface JobServiceGetCardPrintImportJobStatusByIdRequest {
/**
*
* @type {number}
* @memberof JobServiceGetCardPrintImportJobStatusById
*/
readonly id: number
}
/**
* Request parameters for getCardSetImportJobPage operation in JobService.
* @export
* @interface JobServiceGetCardSetImportJobPageRequest
*/
export interface JobServiceGetCardSetImportJobPageRequest {
/**
*
* @type {number}
* @memberof JobServiceGetCardSetImportJobPage
*/
readonly page?: number
/**
*
* @type {number}
* @memberof JobServiceGetCardSetImportJobPage
*/
readonly pageSize?: number
}
/**
* Request parameters for getCardSetImportJobStatusById operation in JobService.
* @export
* @interface JobServiceGetCardSetImportJobStatusByIdRequest
*/
export interface JobServiceGetCardSetImportJobStatusByIdRequest {
/**
*
* @type {number}
* @memberof JobServiceGetCardSetImportJobStatusById
*/
readonly id: number
}
/**
* Request parameters for getRegionalSetImportJobPage operation in JobService.
* @export
* @interface JobServiceGetRegionalSetImportJobPageRequest
*/
export interface JobServiceGetRegionalSetImportJobPageRequest {
/**
*
* @type {number}
* @memberof JobServiceGetRegionalSetImportJobPage
*/
readonly page?: number
/**
*
* @type {number}
* @memberof JobServiceGetRegionalSetImportJobPage
*/
readonly pageSize?: number
}
/**
* Request parameters for getRegionalSetImportJobStatusById operation in JobService.
* @export
* @interface JobServiceGetRegionalSetImportJobStatusByIdRequest
*/
export interface JobServiceGetRegionalSetImportJobStatusByIdRequest {
/**
*
* @type {number}
* @memberof JobServiceGetRegionalSetImportJobStatusById
*/
readonly id: number
}
/**
* JobService - object-oriented interface
* @export
* @class JobService
* @extends {BaseAPI}
*/
export class JobService extends BaseAPI {
/**
*
* @summary Get status of all Jobs
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getAllJobs(options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getAllJobs(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetCardPrintImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardPrintImportJobPage(requestParameters: JobServiceGetCardPrintImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardPrintImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get status of CardPrintImportJob
* @param {JobServiceGetCardPrintImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardPrintImportJobStatusById(requestParameters: JobServiceGetCardPrintImportJobStatusByIdRequest, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetCardSetImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardSetImportJobPage(requestParameters: JobServiceGetCardSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get status of CardSetImportJob
* @param {JobServiceGetCardSetImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardSetImportJobStatusById(requestParameters: JobServiceGetCardSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get a page of all CardSetImportJobs
* @param {JobServiceGetRegionalSetImportJobPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getRegionalSetImportJobPage(requestParameters: JobServiceGetRegionalSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getRegionalSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get status of RegionalSetImportJob
* @param {JobServiceGetRegionalSetImportJobStatusByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getRegionalSetImportJobStatusById(requestParameters: JobServiceGetRegionalSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getRegionalSetImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@@ -0,0 +1,423 @@
/* 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 { PageSetDto } from '../model';
// @ts-ignore
import type { SetDto } from '../model';
/**
* SetService - axios parameter creator
* @export
*/
export const SetServiceAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Find Set By Name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameGet: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists('apiSetsNameGet', 'name', name)
const localVarPath = `/api/sets/{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 Fetch And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameNewGet: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists('apiSetsNameNewGet', 'name', name)
const localVarPath = `/api/sets/{name}/new`
.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 Card Sets with optional name query parameter
* @param {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetPage: async (name?: string | null, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/sets`;
// 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,
};
},
/**
*
* @summary Scrape a CardSet via name query parameter
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scrapeSetByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists('scrapeSetByName', 'name', name)
const localVarPath = `/api/sets/{name}/scrape`
.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,
};
},
}
};
/**
* SetService - functional programming interface
* @export
*/
export const SetServiceFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = SetServiceAxiosParamCreator(configuration)
return {
/**
*
* @summary Find Set By Name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiSetsNameGet(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.apiSetsNameGet(name, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetService.apiSetsNameGet']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Fetch And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiSetsNameNewGet(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SetDto>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.apiSetsNameNewGet(name, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetService.apiSetsNameNewGet']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Get a page of Card Sets with optional name query parameter
* @param {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCardSetPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageSetDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardSetPage(name, page, pageSize, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetService.getCardSetPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Scrape a CardSet via name query parameter
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async scrapeSetByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.scrapeSetByName(name, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetService.scrapeSetByName']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
}
};
/**
* SetService - factory interface
* @export
*/
export const SetServiceFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = SetServiceFp(configuration)
return {
/**
*
* @summary Find Set By Name
* @param {SetServiceApiSetsNameGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameGet(requestParameters: SetServiceApiSetsNameGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetDto> {
return localVarFp.apiSetsNameGet(requestParameters.name, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Fetch And Persist From Upstream
* @param {SetServiceApiSetsNameNewGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameNewGet(requestParameters: SetServiceApiSetsNameNewGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SetDto>> {
return localVarFp.apiSetsNameNewGet(requestParameters.name, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get a page of Card Sets with optional name query parameter
* @param {SetServiceGetCardSetPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetPage(requestParameters: SetServiceGetCardSetPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageSetDto> {
return localVarFp.getCardSetPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Scrape a CardSet via name query parameter
* @param {SetServiceScrapeSetByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scrapeSetByName(requestParameters: SetServiceScrapeSetByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.scrapeSetByName(requestParameters.name, options).then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for apiSetsNameGet operation in SetService.
* @export
* @interface SetServiceApiSetsNameGetRequest
*/
export interface SetServiceApiSetsNameGetRequest {
/**
*
* @type {string}
* @memberof SetServiceApiSetsNameGet
*/
readonly name: string
}
/**
* Request parameters for apiSetsNameNewGet operation in SetService.
* @export
* @interface SetServiceApiSetsNameNewGetRequest
*/
export interface SetServiceApiSetsNameNewGetRequest {
/**
*
* @type {string}
* @memberof SetServiceApiSetsNameNewGet
*/
readonly name: string
}
/**
* Request parameters for getCardSetPage operation in SetService.
* @export
* @interface SetServiceGetCardSetPageRequest
*/
export interface SetServiceGetCardSetPageRequest {
/**
*
* @type {string}
* @memberof SetServiceGetCardSetPage
*/
readonly name?: string | null
/**
*
* @type {number}
* @memberof SetServiceGetCardSetPage
*/
readonly page?: number
/**
*
* @type {number}
* @memberof SetServiceGetCardSetPage
*/
readonly pageSize?: number
}
/**
* Request parameters for scrapeSetByName operation in SetService.
* @export
* @interface SetServiceScrapeSetByNameRequest
*/
export interface SetServiceScrapeSetByNameRequest {
/**
*
* @type {string}
* @memberof SetServiceScrapeSetByName
*/
readonly name: string
}
/**
* SetService - object-oriented interface
* @export
* @class SetService
* @extends {BaseAPI}
*/
export class SetService extends BaseAPI {
/**
*
* @summary Find Set By Name
* @param {SetServiceApiSetsNameGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public apiSetsNameGet(requestParameters: SetServiceApiSetsNameGetRequest, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).apiSetsNameGet(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Fetch And Persist From Upstream
* @param {SetServiceApiSetsNameNewGetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public apiSetsNameNewGet(requestParameters: SetServiceApiSetsNameNewGetRequest, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).apiSetsNameNewGet(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get a page of Card Sets with optional name query parameter
* @param {SetServiceGetCardSetPageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public getCardSetPage(requestParameters: SetServiceGetCardSetPageRequest = {}, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).getCardSetPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Scrape a CardSet via name query parameter
* @param {SetServiceScrapeSetByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public scrapeSetByName(requestParameters: SetServiceScrapeSetByNameRequest, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).scrapeSetByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@@ -1,7 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "esnext",
"outDir": "dist/esm"
}
}

View File

@@ -1,18 +0,0 @@
{
"compilerOptions": {
"declaration": true,
"target": "ES6",
"module": "commonjs",
"noImplicitAny": true,
"outDir": "dist",
"rootDir": ".",
"moduleResolution": "node",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"dist",
"node_modules"
]
}

Some files were not shown because too many files have changed in this diff Show More