Merge branch 'record-enhancements' into 'develop'
Record enhancements See merge request soapbox-pub/soapbox-fe!1084
This commit is contained in:
commit
5ddd0b9686
9 changed files with 93 additions and 0 deletions
BIN
.eslintrc.js
BIN
.eslintrc.js
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
44
app/soapbox/types/account.ts
Normal file
44
app/soapbox/types/account.ts
Normal file
|
@ -0,0 +1,44 @@
|
|||
/**
|
||||
* Account entity.
|
||||
* https://docs.joinmastodon.org/entities/account/
|
||||
**/
|
||||
|
||||
interface IAccount {
|
||||
acct: string;
|
||||
avatar: string;
|
||||
avatar_static: string;
|
||||
birthday: Date | undefined;
|
||||
bot: boolean;
|
||||
created_at: Date;
|
||||
display_name: string;
|
||||
emojis: Iterable<any>;
|
||||
fields: Iterable<any>;
|
||||
followers_count: number;
|
||||
following_count: number;
|
||||
fqn: string;
|
||||
header: string;
|
||||
header_static: string;
|
||||
id: string;
|
||||
last_status_at: Date;
|
||||
location: string;
|
||||
locked: boolean;
|
||||
moved: null;
|
||||
note: string;
|
||||
pleroma: Record<any, any>;
|
||||
source: Record<any, any>;
|
||||
statuses_count: number;
|
||||
uri: string;
|
||||
url: string;
|
||||
username: string;
|
||||
verified: boolean;
|
||||
|
||||
// Internal fields
|
||||
display_name_html: string;
|
||||
note_emojified: string;
|
||||
note_plain: string;
|
||||
patron: Record<any, any>;
|
||||
relationship: Iterable<any>;
|
||||
should_refetch: boolean;
|
||||
}
|
||||
|
||||
export { IAccount };
|
4
app/soapbox/types/index.ts
Normal file
4
app/soapbox/types/index.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { IAccount } from './account';
|
||||
import { IStatus } from './status';
|
||||
|
||||
export { IAccount, IStatus };
|
45
app/soapbox/types/status.ts
Normal file
45
app/soapbox/types/status.ts
Normal file
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* Status entity.
|
||||
* https://docs.joinmastodon.org/entities/status/
|
||||
**/
|
||||
|
||||
interface IStatus {
|
||||
account: Record<any, any>;
|
||||
application: Record<string, any> | null;
|
||||
bookmarked: boolean;
|
||||
card: Record<string, any> | null;
|
||||
content: string;
|
||||
created_at: Date;
|
||||
emojis: Iterable<any>;
|
||||
favourited: boolean;
|
||||
favourites_count: number;
|
||||
in_reply_to_account_id: string | null;
|
||||
in_reply_to_id: string | null;
|
||||
id: string;
|
||||
language: null;
|
||||
media_attachments: Iterable<any>;
|
||||
mentions: Iterable<any>;
|
||||
muted: boolean;
|
||||
pinned: boolean;
|
||||
pleroma: Record<string, any>;
|
||||
poll: null;
|
||||
quote: null;
|
||||
reblog: null;
|
||||
reblogged: boolean;
|
||||
reblogs_count: number;
|
||||
replies_count: number;
|
||||
sensitive: boolean;
|
||||
spoiler_text: string;
|
||||
tags: Iterable<any>;
|
||||
uri: string;
|
||||
url: string;
|
||||
visibility: string;
|
||||
|
||||
// Internal fields
|
||||
contentHtml: string;
|
||||
hidden: boolean;
|
||||
search_index: string;
|
||||
spoilerHtml: string;
|
||||
}
|
||||
|
||||
export { IStatus };
|
Loading…
Reference in a new issue