photum/types.ts
João Vitor 1caeddc72c feat: Initialize PhotumManager project structure
This commit sets up the foundational project structure for PhotumManager. It includes:
- Initializing a new React project with Vite.
- Configuring essential dependencies such as React, Lucide React, and the Google Generative AI SDK.
- Setting up TypeScript and Vite configurations for optimal development.
- Defining core application metadata and initial type definitions for users and events.
- Establishing basic styling and font configurations in `index.html` with Tailwind CSS.
- Adding a `.gitignore` file to manage project dependencies and build artifacts.
- Updating the README with instructions for local development.
2025-11-25 11:02:25 -03:00

82 lines
No EOL
1.6 KiB
TypeScript

export enum UserRole {
SUPERADMIN = 'SUPERADMIN',
BUSINESS_OWNER = 'BUSINESS_OWNER',
EVENT_OWNER = 'EVENT_OWNER',
PHOTOGRAPHER = 'PHOTOGRAPHER'
}
export enum EventStatus {
PENDING_APPROVAL = 'Aguardando Aprovação', // Novo status para clientes
PLANNING = 'Em Planejamento',
CONFIRMED = 'Confirmado',
IN_PROGRESS = 'Em Execução',
DELIVERED = 'Entregue',
ARCHIVED = 'Arquivado'
}
export enum EventType {
WEDDING = 'Casamento',
CORPORATE = 'Corporativo',
BIRTHDAY = 'Aniversário',
DEBUTANTE = 'Debutante',
OTHER = 'Outro'
}
export interface User {
id: string;
name: string;
email: string;
role: UserRole;
avatar?: string;
}
export interface Address {
street: string;
number: string;
city: string;
state: string;
zip: string;
lat?: number;
lng?: number;
mapLink?: string; // URL from Google Maps Grounding
}
export interface Contact {
id: string;
name: string;
role: string;
phone: string;
email: string;
}
export interface ChecklistItem {
id: string;
task: string;
completed: boolean;
required: boolean;
}
export interface Attachment {
name: string;
size: string;
type: string;
url?: string; // Added URL for gallery display
}
export interface EventData {
id: string;
name: string;
date: string;
time: string;
type: EventType;
status: EventStatus;
address: Address;
contacts: Contact[];
checklist: ChecklistItem[];
briefing: string;
coverImage: string;
attachments: Attachment[];
ownerId: string; // ID do cliente dono do evento
photographerIds: string[]; // IDs dos fotógrafos designados
}