Port a2e9b9d87d
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
parent
7f078e41c0
commit
c5fb52eb23
@ -1,10 +1,54 @@
|
|||||||
import type { Record } from 'immutable';
|
import type { Record } from 'immutable';
|
||||||
|
|
||||||
type AccountValues = {
|
type CustomEmoji = Record<{
|
||||||
id: number;
|
shortcode: string;
|
||||||
|
static_url: string;
|
||||||
|
url: string;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
type AccountField = Record<{
|
||||||
|
name: string;
|
||||||
|
value: string;
|
||||||
|
verified_at: string | null;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
type AccountApiResponseValues = {
|
||||||
|
acct: string;
|
||||||
avatar: string;
|
avatar: string;
|
||||||
avatar_static: string;
|
avatar_static: string;
|
||||||
[key: string]: any;
|
bot: boolean;
|
||||||
|
created_at: string;
|
||||||
|
discoverable: boolean;
|
||||||
|
display_name: string;
|
||||||
|
emojis: CustomEmoji[];
|
||||||
|
fields: AccountField[];
|
||||||
|
followers_count: number;
|
||||||
|
following_count: number;
|
||||||
|
group: boolean;
|
||||||
|
header: string;
|
||||||
|
header_static: string;
|
||||||
|
id: string;
|
||||||
|
last_status_at: string;
|
||||||
|
locked: boolean;
|
||||||
|
note: string;
|
||||||
|
statuses_count: number;
|
||||||
|
url: string;
|
||||||
|
username: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
type NormalizedAccountField = Record<{
|
||||||
|
name_emojified: string;
|
||||||
|
value_emojified: string;
|
||||||
|
value_plain: string;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
type NormalizedAccountValues = {
|
||||||
|
display_name_html: string;
|
||||||
|
fields: NormalizedAccountField[];
|
||||||
|
note_emojified: string;
|
||||||
|
note_plain: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Account = Record<AccountValues>;
|
export type Account = Record<
|
||||||
|
AccountApiResponseValues & NormalizedAccountValues
|
||||||
|
>;
|
||||||
|
Loading…
Reference in new issue