Перейти к содержимому

itd-api / Post

Interface: Post ​

Defined in: models/content.ts:91

Пост ленты, стены или профиля.

Extends ​

Properties ​

attachments ​

ts
attachments: Attachment[];

Defined in: models/content.ts:71

Inherited from ​

PostBase.attachments


author ​

ts
author: Author;

Defined in: models/content.ts:70

Inherited from ​

PostBase.author


comments? ​

ts
optional comments?: Comment[];

Defined in: models/content.ts:114

Топовые комментарии. Приходят только в ответе GET /api/posts/{id}.

В списках постов поле отсутствует.


commentsCount ​

ts
commentsCount: number;

Defined in: models/content.ts:57

Inherited from ​

PostBase.commentsCount


content ​

ts
content: string;

Defined in: models/content.ts:67

Inherited from ​

PostBase.content


createdAt ​

ts
createdAt: string;

Defined in: models/content.ts:72

Inherited from ​

PostBase.createdAt


dominantEmoji? ​

ts
optional dominantEmoji?: string | null;

Defined in: models/content.ts:61

Преобладающая реакция — эмодзи либо null.

Inherited from ​

PostBase.dominantEmoji


editedAt? ​

ts
optional editedAt?: string | null;

Defined in: models/content.ts:108

Когда пост отредактировали. null, если не редактировали.


id ​

ts
id: string;

Defined in: models/content.ts:66

Inherited from ​

PostBase.id


isLiked ​

ts
isLiked: boolean;

Defined in: models/content.ts:97

Поставили ли вы реакцию.


isOwner ​

ts
isOwner: boolean;

Defined in: models/content.ts:103

Ваш ли это пост.


isReposted ​

ts
isReposted: boolean;

Defined in: models/content.ts:99

Делали ли вы репост.


isViewed? ​

ts
optional isViewed?: boolean;

Defined in: models/content.ts:101

Засчитан ли просмотр.


likesCount ​

ts
likesCount: number;

Defined in: models/content.ts:56

Inherited from ​

PostBase.likesCount


originalPost? ​

ts
optional originalPost?: OriginalPost | null;

Defined in: models/content.ts:105

Пост, который репостнули, если это репост. null у обычного поста.


poll? ​

ts
optional poll?: Poll | null;

Defined in: models/content.ts:106


repostsCount ​

ts
repostsCount: number;

Defined in: models/content.ts:58

Inherited from ​

PostBase.repostsCount


spans ​

ts
spans: Span[];

Defined in: models/content.ts:69

Разметка текста. Передаётся без изменений, см. Span.

Inherited from ​

PostBase.spans


viewsCount ​

ts
viewsCount: number;

Defined in: models/content.ts:59

Inherited from ​

PostBase.viewsCount


vs? ​

ts
optional vs?: string;

Defined in: models/content.ts:78

Служебная метка показа для телеметрии.

Нужна только эндпоинтам itd.telemetry.*. В остальных случаях игнорируйте.

Inherited from ​

PostBase.vs


wallRecipient? ​

ts
optional wallRecipient?: Author | null;

Defined in: models/content.ts:95

Владелец стены. Приходит не во всех ответах.


wallRecipientId ​

ts
wallRecipientId: string | null;

Defined in: models/content.ts:93

Чья это стена, если пост опубликован не у себя.

Документация itd-api