add new visibility state and magicMetadata property subType

This commit is contained in:
Abhinav 2022-11-02 14:56:23 +05:30
parent 42712506c5
commit 947a792113
2 changed files with 13 additions and 3 deletions

View file

@ -1,7 +1,11 @@
import { User } from 'types/user'; import { User } from 'types/user';
import { EnteFile } from 'types/file'; import { EnteFile } from 'types/file';
import { CollectionSummaryType, CollectionType } from 'constants/collection'; 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 { export interface Collection {
id: number; id: number;
@ -82,6 +86,7 @@ export interface RemoveFromCollectionRequest {
export interface CollectionMagicMetadataProps { export interface CollectionMagicMetadataProps {
visibility?: VISIBILITY_STATE; visibility?: VISIBILITY_STATE;
subType?: SUB_TYPE;
} }
export interface CollectionMagicMetadata export interface CollectionMagicMetadata

View file

@ -11,8 +11,13 @@ export interface EncryptedMagicMetadataCore
} }
export enum VISIBILITY_STATE { export enum VISIBILITY_STATE {
VISIBLE, VISIBLE = 0,
ARCHIVED, ARCHIVED = 1,
HIDDEN = 2,
}
export enum SUB_TYPE {
DEFAULT_HIDDEN = 1,
} }
export const NEW_FILE_MAGIC_METADATA: MagicMetadataCore = { export const NEW_FILE_MAGIC_METADATA: MagicMetadataCore = {