/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreateBoardRequest } from '../models/CreateBoardRequest';
import type { CreateBoardResponse } from '../models/CreateBoardResponse';
import type { DeleteBoardResponse } from '../models/DeleteBoardResponse';
import type { GetBoardsResponse } from '../models/GetBoardsResponse';
import type { UpdateBoardOrderRequest } from '../models/UpdateBoardOrderRequest';
import type { UpdateBoardOrderResponse } from '../models/UpdateBoardOrderResponse';
import type { UpdateBoardRequest } from '../models/UpdateBoardRequest';
import type { UpdateBoardResponse } from '../models/UpdateBoardResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class BoardService {
    /**
     * Get Boards
     * @returns GetBoardsResponse Successful Response
     * @throws ApiError
     */
    public static getBoards({
        projectId,
    }: {
        projectId: number,
    }): CancelablePromise<GetBoardsResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/board/{project_id}',
            path: {
                'project_id': projectId,
            },
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Create Board
     * @returns CreateBoardResponse Successful Response
     * @throws ApiError
     */
    public static createBoard({
        requestBody,
    }: {
        requestBody: CreateBoardRequest,
    }): CancelablePromise<CreateBoardResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/board/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Board
     * @returns UpdateBoardResponse Successful Response
     * @throws ApiError
     */
    public static updateBoard({
        requestBody,
    }: {
        requestBody: UpdateBoardRequest,
    }): CancelablePromise<UpdateBoardResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/board/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Board Order
     * @returns UpdateBoardOrderResponse Successful Response
     * @throws ApiError
     */
    public static updateBoardOrder({
        requestBody,
    }: {
        requestBody: UpdateBoardOrderRequest,
    }): CancelablePromise<UpdateBoardOrderResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/board/order',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete Board
     * @returns DeleteBoardResponse Successful Response
     * @throws ApiError
     */
    public static deleteBoard({
        boardId,
    }: {
        boardId: number,
    }): CancelablePromise<DeleteBoardResponse> {
        return __request(OpenAPI, {
            method: 'DELETE',
            url: '/board/{board_id}',
            path: {
                'board_id': boardId,
            },
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
