Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Localize

Manav Rathi8c176cce2276
diff --git a/web/apps/cast/src/types/magicMetadata/index.ts b/web/apps/cast/src/types/magicMetadata/index.ts
index b96e700aff..5a86406e8d 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 SUB_TYPE {
- DEFAULT = 0,
- DEFAULT_HIDDEN = 1,
- QUICK_LINK_COLLECTION = 2,
-}
-
export interface BulkUpdateMagicMetadataRequest {
metadataList: UpdateMagicMetadataRequest[];
}
diff --git a/web/apps/photos/src/services/collectionService.ts b/web/apps/photos/src/services/collectionService.ts
index 727addaabb..3574bf8b7c 100644
--- a/web/apps/photos/src/services/collectionService.ts
+++ b/web/apps/photos/src/services/collectionService.ts
@@ -16,6 +16,7 @@ import {
MoveToCollectionRequest,
PublicURL,
RemoveFromCollectionRequest,
+ SUB_TYPE,
UpdatePublicURL,
} from "@/media/collection";
import { ItemVisibility } from "@/media/file-metadata";
@@ -32,7 +33,6 @@ import { getLocalFiles, sortFiles } from "@/new/photos/services/files";
import { EnteFile } from "@/new/photos/types/file";
import {
EncryptedMagicMetadata,
- SUB_TYPE,
UpdateMagicMetadataRequest,
} from "@/new/photos/types/magicMetadata";
import { batch } from "@/utils/array";
diff --git a/web/apps/photos/src/utils/collection.ts b/web/apps/photos/src/utils/collection.ts
index 124a19d327..9195de9f07 100644
--- a/web/apps/photos/src/utils/collection.ts
+++ b/web/apps/photos/src/utils/collection.ts
@@ -10,7 +10,7 @@ import {
import { ItemVisibility } from "@/media/file-metadata";
import { getAllLocalFiles, getLocalFiles } from "@/new/photos/services/files";
import { EnteFile } from "@/new/photos/types/file";
-import { SUB_TYPE } from "@/new/photos/types/magicMetadata";
+import { SUB_TYPE } from "@/media/collection";
import { safeDirectoryName } from "@/new/photos/utils/native-fs";
import { CustomError } from "@ente/shared/error";
import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";
diff --git a/web/packages/media/collection.ts b/web/packages/media/collection.ts
index b359992db7..c1d0015ba4 100644
--- a/web/packages/media/collection.ts
+++ b/web/packages/media/collection.ts
@@ -3,7 +3,6 @@ import type { EnteFile } from "@/new/photos/types/file";
import {
type EncryptedMagicMetadata,
type MagicMetadataCore,
- SUB_TYPE,
} from "@/new/photos/types/magicMetadata";
// TODO: Audit this file
@@ -126,6 +125,12 @@ export interface RemoveFromCollectionRequest {
fileIDs: number[];
}
+export enum SUB_TYPE {
+ DEFAULT = 0,
+ DEFAULT_HIDDEN = 1,
+ QUICK_LINK_COLLECTION = 2,
+}
+
export interface CollectionMagicMetadataProps {
visibility?: ItemVisibility;
subType?: SUB_TYPE;
diff --git a/web/packages/new/photos/types/magicMetadata.ts b/web/packages/new/photos/types/magicMetadata.ts
index b96e700aff..5a86406e8d 100644
--- a/web/packages/new/photos/types/magicMetadata.ts
+++ b/web/packages/new/photos/types/magicMetadata.ts
@@ -7,12 +7,6 @@ export interface MagicMetadataCore<T> {
export type EncryptedMagicMetadata = MagicMetadataCore<string>;
-export enum SUB_TYPE {
- DEFAULT = 0,
- DEFAULT_HIDDEN = 1,
- QUICK_LINK_COLLECTION = 2,
-}
-
export interface BulkUpdateMagicMetadataRequest {
metadataList: UpdateMagicMetadataRequest[];
}