/
voting
/
frontend
Обзор
Документация
Войти
/
voting
/
frontend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
main
src/api/types/admin-events.ts
48 строк
1 KB
TimPulin
023-admin-events-api
18 июл 2026, 15:29
18 июл 2026, 15:29
51f6f42
Код
Авторство
О чём код?
import type { EventScreenType, EventStatus, ResultScreenType } from './enums' /** Mirror of AdminEventResponseDto — CRUD /admin/events */ export interface AdminEventResponseDto { id: string name: string status: EventStatus | string currentScreenType: EventScreenType | string currentNominationId: string | null logoFileId: string | null createdAt: string updatedAt: string } /** Mirror of CreateEventDto — POST /admin/events */ export interface CreateEventDto { name: string } /** Mirror of UpdateEventDto — PUT /admin/events/:id */ export interface UpdateEventDto { name?: string status?: EventStatus currentScreenType?: EventScreenType } /** Mirror of SetScreenDto — PUT /admin/events/:eventId/screen */ export interface SetScreenDto { screenType: ResultScreenType currentNominationId?: string } /** Mirror of ScreenResponseDto (updatedAt is ISO string on the wire) */ export interface ScreenResponseDto { screenType: ResultScreenType currentNominationId: string | null updatedAt: string } /** Mirror of SetCurrentNominationDto — PUT /admin/events/:eventId/current-nomination */ export interface SetCurrentNominationDto { nominationId: string } /** Mirror of CurrentNominationResponseDto — GET/PUT admin current-nomination */ export interface CurrentNominationResponseDto { nominationId: string | null }