/
GEOSHEV
/
Event-app
Обзор
Документация
Войти
/
GEOSHEV
/
Event-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/types/auth.ts
122 строки
2 KB
Gosha
refactor
12 июн 2026, 19:56
12 июн 2026, 19:56
b15ad19
Код
Авторство
О чём код?
export type SignInResponse = { accessToken: string; refreshToken: string; }; export type User = { id: number; email: string; firstName: string; secondName: string; role: string; }; export type Child = { id: string; firstName: string; secondName: string; birthDate: string; }; export type UpdateUserDto = { firstName: string; secondName: string; }; export type CreateChildDto = { firstName: string; secondName: string; birthDate: string; }; export type UpdateChildDto = { firstName: string; secondName: string; birthDate: string; }; export type LessonImage = { id: number; path: string; position: number; }; export type PricingTier = { id: number; name: string; price: number; }; export type Category = { id: number; name: string; }; export type Lesson = { id: number; name: string; description: string; isActive: boolean; teacher: string; startsAt: string; endsAt: string; coverImage: LessonImage | null; images: LessonImage[]; pricingTiers: PricingTier[]; categories: Category[]; }; export type LessonListResponse = { data: Lesson[]; meta: { totalCount: number; totalPagesAmount: number; currentPage: number; }; }; export type LessonFilters = { limit?: number; page?: number; search?: string; categoryId?: number; priceFrom?: number; priceTo?: number; }; export type CreateEnrollmentDto = { lessonId: number; childId: number; consentedAt: string; isConsented: boolean; }; export type EnrollmentStatus = "active" | "pending" | "suspended"; export type Enrollment = { id: number; status: EnrollmentStatus; enrolledAt: string; createdAt: string; lesson: { id: number; name: string; teacher: string; startsAt: string; endsAt: string; }; child: { id: number; firstName: string; secondName: string; }; }; export type EnrollmentListResponse = { data: Enrollment[]; meta: { totalCount: number; totalPagesAmount: number; currentPage: number; }; };