refactor: clarify frontend module ownership
Frontend verify / commits (pull_request) Failing after 1m19s
Frontend verify / security (pull_request) Skipped
Frontend verify / verify (pull_request) Skipped

This commit is contained in:
2026-09-29 07:07:36 +03:00
parent 7c28a423dd
commit f9f0f6921e
91 changed files with 1292 additions and 1050 deletions
@@ -1,10 +1,13 @@
import type { BondCandles, BondPosition } from "@/entities/bond";
import type { BrokerageOperation } from "@/entities/broker-operation";
import type { paths } from "@/shared/api";
import type { StockCandles, StockPosition } from "@/entities/stock";
import type { SectionState } from "./section";
type Candles = NonNullable<
paths["/api/v1/stocks/{uid}/candles"]["get"]["responses"][200]["content"]["application/json"]["data"]
type Candles = Pick<BondCandles | StockCandles,
"candles"
| "currency"
| "historyFrom"
>;
type InstrumentChartProps = { priceUnit?: "percent"; vm: InstrumentChartVm };
@@ -33,8 +36,6 @@ type InstrumentPositionVm = {
positionState: SectionState;
};
type Position = NonNullable<
paths["/api/v1/stocks/{uid}/position"]["get"]["responses"][200]["content"]["application/json"]["data"]
>;
type Position = BondPosition | StockPosition;
export type { InstrumentChartProps, InstrumentEventsVm, InstrumentPositionVm };