MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeVantaDocument

Function normalizeVantaDocument

apps/sim/tools/vanta/utils.ts:481–493  ·  view source on GitHub ↗
(resource: JsonRecord)

Source from the content-addressed store, hash-verified

479}
480
481export function normalizeVantaDocument(resource: JsonRecord): VantaDocument {
482 return {
483 id: getString(resource.id),
484 title: getString(resource.title),
485 description: getString(resource.description),
486 category: getString(resource.category),
487 ownerId: getString(resource.ownerId),
488 isSensitive: getBoolean(resource.isSensitive),
489 uploadStatus: getString(resource.uploadStatus),
490 uploadStatusDate: getString(resource.uploadStatusDate),
491 url: getString(resource.url),
492 }
493}
494
495export function normalizeVantaDocumentDetail(resource: JsonRecord): VantaDocumentDetail {
496 const deactivatedStatus = isRecordLike(resource.deactivatedStatus)

Callers 1

Calls 2

getStringFunction · 0.70
getBooleanFunction · 0.70

Tested by

no test coverage detected