import z from "zod"; import { ServiceClient } from "../../service-client"; import { _CreateUserSchema, CredentialLoginSchema, GetUserByEmailSchema, GetUserByIdSchema, RegisterUserSchema, TokenLoginSchema, UpdateUserVerifyTokenSchema } from "./schema"; import { TUser } from "./types"; export class AccountService extends ServiceClient { protected getServiceName(): string { return 'com.appconda.service.account'; } public async CreateUser(payload: z.infer): Promise { return await this.actionCall('user', 'CreateUser', payload); } public async GetUserById(payload: z.infer): Promise { return await this.actionCall('user', 'GetUserById', payload); } public async GetUserByEmail(payload: z.infer): Promise { return await this.actionCall('user', 'GetUserByEmail', payload); } public async UpdateUserVerifyToken(payload: z.infer): Promise { return await this.actionCall('user', 'UpdateUserVerifyToken', payload); } public async RegisterUser(payload: z.infer): Promise { return await this.actionCall('user', 'RegisterUser', payload); } public async CredentialLogin(payload: z.infer): Promise { return await this.actionCall('user', 'CredentialLogin', payload); } public async TokenLogin(payload: z.infer): Promise { return await this.actionCall('user', 'TokenLogin', payload); } }