Skip to content

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.

Поля ​

ПолеТипОбязательноеОписание
idnumberда—
subjectTypeFeedSubjectTypeDtoда—
subjectIdnumberда—
occurredAtstringдаISO 8601 instant the event happened at. Feed is ordered by this, newest first.
kindFeedEntryKindDtoда—
actorUserIdnumber | nullнет—
actorNamestring | nullнет—
titlestring | nullнет—
payloadRecord<string, unknown> | nullнет—

Пример ​

json
{
  "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.

Значения ​

ИмяЗначениеОписание
LeadCreated1—
LeadStatusChanged2—
ClientStatusChanged3—
Call4—
Email5—
Mail6—
Task7—
RecallScheduled8—
RecallRescheduled9—
RecallCancelled10—
RecallCompleted11—
RecallAttempt12—

Пример ​

json
1


FeedSubjectTypeDto ​

Subject a feed timeline belongs to. Mirrors FeedSubjectType on the backend.

Значения ​

ИмяЗначениеОписание
Lead1—
Client2—

Пример ​

json
1


GetFeedRequestDto ​

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).

Поля ​

ПолеТипОбязательноеОписание
subjectTypeFeedSubjectTypeDtoда—
subjectIdnumberда—
paginationPaginationда—

Пример ​

json
{
  "subjectType": "<FeedSubjectTypeDto>",
  "subjectId": 0,
  "pagination": "<Pagination>"
}