init
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export interface StockBalance {}
|
||||
@@ -1,9 +1,8 @@
|
||||
export enum UserRole {
|
||||
ADMIN = 'admin',
|
||||
SCHOOL = 'school',
|
||||
TEACHER = 'teacher',
|
||||
STUDENTS = 'students',
|
||||
GRADER = 'grader',
|
||||
PARTNER = 'partner',
|
||||
POS = 'pos',
|
||||
PROVIDER = 'provider',
|
||||
SUPERADMIN = 'superadmin',
|
||||
}
|
||||
|
||||
@@ -32,12 +31,31 @@ export interface Permission {
|
||||
|
||||
export interface IAuthResponse {
|
||||
// user: User;
|
||||
token: string;
|
||||
fullName: string;
|
||||
mustChangePassword: boolean;
|
||||
role: string;
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
expiresIn: number;
|
||||
account: IAuthAccountResponse;
|
||||
}
|
||||
|
||||
export interface IAuthAccountResponse {
|
||||
id: string;
|
||||
username: string;
|
||||
type: TRoles;
|
||||
status: string;
|
||||
created_at: string;
|
||||
user_id: string;
|
||||
partner_id?: string;
|
||||
business_id?: string;
|
||||
provider_id?: string;
|
||||
pos_id?: string;
|
||||
user: IAuthAccountUser;
|
||||
}
|
||||
interface IAuthAccountUser {
|
||||
id: string;
|
||||
created_at: string;
|
||||
mobile_number: string;
|
||||
national_code: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
}
|
||||
|
||||
export interface LoginCredentials {
|
||||
|
||||
Reference in New Issue
Block a user