mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-17 00:41:22 -05:00
feat(ui): wip boards via rtk-query
This commit is contained in:
@@ -23,13 +23,9 @@ export type BoardDTO = {
|
||||
*/
|
||||
updated_at: string;
|
||||
/**
|
||||
* The name of the cover image of the board.
|
||||
* The name of the board's cover image.
|
||||
*/
|
||||
cover_image_name?: string;
|
||||
/**
|
||||
* The URL of the thumbnail of the board's cover image.
|
||||
*/
|
||||
cover_image_url?: string;
|
||||
/**
|
||||
* The number of images in the board.
|
||||
*/
|
||||
|
||||
@@ -17,13 +17,18 @@ export class BoardsService {
|
||||
/**
|
||||
* List Boards
|
||||
* Gets a list of boards
|
||||
* @returns OffsetPaginatedResults_BoardDTO_ Successful Response
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static listBoards({
|
||||
all,
|
||||
offset,
|
||||
limit = 10,
|
||||
limit,
|
||||
}: {
|
||||
/**
|
||||
* Whether to list all boards
|
||||
*/
|
||||
all?: boolean,
|
||||
/**
|
||||
* The page offset
|
||||
*/
|
||||
@@ -32,11 +37,12 @@ export class BoardsService {
|
||||
* The number of boards per page
|
||||
*/
|
||||
limit?: number,
|
||||
}): CancelablePromise<OffsetPaginatedResults_BoardDTO_> {
|
||||
}): CancelablePromise<(OffsetPaginatedResults_BoardDTO_ | Array<BoardDTO>)> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/api/v1/boards/',
|
||||
query: {
|
||||
'all': all,
|
||||
'offset': offset,
|
||||
'limit': limit,
|
||||
},
|
||||
@@ -53,15 +59,19 @@ export class BoardsService {
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createBoard({
|
||||
requestBody,
|
||||
boardName,
|
||||
}: {
|
||||
requestBody: string,
|
||||
/**
|
||||
* The name of the board to create
|
||||
*/
|
||||
boardName: string,
|
||||
}): CancelablePromise<BoardDTO> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/api/v1/boards/',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
query: {
|
||||
'board_name': boardName,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user