Files
new-phone-who-dis/typings/twitter.ts
T
Erik a52ffc4e79 Feature/twitter refresh (#160)
* receive and process broadcasted tweets to the clients

* removing profile fetch and cleaning up unused functions

* defend against null profile

* move defenseive check to top pof notifications

* fix bug where delete was visible for non owners

* remove polling implementation
2021-03-20 18:17:14 -04:00

49 lines
980 B
TypeScript

export interface NewTweet {
message: string;
images?: string;
retweet?: number;
}
export type SETTING_MENTIONS = 'mentions';
export type SETTINGS_ALL_TWEETS = 'all';
export interface Tweet extends NewTweet {
profile_name: string;
profile_id: number;
id: number;
identifier: string;
isMine: boolean;
isLiked: boolean;
isReported: boolean;
avatar_url: string;
isRetweet: number | boolean;
isRetweetedByPlayer?: boolean;
retweetIdentifier: string;
retweetId: string;
seconds_since_tweet: number;
retweetProfileName: string;
retweetAvatarUrl: string;
createdAt: string;
updatedAt: string;
}
export interface Image {
id: string;
link: string;
}
export interface FormattedTweet extends Omit<Tweet, 'images'> {
images: Image[];
}
export interface Profile {
id: number;
profile_name: string;
identifier: string;
avatar_url?: string;
bio?: string;
location?: string;
job?: string;
createdAt: string;
updatedAt: string;
}