/** * Deployment configuration */ export interface DeploymentConfig { platform: string; environment: string; domain?: string; buildCommand?: string; outputDir?: string; region?: string; projectPath?: string; } /** * Deployment result */ export interface DeploymentResult { success: boolean; url?: string; deploymentId?: string; error?: string; } /** * Deployment status */ export interface DeploymentStatus { status: string; url: string; id: string; createdAt: string; } /** * Deployment history item */ export interface DeploymentHistoryItem { id: string; url: string; status: string; createdAt: string; } /** * Rollback result */ export interface RollbackResult { success: boolean; message: string; url?: string; } /** * Platform adapter interface */ export interface PlatformAdapter { /** * Deploy the application * @param config Deployment configuration * @returns Deployment result */ deploy(config: DeploymentConfig): Promise; /** * Get deployment status * @param deploymentId Deployment ID * @returns Deployment status */ getStatus(deploymentId?: string): Promise; /** * Get deployment history * @returns Deployment history */ getHistory(): Promise; /** * Roll back to a previous deployment * @param deploymentId Deployment ID * @returns Rollback result */ rollback(deploymentId: string): Promise; /** * Configure a custom domain * @param domain Custom domain * @returns Success status */ configureDomain(domain: string): Promise; }