Skip to main content

@abapify/adt-contracts

Type-safe descriptors for the full SAP ADT REST surface (plus gCTS and FLP). Contracts wrap @abapify/adt-schemas with @abapify/speci HTTP verbs. The consuming adt-client turns the adtContract tree into a callable client.

See the Contracts catalog for the per-namespace reference.

Install

bun add @abapify/adt-contracts

Public API

// Base utilities (client creation, types)
export * from '@abapify/adt-contracts/base';

// Every ADT namespace (cts, atc, oo, ddic, …) and the aggregated tree
export * from '@abapify/adt-contracts';

// Notable exports:
export {
adtContract,
type AdtContract,
type AdtClientType,
} from '@abapify/adt-contracts';

Usage

import { adtContract, type AdtContract } from '@abapify/adt-contracts';

// Descriptors are plain objects — inspect a contract:
const transportGet = adtContract.cts.transportrequests.get('DEVK900001');
console.log(transportGet.method, transportGet.path);

Contracts are normally invoked through adt-client.

Dependencies

See also