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

Function normalizeVantaRiskScenario

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

Source from the content-addressed store, hash-verified

695}
696
697export function normalizeVantaRiskScenario(resource: JsonRecord): VantaRiskScenario {
698 return {
699 riskId: getString(resource.riskId),
700 description: getString(resource.description),
701 likelihood: getNumber(resource.likelihood),
702 impact: getNumber(resource.impact),
703 residualLikelihood: getNumber(resource.residualLikelihood),
704 residualImpact: getNumber(resource.residualImpact),
705 categories: getStringArray(resource.categories),
706 ciaCategories: getStringArray(resource.ciaCategories),
707 treatment: getString(resource.treatment),
708 owner: getString(resource.owner),
709 note: getString(resource.note),
710 riskRegister: getString(resource.riskRegister),
711 customFields: normalizeVantaCustomFields(resource.customFields),
712 isArchived: getBoolean(resource.isArchived),
713 reviewStatus: getString(resource.reviewStatus),
714 requiredApprovers: getStringArray(resource.requiredApprovers),
715 type: getString(resource.type),
716 identificationDate: getString(resource.identificationDate),
717 }
718}
719
720export function normalizeVantaVulnerabilityRemediation(
721 resource: JsonRecord

Callers 1

buildVantaOutputFunction · 0.90

Calls 5

getStringFunction · 0.70
getNumberFunction · 0.70
getStringArrayFunction · 0.70
getBooleanFunction · 0.70

Tested by

no test coverage detected