bigbuffet-rw/packages/pl-api/lib/params/my-account.ts
marcin mikołajczak 036fa32cd3 Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:43:23 +02:00

31 lines
778 B
TypeScript

import type { PaginationParams } from './common';
interface GetBookmarksParams extends PaginationParams {
/**
* Bookmark folder ID
* Requires `features.bookmarkFolders`.
*/
folder_id?: string;
}
type GetFavouritesParams = PaginationParams;
type GetFollowRequestsParams = Omit<PaginationParams, 'min_id'>;
type GetEndorsementsParams = Omit<PaginationParams, 'min_id'>;
type GetFollowedTagsParams = PaginationParams;
interface CreateBookmarkFolderParams {
name: string;
emoji?: string;
}
type UpdateBookmarkFolderParams = Partial<CreateBookmarkFolderParams>;
export type {
GetBookmarksParams,
GetFavouritesParams,
GetFollowRequestsParams,
GetEndorsementsParams,
GetFollowedTagsParams,
CreateBookmarkFolderParams,
UpdateBookmarkFolderParams,
};