1.1.3 • Published 12 months ago

@harnessio/react-cg-manager-client v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

React CG Manager Client

OpenAPI -> OA

TypeScript -> TS

OpenAPI + TypeScript -> OATS

This React client will store a collection of Harness NG Manager APIs and Interfaces contracts generated from Open API Spec using OATS CLI internally. APIs are using hooks from @tanstack/react-query

Steps To Generate API Client build as dist folder

yarn build

For NextGen UI adoption : HarnessReactAPIClient should be initialized

Before using API Client, it must be initilaized with required ClientCallbacks.

Example:

 new CGManagerServiceAPIClient({
    getHeaders: () => {
        return { token: SessionToken.getToken(), 'Harness-Account': accountId }
    }}

Versioning

@harnessio/react-cg-manager-client-v2

Once development phase is completed, this repo will have changes and versioning driven by API spec only.

License

MIT. Copyright(c) Harness Inc

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago