33 lines
624 B
TypeScript
33 lines
624 B
TypeScript
/**
|
|
* 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;
|
|
}
|