import { UITHEME, TextDirection, DropHRUserAgents, AuthenticationProviders, Currency, Locale, ENV, CampaignTools, PaymentRegion, TaxBehaviour } from '@jealous-robot-dev/drophr-common'; import { UrgentEvent } from '..'; export interface MainUserData { UID: string; ppu: string; email: string; lastname: string; firstname: string; is_admin: boolean; is_creator: boolean; member_since: number; is_verified: boolean; impression_for?: string; urgent_event?: UrgentEvent; potential_creator?: boolean; can_become_creator?: boolean; payment_region: PaymentRegion; unread_messages_count: number; new_notifications_count: number; creator_applicaton_approved: boolean; auth_instrument: AuthenticationProviders; } export interface API { googleOAuthClient: string; googleMapsKey: string; fbAuthClient: string; } export interface CommonData { currentUser: MainUserData | null; campaign: { id: string | null; tool: CampaignTools | null; }; ui: { forceAuth?: boolean; }; deviceId: string | null; agent: DropHRUserAgents; noConsent?: boolean; country: string; region: string; city: string; session: { token: string; expiresAt: number; }; env: ENV; direction: TextDirection; API: API; preferences: { theme: UITHEME; locale: Locale; isAMPM: boolean; currency: Currency; momentLocale: string; currencyLocale: string; taxBehaviour: TaxBehaviour; paymentRegion: PaymentRegion; }; }