mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-04 11:17:02 +02:00
* fix: add onClose to archive toggle dialoge * fix: add link to ConfirmUserLink component * fix: remove icons from admin menu * fix: move button on user list to top right * refactor: move add new api key to header * refactor: button order * fix: lowercase dropdown buttons on feature toggle list * refactor: reorganize reporting dashboard * refactor: consistent buttons * feat: enhance gradual rollout strategy creation * feat: ui tweaks on project access * fix: adjust divider * fix: remove unused imports * fix: update snapshots * fix: add auth options to new user page * fix: add divider * fix: uncontrolled input * fix: add data-loading to sorted by * fix: update snapshots * fix: navigate to project view on create and edit * fix: rename project * fix: add placeholder for feature toggle list component * fix: conditonally render link
51 lines
900 B
TypeScript
51 lines
900 B
TypeScript
export interface IAuthStatus {
|
|
authDetails: IAuthDetails;
|
|
showDialog: boolean;
|
|
profile?: IUser;
|
|
permissions: IPermission[];
|
|
}
|
|
|
|
export interface IPermission {
|
|
permission: string;
|
|
project: string;
|
|
}
|
|
|
|
interface IAuthDetails {
|
|
type: string;
|
|
path: string;
|
|
message: string;
|
|
options: IAuthOptions[];
|
|
}
|
|
|
|
export interface IAuthOptions {
|
|
type: string;
|
|
message: string;
|
|
path: string;
|
|
}
|
|
|
|
export interface IUser {
|
|
id: number;
|
|
email: string;
|
|
name: string;
|
|
createdAt: string;
|
|
imageUrl: string;
|
|
loginAttempts: number;
|
|
permissions: string[] | null;
|
|
inviteLink: string;
|
|
rootRole: number;
|
|
seenAt: string | null;
|
|
username?: string;
|
|
}
|
|
|
|
export interface IUserPayload {
|
|
name: string;
|
|
email: string;
|
|
id?: string;
|
|
}
|
|
|
|
export interface IAddedUser extends IUser {
|
|
emailSent?: boolean;
|
|
}
|
|
|
|
export default IAuthStatus;
|