You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 05:46:58 +02:00
fix: regression: sort day by fileCreatedAt again (#18732)
* fix: regression: sort day by fileCreatedAt again * lint * e2e test * inline function * e2e * Address comments. Drop dayGroup and timezone in favor of localOffsetMinutes * lint and some api-doc * lint, more api-doc * format * Move minutes to fractional hours * make sql * merge/conflict * merge fallout, review comments * spelling * drop offset from returned date * move description into decorator where possible, regen api
This commit is contained in:
@ -312,7 +312,9 @@ export type AssetResponseDto = {
|
||||
duplicateId?: string | null;
|
||||
duration: string;
|
||||
exifInfo?: ExifResponseDto;
|
||||
/** The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken. */
|
||||
fileCreatedAt: string;
|
||||
/** The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken. */
|
||||
fileModifiedAt: string;
|
||||
hasMetadata: boolean;
|
||||
id: string;
|
||||
@ -323,6 +325,7 @@ export type AssetResponseDto = {
|
||||
/** This property was deprecated in v1.106.0 */
|
||||
libraryId?: string | null;
|
||||
livePhotoVideoId?: string | null;
|
||||
/** The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months. */
|
||||
localDateTime: string;
|
||||
originalFileName: string;
|
||||
originalMimeType?: string;
|
||||
@ -337,6 +340,7 @@ export type AssetResponseDto = {
|
||||
thumbhash: string | null;
|
||||
"type": AssetTypeEnum;
|
||||
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
|
||||
/** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */
|
||||
updatedAt: string;
|
||||
visibility: AssetVisibility;
|
||||
};
|
||||
@ -1442,25 +1446,43 @@ export type TagUpdateDto = {
|
||||
color?: string | null;
|
||||
};
|
||||
export type TimeBucketAssetResponseDto = {
|
||||
/** Array of city names extracted from EXIF GPS data */
|
||||
city: (string | null)[];
|
||||
/** Array of country names extracted from EXIF GPS data */
|
||||
country: (string | null)[];
|
||||
/** Array of video durations in HH:MM:SS format (null for images) */
|
||||
duration: (string | null)[];
|
||||
/** Array of file creation timestamps in UTC (ISO 8601 format, without timezone) */
|
||||
fileCreatedAt: string[];
|
||||
/** Array of asset IDs in the time bucket */
|
||||
id: string[];
|
||||
/** Array indicating whether each asset is favorited */
|
||||
isFavorite: boolean[];
|
||||
/** Array indicating whether each asset is an image (false for videos) */
|
||||
isImage: boolean[];
|
||||
/** Array indicating whether each asset is in the trash */
|
||||
isTrashed: boolean[];
|
||||
/** Array of live photo video asset IDs (null for non-live photos) */
|
||||
livePhotoVideoId: (string | null)[];
|
||||
localDateTime: string[];
|
||||
/** Array of UTC offset hours at the time each photo was taken. Positive values are east of UTC, negative values are west of UTC. Values may be fractional (e.g., 5.5 for +05:30, -9.75 for -09:45). Applying this offset to 'fileCreatedAt' will give you the time the photo was taken from the photographer's perspective. */
|
||||
localOffsetHours: number[];
|
||||
/** Array of owner IDs for each asset */
|
||||
ownerId: string[];
|
||||
/** Array of projection types for 360° content (e.g., "EQUIRECTANGULAR", "CUBEFACE", "CYLINDRICAL") */
|
||||
projectionType: (string | null)[];
|
||||
/** Array of aspect ratios (width/height) for each asset */
|
||||
ratio: number[];
|
||||
/** (stack ID, stack asset count) tuple */
|
||||
/** Array of stack information as [stackId, assetCount] tuples (null for non-stacked assets) */
|
||||
stack?: (string[] | null)[];
|
||||
/** Array of BlurHash strings for generating asset previews (base64 encoded) */
|
||||
thumbhash: (string | null)[];
|
||||
/** Array of visibility statuses for each asset (e.g., ARCHIVE, TIMELINE, HIDDEN, LOCKED) */
|
||||
visibility: AssetVisibility[];
|
||||
};
|
||||
export type TimeBucketsResponseDto = {
|
||||
/** Number of assets in this time bucket */
|
||||
count: number;
|
||||
/** Time bucket identifier in YYYY-MM-DD format representing the start of the time period */
|
||||
timeBucket: string;
|
||||
};
|
||||
export type TrashResponseDto = {
|
||||
|
Reference in New Issue
Block a user