feat(events): add date filters to upcoming events

This commit is contained in:
2026-09-12 11:57:42 +03:00
parent 2580134683
commit 9469dd2fdc
11 changed files with 311 additions and 71 deletions
+12 -2
View File
@@ -3004,7 +3004,12 @@ export interface operations {
};
UpcomingEventsController_all: {
parameters: {
query?: never;
query?: {
/** @description Inclusive start date (YYYY-MM-DD). Defaults to today in UTC. */
from?: string;
/** @description Inclusive end date (YYYY-MM-DD). Defaults to 30 days after from. */
to?: string;
};
header?: never;
path?: never;
cookie?: never;
@@ -3068,7 +3073,12 @@ export interface operations {
};
UpcomingEventsController_get: {
parameters: {
query?: never;
query?: {
/** @description Inclusive start date (YYYY-MM-DD). Defaults to today in UTC. */
from?: string;
/** @description Inclusive end date (YYYY-MM-DD). Defaults to 30 days after from. */
to?: string;
};
header?: never;
path: {
accountId: string;
+42 -1
View File
@@ -2544,7 +2544,28 @@
"/api/v1/brokerage-accounts/all/events": {
"get": {
"operationId": "UpcomingEventsController_all",
"parameters": [],
"parameters": [
{
"name": "from",
"required": false,
"in": "query",
"description": "Inclusive start date (YYYY-MM-DD). Defaults to today in UTC.",
"schema": {
"format": "date",
"type": "string"
}
},
{
"name": "to",
"required": false,
"in": "query",
"description": "Inclusive end date (YYYY-MM-DD). Defaults to 30 days after from.",
"schema": {
"format": "date",
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
@@ -2628,6 +2649,26 @@
"schema": {
"type": "string"
}
},
{
"name": "from",
"required": false,
"in": "query",
"description": "Inclusive start date (YYYY-MM-DD). Defaults to today in UTC.",
"schema": {
"format": "date",
"type": "string"
}
},
{
"name": "to",
"required": false,
"in": "query",
"description": "Inclusive end date (YYYY-MM-DD). Defaults to 30 days after from.",
"schema": {
"format": "date",
"type": "string"
}
}
],
"responses": {
+1 -1
View File
@@ -443,7 +443,7 @@ const ru = {
recentError: "Не удалось загрузить будущие события.",
recentEmpty: "На ближайшие 30 дней событий не найдено.",
hint: "Прогноз рассчитан по текущей позиции до налогов. Покрытие зависит от доступных данных MOEX.",
emptyTitle: "На ближайшие 30 дней событий не найдено",
emptyTitle: "За выбранный период событий не найдено",
emptyText:
"Доступные источники не сообщили о купонах, дивидендах, погашениях или офертах в этом периоде.",
errorTitle: "Не удалось загрузить будущие события",