Amend Job logic
This commit is contained in:
@@ -23,6 +23,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
||||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
||||
// @ts-ignore
|
||||
import type { JobDto } from '../model';
|
||||
// @ts-ignore
|
||||
import type { PageJobDto } from '../model';
|
||||
/**
|
||||
* JobService - axios parameter creator
|
||||
* @export
|
||||
@@ -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);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.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);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.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);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
@@ -183,6 +305,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getAllJobs']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardPrintImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardPrintImportJobPage(page, pageSize, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of CardPrintImportJob
|
||||
@@ -196,6 +332,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardPrintImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCardSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardSetImportJobPage(page, pageSize, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of CardSetImportJob
|
||||
@@ -209,6 +359,20 @@ export const JobServiceFp = function(configuration?: Configuration) {
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getCardSetImportJobStatusById']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {number} [page]
|
||||
* @param {number} [pageSize]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getRegionalSetImportJobPage(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageJobDto>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionalSetImportJobPage(page, pageSize, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['JobService.getRegionalSetImportJobPage']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of RegionalSetImportJob
|
||||
@@ -241,6 +405,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
||||
getAllJobs(options?: RawAxiosRequestConfig): AxiosPromise<Array<JobDto>> {
|
||||
return localVarFp.getAllJobs(options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {JobServiceGetCardPrintImportJobPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardPrintImportJobPage(requestParameters: JobServiceGetCardPrintImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||
return localVarFp.getCardPrintImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of CardPrintImportJob
|
||||
@@ -251,6 +425,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
||||
getCardPrintImportJobStatusById(requestParameters: JobServiceGetCardPrintImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
||||
return localVarFp.getCardPrintImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {JobServiceGetCardSetImportJobPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCardSetImportJobPage(requestParameters: JobServiceGetCardSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||
return localVarFp.getCardSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of CardSetImportJob
|
||||
@@ -261,6 +445,16 @@ export const JobServiceFactory = function (configuration?: Configuration, basePa
|
||||
getCardSetImportJobStatusById(requestParameters: JobServiceGetCardSetImportJobStatusByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<JobDto> {
|
||||
return localVarFp.getCardSetImportJobStatusById(requestParameters.id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get a page of all CardSetImportJobs
|
||||
* @param {JobServiceGetRegionalSetImportJobPageRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getRegionalSetImportJobPage(requestParameters: JobServiceGetRegionalSetImportJobPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageJobDto> {
|
||||
return localVarFp.getRegionalSetImportJobPage(requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Get status of RegionalSetImportJob
|
||||
@@ -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.
|
||||
* @export
|
||||
@@ -288,6 +503,27 @@ export interface JobServiceGetCardPrintImportJobStatusByIdRequest {
|
||||
readonly id: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getCardSetImportJobPage operation in JobService.
|
||||
* @export
|
||||
* @interface JobServiceGetCardSetImportJobPageRequest
|
||||
*/
|
||||
export interface JobServiceGetCardSetImportJobPageRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobServiceGetCardSetImportJobPage
|
||||
*/
|
||||
readonly page?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobServiceGetCardSetImportJobPage
|
||||
*/
|
||||
readonly pageSize?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getCardSetImportJobStatusById operation in JobService.
|
||||
* @export
|
||||
@@ -302,6 +538,27 @@ export interface JobServiceGetCardSetImportJobStatusByIdRequest {
|
||||
readonly id: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getRegionalSetImportJobPage operation in JobService.
|
||||
* @export
|
||||
* @interface JobServiceGetRegionalSetImportJobPageRequest
|
||||
*/
|
||||
export interface JobServiceGetRegionalSetImportJobPageRequest {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobServiceGetRegionalSetImportJobPage
|
||||
*/
|
||||
readonly page?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof JobServiceGetRegionalSetImportJobPage
|
||||
*/
|
||||
readonly pageSize?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getRegionalSetImportJobStatusById operation in JobService.
|
||||
* @export
|
||||
@@ -334,6 +591,18 @@ export class JobService extends BaseAPI {
|
||||
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
|
||||
@@ -346,6 +615,18 @@ export class JobService extends BaseAPI {
|
||||
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
|
||||
@@ -358,6 +639,18 @@ export class JobService extends BaseAPI {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user