@wireapp/api-client
Version:
Wire API Client to send and receive data.
42 lines (41 loc) • 1.18 kB
TypeScript
import { HttpClient } from '../http';
import { ChangePassword, Delete, SearchableStatus, Self } from '../self';
import { UserUpdate } from '../user';
declare class SelfAPI {
private client;
constructor(client: HttpClient);
static readonly URL: {
EMAIL: string;
HANDLE: string;
LOCALE: string;
NAME: string;
PASSWORD: string;
PHONE: string;
SEARCHABLE: string;
SELF: string;
};
deleteEmail(): Promise<{}>;
deletePhone(): Promise<{}>;
deleteSelf(deleteData: Delete): Promise<{}>;
getName(): Promise<{
name: string;
}>;
getSearchable(): Promise<SearchableStatus>;
getSelf(): Promise<Self>;
putEmail(emailData: {
email: string;
}): Promise<{}>;
putHandle(handleData: {
handle: string;
}): Promise<{}>;
putLocale(localeData: {
locale: string;
}): Promise<{}>;
putPassword(passwordData: ChangePassword): Promise<{}>;
putPhone(phoneData: {
phone: string;
}): Promise<{}>;
putSearchable(statusData: SearchableStatus): Promise<{}>;
putSelf(profileData: UserUpdate): Promise<{}>;
}
export { SelfAPI };