Migrate project to TypeScript and Playwright scraping

This commit is contained in:
2026-08-05 13:47:45 +02:00
parent 8ecbc6655f
commit 639d9bec75
30 changed files with 3222 additions and 1625 deletions
+15
View File
@@ -0,0 +1,15 @@
// @ts-nocheck
import { queryEndpoint } from "../endpoint/endpoint-client.ts";
import { catalogMakerSql } from "../sql/catalog-maker.ts";
export async function listLanguages(config) {
const result = await queryEndpoint(config, catalogMakerSql.languages);
return {
...result,
items: result.items.map((row) => ({
id: row.id_lang,
name: row.name,
isoCode: row.iso_code,
})),
};
}