move next to web-front

This commit is contained in:
2026-05-17 01:08:19 +03:00
parent cc219cdb26
commit 9e53a7b4fc
52 changed files with 1442 additions and 175 deletions
+28
View File
@@ -0,0 +1,28 @@
import { importCatalogExport } from '../src/entities/dashcam-catalog/api/importCatalogExport.ts';
const manifestUrl = process.env.DASHCAM_CATALOG_MANIFEST_URL ?? process.argv[2];
const token = process.env.DASHCAM_CATALOG_EXPORT_TOKEN;
if (!manifestUrl) {
throw new Error('Set DASHCAM_CATALOG_MANIFEST_URL or pass manifest URL as the first argument');
}
if (!token) {
throw new Error('Set DASHCAM_CATALOG_EXPORT_TOKEN');
}
const result = await importCatalogExport({ manifestUrl, token });
console.log(
JSON.stringify(
{
status: 'imported',
exportId: result.exportId,
itemCount: result.itemCount,
sha256: result.sha256,
dbFilePath: result.dbFilePath,
},
null,
2,
),
);