export interface IConfiguration { popupColor: string | null; popupBorderColor: string | null; header: string | null; buyNow: string | null; loading: string | null; copied: string | null; instock: string | null; comeback: string | null; expandedHeaderMessage: string | null; position: string | null; searchMoreMessage: string | null; lockPopupMessage: string | null; unlockPopupMessage: string | null; toggleButtonMessage: string | null; engagementMessage: { 0: string | null; 1: string | null; 2: string | null; 3: string | null; }; } export const errorsInit: IConfiguration = { popupColor: null, popupBorderColor: null, header: null, buyNow: null, loading: null, copied: null, instock: null, comeback: null, searchMoreMessage: null, position: null, lockPopupMessage: null, unlockPopupMessage: null, toggleButtonMessage: null, expandedHeaderMessage: null, engagementMessage: { '0': null, '1': null, '2': null, '3': null, }, }; export interface IDateRange { startDate: string; endDate: string; } export interface IUser { email: string; id: string; username?: string; message?: string; domain?: string; name?: string; client_id?: string; phone_number?: string; shopify_charge_id?: string; step?: number; feed_status: string; user_type?: string; is_plugin_installed?: boolean; active?: boolean; settings?: { id?: string; currency?: string; author_id?: string; created_at?: string; updated_at?: string; }; created_at: string; trial_days?: number; capped_amount: number; success?: boolean; partner_stack_xid: string; partner_stack_key: string; plan: string | null; plan_period: string | null; subscription_id: string | null; has_active_subscription: boolean; stripe_subscription_status: string | null; stripe_cancel_at_period_end: boolean; stripe_current_period_end: string | null; plan_snapshot: string | null; plan_period_snapshot: string | null; subscription_remaining_days: number; subscription_access_until: string | null; preview_mode?: boolean; first_documentation_created?: boolean; verified?: boolean; credits?: { balance?: number; granted?: number; used?: number; }; } // Canonical definitions live in utils/plan.ts export { PlanType, PlanPeriod } from '../utils/plan';