/
DaniilSk
/
DesignLab
Обзор
Документация
Войти
/
DaniilSk
/
DesignLab
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin-frontend/src/types/api.ts
95 строк
2 KB
Даниил
feat(admin): initialize admin frontend
13 июл 2026, 23:42
13 июл 2026, 23:42
1cc58f6
Код
Авторство
О чём код?
export interface Page<T> { items: T[] total: number limit: number offset: number } export interface UserRead { id: string name: string email: string | null avatar_url: string | null status: string referral_code: string created_at: string updated_at: string last_login_at: string | null } export interface SpeakerRead { id: string name: string photo_url: string | null position: string | null company: string | null bio: string | null links: Record<string, string> } export interface EventRead { id: string status: string starts_at: string | null location: string | null short_title: string full_title: string short_description: string | null slug: string image_url: string | null display_order: number is_visible: boolean registration_limit: number | null registration_remaining: number | null is_registration_available: boolean user_registration_status: string speakers: SpeakerRead[] } export interface AdminDashboard { users_total: number new_users: number active_events: number completed_events: number upcoming_event_title: string | null registered_total: number claimed_rewards_total: number } export interface LoyaltyRewardRead { id: string title: string semantic_state: string claimed_count: number stock_limit: number | null is_active: boolean } export interface LoyaltyLevelRead { id: string title: string level_order: number required_points: number rewards: LoyaltyRewardRead[] } export interface LoyaltyRead { program: { id: string; title: string; code: string; description: string | null } progress: { points: number } levels: LoyaltyLevelRead[] } export interface ArticleBlockRead { id: string type: string content: Record<string, unknown> settings: Record<string, unknown> display_order: number } export interface ArticleRead { id: string event_id: string status: string blocks: ArticleBlockRead[] }