Merge branch 'MAILWEB-6067-improve-circular-dependencies-prevention' into 'main'
[ProtonMail-WebClient.git] / packages / drive-store / lib / _nodes / interface.ts
blob14d743260de70af77597313803de3ae3216937ec
1 import type { DecryptedLink } from '../../store';
3 /**
4  * A decrypted node in the Drive structure.
5  */
6 export type DecryptedNode = {
7     volumeId: string;
8     nodeId: DecryptedLink['linkId'];
9     /**
10      * A node may not always have a parent.
11      *
12      * For example, when direct sharing a node, the invitee
13      * does not have access to the parent.
14      */
15     parentNodeId?: DecryptedLink['parentLinkId'];
16     name: DecryptedLink['name'];
17     hash: DecryptedLink['hash'];
18     createTime: DecryptedLink['createTime'];
19     mimeType: DecryptedLink['mimeType'];
21     signatureAddress?: DecryptedLink['signatureAddress'];
22     nameSignatureAddress?: DecryptedLink['nameSignatureAddress'];
24     /**
25      * If present, this node's metadata could be corrupted / undecryptable in some way.
26      */
27     isCorruptedNode?: DecryptedLink['corruptedLink'];
28     trashed?: DecryptedLink['trashed'];
29     trashedByParent?: DecryptedLink['trashedByParent'];