import { LoginUserDTO, SignUpUserDTO } from "@/dtos/auth.dto.js"; import { AuthProvidersList, IUser } from "@/models/User.js"; import { Profile } from "passport"; import { GithubIds, GithubIdsOutput } from "../repository/IUserRepository.js"; export interface IUserSerivce { createUser(userData: Partial): Promise; googleLoginStrategy(Profile: Profile): Promise<{ user: IUser; newUser: boolean }>; githubLoginStrategy(profile: Profile): Promise<{ user: IUser; newUser: boolean }>; updateUser?(userId: string, updateData: Partial): Promise; updateUserProfile?(userId: string): Promise; getUser(userId: string): Promise; getUserDetailed(userId: string): Promise<{ user: IUser | null; bandwidth: number }>; signUpUser(data: SignUpUserDTO): Promise<{ user: IUser; otpResult: boolean } | null>; loginUser(data: LoginUserDTO): Promise; verifyUserOtp(email: string, otp: number): Promise<{ verifyResult: boolean; user: IUser | null }>; resentOtp(email: string): Promise; userCanDeploy(userId: string): Promise<{ user: IUser; limit: number; allowed: boolean; remaining: number }>; incrementDeployment(userId: string): Promise; getUserAuthProviders(userId: string): Promise | null>; addGithubInstallationInfo(data: GithubIds, userId: string): Promise; removeGithubInstallationInfo(installationId: number): Promise; getGithubInstallationInfo(userId: string): Promise; getUserByGithubInstallation(installationId: number, onlyNeededFields: boolean): Promise; }