mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Add ContributorCountResponseDto and expose contributorCounts
on AlbumResponseDto in OpenAPI spec. Regenerate TypeScript SDK and mobile OpenAPI clients to include new types. No breaking changes; fields are additive.
This commit is contained in:
parent
5b333fc03e
commit
bd87d2bd08
7 changed files with 145 additions and 1 deletions
|
|
@ -10096,6 +10096,12 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"contributorCounts": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ContributorCountResponseDto"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"createdAt": {
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
|
|
@ -11471,6 +11477,21 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ContributorCountResponseDto": {
|
||||
"properties": {
|
||||
"assetCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"assetCount",
|
||||
"userId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"CreateAlbumDto": {
|
||||
"properties": {
|
||||
"albumName": {
|
||||
|
|
|
|||
|
|
@ -356,12 +356,17 @@ export type AssetResponseDto = {
|
|||
updatedAt: string;
|
||||
visibility: AssetVisibility;
|
||||
};
|
||||
export type ContributorCountResponseDto = {
|
||||
assetCount: number;
|
||||
userId: string;
|
||||
};
|
||||
export type AlbumResponseDto = {
|
||||
albumName: string;
|
||||
albumThumbnailAssetId: string | null;
|
||||
albumUsers: AlbumUserResponseDto[];
|
||||
assetCount: number;
|
||||
assets: AssetResponseDto[];
|
||||
contributorCounts?: ContributorCountResponseDto[];
|
||||
createdAt: string;
|
||||
description: string;
|
||||
endDate?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue