Models (Task, Streak, StreakEntry, Reward, User, TimeEstimate, CoworkingRoom, ApiResponse), enums (EnergyLevel, TaskStatus, RewardType, RewardStyle), constants (ApiConstants, ErrorCodes, AppLimits), validators, and generated .g.dart files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
885 B
Dart
19 lines
885 B
Dart
class ErrorCodes {
|
|
ErrorCodes._();
|
|
static const String invalidCredentials = 'INVALID_CREDENTIALS';
|
|
static const String emailAlreadyExists = 'EMAIL_ALREADY_EXISTS';
|
|
static const String tokenExpired = 'TOKEN_EXPIRED';
|
|
static const String tokenInvalid = 'TOKEN_INVALID';
|
|
static const String unauthorized = 'UNAUTHORIZED';
|
|
static const String taskNotFound = 'TASK_NOT_FOUND';
|
|
static const String streakNotFound = 'STREAK_NOT_FOUND';
|
|
static const String noTasksAvailable = 'NO_TASKS_AVAILABLE';
|
|
static const String roomFull = 'ROOM_FULL';
|
|
static const String roomNotFound = 'ROOM_NOT_FOUND';
|
|
static const String validationError = 'VALIDATION_ERROR';
|
|
static const String notFound = 'NOT_FOUND';
|
|
static const String internalError = 'INTERNAL_ERROR';
|
|
static const String rateLimited = 'RATE_LIMITED';
|
|
static const String premiumRequired = 'PREMIUM_REQUIRED';
|
|
}
|