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

Function normalizeVantaMonitoredComputer

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

Source from the content-addressed store, hash-verified

672}
673
674export function normalizeVantaMonitoredComputer(resource: JsonRecord): VantaMonitoredComputer {
675 const operatingSystem = isRecordLike(resource.operatingSystem)
676 ? {
677 type: getString(resource.operatingSystem.type),
678 version: getString(resource.operatingSystem.version),
679 }
680 : null
681
682 return {
683 id: getString(resource.id),
684 integrationId: getString(resource.integrationId),
685 lastCheckDate: getString(resource.lastCheckDate),
686 screenlock: getComputerStatusOutcome(resource.screenlock),
687 diskEncryption: getComputerStatusOutcome(resource.diskEncryption),
688 passwordManager: getComputerStatusOutcome(resource.passwordManager),
689 antivirusInstallation: getComputerStatusOutcome(resource.antivirusInstallation),
690 operatingSystem,
691 owner: normalizeVantaOwner(resource.owner),
692 serialNumber: getString(resource.serialNumber),
693 udid: getString(resource.udid),
694 }
695}
696
697export function normalizeVantaRiskScenario(resource: JsonRecord): VantaRiskScenario {
698 return {

Callers

nothing calls this directly

Calls 4

isRecordLikeFunction · 0.90
getComputerStatusOutcomeFunction · 0.85
normalizeVantaOwnerFunction · 0.85
getStringFunction · 0.70

Tested by

no test coverage detected