// This file is auto-generated by @hey-api/openapi-ts

/**
 * BoardSchema
 */
export type BoardSchema = {
    /**
     * Id
     */
    id: number;
    /**
     * Name
     */
    name: string;
    /**
     * Lexorank
     */
    lexorank: string;
};

/**
 * CreateBoardRequest
 */
export type CreateBoardRequest = {
    board: CreateBoardSchema;
};

/**
 * CreateBoardResponse
 */
export type CreateBoardResponse = {
    /**
     * Message
     */
    message: string;
    board: BoardSchema;
};

/**
 * CreateBoardSchema
 */
export type CreateBoardSchema = {
    /**
     * Name
     */
    name: string;
    /**
     * Projectid
     */
    projectId: number;
    /**
     * Lexorank
     */
    lexorank: string;
};

/**
 * CreateProjectRequest
 */
export type CreateProjectRequest = {
    project: CreateProjectSchema;
};

/**
 * CreateProjectResponse
 */
export type CreateProjectResponse = {
    /**
     * Message
     */
    message: string;
    project: ProjectSchema;
};

/**
 * CreateProjectSchema
 */
export type CreateProjectSchema = {
    /**
     * Name
     */
    name: string;
};

/**
 * CreateStatusRequest
 */
export type CreateStatusRequest = {
    status: CreateStatusSchema;
};

/**
 * CreateStatusResponse
 */
export type CreateStatusResponse = {
    /**
     * Message
     */
    message: string;
    status: StatusSchema;
};

/**
 * CreateStatusSchema
 */
export type CreateStatusSchema = {
    /**
     * Name
     */
    name: string;
    /**
     * Boardid
     */
    boardId: number;
    /**
     * Lexorank
     */
    lexorank: string;
};

/**
 * DealSchema
 */
export type DealSchema = {
    /**
     * Name
     */
    name: string;
    /**
     * Id
     */
    id: number;
    /**
     * Lexorank
     */
    lexorank: string;
    /**
     * Statusid
     */
    statusId: number;
};

/**
 * DeleteBoardResponse
 */
export type DeleteBoardResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * DeleteProjectResponse
 */
export type DeleteProjectResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * DeleteStatusResponse
 */
export type DeleteStatusResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * GetBoardsResponse
 */
export type GetBoardsResponse = {
    /**
     * Boards
     */
    boards: Array<BoardSchema>;
};

/**
 * GetDealsResponse
 */
export type GetDealsResponse = {
    /**
     * Deals
     */
    deals: Array<DealSchema>;
};

/**
 * GetProjectsResponse
 */
export type GetProjectsResponse = {
    /**
     * Projects
     */
    projects: Array<ProjectSchema>;
};

/**
 * GetStatusesResponse
 */
export type GetStatusesResponse = {
    /**
     * Statuses
     */
    statuses: Array<StatusSchema>;
};

/**
 * HTTPValidationError
 */
export type HttpValidationError = {
    /**
     * Detail
     */
    detail?: Array<ValidationError>;
};

/**
 * ProjectSchema
 */
export type ProjectSchema = {
    /**
     * Id
     */
    id: number;
    /**
     * Name
     */
    name: string;
};

/**
 * StatusSchema
 */
export type StatusSchema = {
    /**
     * Id
     */
    id: number;
    /**
     * Name
     */
    name: string;
    /**
     * Lexorank
     */
    lexorank: string;
};

/**
 * UpdateBoardRequest
 */
export type UpdateBoardRequest = {
    board: UpdateBoardSchema;
};

/**
 * UpdateBoardResponse
 */
export type UpdateBoardResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * UpdateBoardSchema
 */
export type UpdateBoardSchema = {
    /**
     * Name
     */
    name?: string | null;
    /**
     * Lexorank
     */
    lexorank?: string | null;
};

/**
 * UpdateDealRequest
 */
export type UpdateDealRequest = {
    deal: UpdateDealSchema;
};

/**
 * UpdateDealResponse
 */
export type UpdateDealResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * UpdateDealSchema
 */
