feat: add type of gallery (#55)
* update GalleryPost type * update gallery/featured type * update gallery/popular type * update gallery/posts type * update gallery/posts/create type * update gallery/posts/like type * update gallery/posts/show type * update gallery/posts/unlike type * update gallery/posts/update type
This commit is contained in:
parent
4922cb92e0
commit
13a2d16eab
3 changed files with 73 additions and 26 deletions
|
|
@ -1177,20 +1177,29 @@ export type Endpoints = {
|
|||
res: null;
|
||||
};
|
||||
'gallery/featured': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: null;
|
||||
res: GalleryPost[];
|
||||
};
|
||||
'gallery/popular': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: null;
|
||||
res: GalleryPost[];
|
||||
};
|
||||
'gallery/posts': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
limit?: number;
|
||||
sinceId?: GalleryPost['id'];
|
||||
untilId?: GalleryPost['id'];
|
||||
};
|
||||
res: GalleryPost[];
|
||||
};
|
||||
'gallery/posts/create': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
title: GalleryPost['title'];
|
||||
description?: GalleryPost['description'];
|
||||
fileIds: GalleryPost['fileIds'];
|
||||
isSensitive?: GalleryPost['isSensitive'];
|
||||
};
|
||||
res: GalleryPost;
|
||||
};
|
||||
'gallery/posts/delete': {
|
||||
req: {
|
||||
|
|
@ -1199,20 +1208,32 @@ export type Endpoints = {
|
|||
res: null;
|
||||
};
|
||||
'gallery/posts/like': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
postId: GalleryPost['id'];
|
||||
};
|
||||
res: null;
|
||||
};
|
||||
'gallery/posts/show': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
postId: GalleryPost['id'];
|
||||
};
|
||||
res: GalleryPost;
|
||||
};
|
||||
'gallery/posts/unlike': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
postId: GalleryPost['id'];
|
||||
};
|
||||
res: null;
|
||||
};
|
||||
'gallery/posts/update': {
|
||||
req: TODO;
|
||||
res: TODO;
|
||||
req: {
|
||||
postId: GalleryPost['id'];
|
||||
title: GalleryPost['title'];
|
||||
description?: GalleryPost['description'];
|
||||
fileIds: GalleryPost['fileIds'];
|
||||
isSensitive?: GalleryPost['isSensitive'];
|
||||
};
|
||||
res: GalleryPost;
|
||||
};
|
||||
'games/reversi/games': {
|
||||
req: TODO;
|
||||
|
|
@ -2224,7 +2245,20 @@ type FollowRequest = {
|
|||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type GalleryPost = TODO_2;
|
||||
type GalleryPost = {
|
||||
id: ID;
|
||||
createdAt: DateString;
|
||||
updatedAt: DateString;
|
||||
userId: User['id'];
|
||||
user: User;
|
||||
title: string;
|
||||
description: string | null;
|
||||
fileIds: DriveFile['id'][];
|
||||
files: DriveFile[];
|
||||
isSensitive: boolean;
|
||||
likedCount: number;
|
||||
isLiked?: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type ID = string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue