|
|
|
@ -337,8 +337,8 @@ export const verifyWebAppForgotPasswordToken: Fetcher<CommonResponse & { is_vali
|
|
|
|
export const changeWebAppPasswordWithToken: Fetcher<CommonResponse, { url: string; body: { token: string; new_password: string; password_confirm: string } }> = ({ url, body }) =>
|
|
|
|
export const changeWebAppPasswordWithToken: Fetcher<CommonResponse, { url: string; body: { token: string; new_password: string; password_confirm: string } }> = ({ url, body }) =>
|
|
|
|
post<CommonResponse>(url, { body }, { isPublicAPI: true })
|
|
|
|
post<CommonResponse>(url, { body }, { isPublicAPI: true })
|
|
|
|
|
|
|
|
|
|
|
|
export const uploadRemoteFileInfo = (url: string, isPublic?: boolean) => {
|
|
|
|
export const uploadRemoteFileInfo = (url: string, isPublic?: boolean, silent?: boolean) => {
|
|
|
|
return post<{ id: string; name: string; size: number; mime_type: string; url: string }>('/remote-files/upload', { body: { url } }, { isPublicAPI: isPublic })
|
|
|
|
return post<{ id: string; name: string; size: number; mime_type: string; url: string }>('/remote-files/upload', { body: { url } }, { isPublicAPI: isPublic, silent })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const sendEMailLoginCode = (email: string, language = 'en-US') =>
|
|
|
|
export const sendEMailLoginCode = (email: string, language = 'en-US') =>
|
|
|
|
|