Skip to content

API Reference

This reference is generated from the published npm package by TypeDoc and documents the exact public contract of @cda/archi-semantic-core — nothing more, nothing less.

The truth of the API contract lives in the library’s repository, in the JSDoc of its source (src/index.ts, src/archive.ts). This portal regenerates the reference from the installed package (node_modules/@cda/archi-semantic-core) at build time — the version pinned in the portal’s package.json. What you read here is exactly what you install; nothing is copied by hand.

The package exposes two public subpaths:

  • Root@cda/archi-semantic-core (browser/bundler safe): parseArchiModel, validateArchiModel, getLabelExpression, resolveLabelExpression, and all model types.
  • /archive@cda/archi-semantic-core/archive (Node-only): extractArchiModelXml.

Every page in this group is produced from the JSDoc comments shipped in the package’s declaration files. The navigation groups mirror the source layout:

  • Functions — the four core functions plus the Node-only archive function.
  • Types and interfaces — the ArchiModel family: elements, relationships, views, geometry, styling, features, profiles, validation results.

The reference documents the published version pinned in the portal (@cda/archi-semantic-core 0.4.1 at the time of writing). To check what version the portal documents:

Terminal window
npm view @cda/archi-semantic-core

To document a newer version, bump the pinned dependency in the portal’s package.json and rebuild.

The pages are produced by npm run gen:api and are regenerated on every build and in the Pages deployment pipeline — they are not committed to the repository. Regenerate, never hand-edit.