1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-03 05:46:58 +02:00

chore(server): openapi generation (#9585)

This commit is contained in:
Alex
2024-05-18 13:50:28 -05:00
committed by GitHub
parent 60427f18ce
commit 1ad04f0b17
15 changed files with 214 additions and 9 deletions

View File

@ -115,6 +115,7 @@ export type AssetResponseDto = {
checksum: string;
deviceAssetId: string;
deviceId: string;
duplicateId?: string | null;
duration: string;
exifInfo?: ExifResponseDto;
fileCreatedAt: string;
@ -372,6 +373,10 @@ export type DownloadResponseDto = {
archives: DownloadArchiveInfo[];
totalSize: number;
};
export type DuplicateResponseDto = {
assets: AssetResponseDto[];
duplicateId: string;
};
export type PersonResponseDto = {
birthDate: string | null;
id: string;
@ -1698,7 +1703,7 @@ export function getDownloadInfo({ key, downloadInfoDto }: {
export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: AssetResponseDto[];
data: DuplicateResponseDto[];
}>("/duplicates", {
...opts
}));