mirror of
https://github.com/immich-app/immich.git
synced 2025-06-12 21:38:37 +02:00
refactor: user avatar color (#17753)
This commit is contained in:
parent
460d594791
commit
ad272333db
30 changed files with 200 additions and 220 deletions
open-api
|
@ -8884,21 +8884,6 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AvatarResponse": {
|
||||
"properties": {
|
||||
"color": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/UserAvatarColor"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"color"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"AvatarUpdate": {
|
||||
"properties": {
|
||||
"color": {
|
||||
|
@ -13621,6 +13606,14 @@
|
|||
},
|
||||
"UserAdminCreateDto": {
|
||||
"properties": {
|
||||
"avatarColor": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/UserAvatarColor"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"email": {
|
||||
"format": "email",
|
||||
"type": "string"
|
||||
|
@ -13763,6 +13756,14 @@
|
|||
},
|
||||
"UserAdminUpdateDto": {
|
||||
"properties": {
|
||||
"avatarColor": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/UserAvatarColor"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"email": {
|
||||
"format": "email",
|
||||
"type": "string"
|
||||
|
@ -13826,9 +13827,6 @@
|
|||
},
|
||||
"UserPreferencesResponseDto": {
|
||||
"properties": {
|
||||
"avatar": {
|
||||
"$ref": "#/components/schemas/AvatarResponse"
|
||||
},
|
||||
"download": {
|
||||
"$ref": "#/components/schemas/DownloadResponse"
|
||||
},
|
||||
|
@ -13858,7 +13856,6 @@
|
|||
}
|
||||
},
|
||||
"required": [
|
||||
"avatar",
|
||||
"download",
|
||||
"emailNotifications",
|
||||
"folders",
|
||||
|
@ -13952,6 +13949,14 @@
|
|||
},
|
||||
"UserUpdateMeDto": {
|
||||
"properties": {
|
||||
"avatarColor": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/UserAvatarColor"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"email": {
|
||||
"format": "email",
|
||||
"type": "string"
|
||||
|
|
|
@ -64,6 +64,7 @@ export type UserAdminResponseDto = {
|
|||
updatedAt: string;
|
||||
};
|
||||
export type UserAdminCreateDto = {
|
||||
avatarColor?: (UserAvatarColor) | null;
|
||||
email: string;
|
||||
name: string;
|
||||
notify?: boolean;
|
||||
|
@ -76,6 +77,7 @@ export type UserAdminDeleteDto = {
|
|||
force?: boolean;
|
||||
};
|
||||
export type UserAdminUpdateDto = {
|
||||
avatarColor?: (UserAvatarColor) | null;
|
||||
email?: string;
|
||||
name?: string;
|
||||
password?: string;
|
||||
|
@ -83,9 +85,6 @@ export type UserAdminUpdateDto = {
|
|||
shouldChangePassword?: boolean;
|
||||
storageLabel?: string | null;
|
||||
};
|
||||
export type AvatarResponse = {
|
||||
color: UserAvatarColor;
|
||||
};
|
||||
export type DownloadResponse = {
|
||||
archiveSize: number;
|
||||
includeEmbeddedVideos: boolean;
|
||||
|
@ -122,7 +121,6 @@ export type TagsResponse = {
|
|||
sidebarWeb: boolean;
|
||||
};
|
||||
export type UserPreferencesResponseDto = {
|
||||
avatar: AvatarResponse;
|
||||
download: DownloadResponse;
|
||||
emailNotifications: EmailNotificationsResponse;
|
||||
folders: FoldersResponse;
|
||||
|
@ -1388,6 +1386,7 @@ export type TrashResponseDto = {
|
|||
count: number;
|
||||
};
|
||||
export type UserUpdateMeDto = {
|
||||
avatarColor?: (UserAvatarColor) | null;
|
||||
email?: string;
|
||||
name?: string;
|
||||
password?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue