@dataverse-kit/api-client
v0.1.0
Published
Unified Dataverse/Dynamics 365 API client with auto-environment detection
Maintainers
Readme
@dataverse-kit/api-client
Unified Dataverse / Dynamics 365 Web API client with automatic environment detection.
Picks the right transport at runtime — model-driven app (Xrm.WebApi), browser fetch with a
bearer token, or a mock for local development — behind one small interface, so the same data code
runs in a PCF control, a web resource, a custom page, or Node.
Install
npm install @dataverse-kit/api-client@types/xrm is an optional peer (only needed for the Xrm.WebApi transport in model-driven apps).
Usage
import { createClient } from '@dataverse-kit/api-client';
const client = createClient(); // auto-detects environment
const accounts = await client.retrieveMultipleByFetchXml('account', fetchXml);License
MIT © khester
