function getType (filename: string): string {
  const matches = filename.match(/-(?<type>\w+).zip$/)
  return matches?.length === 2 ? matches[1] : ''
}