2023-01-18 13:12:44 +01:00
|
|
|
export const AccountTypes = ['User', 'Service Account'] as const;
|
|
|
|
type AccountType = typeof AccountTypes[number];
|
|
|
|
|
2021-04-23 10:59:11 +02:00
|
|
|
export interface IUser {
|
2021-04-12 15:04:03 +02:00
|
|
|
id: number;
|
2021-04-23 10:59:11 +02:00
|
|
|
email: string;
|
|
|
|
name: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
createdAt: string;
|
|
|
|
imageUrl: string;
|
|
|
|
loginAttempts: number;
|
2021-04-23 10:59:11 +02:00
|
|
|
permissions: string[] | null;
|
|
|
|
inviteLink: string;
|
|
|
|
rootRole: number;
|
|
|
|
seenAt: string | null;
|
|
|
|
username?: string;
|
2022-04-05 20:34:23 +02:00
|
|
|
isAPI: boolean;
|
2022-05-25 23:26:05 +02:00
|
|
|
paid?: boolean;
|
2022-07-22 09:31:08 +02:00
|
|
|
addedAt?: string;
|
2023-01-18 13:12:44 +01:00
|
|
|
accountType?: AccountType;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
2022-02-10 17:04:10 +01:00
|
|
|
export interface IPermission {
|
|
|
|
permission: string;
|
|
|
|
project?: string;
|
|
|
|
environment?: string;
|
2021-04-23 10:59:11 +02:00
|
|
|
}
|