@open-nodo/org-profile
v0.3.0
Published
Validated organisation profiles covering legal form, fiscal regime, hierarchy, roles, locale, and module entitlements.
Readme
@open-nodo/org-profile
The declarative organisation profile for Nodo. One object, collected when an
association registers, that both tells the rail what to provision and
configures the running instance. SanVincenzo is the san-vincenzo preset.
import { parseOrgProfile, resolvePreset, OrgProfileSchema } from "@open-nodo/org-profile";
const sv = resolvePreset("san-vincenzo"); // legalForm APS, MULTI_LEVEL, SV_NATIONAL chart, …
const mine = parseOrgProfile({ name: "…", slug: "…", legalForm: "ODV", /* … */ });Each field maps to a downstream package, so the profile is the single source of truth:
| Field | Drives | Package |
|---|---|---|
| legalForm, fiscalRegime, runtsSection, reportingBasis | which schedules / Modello (D vs B) + thresholds | onlus-compliance |
| chart (SV_NATIONAL / ETS_GENERIC) | chart of accounts | codec-onlus |
| hierarchy (STANDALONE / UMBRELLA / MULTI_LEVEL) | org tree + RoleConfig | tenancy |
| rolePreset | active roles / capabilities | rbac |
| modules | enabled catalogue modules → entitlements | rail catalogue |
| fiscalYear, branding, defaultLocale, gdpr | instance setup | core-db |
Presets: san-vincenzo (the multi-level Nazionale→CC→Conferenza pilot),
ets-standalone, odv-volontariato. Pure, zero-I/O, AGPL-3.0-or-later.
