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

Function normalizeVantaControl

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

Source from the content-addressed store, hash-verified

402}
403
404export function normalizeVantaControl(resource: JsonRecord): VantaControl {
405 return {
406 id: getString(resource.id),
407 externalId: getString(resource.externalId),
408 name: getString(resource.name),
409 description: getString(resource.description),
410 source: getString(resource.source),
411 domains: getStringArray(resource.domains),
412 owner: normalizeVantaOwner(resource.owner),
413 role: getString(resource.role),
414 customFields: normalizeVantaCustomFields(resource.customFields),
415 creationDate: getString(resource.creationDate),
416 modificationDate: getString(resource.modificationDate),
417 }
418}
419
420export function normalizeVantaControlDetail(resource: JsonRecord): VantaControlDetail {
421 return {

Callers 1

Calls 4

normalizeVantaOwnerFunction · 0.85
getStringFunction · 0.70
getStringArrayFunction · 0.70

Tested by

no test coverage detected