@superheld/summae-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/index.cjs +4404 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1251 -0
- package/dist/index.d.ts +1251 -0
- package/dist/index.js +4328 -0
- package/dist/index.js.map +1 -0
- package/package.json +56 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @superheld/summae-core (Node)
|
|
2
|
+
|
|
3
|
+
Framework-freier Rechnungswesen-Kern in TypeScript: GoBD-Doppik, EÜR,
|
|
4
|
+
Umsatzsteuer, Anlagen, KLR — Parität zur PHP-Referenz. Dual-Build (ESM + CJS +
|
|
5
|
+
Typen), einzige Laufzeit-Abhängigkeit: `big.js`. Zielplattform Node ≥ 22.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @superheld/summae-core # oder npm i / yarn add
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { Tenant, Currency, TenantOperations, SystemClock, UuidV7IdGenerator } from '@superheld/summae-core';
|
|
13
|
+
|
|
14
|
+
const clock = new SystemClock();
|
|
15
|
+
const tenant = Tenant.inMemory('Demo GmbH', Currency.of('EUR'), clock, new UuidV7IdGenerator(clock));
|
|
16
|
+
const ops = new TenantOperations(tenant);
|
|
17
|
+
ops.execute('createFiscalYear', { year: 2026, start: '2026-01-01', end: '2026-12-31' });
|
|
18
|
+
const susa = ops.project('trialBalance', { fiscalYear: 2026, throughPeriod: 12 });
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**📖 Vollständige Dokumentation** — Installation, Initialisierung, komplette
|
|
22
|
+
API-Referenz (alle Operationen & Projektionen), Value Objects, Fehlerkatalog:
|
|
23
|
+
**[summae-Handbuch](../../../../docs/handbuch/README.md)**.
|
|
24
|
+
|
|
25
|
+
> Build aus dem Repo: `pnpm build` (tsup → `dist/`). Im Workspace zeigen die
|
|
26
|
+
> `exports` auf die TS-Source (vitest/tsx ohne Build); beim Publish überschreibt
|
|
27
|
+
> `publishConfig` auf `dist/`.
|
|
28
|
+
|
|
29
|
+
Lizenz: MIT.
|