Files
tessera-ctl/apps/api/src/dkv/dkv.seed.ts
T
schalli 01ff137f43
Tessera CI/CD / Lint & Type Check (push) Waiting to run
Tessera CI/CD / Tests (push) Blocked by required conditions
Tessera CI/CD / Build & Deploy (push) Blocked by required conditions
fix(07): UAT fixes — SMTP test email, DKV routing, Exchange domain field
- SMTP: add test-to field, send real email via sendMail() instead of verify()
- SMTP: fix no_auth warning shown as error for open-relay servers
- DKV: register dkv-fleet in MODULE_REGISTRY (fixes "Modul nicht gefunden")
- DKV: add dynamic [category]/[moduleSlug]/settings + vehicles sub-routes
- DKV: settings/vehicles links use useParams for consistent URLs
- DKV: add gear icon settings link to module main page
- DKV: rename module to "DKV-Rechnung" in seed + translations
- DKV: add optional domain field for Exchange (WebCredentials 3rd arg)
- DKV: hide IMAP-only fields (Port/Verschlüsselung/Ordner) when Exchange selected
- DKV: hide Exchange-only field (Domain) when IMAP selected
- Prisma: add domain column to DkvModuleConfig

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 21:58:26 +02:00

27 lines
837 B
TypeScript

import { ModuleRegistryService } from '../module-registry/module-registry.service';
/**
* Seeds the DKV Fleet module into the module registry.
*
* Called during DkvModule initialization (OnModuleInit) to ensure
* the 'dkv-fleet' module record exists in the database.
*
* Category 'fleet' identifies this as a fleet-management module.
* isSystem: true — not tenant-licensable in v1; available to all tenants.
*/
export async function seedDkvModule(
moduleRegistryService: ModuleRegistryService,
): Promise<void> {
await moduleRegistryService.seedModule({
slug: 'dkv-fleet',
name: 'DKV-Rechnung',
version: '1.0.0',
category: 'fleet',
description: {
de: 'DKV-Tankkartenrechnungen automatisch verarbeiten',
en: 'Automatically process DKV fuel card invoices',
},
isSystem: true,
});
}