/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreateStatusRequest } from '../models/CreateStatusRequest';
import type { CreateStatusResponse } from '../models/CreateStatusResponse';
import type { DeleteStatusResponse } from '../models/DeleteStatusResponse';
import type { UpdateStatusOrderRequest } from '../models/UpdateStatusOrderRequest';
import type { UpdateStatusOrderResponse } from '../models/UpdateStatusOrderResponse';
import type { UpdateStatusRequest } from '../models/UpdateStatusRequest';
import type { UpdateStatusResponse } from '../models/UpdateStatusResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class StatusService {
    /**
     * Create Status
     * @returns CreateStatusResponse Successful Response
     * @throws ApiError
     */
    public static createStatus({
        requestBody,
    }: {
        requestBody: CreateStatusRequest,
    }): CancelablePromise<CreateStatusResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/status/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Status
     * @returns UpdateStatusResponse Successful Response
     * @throws ApiError
     */
    public static updateStatus({
        requestBody,
    }: {
        requestBody: UpdateStatusRequest,
    }): CancelablePromise<UpdateStatusResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/status/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Status Order
     * @returns UpdateStatusOrderResponse Successful Response
     * @throws ApiError
     */
    public static updateStatusOrder({
        requestBody,
    }: {
        requestBody: UpdateStatusOrderRequest,
    }): CancelablePromise<UpdateStatusOrderResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/status/order',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete Status
     * @returns DeleteStatusResponse Successful Response
     * @throws ApiError
     */
    public static deleteStatus({
        statusId,
    }: {
        statusId: number,
    }): CancelablePromise<DeleteStatusResponse> {
        return __request(OpenAPI, {
            method: 'DELETE',
            url: '/status/{status_id}',
            path: {
                'status_id': statusId,
            },
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
