import { Patch } from '../../interfaces/patch' export interface AccessTokenStore { token?: string status: LoginStatus } export interface LoginCreds { username: string, password: string, } export interface AccessToken { accessToken: string, } export interface AccessTokenAndUserId extends AccessToken { userId: number, } export interface UpdateUserPropertiesOptions { operations: Patch[], } export interface User { id: number, orgId: number, name: string, email: string, avatars: { image200: string, squareCropImage200: string, } gates: any, availability: string, scopes: string[], } export enum LoginStatus { PENDING = 'PENDING', FAILED = 'FAILED', SUCCESS = 'SUCCESS', } export interface ISubmitLoginSuccess { token: string, username?: string }