Feed DTO
Описание сущностей и типов из src/dto/feed/.
Обогащено snapshot-данными бэкенд-DTO (0 из 4 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
FeedEntryDto
One entry of a lead/client activity feed. Immutable event fact.
payload is a small kind-specific JSON object (e.g. { from, to } for a status change, { direction, outcome, result, startedAt, endedAt } for a call). Narrow it by kind.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
subjectType | FeedSubjectTypeDto | да | — |
subjectId | number | да | — |
occurredAt | string | да | ISO 8601 instant the event happened at. Feed is ordered by this, newest first. |
kind | FeedEntryKindDto | да | — |
actorUserId | number | null | нет | — |
actorName | string | null | нет | — |
title | string | null | нет | — |
payload | Record<string, unknown> | null | нет | — |
Пример
{
"id": 0,
"subjectType": "<FeedSubjectTypeDto>",
"subjectId": 0,
"occurredAt": "2026-05-05T08:00:00Z",
"kind": "<FeedEntryKindDto>",
"actorUserId": 0,
"actorName": "string",
"title": "string",
"payload": "<record<string, unknown>>"
}FeedEntryKindDto
Kind of a feed timeline entry. Mirrors FeedEntryKind on the backend.
Значения
| Имя | Значение | Описание |
|---|---|---|
LeadCreated | 1 | — |
LeadStatusChanged | 2 | — |
ClientStatusChanged | 3 | — |
Call | 4 | — |
Email | 5 | — |
Mail | 6 | — |
Task | 7 | — |
RecallScheduled | 8 | — |
RecallRescheduled | 9 | — |
RecallCancelled | 10 | — |
RecallCompleted | 11 | — |
RecallAttempt | 12 | — |
Пример
1FeedSubjectTypeDto
Subject a feed timeline belongs to. Mirrors FeedSubjectType on the backend.
Значения
| Имя | Значение | Описание |
|---|---|---|
Lead | 1 | — |
Client | 2 | — |
Пример
1GetFeedRequestDto
Query for GET Api/Feed. The subject is a lead or a client; the feed of a lead continues after it converts to a client, and the feed of a client includes the events of the leads that converted into it (expanded server-side through the lead↔client link).
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
subjectType | FeedSubjectTypeDto | да | — |
subjectId | number | да | — |
pagination | Pagination | да | — |
Пример
{
"subjectType": "<FeedSubjectTypeDto>",
"subjectId": 0,
"pagination": "<Pagination>"
}