1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-15 15:18:22 +09:00

update userlist endpoints (#16)

This commit is contained in:
marihachi 2021-05-21 13:55:39 +09:00 committed by GitHub
parent 83b86c745d
commit 9d89314afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View File

@ -364,13 +364,13 @@ export type Endpoints = {
'users/groups/show': { req: TODO; res: TODO; };
'users/groups/transfer': { req: TODO; res: TODO; };
'users/groups/update': { req: TODO; res: TODO; };
'users/lists/create': { req: TODO; res: TODO; };
'users/lists/delete': { req: { listId: UserList['id'] }; res: null; };
'users/lists/list': { req: TODO; res: TODO; };
'users/lists/pull': { req: TODO; res: TODO; };
'users/lists/push': { req: TODO; res: TODO; };
'users/lists/show': { req: TODO; res: TODO; };
'users/lists/update': { req: TODO; res: TODO; };
'users/lists/create': { req: { name: string; }; res: UserList; };
'users/lists/delete': { req: { listId: UserList['id']; }; res: null; };
'users/lists/list': { req: null; res: UserList[]; };
'users/lists/pull': { req: { listId: UserList['id']; userId: User['id']; }; res: null; };
'users/lists/push': { req: { listId: UserList['id']; userId: User['id']; }; res: null; };
'users/lists/show': { req: { listId: UserList['id']; }; res: UserList; };
'users/lists/update': { req: { listId: UserList['id']; name: string; }; res: UserList; };
'users/notes': { req: TODO; res: TODO; };
'users/pages': { req: TODO; res: TODO; };
'users/recommendation': { req: TODO; res: TODO; };

View File

@ -19,7 +19,12 @@ export type User = {
export type UserGroup = TODO;
export type UserList = TODO;
export type UserList = {
id: ID;
createdAt: DateString;
name: string;
userIds: User['id'][];
};
export type MeDetailed = User & {
avatarId: DriveFile['id'];