mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
feat: birthday memories (#30831)
This commit is contained in:
@@ -1842,15 +1842,19 @@ export type MapReverseGeocodeResponseDto = {
|
||||
/** State/Province name */
|
||||
state: string | null;
|
||||
};
|
||||
export type OnThisDayDto = {
|
||||
/** Year for on this day memory */
|
||||
export type MemoryDataDto = {
|
||||
/** Person ID (birthday memories) */
|
||||
personId?: string;
|
||||
/** Name of the person when the memory was created (birthday memories) */
|
||||
personName?: string;
|
||||
/** Year of the memory */
|
||||
year: number;
|
||||
};
|
||||
export type MemoryResponseDto = {
|
||||
assets: AssetResponseDto[];
|
||||
/** Creation date */
|
||||
createdAt: string;
|
||||
data: OnThisDayDto;
|
||||
data: MemoryDataDto;
|
||||
/** Deletion date */
|
||||
deletedAt?: string;
|
||||
/** Date when memory should be hidden */
|
||||
@@ -1874,7 +1878,7 @@ export type MemoryResponseDto = {
|
||||
export type MemoryCreateDto = {
|
||||
/** Asset IDs to associate with memory */
|
||||
assetIds?: string[];
|
||||
data: OnThisDayDto;
|
||||
data: MemoryDataDto;
|
||||
/** Date when memory should be hidden */
|
||||
hideAt?: string;
|
||||
/** Is memory saved */
|
||||
@@ -8218,7 +8222,8 @@ export enum MemorySearchOrder {
|
||||
Random = "random"
|
||||
}
|
||||
export enum MemoryType {
|
||||
OnThisDay = "on_this_day"
|
||||
OnThisDay = "on_this_day",
|
||||
Birthday = "birthday"
|
||||
}
|
||||
export enum PartnerDirection {
|
||||
SharedBy = "shared-by",
|
||||
|
||||
Reference in New Issue
Block a user