2023-09-16 03:17:46 +00:00
|
|
|
type APIFileOverview = {
|
|
|
|
checksum: string;
|
|
|
|
name: string;
|
|
|
|
size: string;
|
|
|
|
type: FileType;
|
|
|
|
uuid: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type APIFileDetail = APIFileOverview & {
|
|
|
|
anvils: {
|
|
|
|
[uuid: string]: {
|
|
|
|
description: string;
|
|
|
|
locationUuids: string[];
|
|
|
|
name: string;
|
|
|
|
uuid: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hosts: {
|
|
|
|
[uuid: string]: {
|
|
|
|
locationUuids: string[];
|
|
|
|
name: string;
|
2023-09-21 05:42:37 +00:00
|
|
|
type: string;
|
2023-09-16 03:17:46 +00:00
|
|
|
uuid: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
locations: {
|
|
|
|
[uuid: string]: {
|
|
|
|
active: boolean;
|
|
|
|
anvilUuid: string;
|
|
|
|
hostUuid: string;
|
|
|
|
uuid: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
type APIFileOverviewList = {
|
|
|
|
[uuid: string]: APIFileOverview;
|
|
|
|
};
|
2023-09-21 05:42:37 +00:00
|
|
|
|
|
|
|
type APIEditFileRequestBody = {
|
|
|
|
fileName: string;
|
|
|
|
fileType: FileType;
|
|
|
|
fileUUID: string;
|
|
|
|
fileLocations: Array<{
|
|
|
|
fileLocationUUID: string;
|
|
|
|
isFileLocationActive: boolean;
|
|
|
|
}>;
|
|
|
|
};
|