basalt / drives-microsoft/src / toDriveItem
Function: toDriveItem()
> toDriveItem(item): DriveItem
Defined in: drives-microsoft/src/metadata.ts:144
Maps one driveItem.
versioniscTag, noteTag. Graph bumpseTagfor any change, including a rename or a permission edit;cTagmoves only when the content does. The dedup ledger prefersversion, so usingeTagwould re-download a file every time somebody renamed it.contentTypeisfile.mimeTypeand is untrusted by contract — Graph echoes what the uploading client declared, and@basaltkit/filessniffs the bytes regardless.externalUrliswebUrl— stored and shown, never fetched.rawcarries the drive id and nothing else. Not the download URL (see GraphItem), and not the whole payload:rawis persisted by sinks, and a Graph item carries user names, email addresses and sharing state that an app did not ask to store.