Amend Job logic
This commit is contained in:
@@ -18,6 +18,7 @@ docs/DeckService.md
|
|||||||
docs/JobDto.md
|
docs/JobDto.md
|
||||||
docs/JobService.md
|
docs/JobService.md
|
||||||
docs/JobStatus.md
|
docs/JobStatus.md
|
||||||
|
docs/JobType.md
|
||||||
docs/LinkArrow.md
|
docs/LinkArrow.md
|
||||||
docs/MonsterCard.md
|
docs/MonsterCard.md
|
||||||
docs/MonsterCardSubType.md
|
docs/MonsterCardSubType.md
|
||||||
@@ -27,6 +28,7 @@ docs/Page.md
|
|||||||
docs/PageCardDto.md
|
docs/PageCardDto.md
|
||||||
docs/PageCardPrintDto.md
|
docs/PageCardPrintDto.md
|
||||||
docs/PageDeckDto.md
|
docs/PageDeckDto.md
|
||||||
|
docs/PageJobDto.md
|
||||||
docs/PageSetDto.md
|
docs/PageSetDto.md
|
||||||
docs/Region.md
|
docs/Region.md
|
||||||
docs/RegionCodeAlias.md
|
docs/RegionCodeAlias.md
|
||||||
@@ -50,6 +52,7 @@ model/deck.ts
|
|||||||
model/index.ts
|
model/index.ts
|
||||||
model/job-dto.ts
|
model/job-dto.ts
|
||||||
model/job-status.ts
|
model/job-status.ts
|
||||||
|
model/job-type.ts
|
||||||
model/link-arrow.ts
|
model/link-arrow.ts
|
||||||
model/monster-card-sub-type.ts
|
model/monster-card-sub-type.ts
|
||||||
model/monster-card-type.ts
|
model/monster-card-type.ts
|
||||||
@@ -58,6 +61,7 @@ model/monster-type.ts
|
|||||||
model/page-card-dto.ts
|
model/page-card-dto.ts
|
||||||
model/page-card-print-dto.ts
|
model/page-card-print-dto.ts
|
||||||
model/page-deck-dto.ts
|
model/page-deck-dto.ts
|
||||||
|
model/page-job-dto.ts
|
||||||
model/page-set-dto.ts
|
model/page-set-dto.ts
|
||||||
model/page.ts
|
model/page.ts
|
||||||
model/region-code-alias.ts
|
model/region-code-alias.ts
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ Name | Type | Description | Notes
|
|||||||
**processingJobs** | **number** | | [optional] [default to undefined]
|
**processingJobs** | **number** | | [optional] [default to undefined]
|
||||||
**completedJobs** | **number** | | [optional] [default to undefined]
|
**completedJobs** | **number** | | [optional] [default to undefined]
|
||||||
**failedJobs** | **number** | | [optional] [default to undefined]
|
**failedJobs** | **number** | | [optional] [default to undefined]
|
||||||
|
**childrenIds** | **Array<number>** | | [optional] [default to undefined]
|
||||||
**attempts** | **number** | | [optional] [default to undefined]
|
**attempts** | **number** | | [optional] [default to undefined]
|
||||||
**status** | [**JobStatus**](JobStatus.md) | | [default to undefined]
|
**status** | [**JobStatus**](JobStatus.md) | | [default to undefined]
|
||||||
|
**type** | [**JobType**](JobType.md) | | [default to undefined]
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
@@ -26,8 +28,10 @@ const instance: JobDto = {
|
|||||||
processingJobs,
|
processingJobs,
|
||||||
completedJobs,
|
completedJobs,
|
||||||
failedJobs,
|
failedJobs,
|
||||||
|
childrenIds,
|
||||||
attempts,
|
attempts,
|
||||||
status,
|
status,
|
||||||
|
type,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,11 @@ All URIs are relative to *http://localhost*
|
|||||||
|Method | HTTP request | Description|
|
|Method | HTTP request | Description|
|
||||||
|------------- | ------------- | -------------|
|
|------------- | ------------- | -------------|
|
||||||
|[**getAllJobs**](#getalljobs) | **GET** /api/jobs | Get status of all Jobs|
|
|[**getAllJobs**](#getalljobs) | **GET** /api/jobs | Get status of all Jobs|
|
||||||
|
|[**getCardPrintImportJobPage**](#getcardprintimportjobpage) | **GET** /api/jobs/cardPrintImports | Get a page of all CardSetImportJobs|
|
||||||
|[**getCardPrintImportJobStatusById**](#getcardprintimportjobstatusbyid) | **GET** /api/jobs/cardPrintImport/{id} | Get status of CardPrintImportJob|
|
|[**getCardPrintImportJobStatusById**](#getcardprintimportjobstatusbyid) | **GET** /api/jobs/cardPrintImport/{id} | Get status of CardPrintImportJob|
|
||||||
|
|[**getCardSetImportJobPage**](#getcardsetimportjobpage) | **GET** /api/jobs/cardSetImports | Get a page of all CardSetImportJobs|
|
||||||
|[**getCardSetImportJobStatusById**](#getcardsetimportjobstatusbyid) | **GET** /api/jobs/cardSetImport/{id} | Get status of CardSetImportJob|
|
|[**getCardSetImportJobStatusById**](#getcardsetimportjobstatusbyid) | **GET** /api/jobs/cardSetImport/{id} | Get status of CardSetImportJob|
|
||||||
|
|[**getRegionalSetImportJobPage**](#getregionalsetimportjobpage) | **GET** /api/jobs/regionalSetImports | Get a page of all CardSetImportJobs|
|
||||||
|[**getRegionalSetImportJobStatusById**](#getregionalsetimportjobstatusbyid) | **GET** /api/jobs/regionalSetImport/{id} | Get status of RegionalSetImportJob|
|
|[**getRegionalSetImportJobStatusById**](#getregionalsetimportjobstatusbyid) | **GET** /api/jobs/regionalSetImport/{id} | Get status of RegionalSetImportJob|
|
||||||
|
|
||||||
# **getAllJobs**
|
# **getAllJobs**
|
||||||
@@ -45,6 +48,59 @@ No authorization required
|
|||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
|**200** | OK | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getCardPrintImportJobPage**
|
||||||
|
> PageJobDto getCardPrintImportJobPage()
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
JobService,
|
||||||
|
Configuration
|
||||||
|
} from './api';
|
||||||
|
|
||||||
|
const configuration = new Configuration();
|
||||||
|
const apiInstance = new JobService(configuration);
|
||||||
|
|
||||||
|
let page: number; // (optional) (default to undefined)
|
||||||
|
let pageSize: number; // (optional) (default to undefined)
|
||||||
|
|
||||||
|
const { status, data } = await apiInstance.getCardPrintImportJobPage(
|
||||||
|
page,
|
||||||
|
pageSize
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name | Type | Description | Notes|
|
||||||
|
|------------- | ------------- | ------------- | -------------|
|
||||||
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**PageJobDto**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
@@ -95,6 +151,59 @@ No authorization required
|
|||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
|**200** | OK | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getCardSetImportJobPage**
|
||||||
|
> PageJobDto getCardSetImportJobPage()
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
JobService,
|
||||||
|
Configuration
|
||||||
|
} from './api';
|
||||||
|
|
||||||
|
const configuration = new Configuration();
|
||||||
|
const apiInstance = new JobService(configuration);
|
||||||
|
|
||||||
|
let page: number; // (optional) (default to undefined)
|
||||||
|
let pageSize: number; // (optional) (default to undefined)
|
||||||
|
|
||||||
|
const { status, data } = await apiInstance.getCardSetImportJobPage(
|
||||||
|
page,
|
||||||
|
pageSize
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name | Type | Description | Notes|
|
||||||
|
|------------- | ------------- | ------------- | -------------|
|
||||||
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**PageJobDto**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
@@ -145,6 +254,59 @@ No authorization required
|
|||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
|**200** | OK | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getRegionalSetImportJobPage**
|
||||||
|
> PageJobDto getRegionalSetImportJobPage()
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
JobService,
|
||||||
|
Configuration
|
||||||
|
} from './api';
|
||||||
|
|
||||||
|
const configuration = new Configuration();
|
||||||
|
const apiInstance = new JobService(configuration);
|
||||||
|
|
||||||
|
let page: number; // (optional) (default to undefined)
|
||||||
|
let pageSize: number; // (optional) (default to undefined)
|
||||||
|
|
||||||
|
const { status, data } = await apiInstance.getRegionalSetImportJobPage(
|
||||||
|
page,
|
||||||
|
pageSize
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name | Type | Description | Notes|
|
||||||
|
|------------- | ------------- | ------------- | -------------|
|
||||||
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**PageJobDto**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
|
|||||||
12
src/api/openapi/docs/JobType.md
Normal file
12
src/api/openapi/docs/JobType.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# JobType
|
||||||
|
|
||||||
|
|
||||||
|
## Enum
|
||||||
|
|
||||||
|
* `CardSet` (value: `'CARD_SET'`)
|
||||||
|
|
||||||
|
* `RegionalSet` (value: `'REGIONAL_SET'`)
|
||||||
|
|
||||||
|
* `CardPrint` (value: `'CARD_PRINT'`)
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
29
src/api/openapi/docs/PageJobDto.md
Normal file
29
src/api/openapi/docs/PageJobDto.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# PageJobDto
|
||||||
|
|
||||||
|
Page of items
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**content** | [**Array<JobDto>**](JobDto.md) | Items in the page | [default to undefined]
|
||||||
|
**page** | **number** | | [optional] [default to undefined]
|
||||||
|
**pageSize** | **number** | | [optional] [default to undefined]
|
||||||
|
**totalPages** | **number** | | [optional] [default to undefined]
|
||||||
|
**totalRecords** | **number** | | [optional] [default to undefined]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { PageJobDto } from './api';
|
||||||
|
|
||||||
|
const instance: PageJobDto = {
|
||||||
|
content,
|
||||||
|
page,
|
||||||
|
pageSize,
|
||||||
|
totalPages,
|
||||||
|
totalRecords,
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
@@ -8,6 +8,7 @@ export * from './deck';
|
|||||||
export * from './deck-create-request';
|
export * from './deck-create-request';
|
||||||
export * from './job-dto';
|
export * from './job-dto';
|
||||||
export * from './job-status';
|
export * from './job-status';
|
||||||
|
export * from './job-type';
|
||||||
export * from './link-arrow';
|
export * from './link-arrow';
|
||||||
export * from './monster-card';
|
export * from './monster-card';
|
||||||
export * from './monster-card-sub-type';
|
export * from './monster-card-sub-type';
|
||||||
@@ -17,6 +18,7 @@ export * from './page';
|
|||||||
export * from './page-card-dto';
|
export * from './page-card-dto';
|
||||||
export * from './page-card-print-dto';
|
export * from './page-card-print-dto';
|
||||||
export * from './page-deck-dto';
|
export * from './page-deck-dto';
|
||||||
|
export * from './page-job-dto';
|
||||||
export * from './page-set-dto';
|
export * from './page-set-dto';
|
||||||
export * from './region';
|
export * from './region';
|
||||||
export * from './region-code-alias';
|
export * from './region-code-alias';
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
// May contain unused imports in some cases
|
// May contain unused imports in some cases
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import type { JobStatus } from './job-status';
|
import type { JobStatus } from './job-status';
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
|
import type { JobType } from './job-type';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -59,6 +62,12 @@ export interface JobDto {
|
|||||||
* @memberof JobDto
|
* @memberof JobDto
|
||||||
*/
|
*/
|
||||||
'failedJobs'?: number | null;
|
'failedJobs'?: number | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {Array<number>}
|
||||||
|
* @memberof JobDto
|
||||||
|
*/
|
||||||
|
'childrenIds'?: Array<number> | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@@ -71,6 +80,12 @@ export interface JobDto {
|
|||||||
* @memberof JobDto
|
* @memberof JobDto
|
||||||
*/
|
*/
|
||||||
'status': JobStatus;
|
'status': JobStatus;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {JobType}
|
||||||
|
* @memberof JobDto
|
||||||
|
*/
|
||||||
|
'type': JobType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
32
src/api/openapi/model/job-type.ts
Normal file
32
src/api/openapi/model/job-type.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* dex API
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.0.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 JobType = {
|
||||||
|
CardSet: 'CARD_SET',
|
||||||
|
RegionalSet: 'REGIONAL_SET',
|
||||||
|
CardPrint: 'CARD_PRINT'
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export type JobType = typeof JobType[keyof typeof JobType];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
57
src/api/openapi/model/page-job-dto.ts
Normal file
57
src/api/openapi/model/page-job-dto.ts
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* dex API
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 0.0.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 { JobDto } from './job-dto';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Page of items
|
||||||
|
* @export
|
||||||
|
* @interface PageJobDto
|
||||||
|
*/
|
||||||
|
export interface PageJobDto {
|
||||||
|
/**
|
||||||
|
* Items in the page
|
||||||
|
* @type {Array<JobDto>}
|
||||||
|
* @memberof PageJobDto
|
||||||
|
*/
|
||||||
|
'content': Array<JobDto>;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof PageJobDto
|
||||||
|
*/
|
||||||
|
'page'?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof PageJobDto
|
||||||
|
*/
|
||||||
|
'pageSize'?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof PageJobDto
|
||||||
|
*/
|
||||||
|
'totalPages'?: number;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof PageJobDto
|
||||||
|
*/
|
||||||
|
'totalRecords'?: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -23,6 +23,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|||||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import type { JobDto } from '../model';
|
import type { JobDto } from '../model';
|
||||||
|
// @ts-ignore
|
||||||
|
import type { PageJobDto } from '../model';
|
||||||
/**
|
/**
|
||||||
* JobService - axios parameter creator
|
* JobService - axios parameter creator
|
||||||
* @export
|
* @export
|
||||||
@@ -50,6 +52,46 @@ export const JobServiceAxiosParamCreator = function (configuration?: Configurati
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCardPrintImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/jobs/cardPrintImports`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
if (page !== undefined) {
|
||||||
|
localVarQueryParameter['page'] = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pageSize !== undefined) {
|
||||||
|
localVarQueryParameter['pageSize'] = pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
@@ -84,6 +126,46 @@ export const JobServiceAxiosParamCreator = function (configuration?: Configurati
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCardSetImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/jobs/cardSetImports`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
if (page !== undefined) {
|
||||||
|
localVarQueryParameter['page'] = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pageSize !== undefined) {
|
||||||
|
localVarQueryParameter['pageSize'] = pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
@@ -118,6 +200,46 @@ export const JobServiceAxiosParamCreator = function (configuration?: Configurati
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: toPathString(localVarUrlObj),
|
||||||
|
options: localVarRequestOptions,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getRegionalSetImportJobPage: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
const localVarPath = `/api/jobs/regionalSetImports`;
|
||||||
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
|
let baseOptions;
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||||
|
const localVarHeaderParameter = {} as any;
|
||||||
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
|
if (page !== undefined) {
|
||||||
|
localVarQueryParameter['page'] = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pageSize !== undefined) {
|
||||||
|
localVarQueryParameter['pageSize'] = pageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
@@ -183,6 +305,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
|||||||
const localVarOperationServerBasePath = operationServerMap['JobService.getAllJobs']?.[localVarOperationServerIndex]?.url;
|
const localVarOperationServerBasePath = operationServerMap['JobService.getAllJobs']?.[localVarOperationServerIndex]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getCardPrintImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPrintImportJobPage(page, pageSize, options);
|
||||||
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||||
|
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||||
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardPrintImportJob
|
* @summary Get status of CardPrintImportJob
|
||||||
@@ -196,6 +332,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
|||||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getCardSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardSetImportJobPage(page, pageSize, options);
|
||||||
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||||
|
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||||
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardSetImportJob
|
* @summary Get status of CardSetImportJob
|
||||||
@@ -209,6 +359,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
|||||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {number} [page]
|
||||||
|
* @param {number} [pageSize]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async getRegionalSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionalSetImportJobPage(page, pageSize, options);
|
||||||
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||||
|
const localVarOperationServerBasePath = operationServerMap['JobService.getRegionalSetImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||||
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of RegionalSetImportJob
|
* @summary Get status of RegionalSetImportJob
|
||||||
@@ -241,6 +405,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
|||||||
getAllJobs(options?: RawAxiosRequestConfig): AxiosPromise<Array<JobDto>> {
|
getAllJobs(options?: RawAxiosRequestConfig): AxiosPromise<Array<JobDto>> {
|
||||||
return localVarFp.getAllJobs(options).then((request) => request(axios, basePath));
|
return localVarFp.getAllJobs(options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetCardPrintImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCardPrintImportJobPage(requestParameters: JobServiceGetCardPrintImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||||
|
return localVarFp.getCardPrintImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardPrintImportJob
|
* @summary Get status of CardPrintImportJob
|
||||||
@@ -251,6 +425,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
|||||||
getCardPrintImportJobStatusById(requestParameters: JobServiceGetCardPrintImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
getCardPrintImportJobStatusById(requestParameters: JobServiceGetCardPrintImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
||||||
return localVarFp.getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
return localVarFp.getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetCardSetImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCardSetImportJobPage(requestParameters: JobServiceGetCardSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||||
|
return localVarFp.getCardSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardSetImportJob
|
* @summary Get status of CardSetImportJob
|
||||||
@@ -261,6 +445,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
|||||||
getCardSetImportJobStatusById(requestParameters: JobServiceGetCardSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
getCardSetImportJobStatusById(requestParameters: JobServiceGetCardSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
||||||
return localVarFp.getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
return localVarFp.getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetRegionalSetImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getRegionalSetImportJobPage(requestParameters: JobServiceGetRegionalSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||||
|
return localVarFp.getRegionalSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of RegionalSetImportJob
|
* @summary Get status of RegionalSetImportJob
|
||||||
@@ -274,6 +468,27 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request parameters for getCardPrintImportJobPage operation in JobService.
|
||||||
|
* @export
|
||||||
|
* @interface JobServiceGetCardPrintImportJobPageRequest
|
||||||
|
*/
|
||||||
|
export interface JobServiceGetCardPrintImportJobPageRequest {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetCardPrintImportJobPage
|
||||||
|
*/
|
||||||
|
readonly page?: number
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetCardPrintImportJobPage
|
||||||
|
*/
|
||||||
|
readonly pageSize?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getCardPrintImportJobStatusById operation in JobService.
|
* Request parameters for getCardPrintImportJobStatusById operation in JobService.
|
||||||
* @export
|
* @export
|
||||||
@@ -288,6 +503,27 @@ export interface JobServiceGetCardPrintImportJobStatusByIdRequest {
|
|||||||
readonly id: number
|
readonly id: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request parameters for getCardSetImportJobPage operation in JobService.
|
||||||
|
* @export
|
||||||
|
* @interface JobServiceGetCardSetImportJobPageRequest
|
||||||
|
*/
|
||||||
|
export interface JobServiceGetCardSetImportJobPageRequest {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetCardSetImportJobPage
|
||||||
|
*/
|
||||||
|
readonly page?: number
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetCardSetImportJobPage
|
||||||
|
*/
|
||||||
|
readonly pageSize?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getCardSetImportJobStatusById operation in JobService.
|
* Request parameters for getCardSetImportJobStatusById operation in JobService.
|
||||||
* @export
|
* @export
|
||||||
@@ -302,6 +538,27 @@ export interface JobServiceGetCardSetImportJobStatusByIdRequest {
|
|||||||
readonly id: number
|
readonly id: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request parameters for getRegionalSetImportJobPage operation in JobService.
|
||||||
|
* @export
|
||||||
|
* @interface JobServiceGetRegionalSetImportJobPageRequest
|
||||||
|
*/
|
||||||
|
export interface JobServiceGetRegionalSetImportJobPageRequest {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetRegionalSetImportJobPage
|
||||||
|
*/
|
||||||
|
readonly page?: number
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {number}
|
||||||
|
* @memberof JobServiceGetRegionalSetImportJobPage
|
||||||
|
*/
|
||||||
|
readonly pageSize?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getRegionalSetImportJobStatusById operation in JobService.
|
* Request parameters for getRegionalSetImportJobStatusById operation in JobService.
|
||||||
* @export
|
* @export
|
||||||
@@ -334,6 +591,18 @@ export class JobService extends BaseAPI {
|
|||||||
return JobServiceFp(this.configuration).getAllJobs(options).then((request) => request(this.axios, this.basePath));
|
return JobServiceFp(this.configuration).getAllJobs(options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetCardPrintImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof JobService
|
||||||
|
*/
|
||||||
|
public getCardPrintImportJobPage(requestParameters: JobServiceGetCardPrintImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
|
||||||
|
return JobServiceFp(this.configuration).getCardPrintImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardPrintImportJob
|
* @summary Get status of CardPrintImportJob
|
||||||
@@ -346,6 +615,18 @@ export class JobService extends BaseAPI {
|
|||||||
return JobServiceFp(this.configuration).getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
return JobServiceFp(this.configuration).getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetCardSetImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof JobService
|
||||||
|
*/
|
||||||
|
public getCardSetImportJobPage(requestParameters: JobServiceGetCardSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
|
||||||
|
return JobServiceFp(this.configuration).getCardSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of CardSetImportJob
|
* @summary Get status of CardSetImportJob
|
||||||
@@ -358,6 +639,18 @@ export class JobService extends BaseAPI {
|
|||||||
return JobServiceFp(this.configuration).getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
return JobServiceFp(this.configuration).getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary Get a page of all CardSetImportJobs
|
||||||
|
* @param {JobServiceGetRegionalSetImportJobPageRequest} requestParameters Request parameters.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof JobService
|
||||||
|
*/
|
||||||
|
public getRegionalSetImportJobPage(requestParameters: JobServiceGetRegionalSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig) {
|
||||||
|
return JobServiceFp(this.configuration).getRegionalSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary Get status of RegionalSetImportJob
|
* @summary Get status of RegionalSetImportJob
|
||||||
|
|||||||
@@ -36,7 +36,11 @@
|
|||||||
:options="cardTypes"
|
:options="cardTypes"
|
||||||
multiple
|
multiple
|
||||||
aria-labelledby="multiple"
|
aria-labelledby="multiple"
|
||||||
/>
|
>
|
||||||
|
<template #option="slotProps" class="">
|
||||||
|
<b>{{ slotProps.option }}</b>
|
||||||
|
</template>
|
||||||
|
</SelectButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Divider/>
|
<Divider/>
|
||||||
|
|||||||
@@ -1,27 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col gap-2 m-4">
|
<DataTable :value="jobs">
|
||||||
<div
|
<template #header>
|
||||||
class="w-96"
|
<div class="flex flex-wrap items-center justify-center gap-2">
|
||||||
v-for="job in jobs"
|
<SelectButton
|
||||||
>
|
:value="selectedJobType"
|
||||||
<Tag :severity="getJobSeverity(job)" :value="job.status"/>
|
:options="jobTypeOptions"
|
||||||
<ProgressBar :value="getCompletionPercentage(job)"/>
|
size="small"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
|
<Column field="id" header="ID"></Column>
|
||||||
|
<Column header="Type">
|
||||||
|
<template #body="slotProps">
|
||||||
|
<Tag value="TBD" :severity="getJobTypeSeverity(slotProps.data)" />
|
||||||
|
</template>
|
||||||
|
</Column>
|
||||||
|
<Column header="Status">
|
||||||
|
<template #body="slotProps">
|
||||||
|
<Tag :value="slotProps.data.status" :severity="getJobStatusSeverity(slotProps.data)" />
|
||||||
|
</template>
|
||||||
|
</Column>
|
||||||
|
<Column header="Status">
|
||||||
|
<template #body="slotProps">
|
||||||
|
<ProgressBar :value="getCompletionPercentage(slotProps.data)"/>
|
||||||
|
</template>
|
||||||
|
</Column>
|
||||||
|
</DataTable>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import {type JobDto, JobService} from "../api/openapi";
|
import {type JobDto, JobService, JobType} from "../api/openapi";
|
||||||
import {inject, onMounted, type Ref, ref} from "vue";
|
import {inject, onMounted, type Ref, ref} from "vue";
|
||||||
import {JobServiceKey} from "../main.ts";
|
import {JobServiceKey} from "../main.ts";
|
||||||
|
|
||||||
const jobService: JobService = inject(JobServiceKey) as JobService;
|
const jobService: JobService = inject(JobServiceKey) as JobService;
|
||||||
|
const page: Ref<number> = ref(0);
|
||||||
|
const pageSize: Ref<number> = ref(20);
|
||||||
|
|
||||||
const jobs: Ref<Array<JobDto>> = ref([])
|
const jobs: Ref<Array<JobDto>> = ref([])
|
||||||
|
const selectedJobType: Ref<JobType> = ref("CARD_SET")
|
||||||
|
const jobTypeOptions: Ref<JobType[]> = ref(
|
||||||
|
Object.values(JobType)
|
||||||
|
)
|
||||||
|
|
||||||
const getJobSeverity = (job: JobDto) => {
|
const getJobTypeSeverity = (job: JobDto) => {
|
||||||
|
return "primary"
|
||||||
|
}
|
||||||
|
|
||||||
|
const getJobStatusSeverity = (job: JobDto) => {
|
||||||
switch (job.status) {
|
switch (job.status) {
|
||||||
case "COMPLETED":
|
case "COMPLETED":
|
||||||
return "success";
|
return "success";
|
||||||
@@ -43,7 +70,11 @@ const getCompletionPercentage = (job: JobDto) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
jobs.value = (await jobService.getAllJobs()).data
|
jobs.value = (await jobService.getCardSetImportJobPage(
|
||||||
|
page.value,
|
||||||
|
pageSize.value
|
||||||
|
)).data.content
|
||||||
|
|
||||||
console.log(jobs.value)
|
console.log(jobs.value)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex w-full min-h-content">
|
<div class="flex w-full min-h-content">
|
||||||
<Panel class="min-w-content m-4">
|
<Panel class="w-full m-4">
|
||||||
<DataTable
|
<DataTable
|
||||||
class="my-4 ml-4 w-full"
|
class="my-4 ml-4 w-full"
|
||||||
tableStyle="min-width: 50rem"
|
tableStyle="min-width: 50rem"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:first="first"
|
:first="first"
|
||||||
:globalFilterFields="['name']"
|
:globalFilterFields="['name']"
|
||||||
:rows="5"
|
:rows="20"
|
||||||
:rowsPerPageOptions="[5, 10, 20, 50]"
|
:rowsPerPageOptions="[5, 10, 20, 50]"
|
||||||
:totalRecords="totalRecords"
|
:totalRecords="totalRecords"
|
||||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
||||||
@@ -72,7 +72,6 @@
|
|||||||
<template #expansion="slotProps">
|
<template #expansion="slotProps">
|
||||||
<CardListExpansion v-model="slotProps.data"/>
|
<CardListExpansion v-model="slotProps.data"/>
|
||||||
</template>
|
</template>
|
||||||
<template #footer> In total there are {{ cards ? cards.length : 0 }} cards. </template>
|
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user