@swan-admin/swan-ai-measurements
Version:
provides ai measurement suggestion
35 lines (34 loc) • 1.1 kB
TypeScript
import { AxiosResponse } from "axios";
interface RegisterUserParams {
email: string;
appVerifyUrl: string;
gender?: string;
height?: number;
username?: string;
}
interface AddUserParams {
scanId: string;
email: string;
name?: string;
height: number;
gender: string;
offsetMarketingConsent?: boolean;
}
interface AuthSocketParams {
email: string;
scanId: string;
onError?: (event: Event) => void;
onSuccess?: (data: any) => void;
onClose?: () => void;
onOpen?: () => void;
}
export default class Auth {
#private;
constructor(accessKey: string, stagingUrl?: boolean);
registerUser({ email, appVerifyUrl, gender, height, username }: RegisterUserParams): Promise<AxiosResponse>;
verifyToken(token: string): Promise<AxiosResponse>;
addUser({ scanId, email, name, height, gender, offsetMarketingConsent }: AddUserParams): Promise<AxiosResponse>;
getUserDetail(email: string): Promise<AxiosResponse>;
handleAuthSocket({ email, scanId, onError, onSuccess, onClose, onOpen }: AuthSocketParams): void;
}
export {};