MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / generateFileNode

Function generateFileNode

client/js/src/internal/nodes/apiService.test.ts:88–114  ·  view source on GitHub ↗
(overrides = {}, encryptedCryptoOverrides = {})

Source from the content-addressed store, hash-verified

86 SharingSummary: null,
87 };
88}
89
90function generateFileNode(overrides = {}, encryptedCryptoOverrides = {}) {
91 const node = generateNode();
92 return {
93 ...node,
94 type: NodeType.File,
95 mediaType: 'text',
96 totalStorageSize: 42,
97 encryptedCrypto: {
98 ...node.encryptedCrypto,
99 file: {
100 base64ContentKeyPacket: 'contentKeyPacket',
101 armoredContentKeyPacketSignature: 'contentKeyPacketSig',
102 },
103 activeRevision: {
104 uid: 'volumeId~linkId~revisionId',
105 state: 'active',
106 creationTime: new Date(1234567890000),
107 storageSize: 12,
108 signatureEmail: 'revSigEmail',
109 armoredExtendedAttributes: '{file}',
110 isImported: false,
111 thumbnails: [],
112 },
113 ...encryptedCryptoOverrides,
114 },
115 ...overrides,
116 };
117}

Callers 1

apiService.test.tsFile · 0.85

Calls 1

generateNodeFunction · 0.70

Tested by

no test coverage detected