Add OpenAPI

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

27
src/api/index.ts Normal file
View File

@@ -0,0 +1,27 @@
import axios from "axios";
import {userManager} from "../stores/auth.ts";
const axiosInstance = axios.create({
baseURL: import.meta.env.VITE_API_URL || 'http://localhost:8080'
})
axiosInstance.interceptors.request.use(async (config) => {
const user = await userManager.getUser()
if (user?.access_token) {
config.headers.Authorization = `Bearer ${user.access_token}`
}
return config
})
// Handle token expiration
axiosInstance.interceptors.response.use(
response => response,
async (error) => {
if (error.response?.status === 401) {
await userManager.signinRedirect()
}
return Promise.reject(error)
}
)
export default axiosInstance;

View File

@@ -1,36 +1,71 @@
.gitignore
.npmignore
.openapi-generator-ignore
README.md
api.ts
base.ts
common.ts
configuration.ts
docs/Attribute.md
docs/Card.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/LinkArrow.md
docs/MonsterCard.md
docs/MonsterCardType.md
docs/MonsterType.md
docs/Page.md
docs/PageCardDto.md
docs/PageCardPrintDto.md
docs/PageDeckDto.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-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/link-arrow.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-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

@@ -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

@@ -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,46 @@
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** | [**Set&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]
**subType** | [**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]
## Example
```typescript
import { Card } from 'restClient';
import { Card } from './api';
const instance: Card = {
id,
cardType,
description,
pendulumDescription,
defense,
attack,
health,
level,
linkValue,
name,
type,
frameType,
archetype,
race,
cardPrints,
monsterEffect,
attack,
defense,
level,
isPendulum,
pendulumScale,
pendulumEffect,
linkValue,
subType,
monsterType,
attribute,
linkArrows,
};
```

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,7 +173,7 @@ No authorization required
import {
CardService,
Configuration
} from 'restClient';
} from './api';
const configuration = new Configuration();
const apiInstance = new CardService(configuration);
@@ -180,7 +182,7 @@ 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.getCards(
const { status, data } = await apiInstance.getCardPage(
name,
page,
pageSize
@@ -198,7 +200,7 @@ const { status, data } = await apiInstance.getCards(
### 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,30 @@
# JobDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **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]
**status** | [**JobStatus**](JobStatus.md) | | [default to undefined]
## Example
```typescript
import { JobDto } from './api';
const instance: JobDto = {
id,
pendingJobs,
processingJobs,
completedJobs,
failedJobs,
status,
};
```
[[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,160 @@
# JobService
All URIs are relative to *http://localhost*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getCardPrintImportJobStatusById**](#getcardprintimportjobstatusbyid) | **GET** /api/jobs/cardPrintImport/{id} | Get status of CardPrintImportJob|
|[**getCardSetImportJobStatusById**](#getcardsetimportjobstatusbyid) | **GET** /api/jobs/cardSetImport/{id} | Get status of CardSetImportJob|
|[**getRegionalSetImportJobStatusById**](#getregionalsetimportjobstatusbyid) | **GET** /api/jobs/regionalSetImport/{id} | Get status of RegionalSetImportJob|
# **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)
# **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)
# **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,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,52 @@
# 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** | [**Set&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]
**subType** | [**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]
## Example
```typescript
import { MonsterCard } from './api';
const instance: MonsterCard = {
id,
cardType,
description,
name,
cardPrints,
monsterEffect,
attack,
defense,
level,
isPendulum,
pendulumScale,
pendulumEffect,
linkValue,
subType,
monsterType,
attribute,
linkArrows,
};
```
[[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 @@
# 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|
|[**apiSetsNameScrapeGet**](#apisetsnamescrapeget) | **GET** /api/sets/{name}/scrape | Scrape And Persist From Upstream|
|[**getCardSetPage**](#getcardsetpage) | **GET** /api/sets | Get a page of Card Sets with optional 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)
# **apiSetsNameScrapeGet**
> apiSetsNameScrapeGet()
### 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.apiSetsNameScrapeGet(
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)
# **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)

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** | [**Set&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
**subType** | [**SpellCardType**](SpellCardType.md) | | [default to undefined]
## Example
```typescript
import { SpellCard } from './api';
const instance: SpellCard = {
id,
cardType,
description,
name,
cardPrints,
subType,
};
```
[[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
@@ -10,18 +10,20 @@ Name | Type | Description | Notes
**description** | **string** | | [default to undefined]
**name** | **string** | | [default to undefined]
**cardPrints** | [**Set&lt;CardPrint&gt;**](CardPrint.md) | | [default to undefined]
**subType** | [**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,
subType,
};
```

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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,168 @@
/* 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';
// @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 {string | null} [name]
* @param {number} [page]
* @param {number} [pageSize]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageCardPrintDto> {
return localVarFp.getCardPrintPage(name, page, pageSize, options).then((request) => request(axios, basePath));
},
};
};
/**
* CardPrintService - interface
* @export
* @interface CardPrintService
*/
export interface CardPrintServiceInterface {
/**
*
* @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}
* @memberof CardPrintServiceInterface
*/
getCardPrintPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageCardPrintDto>;
}
/**
* CardPrintService - object-oriented interface
* @export
* @class CardPrintService
* @extends {BaseAPI}
*/
export class CardPrintService extends BaseAPI implements CardPrintServiceInterface {
/**
*
* @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}
* @memberof CardPrintService
*/
public getCardPrintPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
return CardPrintServiceFp(this.configuration).getCardPrintPage(name, page, pageSize, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@@ -24,7 +24,9 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
// @ts-ignore
import type { Card } from '../model';
// @ts-ignore
import type { NewCard } from '../model';
import type { CardUpstreamFetchRequest } from '../model';
// @ts-ignore
import type { PageCardDto } from '../model';
/**
* CardService - axios parameter creator
* @export
@@ -33,16 +35,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 +51,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),
@@ -142,7 +146,7 @@ export const CardServiceAxiosParamCreator = function (configuration?: Configurat
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCards: async (name?: string | null, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
getCardPage: async (name?: string | null, page?: number, pageSize?: number, 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);
@@ -190,15 +194,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 +212,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;
@@ -236,10 +240,10 @@ export const CardServiceFp = function(configuration?: Configuration) {
* @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(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageCardDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPage(name, page, pageSize, 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,13 +258,13 @@ 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 {CardUpstreamFetchRequest} cardUpstreamFetchRequest
* @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(cardUpstreamFetchRequest: CardUpstreamFetchRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>> {
return localVarFp.fetchUpstream(cardUpstreamFetchRequest, options).then((request) => request(axios, basePath));
},
/**
*
@@ -269,7 +273,7 @@ export const CardServiceFactory = function (configuration?: Configuration, baseP
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NewCard> {
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Card> {
return localVarFp.getCardById(id, options).then((request) => request(axios, basePath));
},
/**
@@ -291,8 +295,8 @@ export const CardServiceFactory = function (configuration?: Configuration, baseP
* @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(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageCardDto> {
return localVarFp.getCardPage(name, page, pageSize, options).then((request) => request(axios, basePath));
},
};
};
@@ -305,13 +309,13 @@ export const CardServiceFactory = function (configuration?: Configuration, baseP
export interface CardServiceInterface {
/**
*
* @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}
* @memberof CardServiceInterface
*/
apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
fetchUpstream(cardUpstreamFetchRequest: CardUpstreamFetchRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>>;
/**
*
@@ -321,7 +325,7 @@ export interface CardServiceInterface {
* @throws {RequiredError}
* @memberof CardServiceInterface
*/
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NewCard>;
getCardById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Card>;
/**
*
@@ -343,7 +347,7 @@ export interface CardServiceInterface {
* @throws {RequiredError}
* @memberof CardServiceInterface
*/
getCards(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Card>>;
getCardPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageCardDto>;
}
@@ -356,14 +360,14 @@ export interface CardServiceInterface {
export class CardService extends BaseAPI implements CardServiceInterface {
/**
*
* @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}
* @memberof CardService
*/
public apiCardsIdNewPut(id: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).apiCardsIdNewPut(id, options).then((request) => request(this.axios, this.basePath));
public fetchUpstream(cardUpstreamFetchRequest: CardUpstreamFetchRequest, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).fetchUpstream(cardUpstreamFetchRequest, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -400,8 +404,8 @@ export class CardService extends BaseAPI implements CardServiceInterface {
* @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(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
return CardServiceFp(this.configuration).getCardPage(name, page, pageSize, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@@ -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;
@@ -273,12 +275,12 @@ export const DeckServiceFactory = function (configuration?: Configuration, baseP
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {DeckCreateRequest} deckCreateRequest
* @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(deckCreateRequest: DeckCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.createDeck(deckCreateRequest, options).then((request) => request(axios, basePath));
},
/**
*
@@ -299,7 +301,7 @@ export const DeckServiceFactory = function (configuration?: Configuration, baseP
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeck> {
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeckDto> {
return localVarFp.getDecks(name, page, pageSize, options).then((request) => request(axios, basePath));
},
};
@@ -325,12 +327,12 @@ export interface DeckServiceInterface {
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {DeckCreateRequest} deckCreateRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DeckServiceInterface
*/
createDeck(deck: Deck, options?: RawAxiosRequestConfig): AxiosPromise<void>;
createDeck(deckCreateRequest: DeckCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
/**
*
@@ -352,7 +354,7 @@ export interface DeckServiceInterface {
* @throws {RequiredError}
* @memberof DeckServiceInterface
*/
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeck>;
getDecks(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageDeckDto>;
}
@@ -379,13 +381,13 @@ export class DeckService extends BaseAPI implements DeckServiceInterface {
/**
*
* @summary Create a Deck with a given name
* @param {Deck} deck
* @param {DeckCreateRequest} deckCreateRequest
* @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(deckCreateRequest: DeckCreateRequest, options?: RawAxiosRequestConfig) {
return DeckServiceFp(this.configuration).createDeck(deckCreateRequest, 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,307 @@
/* 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';
// @ts-ignore
import type { JobDto } from '../model';
/**
* JobService - axios parameter creator
* @export
*/
export const JobServiceAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @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 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 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 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 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 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 CardPrintImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardPrintImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getCardPrintImportJobStatusById(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get status of CardSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCardSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getCardSetImportJobStatusById(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get status of RegionalSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getRegionalSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
return localVarFp.getRegionalSetImportJobStatusById(id, options).then((request) => request(axios, basePath));
},
};
};
/**
* JobService - interface
* @export
* @interface JobService
*/
export interface JobServiceInterface {
/**
*
* @summary Get status of CardPrintImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobServiceInterface
*/
getCardPrintImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto>;
/**
*
* @summary Get status of CardSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobServiceInterface
*/
getCardSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto>;
/**
*
* @summary Get status of RegionalSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobServiceInterface
*/
getRegionalSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<JobDto>;
}
/**
* JobService - object-oriented interface
* @export
* @class JobService
* @extends {BaseAPI}
*/
export class JobService extends BaseAPI implements JobServiceInterface {
/**
*
* @summary Get status of CardPrintImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardPrintImportJobStatusById(id: number, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardPrintImportJobStatusById(id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get status of CardSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getCardSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getCardSetImportJobStatusById(id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get status of RegionalSetImportJob
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof JobService
*/
public getRegionalSetImportJobStatusById(id: number, options?: RawAxiosRequestConfig) {
return JobServiceFp(this.configuration).getRegionalSetImportJobStatusById(id, options).then((request) => request(this.axios, this.basePath));
}
}

View File

@@ -0,0 +1,407 @@
/* 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';
// @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 Scrape And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameScrapeGet: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists('apiSetsNameScrapeGet', '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,
};
},
/**
*
* @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,
};
},
}
};
/**
* 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 Scrape And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async apiSetsNameScrapeGet(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.apiSetsNameScrapeGet(name, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetService.apiSetsNameScrapeGet']?.[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);
},
}
};
/**
* 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 {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<SetDto> {
return localVarFp.apiSetsNameGet(name, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Fetch And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameNewGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SetDto>> {
return localVarFp.apiSetsNameNewGet(name, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Scrape And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiSetsNameScrapeGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.apiSetsNameScrapeGet(name, options).then((request) => request(axios, 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}
*/
getCardSetPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageSetDto> {
return localVarFp.getCardSetPage(name, page, pageSize, options).then((request) => request(axios, basePath));
},
};
};
/**
* SetService - interface
* @export
* @interface SetService
*/
export interface SetServiceInterface {
/**
*
* @summary Find Set By Name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetServiceInterface
*/
apiSetsNameGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<SetDto>;
/**
*
* @summary Fetch And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetServiceInterface
*/
apiSetsNameNewGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SetDto>>;
/**
*
* @summary Scrape And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetServiceInterface
*/
apiSetsNameScrapeGet(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
/**
*
* @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}
* @memberof SetServiceInterface
*/
getCardSetPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<PageSetDto>;
}
/**
* SetService - object-oriented interface
* @export
* @class SetService
* @extends {BaseAPI}
*/
export class SetService extends BaseAPI implements SetServiceInterface {
/**
*
* @summary Find Set By Name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public apiSetsNameGet(name: string, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).apiSetsNameGet(name, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Fetch And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public apiSetsNameNewGet(name: string, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).apiSetsNameNewGet(name, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Scrape And Persist From Upstream
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetService
*/
public apiSetsNameScrapeGet(name: string, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).apiSetsNameScrapeGet(name, options).then((request) => request(this.axios, this.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}
* @memberof SetService
*/
public getCardSetPage(name?: string | null, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).getCardSetPage(name, page, pageSize, 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"
]
}