import { ScanReportSchema } from "{redacted}"
const SCAN_REPORT_NAME_MAP = {
"gemnasium-dependency-scanning-report": "Dependency Scanning",
"gemnasium-maven-dependency-scanning-report": "Maven Dependency Scanning",
"gl-secret-detection-report": "Secret Detection",
"gl-sast-report": "SAST",
} as const
type ScanReportName = keyof typeof SCAN_REPORT_NAME_MAP
const SCAN_REPORT_NAMES = Object.keys(SCAN_REPORT_NAME_MAP) as ScanReportName[]
const ScanReportNameSchema = type.enumerated(...SCAN_REPORT_NAMES)
// throws error
const ScanReportsSchema = type.Record(ScanReportNameSchema, ScanReportSchema)
import { ScanReportSchema } from "{redacted}"
const SCAN_REPORT_NAME_MAP = {
"gemnasium-dependency-scanning-report": "Dependency Scanning",
"gemnasium-maven-dependency-scanning-report": "Maven Dependency Scanning",
"gl-secret-detection-report": "Secret Detection",
"gl-sast-report": "SAST",
} as const
type ScanReportName = keyof typeof SCAN_REPORT_NAME_MAP
const SCAN_REPORT_NAMES = Object.keys(SCAN_REPORT_NAME_MAP) as ScanReportName[]
const ScanReportNameSchema = type.enumerated(...SCAN_REPORT_NAMES)
// throws error
const ScanReportsSchema = type.Record(ScanReportNameSchema, ScanReportSchema)