mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
chore(server): openapi generation (#9585)
This commit is contained in:
parent
60427f18ce
commit
1ad04f0b17
15 changed files with 32 additions and 2 deletions
3
mobile/openapi/.openapi-generator/FILES
generated
3
mobile/openapi/.openapi-generator/FILES
generated
|
@ -70,6 +70,7 @@ doc/DownloadInfoDto.md
|
||||||
doc/DownloadResponseDto.md
|
doc/DownloadResponseDto.md
|
||||||
doc/DuplicateApi.md
|
doc/DuplicateApi.md
|
||||||
doc/DuplicateDetectionConfig.md
|
doc/DuplicateDetectionConfig.md
|
||||||
|
doc/DuplicateResponseDto.md
|
||||||
doc/EntityType.md
|
doc/EntityType.md
|
||||||
doc/ExifResponseDto.md
|
doc/ExifResponseDto.md
|
||||||
doc/FaceApi.md
|
doc/FaceApi.md
|
||||||
|
@ -312,6 +313,7 @@ lib/model/download_archive_info.dart
|
||||||
lib/model/download_info_dto.dart
|
lib/model/download_info_dto.dart
|
||||||
lib/model/download_response_dto.dart
|
lib/model/download_response_dto.dart
|
||||||
lib/model/duplicate_detection_config.dart
|
lib/model/duplicate_detection_config.dart
|
||||||
|
lib/model/duplicate_response_dto.dart
|
||||||
lib/model/entity_type.dart
|
lib/model/entity_type.dart
|
||||||
lib/model/exif_response_dto.dart
|
lib/model/exif_response_dto.dart
|
||||||
lib/model/face_dto.dart
|
lib/model/face_dto.dart
|
||||||
|
@ -507,6 +509,7 @@ test/download_info_dto_test.dart
|
||||||
test/download_response_dto_test.dart
|
test/download_response_dto_test.dart
|
||||||
test/duplicate_api_test.dart
|
test/duplicate_api_test.dart
|
||||||
test/duplicate_detection_config_test.dart
|
test/duplicate_detection_config_test.dart
|
||||||
|
test/duplicate_response_dto_test.dart
|
||||||
test/entity_type_test.dart
|
test/entity_type_test.dart
|
||||||
test/exif_response_dto_test.dart
|
test/exif_response_dto_test.dart
|
||||||
test/face_api_test.dart
|
test/face_api_test.dart
|
||||||
|
|
BIN
mobile/openapi/README.md
generated
BIN
mobile/openapi/README.md
generated
Binary file not shown.
BIN
mobile/openapi/doc/AssetResponseDto.md
generated
BIN
mobile/openapi/doc/AssetResponseDto.md
generated
Binary file not shown.
BIN
mobile/openapi/doc/DuplicateApi.md
generated
BIN
mobile/openapi/doc/DuplicateApi.md
generated
Binary file not shown.
BIN
mobile/openapi/doc/DuplicateResponseDto.md
generated
Normal file
BIN
mobile/openapi/doc/DuplicateResponseDto.md
generated
Normal file
Binary file not shown.
BIN
mobile/openapi/lib/api.dart
generated
BIN
mobile/openapi/lib/api.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/api/duplicate_api.dart
generated
BIN
mobile/openapi/lib/api/duplicate_api.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/api_client.dart
generated
BIN
mobile/openapi/lib/api_client.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/duplicate_response_dto.dart
generated
Normal file
BIN
mobile/openapi/lib/model/duplicate_response_dto.dart
generated
Normal file
Binary file not shown.
BIN
mobile/openapi/test/asset_response_dto_test.dart
generated
BIN
mobile/openapi/test/asset_response_dto_test.dart
generated
Binary file not shown.
BIN
mobile/openapi/test/duplicate_api_test.dart
generated
BIN
mobile/openapi/test/duplicate_api_test.dart
generated
Binary file not shown.
BIN
mobile/openapi/test/duplicate_response_dto_test.dart
generated
Normal file
BIN
mobile/openapi/test/duplicate_response_dto_test.dart
generated
Normal file
Binary file not shown.
|
@ -2231,7 +2231,7 @@
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/AssetResponseDto"
|
"$ref": "#/components/schemas/DuplicateResponseDto"
|
||||||
},
|
},
|
||||||
"type": "array"
|
"type": "array"
|
||||||
}
|
}
|
||||||
|
@ -7318,6 +7318,10 @@
|
||||||
"deviceId": {
|
"deviceId": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"duplicateId": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -7930,6 +7934,24 @@
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"DuplicateResponseDto": {
|
||||||
|
"properties": {
|
||||||
|
"assets": {
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/AssetResponseDto"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"duplicateId": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"assets",
|
||||||
|
"duplicateId"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"EntityType": {
|
"EntityType": {
|
||||||
"enum": [
|
"enum": [
|
||||||
"ASSET",
|
"ASSET",
|
||||||
|
|
|
@ -115,6 +115,7 @@ export type AssetResponseDto = {
|
||||||
checksum: string;
|
checksum: string;
|
||||||
deviceAssetId: string;
|
deviceAssetId: string;
|
||||||
deviceId: string;
|
deviceId: string;
|
||||||
|
duplicateId?: string | null;
|
||||||
duration: string;
|
duration: string;
|
||||||
exifInfo?: ExifResponseDto;
|
exifInfo?: ExifResponseDto;
|
||||||
fileCreatedAt: string;
|
fileCreatedAt: string;
|
||||||
|
@ -372,6 +373,10 @@ export type DownloadResponseDto = {
|
||||||
archives: DownloadArchiveInfo[];
|
archives: DownloadArchiveInfo[];
|
||||||
totalSize: number;
|
totalSize: number;
|
||||||
};
|
};
|
||||||
|
export type DuplicateResponseDto = {
|
||||||
|
assets: AssetResponseDto[];
|
||||||
|
duplicateId: string;
|
||||||
|
};
|
||||||
export type PersonResponseDto = {
|
export type PersonResponseDto = {
|
||||||
birthDate: string | null;
|
birthDate: string | null;
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -1698,7 +1703,7 @@ export function getDownloadInfo({ key, downloadInfoDto }: {
|
||||||
export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {
|
export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {
|
||||||
return oazapfts.ok(oazapfts.fetchJson<{
|
return oazapfts.ok(oazapfts.fetchJson<{
|
||||||
status: 200;
|
status: 200;
|
||||||
data: AssetResponseDto[];
|
data: DuplicateResponseDto[];
|
||||||
}>("/duplicates", {
|
}>("/duplicates", {
|
||||||
...opts
|
...opts
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue