Add `RelationshipType` & renegerate types

This commit is contained in:
Roj Serbest 2021-10-18 19:31:28 +03:00
parent 8236321102
commit 3bc0220535
2 changed files with 11 additions and 1 deletions

View File

@ -3,7 +3,8 @@
"FileType": "\"DOCUMENT\" | \"PHOTO\" | \"VIDEO\" | \"AUDIO\"",
"PeerType": "\"USER\" | \"BOT\" | \"PROXY\"",
"TextEntityType": "\"BOLD\" | \"ITALIC\" | \"CODE\" | \"STRIKE\" | \"UNDERLINE\" | \"URL\" | \"MENTION\" | \"HASHTAG\"",
"PostType": "\"UNKNOWN\" | \"DELETED\" | \"POST\" | \"REPLY\" | \"QUOTE\" | \"REPOST\""
"PostType": "\"UNKNOWN\" | \"DELETED\" | \"POST\" | \"REPLY\" | \"QUOTE\" | \"REPOST\"",
"RelationshipType": "\"NONE\" | \"FOLLOWING\" | \"FOLLOWS_YOU\" | \"AWAITING_APPROVAL\" | \"MUTUALLY_FOLLOWING\" | \"BLOCKED\" | \"BLOCKED_YOU\""
},
"interfaces": {
"Post": {

View File

@ -14,6 +14,15 @@ export type TextEntityType =
export type PostType = "UNKNOWN" | "DELETED" | "POST" | "REPLY" | "QUOTE" | "REPOST";
export type RelationshipType =
| "NONE"
| "FOLLOWING"
| "FOLLOWS_YOU"
| "AWAITING_APPROVAL"
| "MUTUALLY_FOLLOWING"
| "BLOCKED"
| "BLOCKED_YOU";
export interface Post {
id: string;
type: PostType;