itd-api / Post
Interface: Post
Defined in: models/content.ts:91
Пост ленты, стены или профиля.
Extends
Properties
attachments
attachments: Attachment[];Defined in: models/content.ts:71
Inherited from
author
author: Author;Defined in: models/content.ts:70
Inherited from
comments?
optional comments?: Comment[];Defined in: models/content.ts:114
Топовые комментарии. Приходят только в ответе GET /api/posts/{id}.
В списках постов поле отсутствует.
commentsCount
commentsCount: number;Defined in: models/content.ts:57
Inherited from
content
content: string;Defined in: models/content.ts:67
Inherited from
createdAt
createdAt: string;Defined in: models/content.ts:72
Inherited from
dominantEmoji?
optional dominantEmoji?: string | null;Defined in: models/content.ts:61
Преобладающая реакция — эмодзи либо null.
Inherited from
editedAt?
optional editedAt?: string | null;Defined in: models/content.ts:108
Когда пост отредактировали. null, если не редактировали.
id
id: string;Defined in: models/content.ts:66
Inherited from
isLiked
isLiked: boolean;Defined in: models/content.ts:97
Поставили ли вы реакцию.
isOwner
isOwner: boolean;Defined in: models/content.ts:103
Ваш ли это пост.
isReposted
isReposted: boolean;Defined in: models/content.ts:99
Делали ли вы репост.
isViewed?
optional isViewed?: boolean;Defined in: models/content.ts:101
Засчитан ли просмотр.
likesCount
likesCount: number;Defined in: models/content.ts:56
Inherited from
originalPost?
optional originalPost?: OriginalPost | null;Defined in: models/content.ts:105
Пост, который репостнули, если это репост. null у обычного поста.
poll?
optional poll?: Poll | null;Defined in: models/content.ts:106
repostsCount
repostsCount: number;Defined in: models/content.ts:58
Inherited from
spans
spans: Span[];Defined in: models/content.ts:69
Разметка текста. Передаётся без изменений, см. Span.
Inherited from
viewsCount
viewsCount: number;Defined in: models/content.ts:59
Inherited from
vs?
optional vs?: string;Defined in: models/content.ts:78
Служебная метка показа для телеметрии.
Нужна только эндпоинтам itd.telemetry.*. В остальных случаях игнорируйте.
Inherited from
wallRecipient?
optional wallRecipient?: Author | null;Defined in: models/content.ts:95
Владелец стены. Приходит не во всех ответах.
wallRecipientId
wallRecipientId: string | null;Defined in: models/content.ts:93
Чья это стена, если пост опубликован не у себя.