(resource: JsonRecord)
| 695 | } |
| 696 | |
| 697 | export 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 | |
| 720 | export function normalizeVantaVulnerabilityRemediation( |
| 721 | resource: JsonRecord |
no test coverage detected