batchCooking/packages/shared/src/index.ts
Nicolas e3811dc280 Shared + migration: table user_preference (thème clair/sombre/système) (step 1/4)
- Modèle Prisma UserPreference (1-1 avec UserProfile, onDelete Cascade),
  enum ThemePreference (LIGHT/DARK/SYSTEM, défaut SYSTEM)
- packages/shared: THEME_PREFERENCES/ThemePreference, PreferencesView,
  updatePreferencesSchema
2026-08-17 15:55:18 +02:00

18 lines
767 B
TypeScript

// Public entry point of the code shared between apps/api and apps/web.
// Anything exported here is part of the cross-app contract — keep it
// intentional (types, validation schemas, error codes), not an implementation
// detail specific to one side.
export * from "./errors/error-codes.js";
export * from "./schemas/account.js";
export * from "./schemas/auth.js";
export * from "./schemas/household.js";
export * from "./schemas/planning.js";
export * from "./schemas/preferences.js";
export * from "./schemas/profile.js";
export * from "./tools/assert-is-never.js";
export * from "./types/household.js";
export * from "./types/planning.js";
export * from "./types/preferences.js";
export * from "./types/reference.js";
export * from "./types/user-profile.js";