chore: unused types and functions removed, api url moved to .env
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import type { ApiResponse } from '@/types/apiResponse';
|
||||
import type { FetchPromise } from '@/types/fetchPromise';
|
||||
import type {
|
||||
CompleteUserInformationRequest,
|
||||
ConfirmEmailOtpRequest,
|
||||
ConfirmForgetPassCodeRequest,
|
||||
ConfirmOtpResponse,
|
||||
@@ -79,12 +77,6 @@ export const loginOrSignUpWithGoogle = async (
|
||||
);
|
||||
};
|
||||
|
||||
export const completeUserInformation = async (
|
||||
body: CompleteUserInformationRequest,
|
||||
) => {
|
||||
return apiClient.post<ApiResponse>('User/CompleteUserInformation', body);
|
||||
};
|
||||
|
||||
export const logOut = async () => {
|
||||
return apiClient.post<ApiResponse>('User/LogOut', {});
|
||||
};
|
||||
|
||||
@@ -115,24 +115,3 @@ export interface LoginOrSignUpWithGoogleResponse extends ApiResponse {
|
||||
completedUserInformation: boolean;
|
||||
returnUrl: string;
|
||||
}
|
||||
|
||||
// CompleteUserInformation
|
||||
|
||||
export interface CompleteUserInformationRequest {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
gender?: Gender;
|
||||
nationalCode?: string;
|
||||
savePassword?: boolean;
|
||||
password?: string;
|
||||
saveEmail?: boolean;
|
||||
email?: string;
|
||||
birthDate?: string;
|
||||
countryCode?: string;
|
||||
userId?: GUID;
|
||||
}
|
||||
|
||||
export enum Gender {
|
||||
Male = 1,
|
||||
Female = 2,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user