Socket
Book a DemoInstallSign in
Socket

@harnessio/po-service-client

Package Overview
Dependencies
Maintainers
9
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessio/po-service-client

Harness React PO Service Client - PO APIs integrated with react hooks

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
62
-45.13%
Maintainers
9
Weekly downloads
 
Created
Source

React PO Service Client

OpenAPI -> OA

TypeScript -> TS

OpenAPI + TypeScript -> OATS

This React API client will store a collection of Harness PO 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 : POServiceAPIClient should be initialized

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

Example:

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

Versioning

@harnessio/po-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 14 Jul 2025

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