export type UpdateDealSchema = {
    /**
     * Name
     */
    name?: string | null;
    /**
     * Lexorank
     */
    lexorank?: string | null;
    /**
     * Statusid
     */
    statusId?: number | null;
};

/**
 * UpdateProjectRequest
 */
export type UpdateProjectRequest = {
    project: UpdateProjectSchema;
};

/**
 * UpdateProjectResponse
 */
export type UpdateProjectResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * UpdateProjectSchema
 */
export type UpdateProjectSchema = {
    /**
     * Name
     */
    name?: string | null;
};

/**
 * UpdateStatusRequest
 */
export type UpdateStatusRequest = {
    status: UpdateStatusSchema;
};

/**
 * UpdateStatusResponse
 */
export type UpdateStatusResponse = {
    /**
     * Message
     */
    message: string;
};

/**
 * UpdateStatusSchema
 */
export type UpdateStatusSchema = {
    /**
     * Name
     */
    name?: string | null;
    /**
     * Lexorank
     */
    lexorank?: string | null;
};

/**
 * ValidationError
 */
export type ValidationError = {
    /**
     * Location
     */
    loc: Array<string | number>;
    /**
     * Message
     */
    msg: string;
    /**
     * Error Type
     */
    type: string;
};

export type GetBoardsData = {
    body?: never;
    path: {
        /**
         * Projectid
         */
        projectId: number;
    };
    query?: never;
    url: "/board/{projectId}";
};

export type GetBoardsErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetBoardsError = GetBoardsErrors[keyof GetBoardsErrors];

export type GetBoardsResponses = {
    /**
     * Successful Response
     */
    200: GetBoardsResponse;
};

export type GetBoardsResponse2 = GetBoardsResponses[keyof GetBoardsResponses];

export type CreateBoardData = {
    body: CreateBoardRequest;
    path?: never;
    query?: never;
    url: "/board/";
};

export type CreateBoardErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateBoardError = CreateBoardErrors[keyof CreateBoardErrors];

export type CreateBoardResponses = {
    /**
     * Successful Response
     */
    200: CreateBoardResponse;
};

export type CreateBoardResponse2 =
    CreateBoardResponses[keyof CreateBoardResponses];

export type DeleteBoardData = {
    body?: never;
    path: {
        /**
         * Boardid
         */
        boardId: number;
    };
    query?: never;
    url: "/board/{boardId}";
};

export type DeleteBoardErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteBoardError = DeleteBoardErrors[keyof DeleteBoardErrors];

export type DeleteBoardResponses = {
    /**
     * Successful Response
     */
    200: DeleteBoardResponse;
};

export type DeleteBoardResponse2 =
    DeleteBoardResponses[keyof DeleteBoardResponses];

export type UpdateBoardData = {
    body: UpdateBoardRequest;
    path: {
        /**
         * Boardid
         */
        boardId: number;
    };
    query?: never;
    url: "/board/{boardId}";
};

export type UpdateBoardErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateBoardError = UpdateBoardErrors[keyof UpdateBoardErrors];

export type UpdateBoardResponses = {
    /**
     * Successful Response
     */
    200: UpdateBoardResponse;
};

export type UpdateBoardResponse2 =
    UpdateBoardResponses[keyof UpdateBoardResponses];

export type GetDealsData = {
    body?: never;
    path: {
        /**
         * Boardid
         */
        boardId: number;
    };
    query?: never;
    url: "/deal/{boardId}";
};

export type GetDealsErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetDealsError = GetDealsErrors[keyof GetDealsErrors];

export type GetDealsResponses = {
    /**
     * Successful Response
     */
    200: GetDealsResponse;
};

export type GetDealsResponse2 = GetDealsResponses[keyof GetDealsResponses];

export type UpdateDealData = {
    body: UpdateDealRequest;
    path: {
        /**
         * Dealid
         */
        dealId: number;
    };
    query?: never;
    url: "/deal/{dealId}";
};

export type UpdateDealErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateDealError = UpdateDealErrors[keyof UpdateDealErrors];

