π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Clean
Manav Rathi4470fe042595
diff --git a/web/apps/cast/src/types/file/index.ts b/web/apps/cast/src/types/file/index.tsindex 52f7614d66..e5a40fb676 100644--- a/web/apps/cast/src/types/file/index.ts+++ b/web/apps/cast/src/types/file/index.ts@@ -1,8 +1,8 @@import type { Metadata } from "@/media/file-metadata";+import { ItemVisibility } from "@/media/file-metadata";import type {EncryptedMagicMetadata,MagicMetadataCore,- VISIBILITY_STATE,} from "@/new/photos/types/magicMetadata";export interface MetadataFileAttributes {@@ -65,7 +65,7 @@ export interface EnteFile}export interface FileMagicMetadataProps {- visibility?: VISIBILITY_STATE;+ visibility?: ItemVisibility;filePaths?: string[];}diff --git a/web/apps/cast/src/types/magicMetadata/index.ts b/web/apps/cast/src/types/magicMetadata/index.tsindex cc01eea84c..b96e700aff 100644--- a/web/apps/cast/src/types/magicMetadata/index.ts+++ b/web/apps/cast/src/types/magicMetadata/index.ts@@ -7,12 +7,6 @@ export interface MagicMetadataCore<T> {export type EncryptedMagicMetadata = MagicMetadataCore<string>;-export enum VISIBILITY_STATE {- VISIBLE = 0,- ARCHIVED = 1,- HIDDEN = 2,-}-export enum SUB_TYPE {DEFAULT = 0,DEFAULT_HIDDEN = 1,diff --git a/web/apps/photos/src/services/collectionService.ts b/web/apps/photos/src/services/collectionService.tsindex 8632821b6a..e98ee93bde 100644--- a/web/apps/photos/src/services/collectionService.ts+++ b/web/apps/photos/src/services/collectionService.ts@@ -1,5 +1,6 @@import log from "@/base/log";import { apiURL } from "@/base/origins";+import { ItemVisibility } from "@/media/file-metadata";import { getLocalFiles } from "@/new/photos/services/files";import { EnteFile } from "@/new/photos/types/file";import {@@ -7,7 +8,6 @@ import {SUB_TYPE,UpdateMagicMetadataRequest,} from "@/new/photos/types/magicMetadata";-import { ItemVisibility } from "@/media/file-metadata";import { batch } from "@/utils/array";import ComlinkCryptoWorker from "@ente/shared/crypto";import { CustomError } from "@ente/shared/error";