import type { MoonData } from "../../components/MoonCard"; import type { Ritual } from "../../components/DailyRitualCard"; import type { ReactNode } from "react"; import type { CalendarItem, CalendarDateRange, CalendarViewMode, CalendarStatusFilter } from "./components/HomeCalendar"; import type { CompletenessData } from "../../components/molecules/CompletenessCard"; import type { ProfileCompletenessData } from "../../components/molecules/ProfileCompletenessCard"; import type { GamificationSummary } from "../../components/molecules/GamificationCard"; import type { HomeWidgetId, HomeWidgetOrder, HomeWidgetOrderChangeMeta, HomeWidgetsCustomizeView } from "./widgets/homeWidgets.catalog"; import type { HomeBottomNavShortcuts } from "./components/bottomNavShortcuts"; import type { QuickActionPreferences, QuickActionPreferencesChangeMeta } from "./components/quickActionPreferences"; /** * Represents a Terreiro (spiritual house/temple) in the application. * Used for displaying and selecting terreiros in the HomePage. */ export interface Terreiro { /** Unique identifier for the terreiro */ id: string; /** Display name of the terreiro */ name: string; /** Optional URL to the terreiro's image/logo */ imageUrl?: string | null; /** Badge tier for profile verification */ badgeTier?: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; /** Completeness score percentage (0-100) */ completenessScore?: number; /** House lifecycle status. Missing means the house is treated as active. */ status?: "ACTIVE" | "INACTIVE" | "ARCHIVED"; /** Whether the current user can archive or restore this house. */ canArchive?: boolean; } export type ProfileSelectorEntryPoint = "top_bar_avatar" | "bottom_nav_logo"; export type ProfileSelectorOpenPayload = { entryPoint: ProfileSelectorEntryPoint; availableProfileCount: number; }; export type ProfileSelectorSelectPayload = ProfileSelectorOpenPayload & { selectedProfileType: "personal" | "terreiro"; selectedTerreiroId: string | null; selectedIndex: number; isSameAsCurrent: boolean; }; /** * Props for the HomePage component. * Contains all data and callbacks needed to render the main dashboard. */ export interface HomePageProps { /** Whether the current user has admin privileges */ isAdmin: boolean; /** Whether the user is viewing from a personal (non-terreiro) profile */ isPersonalProfile?: boolean; /** Show the Ingressos quick action (terreiro + event.publish + ticketing chat flag) */ canPublishTickets?: boolean; /** Show the Estoque quick action to non-admins inside a terreiro (`inventory.view`). */ canViewInventory?: boolean; /** Show Personal-profile Social quick action / bottom nav when social feature is enabled */ canUseSocial?: boolean; /** * Unread Social notifications count (same source as Social inbox). * Shown as a numeric badge on the Social quick action, Home Menu row, and bottom-nav Social tab. * Hidden when 0 / undefined; display caps at `99+`. */ socialNotificationsUnreadCount?: number; /** Current user information including profile, address, and contact */ user?: { profile: { /** User's first name */ firstName: string; /** User's last name */ lastName: string; /** URL to user's avatar image */ avatarUrl: string; /** Type of identification document */ documentType: "CPF" | "RG"; /** Document number */ document: string; /** User's address information */ address?: { id: string; street: string; number: string; complement?: string; neighborhood: string; city: string; state: string; zipCode: string; country: string; }; /** User's contact information */ contact?: { phone: string; contact_person?: string; }; }; }; /** Dashboard statistics to display */ stats?: HomePageStat[]; /** Quick action buttons for common tasks */ quickActions?: QuickAction[]; /** List of upcoming events */ upcomingEvents?: EventItem[]; /** Recent activities and notifications */ recentActivities?: HomePageRecentActivity[]; /** Callback when navigation is requested */ onNavigate?: (route: string) => void; /** Callback when profile is clicked */ onProfileClick?: () => void; /** Whether Acesso Rápido shortcuts are shown in the TopBar (default true). Alias of homeWidgets.quickActions. */ showQuickActions?: boolean; /** Callback when the Acesso Rápido visibility toggle changes (app persists). Alias of onHomeWidgetVisibilityChange for quickActions. */ onShowQuickActionsChange?: (visible: boolean) => void; /** Visibility map for Home content widgets (missing ids default to true) */ homeWidgets?: Partial>; /** Callback when a Home widget visibility toggle changes */ onHomeWidgetVisibilityChange?: (id: HomeWidgetId, visible: boolean) => void; /** Ordered list of reorderable home-body widget ids (missing ids appended from defaults) */ homeWidgetOrder?: HomeWidgetOrder; /** Callback when the Home widget order changes (optional meta for analytics) */ onHomeWidgetOrderChange?: (order: HomeWidgetOrder, meta?: HomeWidgetOrderChangeMeta) => void; /** * Fired when the user opens Exibir widgets or Ordenar widgets from Home Menu. * App uses this for product analytics; does not fire for root Opções. */ onHomeWidgetsCustomizeViewOpen?: (view: HomeWidgetsCustomizeView) => void; /** * Leading and trailing Funcionalidade ids for the active profile. * Omit to use that profile's defaults (Eventos/Social/Banhos + Atividades). */ bottomNavShortcuts?: HomeBottomNavShortcuts; /** Persists the pair for the active profile only (personal, or one terreiro). */ onBottomNavShortcutChange?: (shortcuts: HomeBottomNavShortcuts) => void; /** * Order and hidden ids of the Acesso Rápido shortcuts. Ids the profile does * not offer are ignored; missing ids keep their default position. */ quickActionPreferences?: QuickActionPreferences; /** Called on every change from Personalizar Acesso Rápido (app persists). */ onQuickActionPreferencesChange?: (preferences: QuickActionPreferences, meta?: QuickActionPreferencesChangeMeta) => void; /** Callback when notifications are clicked */ onNotificationClick?: () => void; /** Number of unread notifications to show on the bell icon badge */ notificationCount?: number; /** Brief notification items for bell quick panel (max 3 shown) */ notificationItems?: Array<{ id: string; type: string; message: string; read: boolean; timestamp: string | Date; terreiroId?: string; imageUrl?: string; }>; /** Callback when "Ver todas" is clicked in bell panel (falls back to onNotificationClick) */ onViewAllNotifications?: () => void; /** Callback when one bell-panel notification is clicked */ onNotificationItemClick?: (id: string) => void; /** Unread product updates shown on the "Novidades" badge (personal and terreiro contexts) */ whatsNewCount?: number; /** Opens the What's New drawer; the button is hidden when omitted */ onWhatsNewClick?: () => void; /** Callback when search is clicked */ onSearchClick?: () => void; /** Callback when settings are clicked */ onSettingsClick?: () => void; /** Callback when onboarding intro icon in top bar is clicked */ onOnboardingInfoClick?: () => void; /** Optional custom icon for onboarding intro action in top bar */ onboardingInfoIcon?: ReactNode; /** Share URL used by the top bar invite action; falls back to the app origin when omitted */ inviteShareUrl?: string; /** Callback when refresh is requested */ onRefresh?: () => void; /** Callback when rejection dialog should be shown */ onRejectedDialog: () => void; /** Callback when approved alert should be shown */ onApprovedAlert: () => void; /** Current medium approval status */ mediumStatus?: MediumStatus; /** Message explaining why the medium was rejected */ rejectionMessage?: string; /** * Optional default selected terreiro. When provided, the hook will * initialize and sync the selected terreiro to this value if it exists * in the `terreiros` list. */ defaultTerreiro?: Terreiro | null; /** List of available terreiros for selection */ terreiros?: (Terreiro | null)[]; /** Callback when terreiro selection changes */ onTerreiroChange?: (terreiro: Terreiro | null) => void; /** Confirms archiving a house after the consequence dialog. */ onArchiveTerreiro?: (terreiro: Terreiro) => void | Promise; /** Confirms restoring an archived house. */ onRestoreTerreiro?: (terreiro: Terreiro) => void | Promise; isArchivingTerreiro?: boolean; isRestoringTerreiro?: boolean; /** Callback when the profile selector drawer is opened */ onProfileSelectorOpen?: (payload: ProfileSelectorOpenPayload) => void; /** Callback when a profile option is selected in the drawer */ onProfileSelectorSelect?: (payload: ProfileSelectorSelectPayload) => void; /** Moon phase data for display */ moonData?: MoonData; /** Callback when moon card is clicked */ onMoonCardClick?: () => void; /** Loading state for moon data */ isLoadingMoonData?: boolean; /** Ritual bath recommendations */ rituals?: Ritual[]; /** Callback when explore rituals is clicked */ onRitualExploreClick?: () => void; /** Callback when a specific ritual is clicked */ onRitualClick?: (ritualId: string) => void; /** Callback when quick actions layout changes */ onLayoutChange?: (layout: "grid" | "horizontal") => void; /** Calendar activities to display */ calendarActivities?: CalendarItem[]; /** Calendar events to display (only shown when user is medium AND terreiro admin) */ calendarEvents?: CalendarItem[]; /** Calendar ritual baths to display */ calendarRitualBaths?: CalendarItem[]; /** Loading state for daily ritual recommendations */ isLoadingRituals?: boolean; /** Selected calendar date for daily ritual display */ selectedRitualDate?: string; calendarViewMode?: CalendarViewMode; /** Current calendar status filter */ calendarStatusFilter?: CalendarStatusFilter; /** Loading state for calendar data */ isLoadingCalendar?: boolean; /** Callback when calendar view mode changes - should be used to fetch new data */ onCalendarViewModeChange?: (dateRange: CalendarDateRange) => void; /** * Callback when a calendar item is clicked. When provided it owns navigation; * otherwise the item's route is sent to `onNavigate`. */ onCalendarItemClick?: (item: CalendarItem) => void; /** Callback when a calendar date is selected */ onCalendarDateSelect?: (date: string) => void; /** Callback when calendar status filter changes */ onCalendarStatusFilterChange?: (status: CalendarStatusFilter) => void; /** Profile completeness data for verification badge card */ profileCompletenessData?: ProfileCompletenessData; /** Whether the profile completeness card is in compact mode */ profileCompletenessCompact?: boolean; /** Loading state for profile completeness */ isLoadingProfileCompleteness?: boolean; /** Callback when user clicks to complete profile */ onCompleteProfile?: () => void; /** Callback when user clicks to complete a specific section */ onCompleteSection?: (section: string) => void; /** Callback when profile completeness card compact state changes */ onProfileCompletenessCompactChange?: (compact: boolean) => void; /** Terreiro completeness data for organization verification badge card */ terreiroCompletenessData?: CompletenessData; /** Whether the terreiro completeness card is in compact mode */ terreiroCompletenessCompact?: boolean; /** Loading state for terreiro completeness */ isLoadingTerreiroCompleteness?: boolean; /** Callback when admin clicks to complete terreiro profile */ onCompleteTerreiroProfile?: () => void; /** Callback when admin clicks to complete a specific terreiro section */ onCompleteTerreiroSection?: (section: string) => void; /** Callback when terreiro completeness card compact state changes */ onTerreiroCompletenessCompactChange?: (compact: boolean) => void; /** Gamification summary data for the current medium */ gamificationData?: GamificationSummary | null; /** Loading state for gamification data */ isLoadingGamification?: boolean; /** Whether to show the gamification card */ showGamificationCard?: boolean; /** Callback when user clicks to view full leaderboard */ onViewLeaderboard?: () => void; /** Callback when user clicks to view all badges */ onViewBadges?: () => void; /** Callback when user clicks to learn how gamification works */ onLearnGamification?: () => void; /** Whether to display the attendance insights section */ showAttendanceInsights?: boolean; /** Aggregated attendance insights for the selected period */ attendanceInsightsData?: AttendanceInsightsData | null; /** Loading state for attendance insights */ isLoadingAttendanceInsights?: boolean; /** Current attendance period filter */ attendancePeriod?: AttendanceInsightsPeriod; /** Callback for changing attendance period */ onAttendancePeriodChange?: (period: AttendanceInsightsPeriod) => void; /** Callback for navigating to the full medium list/ranking */ onAttendanceViewAll?: () => void; /** Whether to display the supply plan card */ showSupplyPlanCard?: boolean; /** Summary data for the supply plan card */ supplyPlanData?: SupplyPlanSummary | null; /** Loading state for supply plan */ isLoadingSupplyPlan?: boolean; /** Navigate to full supply plan page */ onSupplyPlanViewAll?: () => void; /** Navigate to supply plan with missions focus (e.g. ?focus=missions) */ onSupplyPlanMissions?: () => void; /** Weekly engagement tasks already filtered by the app layer */ weeklyTasks?: WeeklyTask[]; /** Loading state for weekly tasks */ isLoadingWeeklyTasks?: boolean; /** Navigate to a weekly task. Omit to hide task CTAs. */ onWeeklyTaskClick?: (taskId: string, route: string) => void; /** Daily usage grid for the signed-in user */ usageHeatmap?: UsageHeatmapData | null; /** Loading state for the usage heatmap */ isLoadingUsageHeatmap?: boolean; /** Optional subscription trial / pause notice (presentation only) */ subscriptionNotice?: import("./components/SubscriptionNotice").SubscriptionNoticeData | null; onSubscriptionNoticeAction?: (event: { noticeId: string; actionId: string; }) => void; onSubscriptionNoticeDismiss?: (event: { noticeId: string; }) => void; onAnalyticsEvent?: import("../../onboarding/analytics").OnboardingAnalyticsCallback; } export type WeeklyTaskFeature = "events" | "activities" | "participation" | "financial" | "baths" | "mediums" | "inventory" | "requests" | "academy" | "spiritual"; export type UsageLevel = 0 | 1 | 2 | 3; export interface UsageHeatmapDay { date: string; opened: boolean; actionCount: number; level: UsageLevel; future: boolean; } export interface UsageHeatmapSummary { activeDays: number; streak: number; actionCount: number; } export interface UsageHeatmapData { timezone: string; from: string; to: string; today: string; weeks: number; days: UsageHeatmapDay[]; summary: UsageHeatmapSummary; } export interface WeeklyTask { id: string; title: string; description: string; feature: WeeklyTaskFeature; route: string; completed: boolean; ctaLabel?: string; } export interface SupplyPlanSummary { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }; itemsToBuyCount: number; readinessSummary?: string; missionsCount?: number; showCostMissionsTeaser?: boolean; coveragePercent?: number; itemsWithoutCostCount?: number; topItems: Array<{ id: string; name: string; toBuyQuantity: number; unit: string; estimatedCost?: number; imageUrl?: string | null; costSource?: "purchase_history" | "manual" | null; }>; } export type AttendanceInsightsPeriod = "WEEKLY" | "MONTHLY" | "YEARLY"; export interface AttendanceInsightsMedium { mediumId: string; mediumName: string; mediumAvatarUrl?: string | null; invites: number; confirmed: number; present: number; absent: number; declined: number; confirmationRate: number; presenceRate: number; absenceGap: number; } export interface AttendanceInsightsData { terreiroId: string; period: { month: number; year: number; start: string; end: string; }; summary: { invites: number; confirmed: number; present: number; absent: number; declined: number; confirmationRate: number; presenceRate: number; absenceGap: number; }; mediums: AttendanceInsightsMedium[]; } /** * Possible approval statuses for a medium in the terreiro. * - PENDING: Awaiting approval from terreiro admin * - APPROVED: Medium has been approved * - REJECTED: Medium application was rejected */ export type MediumStatus = "PENDING" | "APPROVED" | "REJECTED" | undefined; /** * Represents a quick action button on the HomePage. * Quick actions provide shortcuts to common tasks. */ export type QuickAction = { /** Unique identifier for the action */ id: string; /** Display title for the action button */ title: string; /** Navigation route when clicked */ route: string; /** Theme color for the action button */ color: string; /** Optional icon (emoji or icon name) */ icon?: string; /** Optional badge to show on the action (e.g., notification count) */ badge?: number | string; /** Optional short explanation (e.g. HomeMenu secondary text) */ description?: string; }; /** * Represents an event item in the upcoming events list. */ export type EventItem = { /** Unique identifier for the event */ id: string | number; /** Current status of the event */ status: string; /** Event name/title */ name: string; /** Item kind for mixed feed */ type?: "event" | "activity"; /** Date in YYYY-MM-DD format */ date?: string; /** Event time (formatted string, HH:MM) */ time?: string; /** End time (formatted string, HH:MM) */ endTime?: string; /** Event/activity address or location */ address?: string; /** Number of participants */ participantsCount?: number; /** Optional event image URL */ imageUrl?: string; /** When false, attendance check-in is hidden */ qrCheckinEnabled?: boolean | null; /** Minutes before start time when the check-in QR window opens */ qrReleaseOffsetMinutes?: number | null; /** Minutes after start time when the check-in QR window closes */ qrCheckinGraceMinutes?: number | null; /** Alias for qrReleaseOffsetMinutes (form state naming) */ checkinStartWindowMinutes?: number | null; /** Alias for qrCheckinGraceMinutes (form state naming) */ checkinEndWindowMinutes?: number | null; }; /** * Data structure returned by the useHomePage hook. * Contains processed/computed data for rendering the HomePage. */ export interface HomePageData { /** Personalized greeting message */ greeting: string; /** Formatted current date string */ currentDate: string; /** Processed user data */ user?: { profile: { firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; document: string; user?: { email: string; created_at?: string; }; contact?: { phone?: string; }; }; }; /** List of quick actions to display */ quickActions: QuickAction[]; /** Upcoming events list */ upcomingEvents?: EventItem[]; /** Function to format event time for display */ formatEventTime: (t: string) => string; /** Current medium approval status */ mediumStatus?: MediumStatus; /** Rejection message if medium was rejected */ rejectionMessage?: string; /** Whether to show calendar events (user is medium AND terreiro admin) */ showCalendarEvents: boolean; /** Calendar activities */ calendarActivities: CalendarItem[]; /** Calendar events */ calendarEvents: CalendarItem[]; /** Calendar ritual baths */ calendarRitualBaths: CalendarItem[]; /** Loading state for daily rituals */ isLoadingRituals: boolean; /** Selected date for daily ritual card */ selectedRitualDate?: string; /** Current calendar view mode */ calendarViewMode: CalendarViewMode; /** Current calendar status filter */ calendarStatusFilter: CalendarStatusFilter; /** Loading state for calendar */ isLoadingCalendar: boolean; } import * as z from "zod"; /** Validates `UsageLevel` for the usage heatmap widget. */ export declare const UsageLevelSchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>; /** Validates `UsageHeatmapDay` (see interface above). */ export declare const UsageHeatmapDaySchema: z.ZodObject<{ date: z.ZodString; opened: z.ZodBoolean; actionCount: z.ZodNumber; level: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>; future: z.ZodBoolean; }, "strip", z.ZodTypeAny, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }>; /** Validates `UsageHeatmapSummary` (see interface above). */ export declare const UsageHeatmapSummarySchema: z.ZodObject<{ activeDays: z.ZodNumber; streak: z.ZodNumber; actionCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { streak: number; actionCount: number; activeDays: number; }, { streak: number; actionCount: number; activeDays: number; }>; /** * Validates `UsageHeatmapData` for the Home usage heatmap widget. * Used by `HomeDashboardSummarySchema` so malformed payloads fail `safeParse`. */ export declare const UsageHeatmapDataSchema: z.ZodObject<{ timezone: z.ZodString; from: z.ZodString; to: z.ZodString; today: z.ZodString; weeks: z.ZodNumber; days: z.ZodArray, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>; future: z.ZodBoolean; }, "strip", z.ZodTypeAny, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }>, "many">; summary: z.ZodObject<{ activeDays: z.ZodNumber; streak: z.ZodNumber; actionCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { streak: number; actionCount: number; activeDays: number; }, { streak: number; actionCount: number; activeDays: number; }>; }, "strip", z.ZodTypeAny, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }>; /** * Validates `SupplyPlanSummary` for SupplyPlanCard / SupplyPlanWidget. * Used by `HomeDashboardSummarySchema` so malformed payloads fail `safeParse`. */ export declare const SupplyPlanSummarySchema: z.ZodObject<{ stock: z.ZodObject<{ totalItems: z.ZodNumber; totalUnits: z.ZodNumber; lowStockCount: z.ZodNumber; outOfStockCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }, { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }>; demand: z.ZodObject<{ activityCount: z.ZodNumber; eventCount: z.ZodNumber; distinctItemCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { activityCount: number; eventCount: number; distinctItemCount: number; }, { activityCount: number; eventCount: number; distinctItemCount: number; }>; costs: z.ZodOptional; }, "strip", z.ZodTypeAny, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }>>; itemsToBuyCount: z.ZodNumber; readinessSummary: z.ZodOptional; missionsCount: z.ZodOptional; showCostMissionsTeaser: z.ZodOptional; coveragePercent: z.ZodOptional; itemsWithoutCostCount: z.ZodOptional; topItems: z.ZodArray; imageUrl: z.ZodOptional>; costSource: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }>; /** * Zod schema for dashboard statistics. * Validates stat cards displayed on the HomePage. */ export declare const HomePageStatSchema: z.ZodObject<{ /** Stat title/label */ title: z.ZodString; /** Stat value to display */ value: z.ZodString; /** Icon identifier (emoji or icon name) */ icon: z.ZodString; /** Theme color for the stat card */ color: z.ZodEnum<["primary", "secondary", "success", "warning", "error", "info"]>; }, "strip", z.ZodTypeAny, { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }, { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }>; /** * Zod schema for quick action buttons. * Validates quick action items displayed on the HomePage. */ export declare const HomePageQuickActionSchema: z.ZodObject<{ /** Unique identifier */ id: z.ZodString; /** Display title */ title: z.ZodString; /** Action description */ description: z.ZodString; /** Icon identifier */ icon: z.ZodString; /** Navigation route */ route: z.ZodString; /** Theme color */ color: z.ZodEnum<["primary", "secondary", "success", "warning", "error", "info"]>; /** Optional badge text */ badge: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }, { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }>; /** * Zod schema for upcoming events. * Validates event items in the upcoming events list. */ export declare const HomePageUpcomingEventSchema: z.ZodObject<{ /** Unique event identifier */ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; /** Event name */ name: z.ZodString; /** Item kind for mixed feed */ type: z.ZodOptional>; /** Event date (YYYY-MM-DD) */ date: z.ZodOptional; /** Event time (formatted string) */ time: z.ZodOptional; /** Event end time (formatted string) */ endTime: z.ZodOptional; /** Event/activity address */ address: z.ZodOptional; /** Number of participants */ participantsCount: z.ZodOptional; /** Event status */ status: z.ZodString; /** When false, attendance check-in is hidden */ qrCheckinEnabled: z.ZodOptional>; /** Minutes before start time when the check-in QR window opens */ qrReleaseOffsetMinutes: z.ZodOptional>; /** Minutes after start time when the check-in QR window closes */ qrCheckinGraceMinutes: z.ZodOptional>; /** Alias for qrReleaseOffsetMinutes */ checkinStartWindowMinutes: z.ZodOptional>; /** Alias for qrCheckinGraceMinutes */ checkinEndWindowMinutes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }>; /** * Zod schema for recent activities. * Validates activity items in the recent activities feed. */ export declare const HomePageRecentActivitySchema: z.ZodObject<{ /** Unique activity identifier */ id: z.ZodNumber; /** Activity title */ title: z.ZodString; /** Activity type category */ type: z.ZodEnum<["event", "financial", "inventory", "member"]>; /** Activity description */ description: z.ZodString; /** Activity timestamp */ timestamp: z.ZodDate; /** Icon identifier */ icon: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }>; /** * Zod schema for user profile information. * Validates the complete user profile including address, contact, and medium data. */ export declare const HomePageUserProfileProfileSchema: z.ZodObject<{ /** User's first name */ firstName: z.ZodString; /** User's last name */ lastName: z.ZodString; /** Birth date as ISO date string */ birthDate: z.ZodOptional; /** URL to user's avatar image */ avatarUrl: z.ZodString; /** Type of identification document */ documentType: z.ZodEnum<["CPF", "RG"]>; /** Document number */ document: z.ZodString; /** Creation date as ISO string */ created_at: z.ZodOptional; /** Last update date as ISO string */ updated_at: z.ZodOptional; /** Associated user account data */ user: z.ZodOptional>; }, "strip", z.ZodTypeAny, { email: string; created_at?: string | null | undefined; }, { email: string; created_at?: string | null | undefined; }>>; /** User address information */ address: z.ZodOptional; neighborhood: z.ZodString; city: z.ZodString; state: z.ZodString; zipCode: z.ZodString; country: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }>>; /** User contact information */ contact: z.ZodOptional>; }, "strip", z.ZodTypeAny, { phone: string; contact_person?: string | null | undefined; }, { phone: string; contact_person?: string | null | undefined; }>>; /** Medium-specific data (if user is a medium) */ medium: z.ZodOptional; /** Medium's rank in the hierarchy */ rank: z.ZodObject<{ id: z.ZodString; name: z.ZodString; level: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: string; name: string; level: number; }, { id: string; name: string; level: number; }>; /** Medium's role/function */ role: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; }, "strip", z.ZodTypeAny, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }>>; }, "strip", z.ZodTypeAny, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }>; /** * Zod schema for the complete user object. * Wraps the profile schema for validation. */ export declare const HomePageUser: z.ZodObject<{ /** User profile data */ profile: z.ZodObject<{ /** User's first name */ firstName: z.ZodString; /** User's last name */ lastName: z.ZodString; /** Birth date as ISO date string */ birthDate: z.ZodOptional; /** URL to user's avatar image */ avatarUrl: z.ZodString; /** Type of identification document */ documentType: z.ZodEnum<["CPF", "RG"]>; /** Document number */ document: z.ZodString; /** Creation date as ISO string */ created_at: z.ZodOptional; /** Last update date as ISO string */ updated_at: z.ZodOptional; /** Associated user account data */ user: z.ZodOptional>; }, "strip", z.ZodTypeAny, { email: string; created_at?: string | null | undefined; }, { email: string; created_at?: string | null | undefined; }>>; /** User address information */ address: z.ZodOptional; neighborhood: z.ZodString; city: z.ZodString; state: z.ZodString; zipCode: z.ZodString; country: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }>>; /** User contact information */ contact: z.ZodOptional>; }, "strip", z.ZodTypeAny, { phone: string; contact_person?: string | null | undefined; }, { phone: string; contact_person?: string | null | undefined; }>>; /** Medium-specific data (if user is a medium) */ medium: z.ZodOptional; /** Medium's rank in the hierarchy */ rank: z.ZodObject<{ id: z.ZodString; name: z.ZodString; level: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: string; name: string; level: number; }, { id: string; name: string; level: number; }>; /** Medium's role/function */ role: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; }, "strip", z.ZodTypeAny, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }>>; }, "strip", z.ZodTypeAny, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }>; }, "strip", z.ZodTypeAny, { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; }, { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; }>; /** * Zod schema for HomePage props validation. * Used for runtime validation of component props. */ export declare const HomePagePropsSchema: z.ZodObject<{ /** User data */ user: z.ZodOptional; /** URL to user's avatar image */ avatarUrl: z.ZodString; /** Type of identification document */ documentType: z.ZodEnum<["CPF", "RG"]>; /** Document number */ document: z.ZodString; /** Creation date as ISO string */ created_at: z.ZodOptional; /** Last update date as ISO string */ updated_at: z.ZodOptional; /** Associated user account data */ user: z.ZodOptional>; }, "strip", z.ZodTypeAny, { email: string; created_at?: string | null | undefined; }, { email: string; created_at?: string | null | undefined; }>>; /** User address information */ address: z.ZodOptional; neighborhood: z.ZodString; city: z.ZodString; state: z.ZodString; zipCode: z.ZodString; country: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }, { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; }>>; /** User contact information */ contact: z.ZodOptional>; }, "strip", z.ZodTypeAny, { phone: string; contact_person?: string | null | undefined; }, { phone: string; contact_person?: string | null | undefined; }>>; /** Medium-specific data (if user is a medium) */ medium: z.ZodOptional; /** Medium's rank in the hierarchy */ rank: z.ZodObject<{ id: z.ZodString; name: z.ZodString; level: z.ZodNumber; }, "strip", z.ZodTypeAny, { id: string; name: string; level: number; }, { id: string; name: string; level: number; }>; /** Medium's role/function */ role: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; }, "strip", z.ZodTypeAny, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }, { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; }>>; }, "strip", z.ZodTypeAny, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }, { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }>; }, "strip", z.ZodTypeAny, { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; }, { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; }>>; /** Dashboard statistics */ stats: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }, { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }>, "many">>; /** Whether user is admin */ isAdmin: z.ZodDefault>; /** Whether the user is on a personal (non-terreiro) profile */ isPersonalProfile: z.ZodDefault>; /** Show the Ingressos quick action */ canPublishTickets: z.ZodDefault>; /** Show the Estoque quick action to non-admins inside a terreiro */ canViewInventory: z.ZodDefault>; /** Show the Experiências quick action */ canUseSocial: z.ZodDefault>; /** Unread Social notifications for Social entry badges */ socialNotificationsUnreadCount: z.ZodOptional; /** Quick action buttons */ quickActions: z.ZodOptional; /** Optional badge text */ badge: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }, { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }>, "many">>; /** Upcoming events list */ upcomingEvents: z.ZodOptional; /** Event name */ name: z.ZodString; /** Item kind for mixed feed */ type: z.ZodOptional>; /** Event date (YYYY-MM-DD) */ date: z.ZodOptional; /** Event time (formatted string) */ time: z.ZodOptional; /** Event end time (formatted string) */ endTime: z.ZodOptional; /** Event/activity address */ address: z.ZodOptional; /** Number of participants */ participantsCount: z.ZodOptional; /** Event status */ status: z.ZodString; /** When false, attendance check-in is hidden */ qrCheckinEnabled: z.ZodOptional>; /** Minutes before start time when the check-in QR window opens */ qrReleaseOffsetMinutes: z.ZodOptional>; /** Minutes after start time when the check-in QR window closes */ qrCheckinGraceMinutes: z.ZodOptional>; /** Alias for qrReleaseOffsetMinutes */ checkinStartWindowMinutes: z.ZodOptional>; /** Alias for qrCheckinGraceMinutes */ checkinEndWindowMinutes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }>, "many">>; /** Recent activities feed */ recentActivities: z.ZodOptional; /** Activity description */ description: z.ZodString; /** Activity timestamp */ timestamp: z.ZodDate; /** Icon identifier */ icon: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }>, "many">>; /** Navigation callback */ onNavigate: z.ZodOptional, z.ZodVoid>>; /** Profile click callback */ onProfileClick: z.ZodOptional, z.ZodVoid>>; /** Whether Acesso Rápido is shown in the TopBar */ showQuickActions: z.ZodDefault>; /** Callback when Acesso Rápido visibility changes */ onShowQuickActionsChange: z.ZodOptional, z.ZodVoid>>; /** Visibility map for Home content widgets */ homeWidgets: z.ZodOptional, z.ZodBoolean>>; /** Callback when a Home widget visibility toggle changes */ onHomeWidgetVisibilityChange: z.ZodOptional, z.ZodBoolean], null>, z.ZodVoid>>; /** Ordered list of reorderable home-body widget ids */ homeWidgetOrder: z.ZodOptional, "many">>; /** Callback when the Home widget order changes */ onHomeWidgetOrderChange: z.ZodOptional, "many">, z.ZodOptional; widgetId: z.ZodOptional>; fromIndex: z.ZodOptional; toIndex: z.ZodOptional; }, "strip", z.ZodTypeAny, { method: "reset" | "drag" | "arrow_up" | "arrow_down"; widgetId?: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals" | undefined; fromIndex?: number | undefined; toIndex?: number | undefined; }, { method: "reset" | "drag" | "arrow_up" | "arrow_down"; widgetId?: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals" | undefined; fromIndex?: number | undefined; toIndex?: number | undefined; }>>], null>, z.ZodVoid>>; /** Fired when Exibir widgets or Ordenar widgets opens */ onHomeWidgetsCustomizeViewOpen: z.ZodOptional], null>, z.ZodVoid>>; /** Leading and trailing Funcionalidade ids for the active profile */ bottomNavShortcuts: z.ZodOptional>; /** Persists the pair for the active profile only */ onBottomNavShortcutChange: z.ZodOptional], null>, z.ZodVoid>>; /** Order and hidden ids of the Acesso Rápido shortcuts */ quickActionPreferences: z.ZodOptional; hidden: z.ZodArray; }, "strip", z.ZodTypeAny, { hidden: string[]; order: string[]; }, { hidden: string[]; order: string[]; }>>; /** Persists Acesso Rápido shortcut order/visibility */ onQuickActionPreferencesChange: z.ZodOptional; hidden: z.ZodArray; }, "strip", z.ZodTypeAny, { hidden: string[]; order: string[]; }, { hidden: string[]; order: string[]; }>, z.ZodOptional; actionId: z.ZodOptional; visible: z.ZodOptional; }, "strip", z.ZodTypeAny, { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; }, { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; }>>], null>, z.ZodVoid>>; /** Notification click callback */ onNotificationClick: z.ZodOptional, z.ZodVoid>>; /** Number of unread notifications to show on the bell icon badge */ notificationCount: z.ZodOptional; /** Brief notification items for bell quick panel */ notificationItems: z.ZodOptional; terreiroId: z.ZodOptional; imageUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; message: string; type: string; timestamp: string | Date; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }, { id: string; message: string; type: string; timestamp: string | Date; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }>, "many">>; /** Callback when "Ver todas" is clicked in bell panel */ onViewAllNotifications: z.ZodOptional, z.ZodVoid>>; /** Callback when one bell-panel notification is clicked */ onNotificationItemClick: z.ZodOptional, z.ZodVoid>>; /** Unread product updates for the "Novidades" badge */ whatsNewCount: z.ZodOptional; /** Opens the What's New drawer */ onWhatsNewClick: z.ZodOptional, z.ZodVoid>>; /** Search click callback */ onSearchClick: z.ZodOptional, z.ZodVoid>>; /** Settings click callback */ onSettingsClick: z.ZodOptional, z.ZodVoid>>; /** Onboarding info click callback */ onOnboardingInfoClick: z.ZodOptional, z.ZodVoid>>; /** Optional custom onboarding info icon */ onboardingInfoIcon: z.ZodOptional>; /** Refresh callback */ onRefresh: z.ZodOptional, z.ZodVoid>>; subscriptionNotice: z.ZodOptional; message: z.ZodString; action: z.ZodOptional>; dismissible: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; message: string; tone: "warning" | "info"; action?: { id: string; label: string; } | undefined; dismissible?: boolean | undefined; }, { id: string; message: string; tone: "warning" | "info"; action?: { id: string; label: string; } | undefined; dismissible?: boolean | undefined; }>>>; onSubscriptionNoticeAction: z.ZodOptional], null>, z.ZodVoid>>; onSubscriptionNoticeDismiss: z.ZodOptional], null>, z.ZodVoid>>; onAnalyticsEvent: z.ZodOptional, z.ZodVoid>>; }, "strip", z.ZodTypeAny, { isAdmin: boolean; isPersonalProfile: boolean; showQuickActions: boolean; canPublishTickets: boolean; canViewInventory: boolean; canUseSocial: boolean; onNavigate?: ((args_0: string) => void) | undefined; user?: { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; } | undefined; quickActions?: { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }[] | undefined; onAnalyticsEvent?: ((args_0: any) => void) | undefined; stats?: { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }[] | undefined; socialNotificationsUnreadCount?: number | undefined; upcomingEvents?: { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }[] | undefined; recentActivities?: { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }[] | undefined; onProfileClick?: (() => void) | undefined; onShowQuickActionsChange?: ((args_0: boolean) => void) | undefined; homeWidgets?: Partial> | undefined; onHomeWidgetVisibilityChange?: ((args_0: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals", args_1: boolean) => void) | undefined; homeWidgetOrder?: ("calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals")[] | undefined; onHomeWidgetOrderChange?: ((args_0: ("calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals")[], args_1: { method: "reset" | "drag" | "arrow_up" | "arrow_down"; widgetId?: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals" | undefined; fromIndex?: number | undefined; toIndex?: number | undefined; } | undefined) => void) | undefined; onHomeWidgetsCustomizeViewOpen?: ((args_0: "order" | "visibility") => void) | undefined; bottomNavShortcuts?: { leading: string; trailing: string; } | undefined; onBottomNavShortcutChange?: ((args_0: { leading: string; trailing: string; }) => void) | undefined; quickActionPreferences?: { hidden: string[]; order: string[]; } | undefined; onQuickActionPreferencesChange?: ((args_0: { hidden: string[]; order: string[]; }, args_1: { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; } | undefined) => void) | undefined; onNotificationClick?: (() => void) | undefined; notificationCount?: number | undefined; notificationItems?: { id: string; message: string; type: string; timestamp: string | Date; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[] | undefined; onViewAllNotifications?: (() => void) | undefined; onNotificationItemClick?: ((args_0: string) => void) | undefined; whatsNewCount?: number | undefined; onWhatsNewClick?: (() => void) | undefined; onSearchClick?: (() => void) | undefined; onSettingsClick?: (() => void) | undefined; onOnboardingInfoClick?: (() => void) | undefined; onboardingInfoIcon?: ReactNode; onRefresh?: (() => void) | undefined; subscriptionNotice?: { id: string; message: string; tone: "warning" | "info"; action?: { id: string; label: string; } | undefined; dismissible?: boolean | undefined; } | null | undefined; onSubscriptionNoticeAction?: ((args_0: { actionId: string; noticeId: string; }) => void) | undefined; onSubscriptionNoticeDismiss?: ((args_0: { noticeId: string; }) => void) | undefined; }, { isAdmin?: boolean | undefined; onNavigate?: ((args_0: string) => void) | undefined; isPersonalProfile?: boolean | undefined; user?: { profile: { document: string; firstName: string; lastName: string; avatarUrl: string; documentType: "CPF" | "RG"; address?: { number: string; id: string; country: string; state: string; street: string; neighborhood: string; city: string; zipCode: string; complement?: string | undefined; } | undefined; medium?: { id: string; role: { id: string; name: string; }; status: "ACTIVE" | "WAITING_APPROVAL" | "INACTIVE" | "SUSPENDED" | "TRANSFERRED" | "DECEASED" | "RETIRED" | "ON_LEAVE" | "EXPELLED" | "INITIATING" | "VISITOR"; rank: { id: string; name: string; level: number; }; initiationDate: string; } | undefined; birthDate?: string | undefined; user?: { email: string; created_at?: string | null | undefined; } | undefined; contact?: { phone: string; contact_person?: string | null | undefined; } | undefined; created_at?: string | undefined; updated_at?: string | undefined; }; } | undefined; showQuickActions?: boolean | undefined; quickActions?: { title: string; id: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; icon: string; description: string; route: string; badge?: string | undefined; }[] | undefined; onAnalyticsEvent?: ((args_0: any) => void) | undefined; stats?: { title: string; color: "warning" | "primary" | "secondary" | "error" | "info" | "success"; value: string; icon: string; }[] | undefined; canPublishTickets?: boolean | undefined; canViewInventory?: boolean | undefined; canUseSocial?: boolean | undefined; socialNotificationsUnreadCount?: number | undefined; upcomingEvents?: { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }[] | undefined; recentActivities?: { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: Date; }[] | undefined; onProfileClick?: (() => void) | undefined; onShowQuickActionsChange?: ((args_0: boolean) => void) | undefined; homeWidgets?: Partial> | undefined; onHomeWidgetVisibilityChange?: ((args_0: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals", args_1: boolean) => void) | undefined; homeWidgetOrder?: ("calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals")[] | undefined; onHomeWidgetOrderChange?: ((args_0: ("calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals")[], args_1: { method: "reset" | "drag" | "arrow_up" | "arrow_down"; widgetId?: "calendar" | "highlights" | "quickActions" | "weeklyTasks" | "usageHeatmap" | "profileCompleteness" | "terreiroCompleteness" | "gamification" | "supplyPlan" | "moonPhase" | "dailyRituals" | undefined; fromIndex?: number | undefined; toIndex?: number | undefined; } | undefined) => void) | undefined; onHomeWidgetsCustomizeViewOpen?: ((args_0: "order" | "visibility") => void) | undefined; bottomNavShortcuts?: { leading: string; trailing: string; } | undefined; onBottomNavShortcutChange?: ((args_0: { leading: string; trailing: string; }) => void) | undefined; quickActionPreferences?: { hidden: string[]; order: string[]; } | undefined; onQuickActionPreferencesChange?: ((args_0: { hidden: string[]; order: string[]; }, args_1: { method: "visibility" | "reset" | "arrow_up" | "arrow_down"; visible?: boolean | undefined; actionId?: string | undefined; } | undefined) => void) | undefined; onNotificationClick?: (() => void) | undefined; notificationCount?: number | undefined; notificationItems?: { id: string; message: string; type: string; timestamp: string | Date; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[] | undefined; onViewAllNotifications?: (() => void) | undefined; onNotificationItemClick?: ((args_0: string) => void) | undefined; whatsNewCount?: number | undefined; onWhatsNewClick?: (() => void) | undefined; onSearchClick?: (() => void) | undefined; onSettingsClick?: (() => void) | undefined; onOnboardingInfoClick?: (() => void) | undefined; onboardingInfoIcon?: ReactNode; onRefresh?: (() => void) | undefined; subscriptionNotice?: { id: string; message: string; tone: "warning" | "info"; action?: { id: string; label: string; } | undefined; dismissible?: boolean | undefined; } | null | undefined; onSubscriptionNoticeAction?: ((args_0: { actionId: string; noticeId: string; }) => void) | undefined; onSubscriptionNoticeDismiss?: ((args_0: { noticeId: string; }) => void) | undefined; }>; /** Type for dashboard statistics, inferred from schema */ export type HomePageStat = z.infer; /** Type for quick action buttons, inferred from schema */ export type HomePageQuickAction = z.infer; /** Type for upcoming events, inferred from schema */ export type HomePageUpcomingEvent = z.infer; /** Type for recent activities, inferred from schema */ export type HomePageRecentActivity = z.infer; /** Type for user object, inferred from schema */ export type HomePageUser = z.infer; /** Type for user profile, inferred from schema */ export type HomePageUserProfile = z.infer;