69 lines
1.4 KiB
TypeScript
69 lines
1.4 KiB
TypeScript
export interface LoginRequest {
|
|
email: string;
|
|
password: string;
|
|
fcm_token?: string;
|
|
device_id?: string;
|
|
}
|
|
|
|
export interface Permission {
|
|
staff_id: string;
|
|
feature: string;
|
|
capability: string;
|
|
}
|
|
|
|
export interface UserData {
|
|
staffid: string;
|
|
email: string;
|
|
firstname: string;
|
|
lastname: string;
|
|
facebook: string;
|
|
linkedin: string;
|
|
phonenumber: string;
|
|
skype: string;
|
|
password: string;
|
|
datecreated: string;
|
|
profile_image: string;
|
|
last_ip: string;
|
|
last_login: string;
|
|
last_activity: string | null;
|
|
last_password_change: string | null;
|
|
new_pass_key: string | null;
|
|
new_pass_key_requested: string | null;
|
|
admin: string;
|
|
role: string;
|
|
active: string;
|
|
default_language: string;
|
|
direction: string;
|
|
media_path_slug: string;
|
|
is_not_staff: string;
|
|
hourly_rate: string;
|
|
two_factor_auth_enabled: string;
|
|
two_factor_auth_code: string | null;
|
|
two_factor_auth_code_requested: string | null;
|
|
email_signature: string;
|
|
google_auth_secret: string | null;
|
|
fcm_token: string;
|
|
device_os: string;
|
|
full_name: string;
|
|
total_unread_notifications: string;
|
|
total_unfinished_todos: string;
|
|
permissions: Permission[];
|
|
}
|
|
|
|
export interface LoginResponse {
|
|
status: boolean;
|
|
is_twofactor: boolean;
|
|
user_data: UserData;
|
|
token: string;
|
|
}
|
|
|
|
export interface LogoutRequest {
|
|
id: string;
|
|
fcm_token: string;
|
|
}
|
|
|
|
export interface LogoutResponse {
|
|
status: boolean;
|
|
message: string;
|
|
}
|