import { DeploymentStatus, IDeployment } from "@/models/Deployment.js"; import { IProject } from "@/models/Projects.js"; import { IUserSerivce } from "./IUserService.js"; export interface IDeploymentService { newDeployment(deploymentData: Partial, userId: string, projectId: string, isRedeploy: boolean): Promise; getAllDeployments( userId: string, query: { page: number; limit: number; status?: DeploymentStatus; search?: string; }, ): Promise<{ deployments: IDeployment[]; total: number }>; getDeploymentById(id: string, userId: string, includes?: string): Promise; getDeploymentFiles(id: string, userId: string, includes?: string): Promise; getProjectDeployments( userId: string, projectId: string, query: { page: number; limit: number; status?: DeploymentStatus; search?: string; }, ): Promise<{ deployments: IDeployment[]; total: number }>; deleteDeployment(projectId: string, deploymentId: string, userId: string): Promise; __getDeploymentById(id: string): Promise; __updateDeployment(projectId: string, deploymentId: string, updateData: Partial): Promise; deployCloud(project: IProject, deployment: IDeployment, token?: string): Promise; deployLocal(deploymentId: string, projectId: string, token?: string): Promise; deleteLocal(deploymentId: string, projectId: string): Promise; deleteCloud(deploymentId: string, projectId: string): Promise; deleteCloudDeploysMultiple(projectId: string): Promise; incrementRunningDeplymnts(projectId: string, userId: string, userPlan: string): Promise; decrementRunningDeplymnts(projectId: string, userId?: string): Promise; newPushDeployment(deploymentData: Partial, project: IProject, installationId?: number): Promise<{ status: string; reason: string }>; createNewFailedDeployment(deployData: Partial, project: IProject, reason: string): Promise; }