(resource: JsonRecord)
| 672 | } |
| 673 | |
| 674 | export 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 | |
| 697 | export function normalizeVantaRiskScenario(resource: JsonRecord): VantaRiskScenario { |
| 698 | return { |
nothing calls this directly
no test coverage detected