Types Directory
Location: src/types/
Purpose: TypeScript type definitions and interfaces shared across the application.
Structure
types/
├── campaign.ts # Campaign-related types
├── common.ts # Common types (QueryResponse, etc.)
├── credentialsRecord.ts # Credentials type definitions
├── error.ts # Error type definitions
├── form.ts # Form state types
├── formComponent.ts # Form component types
├── permissionKey.ts # Permission key types
├── permissionSetsRecord.ts # Responsibilities types
├── petitons.ts # Petition types
├── rateRecord.ts # Rate record types
├── rolesRecord.ts # Role types
├── signature.ts # Signature types
├── teamsRecord.ts # Team types
├── transactionRecord.ts # Transaction types
└── user.ts # User types
Type Organization
- Domain Types: Types organized by domain (campaign, petition, team, etc.)
- Common Types: Shared types like
QueryResponse,FormState - Record Types: Database record types matching Supabase schema
- Form Types: Form data and validation types