@harnessio/react-ssca-manager-client 0.86.16 → 0.86.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LicenseConditionsResponse } from '../schemas/LicenseConditionsResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetLicenseConditionsQueryPathParams {
6
+ licenseId: string;
7
+ }
8
+ export interface GetLicenseConditionsQueryHeaderParams {
9
+ 'Harness-Account': string;
10
+ }
11
+ export type GetLicenseConditionsOkResponse = ResponseWithPagination<LicenseConditionsResponse>;
12
+ export type GetLicenseConditionsErrorResponse = unknown;
13
+ export interface GetLicenseConditionsProps extends GetLicenseConditionsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetLicenseConditionsQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getLicenseConditions(props: GetLicenseConditionsProps): Promise<GetLicenseConditionsOkResponse>;
16
+ /**
17
+ * Returns the static license conditions (obligations, permissions, and grant/limitations) for a single SPDX license identifier. Unknown or unmapped licenses return an empty conditions array.
18
+ *
19
+ */
20
+ export declare function useGetLicenseConditionsQuery(props: GetLicenseConditionsProps, options?: Omit<UseQueryOptions<GetLicenseConditionsOkResponse, GetLicenseConditionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLicenseConditionsOkResponse, unknown>;
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getLicenseConditions(props) {
7
+ return fetcher(Object.assign({ url: `/v1/license-conditions/${props.licenseId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns the static license conditions (obligations, permissions, and grant/limitations) for a single SPDX license identifier. Unknown or unmapped licenses return an empty conditions array.
11
+ *
12
+ */
13
+ export function useGetLicenseConditionsQuery(props, options) {
14
+ return useQuery(['getLicenseConditions', props.licenseId], ({ signal }) => getLicenseConditions(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -159,6 +159,8 @@ export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, G
159
159
  export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
160
160
  export type { GetIntegrationsConfigErrorResponse, GetIntegrationsConfigOkResponse, GetIntegrationsConfigProps, GetIntegrationsConfigQueryQueryParams, } from './hooks/useGetIntegrationsConfigQuery';
161
161
  export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
162
+ export type { GetLicenseConditionsErrorResponse, GetLicenseConditionsOkResponse, GetLicenseConditionsProps, GetLicenseConditionsQueryPathParams, } from './hooks/useGetLicenseConditionsQuery';
163
+ export { getLicenseConditions, useGetLicenseConditionsQuery, } from './hooks/useGetLicenseConditionsQuery';
162
164
  export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicenseDriftProps, GetLicenseDriftQueryPathParams, GetLicenseDriftQueryQueryParams, } from './hooks/useGetLicenseDriftQuery';
163
165
  export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
164
166
  export type { GetLicenseFamilyConfigErrorResponse, GetLicenseFamilyConfigOkResponse, GetLicenseFamilyConfigProps, GetLicenseFamilyConfigQueryPathParams, } from './hooks/useGetLicenseFamilyConfigQuery';
@@ -78,6 +78,7 @@ export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, }
78
78
  export { getIntegrationCounts, useGetIntegrationCountsQuery, } from './hooks/useGetIntegrationCountsQuery';
79
79
  export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
80
80
  export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
81
+ export { getLicenseConditions, useGetLicenseConditionsQuery, } from './hooks/useGetLicenseConditionsQuery';
81
82
  export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
82
83
  export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks/useGetLicenseFamilyConfigQuery';
83
84
  export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.16",
3
+ "version": "0.86.18",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",