mirror of
https://github.com/immich-app/immich.git
synced 2025-11-02 02:57:49 +09:00
refactor: user avatar color (#17753)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user