22 lines
716 B
TypeScript
22 lines
716 B
TypeScript
import type { NoteDetail, PinnedMessageDetail, PollDetail } from "../models/index.js";
|
|
import { BoardType } from "../models/index.js";
|
|
export type ListBoardOptions = {
|
|
/**
|
|
* Page number (default: 1)
|
|
*/
|
|
page?: number;
|
|
/**
|
|
* Number of items to retrieve (default: 20)
|
|
*/
|
|
count?: number;
|
|
};
|
|
export type BoardItem = {
|
|
boardType: BoardType;
|
|
data: PollDetail | NoteDetail | PinnedMessageDetail;
|
|
};
|
|
export type GetListBoardResponse = {
|
|
items: BoardItem[];
|
|
count: number;
|
|
};
|
|
export declare const getListBoardFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: ListBoardOptions, groupId: string) => Promise<GetListBoardResponse>;
|