diff --git a/web/apps/photos/src/types/upload/index.ts b/web/apps/photos/src/types/upload/index.ts index 35164ec470b4123449db6009066ad3ae63c9646e..78b46670c6ee1f53f88addb5e1579c3b74a34ecd 100644 --- a/web/apps/photos/src/types/upload/index.ts +++ b/web/apps/photos/src/types/upload/index.ts @@ -105,6 +105,23 @@ export interface FileWithCollection extends UploadAsset { collectionID?: number; } +export interface UploadAsset2 { + isLivePhoto?: boolean; + file?: File | ElectronFile | string; + livePhotoAssets?: LivePhotoAssets2; +} + +export interface LivePhotoAssets2 { + image: File | ElectronFile | string; + video: File | ElectronFile | string; +} + +export interface FileWithCollection2 extends UploadAsset2 { + localID: number; + collection?: Collection; + collectionID?: number; +} + export type ParsedMetadataJSONMap = Map; export interface UploadURL { diff --git a/web/apps/photos/src/utils/upload/index.ts b/web/apps/photos/src/utils/upload/index.ts index 87d885c2741f8bd0f22046b64aa8e0d1b0fafae1..580fe8706da0049be859a2e1fd34417f118be687 100644 --- a/web/apps/photos/src/utils/upload/index.ts +++ b/web/apps/photos/src/utils/upload/index.ts @@ -204,7 +204,8 @@ export function groupFilesBasedOnParentFolder( if (!collectionNameToFilesMap.has(folderName)) { collectionNameToFilesMap.set(folderName, []); } - collectionNameToFilesMap.get(folderName).push(file); + // TODO: Remove the cast + collectionNameToFilesMap.get(folderName).push(file as any); } return collectionNameToFilesMap; }