mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: user preferences for archive download size (#10296)
* feat: user preferences for archive download size * chore: open api * chore: clean up --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
596412cb8f
commit
dddc06c3b2
19 changed files with 442 additions and 24 deletions
|
|
@ -8125,6 +8125,17 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DownloadResponse": {
|
||||
"properties": {
|
||||
"archiveSize": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"archiveSize"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"DownloadResponseDto": {
|
||||
"properties": {
|
||||
"archives": {
|
||||
|
|
@ -8143,6 +8154,15 @@
|
|||
],
|
||||
"type": "object"
|
||||
},
|
||||
"DownloadUpdate": {
|
||||
"properties": {
|
||||
"archiveSize": {
|
||||
"minimum": 1,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DuplicateDetectionConfig": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
|
|
@ -11255,6 +11275,9 @@
|
|||
"avatar": {
|
||||
"$ref": "#/components/schemas/AvatarResponse"
|
||||
},
|
||||
"download": {
|
||||
"$ref": "#/components/schemas/DownloadResponse"
|
||||
},
|
||||
"emailNotifications": {
|
||||
"$ref": "#/components/schemas/EmailNotificationsResponse"
|
||||
},
|
||||
|
|
@ -11264,6 +11287,7 @@
|
|||
},
|
||||
"required": [
|
||||
"avatar",
|
||||
"download",
|
||||
"emailNotifications",
|
||||
"memories"
|
||||
],
|
||||
|
|
@ -11274,6 +11298,9 @@
|
|||
"avatar": {
|
||||
"$ref": "#/components/schemas/AvatarUpdate"
|
||||
},
|
||||
"download": {
|
||||
"$ref": "#/components/schemas/DownloadUpdate"
|
||||
},
|
||||
"emailNotifications": {
|
||||
"$ref": "#/components/schemas/EmailNotificationsUpdate"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -78,6 +78,9 @@ export type UserAdminUpdateDto = {
|
|||
export type AvatarResponse = {
|
||||
color: UserAvatarColor;
|
||||
};
|
||||
export type DownloadResponse = {
|
||||
archiveSize: number;
|
||||
};
|
||||
export type EmailNotificationsResponse = {
|
||||
albumInvite: boolean;
|
||||
albumUpdate: boolean;
|
||||
|
|
@ -88,12 +91,16 @@ export type MemoryResponse = {
|
|||
};
|
||||
export type UserPreferencesResponseDto = {
|
||||
avatar: AvatarResponse;
|
||||
download: DownloadResponse;
|
||||
emailNotifications: EmailNotificationsResponse;
|
||||
memories: MemoryResponse;
|
||||
};
|
||||
export type AvatarUpdate = {
|
||||
color?: UserAvatarColor;
|
||||
};
|
||||
export type DownloadUpdate = {
|
||||
archiveSize?: number;
|
||||
};
|
||||
export type EmailNotificationsUpdate = {
|
||||
albumInvite?: boolean;
|
||||
albumUpdate?: boolean;
|
||||
|
|
@ -104,6 +111,7 @@ export type MemoryUpdate = {
|
|||
};
|
||||
export type UserPreferencesUpdateDto = {
|
||||
avatar?: AvatarUpdate;
|
||||
download?: DownloadUpdate;
|
||||
emailNotifications?: EmailNotificationsUpdate;
|
||||
memories?: MemoryUpdate;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue