- Updated package version to 3.0.0
- Improved FCM topic handling logic
- Enhanced schedule parser accuracy
- Removed HTTPS options for dev simplicity
- Added detailed API documentation
- Removed support for older api versions
- Rename DTOs to entities and move them to appropriate directories
- Remove deprecated controllers and services
- Update imports and dependencies
- Implement new class transformer decorators for better serialization
- Add VK authentication support
- Improve error handling and validation
- Update ESLint configuration and TypeScript settings
- Refactor schedule parsing logic
- Enhance user and authentication services
- Update Prisma schema and related entities
- Improve code organization and structure
This commit introduces significant changes to improve the overall structure and maintainability of the codebase, including better organization of DTOs, enhanced authentication features, and updated tooling configurations.
Энд-поинт schedule/get-group-names теперь не требует авторизации (для формы регистрации).
Энд-поинт schedule/get-group теперь не требует указания группы. Она берётся из данных пользователя.
Энд-поинт auth/sign-in теперь может возвращать группу пользователя начиная с версии 1.
Добавлена возможность заменять файл с расписанием.
Добалена возможность давать доступ к end-point'ам только определённым ролям.
Чуть-чуть меньше спагетти в объявлениях модулей.
Фикс невозможности парсинга субботы.
class-validator.interceptor.ts
- Добавлена возможность возвращать клиенту любой DTO из списка.
Добавлен разный ответ клиенту в зависимости от его версии.
Названия конечных точек теперь пишутся в нижнем регистре через знак минуса.
У DTO добавлена пара недостающих примеров в документации.
Удалён неиспользуемый декоратор IsMap.
users.controller.ts
- Описана конечная точка "me".
- Добавлены конечные точки "change-username" и "change-group", для смены имени пользователя и группы соответственно.
users.service.ts
- Добавлены методы "changeUsername" и "changeGroup", для смены имени пользователя и группы соответственно.