1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-16 03:40:33 +02:00

refactor: deduplicate MemoryType and ReactionType enums (#11479)

* refactor: deduplicate memorytype and reactiontype enums

* fix mobile
This commit is contained in:
Michel Heusschen
2024-07-31 19:08:31 +02:00
committed by GitHub
parent 281cfc95a4
commit b73f7fe16f
8 changed files with 18 additions and 176 deletions

View File

@ -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"
}