mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
refactor: create album users (#9315)
This commit is contained in:
parent
e9f99673b9
commit
e79d1b1ec2
18 changed files with 267 additions and 52 deletions
|
|
@ -6779,6 +6779,22 @@
|
|||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AlbumUserCreateDto": {
|
||||
"properties": {
|
||||
"role": {
|
||||
"$ref": "#/components/schemas/AlbumUserRole"
|
||||
},
|
||||
"userId": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"role",
|
||||
"userId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AlbumUserResponseDto": {
|
||||
"properties": {
|
||||
"role": {
|
||||
|
|
@ -7599,6 +7615,13 @@
|
|||
"albumName": {
|
||||
"type": "string"
|
||||
},
|
||||
"albumUsers": {
|
||||
"description": "This property was added in v1.104.0",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AlbumUserCreateDto"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"assetIds": {
|
||||
"items": {
|
||||
"format": "uuid",
|
||||
|
|
@ -7610,6 +7633,8 @@
|
|||
"type": "string"
|
||||
},
|
||||
"sharedWithUserIds": {
|
||||
"deprecated": true,
|
||||
"description": "This property was deprecated in v1.104.0",
|
||||
"items": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
|
|
|
|||
|
|
@ -169,10 +169,17 @@ export type AlbumResponseDto = {
|
|||
startDate?: string;
|
||||
updatedAt: string;
|
||||
};
|
||||
export type AlbumUserCreateDto = {
|
||||
role: AlbumUserRole;
|
||||
userId: string;
|
||||
};
|
||||
export type CreateAlbumDto = {
|
||||
albumName: string;
|
||||
/** This property was added in v1.104.0 */
|
||||
albumUsers?: AlbumUserCreateDto[];
|
||||
assetIds?: string[];
|
||||
description?: string;
|
||||
/** This property was deprecated in v1.104.0 */
|
||||
sharedWithUserIds?: string[];
|
||||
};
|
||||
export type AlbumCountResponseDto = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue