Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harnessio/code-service-client

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessio/code-service-client

Harness React Code service client - Code APIs integrated with react hooks

  • 3.2.1-beta.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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

FAQs

Package last updated on 20 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc