import { PastoralDomain } from "./PastoralDomain";

export interface RegisterViewModel {
    oAuthType: string;
    accessToken: string;
    email: string;
    password: string;
    fistName: string;
    lastName: string;
    avatarImage: string;
}

export interface LoginTokenViewModel {
    memberId: string;
    token: string;
    tokenExpireTime: Date;
    email: string;
    firstName: string;
    lastName: string;
    avatarImage: string;
    role: Role;
    cellGroup: PastoralDomain;
    signalRConnectionId;
    sessionTabId: string;
}

export interface GoogleUserInfo {
    id: string,
    email: string,
    verified_email: boolean,
    name: string,
    given_name: string,
    family_name: string,
    picture: string
    locale: string,
    error: any
}

export enum Role {
    None = 0,
    FamilyMember = 1 << 0,
    CellGroupLeader = 1 << 1,
    Pastor = 1 << 2,
    Admin = 1 << 3,
    All = ~(~0 << 20)
}
export enum UserProfileAction {
    None,
    GoToProfile,
    LogOut
}