feat(frontend): member type
This commit is contained in:
parent
773f20d135
commit
ec980bc67f
2 changed files with 55 additions and 1 deletions
|
@ -11,13 +11,25 @@ export interface User {
|
|||
avatar_urls: string[] | null;
|
||||
links: string[] | null;
|
||||
members: PartialMember[];
|
||||
names: Name[];
|
||||
pronouns: Pronoun[];
|
||||
fields: Field[];
|
||||
}
|
||||
|
||||
export interface PartialMember {
|
||||
id: string;
|
||||
name: string;
|
||||
avatar_url: string | null;
|
||||
avatar_urls: string[] | null;
|
||||
}
|
||||
|
||||
export interface Member extends PartialMember {
|
||||
bio: string | null;
|
||||
links: string[] | null;
|
||||
id: string;
|
||||
name: string;
|
||||
avatar_urls: string[] | null;
|
||||
|
||||
user?: PartialUser;
|
||||
}
|
||||
|
||||
export interface Name {
|
||||
|
@ -71,3 +83,10 @@ export interface SignupRequest {
|
|||
ticket: string;
|
||||
invite_code?: string;
|
||||
}
|
||||
|
||||
export interface PartialUser {
|
||||
id: string;
|
||||
username: string;
|
||||
display_name: string | null;
|
||||
avatar_urls: string[] | null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue