Amend Job logic

This commit is contained in:
2025-07-14 23:01:22 +02:00
parent 50009b7e61
commit bb114f16e0
13 changed files with 661 additions and 17 deletions

View File

@@ -11,8 +11,10 @@ Name | Type | Description | Notes
**processingJobs** | **number** | | [optional] [default to undefined]
**completedJobs** | **number** | | [optional] [default to undefined]
**failedJobs** | **number** | | [optional] [default to undefined]
**childrenIds** | **Array<number>** | | [optional] [default to undefined]
**attempts** | **number** | | [optional] [default to undefined]
**status** | [**JobStatus**](JobStatus.md) | | [default to undefined]
**type** | [**JobType**](JobType.md) | | [default to undefined]
## Example
@@ -26,8 +28,10 @@ const instance: JobDto = {
processingJobs,
completedJobs,
failedJobs,
childrenIds,
attempts,
status,
type,
};
```

View File

@@ -5,8 +5,11 @@ All URIs are relative to *http://localhost*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getAllJobs**](#getalljobs) | **GET** /api/jobs | Get status of all Jobs|
|[**getCardPrintImportJobPage**](#getcardprintimportjobpage) | **GET** /api/jobs/cardPrintImports | Get a page of all CardSetImportJobs|
|[**getCardPrintImportJobStatusById**](#getcardprintimportjobstatusbyid) | **GET** /api/jobs/cardPrintImport/{id} | Get status of CardPrintImportJob|
|[**getCardSetImportJobPage**](#getcardsetimportjobpage) | **GET** /api/jobs/cardSetImports | Get a page of all CardSetImportJobs|
|[**getCardSetImportJobStatusById**](#getcardsetimportjobstatusbyid) | **GET** /api/jobs/cardSetImport/{id} | Get status of CardSetImportJob|
|[**getRegionalSetImportJobPage**](#getregionalsetimportjobpage) | **GET** /api/jobs/regionalSetImports | Get a page of all CardSetImportJobs|
|[**getRegionalSetImportJobStatusById**](#getregionalsetimportjobstatusbyid) | **GET** /api/jobs/regionalSetImport/{id} | Get status of RegionalSetImportJob|
# **getAllJobs**
@@ -45,6 +48,59 @@ No authorization required
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getCardPrintImportJobPage**
> PageJobDto getCardPrintImportJobPage()
### Example
```typescript
import {
JobService,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new JobService(configuration);
let page: number; // (optional) (default to undefined)
let pageSize: number; // (optional) (default to undefined)
const { status, data } = await apiInstance.getCardPrintImportJobPage(
page,
pageSize
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | | (optional) defaults to undefined|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
### Return type
**PageJobDto**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
@@ -95,6 +151,59 @@ No authorization required
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getCardSetImportJobPage**
> PageJobDto getCardSetImportJobPage()
### Example
```typescript
import {
JobService,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new JobService(configuration);
let page: number; // (optional) (default to undefined)
let pageSize: number; // (optional) (default to undefined)
const { status, data } = await apiInstance.getCardSetImportJobPage(
page,
pageSize
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | | (optional) defaults to undefined|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
### Return type
**PageJobDto**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
@@ -145,6 +254,59 @@ No authorization required
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getRegionalSetImportJobPage**
> PageJobDto getRegionalSetImportJobPage()
### Example
```typescript
import {
JobService,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new JobService(configuration);
let page: number; // (optional) (default to undefined)
let pageSize: number; // (optional) (default to undefined)
const { status, data } = await apiInstance.getRegionalSetImportJobPage(
page,
pageSize
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | | (optional) defaults to undefined|
| **pageSize** | [**number**] | | (optional) defaults to undefined|
### Return type
**PageJobDto**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|

View File

@@ -0,0 +1,12 @@
# JobType
## Enum
* `CardSet` (value: `'CARD_SET'`)
* `RegionalSet` (value: `'REGIONAL_SET'`)
* `CardPrint` (value: `'CARD_PRINT'`)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

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