mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
refactor: snapshots flat response
This commit is contained in:
@@ -791,15 +791,13 @@ export type ListSnapshotsResponses = {
|
||||
/**
|
||||
* List of snapshots
|
||||
*/
|
||||
200: {
|
||||
snapshots: Array<{
|
||||
duration: number;
|
||||
paths: Array<string>;
|
||||
short_id: string;
|
||||
size: number;
|
||||
time: number;
|
||||
}>;
|
||||
};
|
||||
200: Array<{
|
||||
duration: number;
|
||||
paths: Array<string>;
|
||||
short_id: string;
|
||||
size: number;
|
||||
time: number;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type ListSnapshotsResponse = ListSnapshotsResponses[keyof ListSnapshotsResponses];
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
import type { GetBackupScheduleResponse, GetMeResponse, GetRepositoryResponse, GetVolumeResponse } from "~/api-client";
|
||||
import type {
|
||||
GetBackupScheduleResponse,
|
||||
GetMeResponse,
|
||||
GetRepositoryResponse,
|
||||
GetVolumeResponse,
|
||||
ListSnapshotsResponse,
|
||||
} from "~/api-client";
|
||||
|
||||
export type Volume = GetVolumeResponse["volume"];
|
||||
export type StatFs = GetVolumeResponse["statfs"];
|
||||
@@ -9,3 +15,5 @@ export type User = GetMeResponse["user"];
|
||||
export type Repository = GetRepositoryResponse;
|
||||
|
||||
export type BackupSchedule = GetBackupScheduleResponse;
|
||||
|
||||
export type Snapshot = ListSnapshotsResponse[number];
|
||||
|
||||
Reference in New Issue
Block a user