add role to addUsersToAlbum endpoint

This commit is contained in:
mgabor
2024-04-24 11:36:09 +02:00
parent dd149e5235
commit 5bb3ddb1f5
14 changed files with 246 additions and 11 deletions

View File

@@ -7300,9 +7300,32 @@
],
"type": "object"
},
"AddUserDto": {
"properties": {
"role": {
"$ref": "#/components/schemas/AlbumUserRole"
},
"userId": {
"format": "uuid",
"type": "string"
}
},
"required": [
"userId"
],
"type": "object"
},
"AddUsersDto": {
"properties": {
"albumUsers": {
"items": {
"$ref": "#/components/schemas/AddUserDto"
},
"type": "array"
},
"sharedUserIds": {
"deprecated": true,
"description": "Deprecated in favor of albumUsers",
"items": {
"format": "uuid",
"type": "string"
@@ -7311,7 +7334,7 @@
}
},
"required": [
"sharedUserIds"
"albumUsers"
],
"type": "object"
},

View File

@@ -196,8 +196,14 @@ export type BulkIdResponseDto = {
export type UpdateAlbumUserDto = {
role: AlbumUserRole;
};
export type AddUserDto = {
role?: AlbumUserRole;
userId: string;
};
export type AddUsersDto = {
sharedUserIds: string[];
albumUsers: AddUserDto[];
/** Deprecated in favor of albumUsers */
sharedUserIds?: string[];
};
export type ApiKeyResponseDto = {
createdAt: string;