itd-api / Post
Interface: Post
Defined in: models/content.ts:55
Пост ленты, стены или профиля.
Properties
attachments
attachments: Attachment[];Defined in: models/content.ts:61
author
author: Author;Defined in: models/content.ts:60
comments?
optional comments?: Comment[];Defined in: models/content.ts:97
Топовые комментарии. Приходят только в ответе GET /api/posts/{id}.
В списках постов поле отсутствует.
commentsCount
commentsCount: number;Defined in: models/content.ts:63
content
content: string;Defined in: models/content.ts:57
createdAt
createdAt: string;Defined in: models/content.ts:85
dominantEmoji?
optional dominantEmoji?: string | null;Defined in: models/content.ts:82
Преобладающая реакция — эмодзи либо null.
editedAt?
optional editedAt?: string | null;Defined in: models/content.ts:84
Когда пост отредактировали. null, если не редактировали.
id
id: string;Defined in: models/content.ts:56
isLiked
isLiked: boolean;Defined in: models/content.ts:71
Поставили ли вы реакцию.
isOwner
isOwner: boolean;Defined in: models/content.ts:77
Ваш ли это пост.
isReposted
isReposted: boolean;Defined in: models/content.ts:73
Делали ли вы репост.
isViewed?
optional isViewed?: boolean;Defined in: models/content.ts:75
Засчитан ли просмотр.
likesCount
likesCount: number;Defined in: models/content.ts:62
originalPost?
optional originalPost?: Post | null;Defined in: models/content.ts:79
Исходный пост, если это репост.
poll?
optional poll?: Poll | null;Defined in: models/content.ts:80
repostsCount
repostsCount: number;Defined in: models/content.ts:64
spans
spans: Span[];Defined in: models/content.ts:59
Разметка текста. Передаётся без изменений, см. Span.
viewsCount
viewsCount: number;Defined in: models/content.ts:65
vs?
optional vs?: string;Defined in: models/content.ts:91
Служебная метка показа для телеметрии.
Нужна только эндпоинтам itd.telemetry.*. В остальных случаях игнорируйте.
wallRecipient?
optional wallRecipient?: Author | null;Defined in: models/content.ts:69
Владелец стены. Приходит не во всех ответах.
wallRecipientId
wallRecipientId: string | null;Defined in: models/content.ts:67
Чья это стена, если пост опубликован не у себя.