(resource: JsonRecord)
| 402 | } |
| 403 | |
| 404 | export 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 | |
| 420 | export function normalizeVantaControlDetail(resource: JsonRecord): VantaControlDetail { |
| 421 | return { |
no test coverage detected