Merge branch 'main' of https://github.com/immich-app/immich into feat/sidecar-asset-files

This commit is contained in:
Jonathan Jogenfors
2025-10-02 23:34:28 +02:00
888 changed files with 58184 additions and 14539 deletions
+3 -3
View File
@@ -1,4 +1,3 @@
import { randomUUID } from 'node:crypto';
import {
Activity,
ApiKey,
@@ -26,14 +25,15 @@ import {
UserStatus,
} from 'src/enum';
import { OnThisDayData, UserMetadataItem } from 'src/types';
import { v4, v7 } from 'uuid';
export const newUuid = () => randomUUID() as string;
export const newUuid = () => v4();
export const newUuids = () =>
Array.from({ length: 100 })
.fill(0)
.map(() => newUuid());
export const newDate = () => new Date();
export const newUuidV7 = () => 'uuid-v7';
export const newUuidV7 = () => v7();
export const newSha1 = () => Buffer.from('this is a fake hash');
export const newEmbedding = () => {
const embedding = Array.from({ length: 512 })