import { Store } from 'pullstate'

export interface IUserStore {
  username: string
  user: {
    //User Specific Data
    globalUserId: string
    _id: string
    tenantId: string
    userId: number
    fullName: string
    email: string
    institutionIds: number[]
    isAdminUser: boolean
    isSuperUser: boolean
    photoUrl?: string
    //Employee Specific Data
    employeeId?: string
    designationId?: string
    //Academic Specific Data
    departmentIds?: string[]
  }
  roles: any[]
}

export const UserStore = new Store({
  username: '',
  user: null,
  roles: [],
  globalUserId: '',
  fullName: '',
})
