/
voting
/
frontend
Обзор
Документация
Войти
/
voting
/
frontend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
main
src/types/user-flow.ts
29 строк
810 B
TimPulin
039-update-sse-unified-payload
19 июл 2026, 15:39
19 июл 2026, 15:39
ce4a214
Код
Авторство
О чём код?
import type { CurrentNominationDetailsResponseDto, EventScreenType, ResultScreenType } from '../api/types' /** SSE / router screen scale (camelCase). Not REST EventScreenType. */ export type SseScreenType = 'nomination' | 'nominationResult' | 'finalResult' /** Published SSE envelope types handled in v1. */ export type UserFlowSseEventType = 'nominationChanged' | 'showResult' export interface SseEventData { screenType: SseScreenType nominationId: string | null } export interface UserFlowSseEnvelope { type: string data: unknown } export type ParsedUserFlowSseEvent = | { type: 'nominationChanged'; data: SseEventData } | { type: 'showResult'; data: SseEventData } export type UserFlowSnapshot = CurrentNominationDetailsResponseDto export type { EventScreenType, ResultScreenType }