| 7 | import { getServiceGuard } from '~/utils/service-guard'; |
| 8 | |
| 9 | interface YoutubeDataResponse { |
| 10 | kind: string; |
| 11 | etag: string; |
| 12 | items: Array<{ |
| 13 | kind: string; |
| 14 | etag: string; |
| 15 | id: string; |
| 16 | snippet: { |
| 17 | title: string; |
| 18 | description: string; |
| 19 | thumbnails: { |
| 20 | url: string; |
| 21 | width: string; |
| 22 | height: string; |
| 23 | }; |
| 24 | }; |
| 25 | }>; |
| 26 | } |
| 27 | |
| 28 | const METADATA_TO_YOUTUBE_ENDPOINT = { |
| 29 | [MetadataType.Song]: 'videos', |
nothing calls this directly
no outgoing calls
no test coverage detected