This commit is contained in:
Manav Rathi
2025-03-18 15:29:20 +05:30
parent 76360d7100
commit 0c00433bec

View File

@@ -175,14 +175,23 @@ export interface PrivateMagicMetadata {
/**
* The visibility of an Ente file or collection.
*/
export enum ItemVisibility {
export const ItemVisibility = {
/** The normal state - The item is visible. */
visible = 0,
visible: 0,
/** The item has been archived. */
archived = 1,
archived: 1,
/** The item has been hidden. */
hidden = 2,
}
hidden: 2,
} as const;
/**
* The visibility of an Ente file or collection.
*
* This is the erasable type. See the {@link ItemVisibility} object for the
* possible values and their symbolic constants.
*/
export type ItemVisibility =
(typeof ItemVisibility)[keyof typeof ItemVisibility];
/**
* Mutable public metadata associated with an {@link EnteFile}.