@abapify/adt-schemas
Pre-generated TypedSchemas for the entire SAP ADT XML surface (200+ types).
Each schema exposes parse(xml) / build(data) with static type inference.
Generated from SAP's published XSDs plus a small custom/ extension layer.
Generated
Files under src/schemas/generated/ are emitted from XSDs. Never edit them
by hand — fix the XSD or the generator. See the package AGENTS.md.
Install
bun add @abapify/adt-schemas
Public API
// All schemas
export * from '@abapify/adt-schemas'; // adtcore, atom, classes, interfaces, …
// Re-exported from ts-xsd
export { typedSchema, parseXml, buildXml } from '@abapify/adt-schemas';
export type {
TypedSchema,
InferTypedSchema,
SchemaLike,
InferSchema,
} from '@abapify/adt-schemas';
Usage
import { atom, adtcore } from '@abapify/adt-schemas';
const data = atom.parse(xmlString); // typed
const xml = atom.build(data);
import type { InferTypedSchema } from '@abapify/adt-schemas';
type AtomData = InferTypedSchema<typeof atom>;
Dependencies
@abapify/ts-xsd- Consumed by
adt-contracts,adt-client,adk,adt-plugin-abapgit.
See also
- Package internals:
packages/adt-schemas/AGENTS.md ts-xsd, Contracts catalog