mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: track upgrade history (#13097)
This commit is contained in:
parent
1c3603e23b
commit
4d20b11f25
23 changed files with 406 additions and 19 deletions
|
|
@ -1000,6 +1000,11 @@ export type ServerVersionResponseDto = {
|
|||
minor: number;
|
||||
patch: number;
|
||||
};
|
||||
export type ServerVersionHistoryResponseDto = {
|
||||
createdAt: string;
|
||||
id: string;
|
||||
version: string;
|
||||
};
|
||||
export type SessionResponseDto = {
|
||||
createdAt: string;
|
||||
current: boolean;
|
||||
|
|
@ -2667,6 +2672,14 @@ export function getServerVersion(opts?: Oazapfts.RequestOpts) {
|
|||
...opts
|
||||
}));
|
||||
}
|
||||
export function getVersionHistory(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: ServerVersionHistoryResponseDto[];
|
||||
}>("/server/version-history", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function deleteAllSessions(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchText("/sessions", {
|
||||
...opts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue