mirror of
https://github.com/immich-app/immich.git
synced 2025-07-21 22:44:23 +02:00
refactor: deduplicate MemoryType and ReactionType enums (#11479)
* refactor: deduplicate memorytype and reactiontype enums * fix mobile
This commit is contained in:
parent
281cfc95a4
commit
b73f7fe16f
8 changed files with 18 additions and 176 deletions
open-api
|
@ -7216,11 +7216,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"comment",
|
||||
"like"
|
||||
],
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/ReactionType"
|
||||
},
|
||||
"user": {
|
||||
"$ref": "#/components/schemas/UserResponseDto"
|
||||
|
@ -9311,10 +9307,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"on_this_day"
|
||||
],
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/MemoryType"
|
||||
},
|
||||
"updatedAt": {
|
||||
"format": "date-time",
|
||||
|
|
|
@ -26,7 +26,7 @@ export type ActivityResponseDto = {
|
|||
comment?: string | null;
|
||||
createdAt: string;
|
||||
id: string;
|
||||
"type": Type;
|
||||
"type": ReactionType;
|
||||
user: UserResponseDto;
|
||||
};
|
||||
export type ActivityCreateDto = {
|
||||
|
@ -572,7 +572,7 @@ export type MemoryResponseDto = {
|
|||
memoryAt: string;
|
||||
ownerId: string;
|
||||
seenAt?: string;
|
||||
"type": Type2;
|
||||
"type": MemoryType;
|
||||
updatedAt: string;
|
||||
};
|
||||
export type MemoryCreateDto = {
|
||||
|
@ -3065,10 +3065,6 @@ export enum ReactionType {
|
|||
Comment = "comment",
|
||||
Like = "like"
|
||||
}
|
||||
export enum Type {
|
||||
Comment = "comment",
|
||||
Like = "like"
|
||||
}
|
||||
export enum UserAvatarColor {
|
||||
Primary = "primary",
|
||||
Pink = "pink",
|
||||
|
@ -3164,9 +3160,6 @@ export enum MapTheme {
|
|||
Light = "light",
|
||||
Dark = "dark"
|
||||
}
|
||||
export enum Type2 {
|
||||
OnThisDay = "on_this_day"
|
||||
}
|
||||
export enum MemoryType {
|
||||
OnThisDay = "on_this_day"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue