|
| 1 | +/* generated using openapi-typescript-codegen -- do not edit */ |
| 2 | +/* istanbul ignore file */ |
| 3 | +/* tslint:disable */ |
| 4 | +/* eslint-disable */ |
| 5 | +import type { DuplicateFinderInput } from "../models/DuplicateFinderInput"; |
| 6 | +import type { DuplicateFinderJobRead } from "../models/DuplicateFinderJobRead"; |
| 7 | +import type { CancelablePromise } from "../core/CancelablePromise"; |
| 8 | +import { OpenAPI } from "../core/OpenAPI"; |
| 9 | +import { request as __request } from "../core/request"; |
| 10 | +export class JobService { |
| 11 | + /** |
| 12 | + * Start DuplicateFinder job |
| 13 | + * @returns DuplicateFinderJobRead Successful Response |
| 14 | + * @throws ApiError |
| 15 | + */ |
| 16 | + public static startDuplicateFinderJob({ |
| 17 | + requestBody, |
| 18 | + }: { |
| 19 | + requestBody: DuplicateFinderInput; |
| 20 | + }): CancelablePromise<DuplicateFinderJobRead> { |
| 21 | + return __request(OpenAPI, { |
| 22 | + method: "POST", |
| 23 | + url: "/job/duplicate_finder", |
| 24 | + body: requestBody, |
| 25 | + mediaType: "application/json", |
| 26 | + errors: { |
| 27 | + 422: `Validation Error`, |
| 28 | + }, |
| 29 | + }); |
| 30 | + } |
| 31 | + /** |
| 32 | + * Get DuplicateFinder job result |
| 33 | + * @returns DuplicateFinderJobRead Successful Response |
| 34 | + * @throws ApiError |
| 35 | + */ |
| 36 | + public static getDuplicateFinderJobById({ jobId }: { jobId: string }): CancelablePromise<DuplicateFinderJobRead> { |
| 37 | + return __request(OpenAPI, { |
| 38 | + method: "GET", |
| 39 | + url: "/job/duplicate_finder/{job_id}", |
| 40 | + path: { |
| 41 | + job_id: jobId, |
| 42 | + }, |
| 43 | + errors: { |
| 44 | + 422: `Validation Error`, |
| 45 | + }, |
| 46 | + }); |
| 47 | + } |
| 48 | + /** |
| 49 | + * Abort DuplicateFinder job |
| 50 | + * @returns boolean Successful Response |
| 51 | + * @throws ApiError |
| 52 | + */ |
| 53 | + public static abortDuplicateFinderJob({ jobId }: { jobId: string }): CancelablePromise<boolean> { |
| 54 | + return __request(OpenAPI, { |
| 55 | + method: "POST", |
| 56 | + url: "/job/duplicate_finder/{job_id}/abort", |
| 57 | + path: { |
| 58 | + job_id: jobId, |
| 59 | + }, |
| 60 | + errors: { |
| 61 | + 422: `Validation Error`, |
| 62 | + }, |
| 63 | + }); |
| 64 | + } |
| 65 | + /** |
| 66 | + * Retry DuplicateFinder job |
| 67 | + * @returns boolean Successful Response |
| 68 | + * @throws ApiError |
| 69 | + */ |
| 70 | + public static retryDuplicateFinderJob({ jobId }: { jobId: string }): CancelablePromise<boolean> { |
| 71 | + return __request(OpenAPI, { |
| 72 | + method: "POST", |
| 73 | + url: "/job/duplicate_finder/{job_id}/retry", |
| 74 | + path: { |
| 75 | + job_id: jobId, |
| 76 | + }, |
| 77 | + errors: { |
| 78 | + 422: `Validation Error`, |
| 79 | + }, |
| 80 | + }); |
| 81 | + } |
| 82 | + /** |
| 83 | + * Get all DuplicateFinder jobs by project |
| 84 | + * @returns DuplicateFinderJobRead Successful Response |
| 85 | + * @throws ApiError |
| 86 | + */ |
| 87 | + public static getDuplicateFinderJobsByProject({ |
| 88 | + projectId, |
| 89 | + }: { |
| 90 | + projectId: number; |
| 91 | + }): CancelablePromise<Array<DuplicateFinderJobRead>> { |
| 92 | + return __request(OpenAPI, { |
| 93 | + method: "GET", |
| 94 | + url: "/job/duplicate_finder/project/{project_id}", |
| 95 | + path: { |
| 96 | + project_id: projectId, |
| 97 | + }, |
| 98 | + errors: { |
| 99 | + 422: `Validation Error`, |
| 100 | + }, |
| 101 | + }); |
| 102 | + } |
| 103 | +} |
0 commit comments