@harnessio/react-directory-service-client
v0.0.9
Published
Harness React Directory Service Client - Team Hierarchy APIs integrated with react hooks
Downloads
49,005
Keywords
Readme
Directory Service Client
OpenAPI -> OA
TypeScript -> TS
OpenAPI + TypeScript -> OATS
This React client stores a collection of Directory Service (Team Hierarchy) APIs and Interfaces contracts generated
from an Open API Spec using OATS CLI internally. APIs use hooks from @tanstack/react-query.
Note:
openapi.yamlin this package is currently a DRAFT spec for local testing only, reverse-engineered from the "Directory Service Teams" Postman collection. It will be replaced with the real BE-published contract once available.
Steps To Generate API Client build as dist folder
yarn buildFor NextGen UI adoption : HarnessReactAPIClient should be initialized
Before using API Client, it must be initilaized with required ClientCallbacks.
Example:
new HarnessReactAPIClient({
getHeaders: () => {
return { token: SessionToken.getToken(), 'Harness-Account': accountId }
}}Versioning
Once development phase is completed, this repo will have changes and versioning driven by API spec only.
License
MIT. Copyright(c) Harness Inc
