diff --git a/src/astro-typesafe-api-caller.ts b/src/astro-typesafe-api-caller.ts index 262124be..a8549090 100644 --- a/src/astro-typesafe-api-caller.ts +++ b/src/astro-typesafe-api-caller.ts @@ -12,15 +12,15 @@ export const createCaller = createCallerFactory({ "admin/nicht-ausstellen": await import("../src/pages/api/admin/nicht-ausstellen.ts"), "admin/registriernummer": await import("../src/pages/api/admin/registriernummer.ts"), "admin/stornieren": await import("../src/pages/api/admin/stornieren.ts"), - "aufnahme": await import("../src/pages/api/aufnahme/index.ts"), "ausweise": await import("../src/pages/api/ausweise/index.ts"), - "auth/access-token": await import("../src/pages/api/auth/access-token.ts"), - "auth/passwort-vergessen": await import("../src/pages/api/auth/passwort-vergessen.ts"), - "auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"), + "aufnahme": await import("../src/pages/api/aufnahme/index.ts"), "bedarfsausweis-gewerbe/[id]": await import("../src/pages/api/bedarfsausweis-gewerbe/[id].ts"), "bedarfsausweis-gewerbe": await import("../src/pages/api/bedarfsausweis-gewerbe/index.ts"), "bedarfsausweis-wohnen/[id]": await import("../src/pages/api/bedarfsausweis-wohnen/[id].ts"), "bedarfsausweis-wohnen": await import("../src/pages/api/bedarfsausweis-wohnen/index.ts"), + "auth/access-token": await import("../src/pages/api/auth/access-token.ts"), + "auth/passwort-vergessen": await import("../src/pages/api/auth/passwort-vergessen.ts"), + "auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"), "bilder/[id]": await import("../src/pages/api/bilder/[id].ts"), "geg-nachweis-gewerbe/[id]": await import("../src/pages/api/geg-nachweis-gewerbe/[id].ts"), "geg-nachweis-gewerbe": await import("../src/pages/api/geg-nachweis-gewerbe/index.ts"), diff --git a/src/client/lib/ausweisSpeichern.ts b/src/client/lib/ausweisSpeichern.ts index 3c93be7e..ab67424c 100644 --- a/src/client/lib/ausweisSpeichern.ts +++ b/src/client/lib/ausweisSpeichern.ts @@ -10,8 +10,11 @@ import { VerbrauchsausweisWohnenClient, } from "#components/Ausweis/types.js"; import { + Aufnahme, BedarfsausweisWohnen, + Bild, Enums, + Objekt, Unterlage, VerbrauchsausweisGewerbe, VerbrauchsausweisWohnen, @@ -528,12 +531,12 @@ export async function bedarfsausweisWohnenSpeichern( export async function ausweisSpeichern( ausweis: - | VerbrauchsausweisWohnenClient - | VerbrauchsausweisGewerbeClient - | BedarfsausweisWohnenClient, - objekt: ObjektClient, - aufnahme: AufnahmeClient, - bilder: BildClient[], + | VerbrauchsausweisWohnen + | VerbrauchsausweisGewerbe + | BedarfsausweisWohnen, + objekt: Objekt, + aufnahme: Aufnahme, + bilder: Bild[], unterlagen: Unterlage[], ausweisart: Enums.Ausweisart ) { diff --git a/src/client/lib/speichern.ts b/src/client/lib/speichern.ts index e7c83331..31708641 100644 --- a/src/client/lib/speichern.ts +++ b/src/client/lib/speichern.ts @@ -145,7 +145,7 @@ export async function objektSpeichern(objekt: Objekt & { id?: string }): Promise } }) - return objekt.id; + return objekt.id; } else { const { id } = await api.objekt.PUT.fetch({ adresse: objekt.adresse, diff --git a/src/components/Ausweis/ButtonWeiterHilfe.svelte b/src/components/Ausweis/ButtonWeiterHilfe.svelte index 5216376b..d7c9ff88 100644 --- a/src/components/Ausweis/ButtonWeiterHilfe.svelte +++ b/src/components/Ausweis/ButtonWeiterHilfe.svelte @@ -131,7 +131,7 @@ window.history.pushState( {}, "", - `${location.pathname}?id=${ausweis.id}` + `${location.pathname}?ausweis_id=${ausweis.id}` ); blockLocalStorageSync = true; localStorage.clear() diff --git a/src/components/AusweisPruefenBox.svelte b/src/components/AusweisPruefenBox.svelte deleted file mode 100644 index c782deeb..00000000 --- a/src/components/AusweisPruefenBox.svelte +++ /dev/null @@ -1,939 +0,0 @@ - - -
| - |
- {#if ausweis.ausgestellt}
-
-
-
- {:else if ausweis.bestellt}
-
-
-
- {:else}
-
-
-
- {/if}
- |
-
-
- {aufnahme.adresse} {aufnahme.plz} {aufnahme.ort}
-
- {ausweisArt} - {aufnahme.id}
- {moment(aufnahme.erstellungsdatum).format("DD.MM.YYYY")}
- - {aufnahme.gebaeudetyp}, Einheiten: {aufnahme.einheiten} - |
-
-
- Baujahr Gebäude / Baujahr Heizung
-
- {aufnahme.baujahr_gebaeude.join(", ")}
- {aufnahme.baujahr_heizung.join(", ")}
-
-
- |
-
-
- Wohnfläche in m²
-
- {aufnahme.flaeche}
- {calculations?.energetischeNutzflaeche}
- - {ausweis.faktorKeller} x {aufnahme.flaeche}m² Energetische Nutzfläche (Keller {aufnahme.keller}) in m² - |
-
-
- {tooltip4Z1}
-
- {table4Z1}
- {table4Z2}
- - {tooltip4Z2} - |
-
-
- {tooltip5Z1}
-
- {table5Z1}
- {table5Z2}
- - {tooltip5Z2} - - {tooltip5Z3} - |
-
-
- {tooltip6Z1}
-
- {table6Z1}
- {table6Z2}
- - {tooltip6Z2} - |
-
-
- {tooltip7Z1}
-
- {table7Z1}
- {table7Z2}
- - {tooltip7Z2} - |
-
-
- {tooltip8Z1}
-
- {table8Z1}
- {table8Z2}
- - {tooltip8Z2} - |
-
-
- {tooltip9Z1}
-
- {table9Z1}
- {table9Z2}
- - {tooltip9Z2} - |
-
-
- {tooltip10Z1}
-
- {table10Z1}
- {table10Z2}
- - {tooltip10Z2} - |
-
-
- ({calculations?.energieVerbrauchHeizungBereinigt_1} + {calculations?.energieVerbrauchWarmwasser_1}) / (3 Jahre x {calculations?.energetischeNutzflaeche}) Endenergieverbrauch 1 in kWh/m²a
-
- {table11Z1}
- {table11Z2}
- - {tooltip11Z2} - |
-
-
- {tooltip12Z1}
-
- {table12Z1}
- {table12Z2}
- - {tooltip12Z2} - |
-
-
- {tooltip13Z1}
-
- {table13Z1}
- {table13Z2}
- - {tooltip13Z2} - |
-
-
- {tooltip14Z1}
-
- {table14Z1}
- {table14Z2}
- - {tooltip14Z2} - |
-
-
- {tooltip15Z1}
-
- {table15Z1}
- {table15Z2}
- - {tooltip15Z2} - |
-
-
- {tooltip16Z1}
-
- {table16Z1}
- {table16Z2}
- - {tooltip16Z2} - |
- - - | -
-
- {aufnahme.prueftext}
-
- {#if ausweis.boxpruefung}
- |
- ![]() |
- ![]() |
- - | - | - | - | - | - | F | - {#if aufnahme.kontrolldatei} -- {/if} - {#if !ausweis.registriernummer} - | - {/if} - |
| Angewendete Berechnungsformel | -EnEV 2016 | -
| Berechnungsergebnis | -{calculations?.endEnergieVerbrauchGesamt}kWh/m2/A - Energieeffizienzklasse {calculations?.energieEffizienzKlasse} | -
| Informationen des Nutzers | -{ausweis.boxpruefung} | -
| UID | -{ausweis.id} |
-