refactor: Move downloaded resources from assets/ to assets_downloaded/

- Changed default download location to assets_downloaded/schematron
- Updated all references in SchematronDownloader, integration, and validator
- Updated postinstall scripts to use new location
- assets_downloaded/ is already in .gitignore to exclude downloaded files from git
- Moved existing downloaded files to new location
- All functionality tested and working correctly
This commit is contained in:
2025-08-12 05:25:50 +00:00
parent b89da0ec3f
commit 58506e287d
6 changed files with 15 additions and 15 deletions

View File

@@ -272,19 +272,19 @@ export async function createStandardValidator(
switch (standard) {
case 'EN16931':
// Would load from ConnectingEurope/eInvoicing-EN16931
await validator.loadSchematron('assets/schematron/en16931/EN16931-UBL-validation.sch');
await validator.loadSchematron('assets_downloaded/schematron/en16931/EN16931-UBL-validation.sch');
break;
case 'XRECHNUNG':
// Would load from itplr-kosit/xrechnung-schematron
await validator.loadSchematron('assets/schematron/xrechnung/XRechnung-UBL-validation.sch');
await validator.loadSchematron('assets_downloaded/schematron/xrechnung/XRechnung-UBL-validation.sch');
break;
case 'PEPPOL':
// Would load from OpenPEPPOL/peppol-bis-invoice-3
await validator.loadSchematron('assets/schematron/peppol/PEPPOL-EN16931-UBL.sch');
await validator.loadSchematron('assets_downloaded/schematron/peppol/PEPPOL-EN16931-UBL.sch');
break;
case 'FACTURX':
// Would load from Factur-X specific Schematron
await validator.loadSchematron('assets/schematron/facturx/Factur-X-EN16931-validation.sch');
await validator.loadSchematron('assets_downloaded/schematron/facturx/Factur-X-EN16931-validation.sch');
break;
}