@harnessio/code-service-client
TypeScript icon, indicating that this package has built-in type declarations

3.8.0 • Public • Published

React Code Service Client

OpenAPI -> OA

TypeScript -> TS

OpenAPI + TypeScript -> OATS

This React API client will store a collection of Harness Code Service 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 UI adoption : CodeServiceAPIClient should be initialized

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

Example:

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

Versioning

@harnessio/react-code-service-client

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

License

MIT. Copyright(c) Harness Inc

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.8.0899latest

Version History

VersionDownloads (Last 7 Days)Published
3.8.0899
3.7.0506
3.6.01
3.5.039
3.4.02
3.2.1-beta.11
3.2.01
3.1.0-beta1
3.1.01
3.0.01,679
2.0.71
2.0.61
2.0.51
2.0.41
2.0.31
2.0.21
2.0.11
2.0.0-beta-11
2.0.0-beta1
2.0.01
1.4.0-beta-41
1.4.0-beta-31
1.4.0-beta-21
1.4.0-beta-11
1.3.181
1.3.161
1.3.151
1.3.141
1.3.131
1.3.121
1.3.111
1.3.101
1.3.91
1.3.81
1.3.71
1.3.61
1.3.51
1.3.41
1.3.21
1.3.11
1.3.00
1.2.50
1.2.41
1.2.30
1.2.21
1.2.10
1.2.01
1.1.41
1.1.31
1.1.21
1.1.11
1.1.01
1.0.01
0.1.01

Package Sidebar

Install

npm i @harnessio/code-service-client

Weekly Downloads

3,170

Version

3.8.0

License

MIT

Unpacked Size

654 kB

Total Files

992

Last publish

Collaborators

  • davejohnston
  • knagurski
  • abhinavrastogi
  • enverbisevac
  • mayankvermaharness
  • erdirowlands
  • shaurya-harness
  • vardan.bansal-harness
  • srdjan