/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreateTaskResponse } from '../models/CreateTaskResponse';
import type { SynchronizeMarketplaceRequest } from '../models/SynchronizeMarketplaceRequest';
import type { TaskInfoResponse } from '../models/TaskInfoResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class TaskService {
    /**
     * Synchronize Marketplace
     * @returns CreateTaskResponse Successful Response
     * @throws ApiError
     */
    public static createSynchronizeMarketplaceTask({
        requestBody,
    }: {
        requestBody: SynchronizeMarketplaceRequest,
    }): CancelablePromise<CreateTaskResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/task/synchronize-marketplace',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Task Info
     * @returns TaskInfoResponse Successful Response
     * @throws ApiError
     */
    public static getTaskInfo({
        taskId,
    }: {
        taskId: string,
    }): CancelablePromise<TaskInfoResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/task/info/{task_id}',
            path: {
                'task_id': taskId,
            },
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
