35 lines
723 B
TypeScript

export interface UpdateProfilePayload {
id: string;
email: string;
firstname?: string;
lastname?: string;
phonenumber?: string;
email_signature?: string;
password?: string;
passwordr?: string;
profile_image?: {
uri: string;
name: string;
type: string;
};
}
// Partial user_data returned by the API on success
export interface UpdatedStaffData {
staffid?: string;
email?: string;
firstname?: string;
lastname?: string;
phone?: string;
profile_image?: string;
email_signature?: string;
}
export interface UpdateProfileResponse {
status: boolean;
is_twofactor?: boolean;
user_data?: UpdatedStaffData;
token?: string;
message?: string; // present when status = false
}