export type UpdateDealResponses = {
    /**
     * Successful Response
     */
    200: UpdateDealResponse;
};

export type UpdateDealResponse2 =
    UpdateDealResponses[keyof UpdateDealResponses];

export type GetProjectsData = {
    body?: never;
    path?: never;
    query?: never;
    url: "/project/";
};

export type GetProjectsResponses = {
    /**
     * Successful Response
     */
    200: GetProjectsResponse;
};

export type GetProjectsResponse2 =
    GetProjectsResponses[keyof GetProjectsResponses];

export type CreateProjectData = {
    body: CreateProjectRequest;
    path?: never;
    query?: never;
    url: "/project/";
};

export type CreateProjectErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];

export type CreateProjectResponses = {
    /**
     * Successful Response
     */
    200: CreateProjectResponse;
};

export type CreateProjectResponse2 =
    CreateProjectResponses[keyof CreateProjectResponses];

export type DeleteProjectData = {
    body?: never;
    path?: never;
    query: {
        /**
         * Projectid
         */
        projectId: number;
    };
    url: "/project/{projectId}";
};

export type DeleteProjectErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];

export type DeleteProjectResponses = {
    /**
     * Successful Response
     */
    200: DeleteProjectResponse;
};

export type DeleteProjectResponse2 =
    DeleteProjectResponses[keyof DeleteProjectResponses];

export type UpdateProjectData = {
    body: UpdateProjectRequest;
    path?: never;
    query: {
        /**
         * Projectid
         */
        projectId: number;
    };
    url: "/project/{projectId}";
};

export type UpdateProjectErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];

export type UpdateProjectResponses = {
    /**
     * Successful Response
     */
    200: UpdateProjectResponse;
};

export type UpdateProjectResponse2 =
    UpdateProjectResponses[keyof UpdateProjectResponses];

export type GetStatusesData = {
    body?: never;
    path: {
        /**
         * Boardid
         */
        boardId: number;
    };
    query?: never;
    url: "/status/{boardId}";
};

export type GetStatusesErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type GetStatusesError = GetStatusesErrors[keyof GetStatusesErrors];

export type GetStatusesResponses = {
    /**
     * Successful Response
     */
    200: GetStatusesResponse;
};

export type GetStatusesResponse2 =
    GetStatusesResponses[keyof GetStatusesResponses];

export type CreateStatusData = {
    body: CreateStatusRequest;
    path?: never;
    query?: never;
    url: "/status/";
};

export type CreateStatusErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type CreateStatusError = CreateStatusErrors[keyof CreateStatusErrors];

export type CreateStatusResponses = {
    /**
     * Successful Response
     */
    200: CreateStatusResponse;
};

export type CreateStatusResponse2 =
    CreateStatusResponses[keyof CreateStatusResponses];

export type DeleteStatusData = {
    body?: never;
    path: {
        /**
         * Statusid
         */
        statusId: number;
    };
    query?: never;
    url: "/status/{statusId}";
};

export type DeleteStatusErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type DeleteStatusError = DeleteStatusErrors[keyof DeleteStatusErrors];

export type DeleteStatusResponses = {
    /**
     * Successful Response
     */
    200: DeleteStatusResponse;
};

export type DeleteStatusResponse2 =
    DeleteStatusResponses[keyof DeleteStatusResponses];

export type UpdateStatusData = {
    body: UpdateStatusRequest;
    path: {
        /**
         * Statusid
         */
        statusId: number;
    };
    query?: never;
    url: "/status/{statusId}";
};

export type UpdateStatusErrors = {
    /**
     * Validation Error
     */
    422: HttpValidationError;
};

export type UpdateStatusError = UpdateStatusErrors[keyof UpdateStatusErrors];

export type UpdateStatusResponses = {
    /**
     * Successful Response
     */
    200: UpdateStatusResponse;
};

export type UpdateStatusResponse2 =
    UpdateStatusResponses[keyof UpdateStatusResponses];

export type ClientOptions = {
    baseURL: `${string}://${string}/api` | (string & {});
};
