Initial scaffold: FocusFlow shared Dart package

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>
This commit is contained in:
Oracle Public Cloud User
2026-03-04 15:50:26 +00:00
commit 1363f7d12d
32 changed files with 1197 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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';
}