import { QueryProjectDTO } from "@/dtos/project.dto.js"; import { IProject } from "@/models/Projects.js"; import { Types } from "mongoose"; export interface IProjectRepository { createProject(project: Partial): Promise; getAllProjects(userId: string, query: QueryProjectDTO & { fields?: string[] }): Promise<{ projects: IProject[]; total: number }>; findProject(projectId: string, userId: string, options?: { include?: string; fields?: string[]; deletedToo?: boolean }): Promise; findProjectsBySubdomain(subdomain: string): Promise; deleteProject(projectId: string, userId: string): Promise; checkProjectExistBySubdomain(subdomain: string): Promise<{ _id: string } | null>; updateProject(projectId: string, userId: string, updateData: Partial): Promise; pushToDeployments(prjectId: string, userId: string, newDeployment: string | Types.ObjectId): Promise; pullDeployments( projectId: string, userId: string, newDeployment: string | Types.ObjectId, backUpDeployment: string | null, ): Promise; __findProject(projectId: string): Promise; __findProjectByRepo(repoId: number): Promise; __updateProject(projectId: string, updateData: Partial): Promise; __updateManyProject(repoIds: number[], updateData: Partial, userId?: string): Promise; }