From 5b04f7ecaf5d3d62acf1f8c6706c31bbf28f26a3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 07:55:38 -0400 Subject: [PATCH] refactor: update api calls since we changed routes --- src/account.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/account.ts b/src/account.ts index cc3d7f1..1b6e2f3 100644 --- a/src/account.ts +++ b/src/account.ts @@ -19,13 +19,13 @@ import { import { postApiAuthLogin, postApiAuthRegister, - postApiAuthVerifyEmail, + postApiAccountVerifyEmail, getApiAuthOtpGenerate, - postApiAuthOtpVerify, - postApiAuthOtpValidate, + postApiAccountOtpVerify, + postApiAccountOtpValidate, postApiAuthOtpDisable, PasswordResetRequest, - postApiAuthPasswordResetConfirm, + postApiAccountPasswordResetConfirm, postApiAuthLogout, getApiUploadLimit, } from "./account/generated/index.js"; @@ -88,7 +88,7 @@ export class AccountApi { ): Promise { let ret: AxiosResponse; try { - ret = await postApiAuthVerifyEmail( + ret = await postApiAccountVerifyEmail( verifyEmailRequest, this.buildOptions(), ); @@ -111,7 +111,7 @@ export class AccountApi { public async verifyOtp(otpVerifyRequest: OTPVerifyRequest): Promise { let ret: AxiosResponse; try { - ret = await postApiAuthOtpVerify(otpVerifyRequest, this.buildOptions()); + ret = await postApiAccountOtpVerify(otpVerifyRequest, this.buildOptions()); } catch (e) { return false; } @@ -123,7 +123,7 @@ export class AccountApi { ): Promise { let ret: AxiosResponse; try { - ret = await postApiAuthOtpValidate( + ret = await postApiAccountOtpValidate( otpValidateRequest, this.buildOptions(), ); @@ -165,7 +165,7 @@ export class AccountApi { ): Promise { let ret: AxiosResponse; try { - ret = await postApiAuthPasswordResetConfirm( + ret = await postApiAccountPasswordResetConfirm( passwordResetVerifyRequest, this.buildOptions(), );