import { ControlsOf } from '@/shared/forms/form-validations'; export interface Session { access_unixtime: number; expire_unixtime: number; } export interface Login extends Session { token: string; } export type UserData = | { name: string; lastname1: string; lastname2: string; fullname: string; type_id: 2; type: 'Staff'; } | { name: string; lastname1: string; lastname2: string; fullname: string; email: string; phone: string; mexico_state_id: number; mexico_state: string; other1: string; other2: string; type_id: 3; type: 'Usuario'; the_event: TheEvent; qr_base64: string; }; export interface TheEvent { place: string[]; date: string; time: string; } export interface LoginCredentials { email: string | null; password: string | null; } export interface SignupCredentials { name: string | null; lastname1: string | null; lastname2: string | null; email: string | null; emailc: string | null; password: string | null; passwordc: string | null; phone: string | null; mexico_state_id: number | null; other1: string | null; other2: string | null; accept_terms: boolean; } export type LoginForm = ControlsOf; export type SignupForm = ControlsOf; export interface ScannedUser { current_quorum: number; first_access: boolean; last_access_unixtime: number; unixtime: number; fullname: string; qrcodedata: string; }