(resource: JsonRecord)
| 479 | } |
| 480 | |
| 481 | export function normalizeVantaDocument(resource: JsonRecord): VantaDocument { |
| 482 | return { |
| 483 | id: getString(resource.id), |
| 484 | title: getString(resource.title), |
| 485 | description: getString(resource.description), |
| 486 | category: getString(resource.category), |
| 487 | ownerId: getString(resource.ownerId), |
| 488 | isSensitive: getBoolean(resource.isSensitive), |
| 489 | uploadStatus: getString(resource.uploadStatus), |
| 490 | uploadStatusDate: getString(resource.uploadStatusDate), |
| 491 | url: getString(resource.url), |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | export function normalizeVantaDocumentDetail(resource: JsonRecord): VantaDocumentDetail { |
| 496 | const deactivatedStatus = isRecordLike(resource.deactivatedStatus) |
no test coverage detected