refactor: update api calls since we changed routes
This commit is contained in:
parent
bc5f143ae6
commit
5b04f7ecaf
|
@ -19,13 +19,13 @@ import {
|
||||||
import {
|
import {
|
||||||
postApiAuthLogin,
|
postApiAuthLogin,
|
||||||
postApiAuthRegister,
|
postApiAuthRegister,
|
||||||
postApiAuthVerifyEmail,
|
postApiAccountVerifyEmail,
|
||||||
getApiAuthOtpGenerate,
|
getApiAuthOtpGenerate,
|
||||||
postApiAuthOtpVerify,
|
postApiAccountOtpVerify,
|
||||||
postApiAuthOtpValidate,
|
postApiAccountOtpValidate,
|
||||||
postApiAuthOtpDisable,
|
postApiAuthOtpDisable,
|
||||||
PasswordResetRequest,
|
PasswordResetRequest,
|
||||||
postApiAuthPasswordResetConfirm,
|
postApiAccountPasswordResetConfirm,
|
||||||
postApiAuthLogout,
|
postApiAuthLogout,
|
||||||
getApiUploadLimit,
|
getApiUploadLimit,
|
||||||
} from "./account/generated/index.js";
|
} from "./account/generated/index.js";
|
||||||
|
@ -88,7 +88,7 @@ export class AccountApi {
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
let ret: AxiosResponse<void>;
|
let ret: AxiosResponse<void>;
|
||||||
try {
|
try {
|
||||||
ret = await postApiAuthVerifyEmail(
|
ret = await postApiAccountVerifyEmail(
|
||||||
verifyEmailRequest,
|
verifyEmailRequest,
|
||||||
this.buildOptions(),
|
this.buildOptions(),
|
||||||
);
|
);
|
||||||
|
@ -111,7 +111,7 @@ export class AccountApi {
|
||||||
public async verifyOtp(otpVerifyRequest: OTPVerifyRequest): Promise<boolean> {
|
public async verifyOtp(otpVerifyRequest: OTPVerifyRequest): Promise<boolean> {
|
||||||
let ret: AxiosResponse<void>;
|
let ret: AxiosResponse<void>;
|
||||||
try {
|
try {
|
||||||
ret = await postApiAuthOtpVerify(otpVerifyRequest, this.buildOptions());
|
ret = await postApiAccountOtpVerify(otpVerifyRequest, this.buildOptions());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ export class AccountApi {
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
let ret: AxiosResponse<void>;
|
let ret: AxiosResponse<void>;
|
||||||
try {
|
try {
|
||||||
ret = await postApiAuthOtpValidate(
|
ret = await postApiAccountOtpValidate(
|
||||||
otpValidateRequest,
|
otpValidateRequest,
|
||||||
this.buildOptions(),
|
this.buildOptions(),
|
||||||
);
|
);
|
||||||
|
@ -165,7 +165,7 @@ export class AccountApi {
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
let ret: AxiosResponse<void>;
|
let ret: AxiosResponse<void>;
|
||||||
try {
|
try {
|
||||||
ret = await postApiAuthPasswordResetConfirm(
|
ret = await postApiAccountPasswordResetConfirm(
|
||||||
passwordResetVerifyRequest,
|
passwordResetVerifyRequest,
|
||||||
this.buildOptions(),
|
this.buildOptions(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue