Files
eco_os/ecoos_daemon/ts_interfaces/updates.ts

33 lines
624 B
TypeScript
Raw Normal View History

/**
* Update interfaces - API contracts for update/upgrade system
*/
export interface IRelease {
version: string;
tagName: string;
publishedAt: Date;
downloadUrl: string;
isCurrent: boolean;
isNewer: boolean;
ageHours: number;
}
export interface IAutoUpgradeStatus {
enabled: boolean;
targetVersion: string | null;
scheduledIn: string | null;
waitingForStability: boolean;
}
export interface IUpdateInfo {
currentVersion: string;
releases: IRelease[];
autoUpgrade: IAutoUpgradeStatus;
lastCheck: string | null;
}
export interface IUpgradeResult {
success: boolean;
message: string;
}