1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 32 additions and 2 deletions

View file

@ -70,6 +70,7 @@ doc/DownloadInfoDto.md
doc/DownloadResponseDto.md
doc/DuplicateApi.md
doc/DuplicateDetectionConfig.md
doc/DuplicateResponseDto.md
doc/EntityType.md
doc/ExifResponseDto.md
doc/FaceApi.md
@ -312,6 +313,7 @@ lib/model/download_archive_info.dart
lib/model/download_info_dto.dart
lib/model/download_response_dto.dart
lib/model/duplicate_detection_config.dart
lib/model/duplicate_response_dto.dart
lib/model/entity_type.dart
lib/model/exif_response_dto.dart
lib/model/face_dto.dart
@ -507,6 +509,7 @@ test/download_info_dto_test.dart
test/download_response_dto_test.dart
test/duplicate_api_test.dart
test/duplicate_detection_config_test.dart
test/duplicate_response_dto_test.dart
test/entity_type_test.dart
test/exif_response_dto_test.dart
test/face_api_test.dart

BIN
mobile/openapi/README.md generated

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
mobile/openapi/doc/DuplicateResponseDto.md generated Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -2231,7 +2231,7 @@
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
"$ref": "#/components/schemas/DuplicateResponseDto"
},
"type": "array"
}
@ -7318,6 +7318,10 @@
"deviceId": {
"type": "string"
},
"duplicateId": {
"nullable": true,
"type": "string"
},
"duration": {
"type": "string"
},
@ -7930,6 +7934,24 @@
],
"type": "object"
},
"DuplicateResponseDto": {
"properties": {
"assets": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
},
"duplicateId": {
"type": "string"
}
},
"required": [
"assets",
"duplicateId"
],
"type": "object"
},
"EntityType": {
"enum": [
"ASSET",

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
}));