This commit is contained in:
2026-03-10 13:36:45 +03:30
parent 45d48f79dc
commit b379787002
208 changed files with 2328 additions and 2510 deletions
-1
View File
@@ -1 +0,0 @@
export interface StockBalance {}
+27 -9
View File
@@ -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 {