diff --git a/src/types/collection/index.ts b/src/types/collection/index.ts index 73925bbfe..39980d566 100644 --- a/src/types/collection/index.ts +++ b/src/types/collection/index.ts @@ -1,7 +1,11 @@ import { User } from 'types/user'; import { EnteFile } from 'types/file'; import { CollectionSummaryType, CollectionType } from 'constants/collection'; -import { MagicMetadataCore, VISIBILITY_STATE } from 'types/magicMetadata'; +import { + MagicMetadataCore, + SUB_TYPE, + VISIBILITY_STATE, +} from 'types/magicMetadata'; export interface Collection { id: number; @@ -82,6 +86,7 @@ export interface RemoveFromCollectionRequest { export interface CollectionMagicMetadataProps { visibility?: VISIBILITY_STATE; + subType?: SUB_TYPE; } export interface CollectionMagicMetadata diff --git a/src/types/magicMetadata/index.ts b/src/types/magicMetadata/index.ts index f16d54b9c..f642501ea 100644 --- a/src/types/magicMetadata/index.ts +++ b/src/types/magicMetadata/index.ts @@ -11,8 +11,13 @@ export interface EncryptedMagicMetadataCore } export enum VISIBILITY_STATE { - VISIBLE, - ARCHIVED, + VISIBLE = 0, + ARCHIVED = 1, + HIDDEN = 2, +} + +export enum SUB_TYPE { + DEFAULT_HIDDEN = 1, } export const NEW_FILE_MAGIC_METADATA: MagicMetadataCore = {