@harnessio/react-ssca-manager-client 0.84.7 → 0.84.8
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.
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentDependenciesByPurlQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentDependenciesByPurlQuery.js +20 -0
- package/dist/ssca-manager/src/services/index.d.ts +2 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentDependenciesByPurlQuery.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComponentDependenciesResponseBodyResponse } from '../responses/ComponentDependenciesResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactComponentDependenciesByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetArtifactComponentDependenciesByPurlQueryQueryParams {
|
|
11
|
+
purl: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetArtifactComponentDependenciesByPurlQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactComponentDependenciesByPurlOkResponse = ResponseWithPagination<ComponentDependenciesResponseBodyResponse>;
|
|
17
|
+
export type GetArtifactComponentDependenciesByPurlErrorResponse = unknown;
|
|
18
|
+
export interface GetArtifactComponentDependenciesByPurlProps extends GetArtifactComponentDependenciesByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactComponentDependenciesByPurlQueryQueryParams, unknown, GetArtifactComponentDependenciesByPurlQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactComponentDependenciesByPurlQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactComponentDependenciesByPurl(props: GetArtifactComponentDependenciesByPurlProps): Promise<GetArtifactComponentDependenciesByPurlOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get the list of parent components and dependencies of a component identified by its PURL
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactComponentDependenciesByPurlQuery(props: GetArtifactComponentDependenciesByPurlProps, options?: Omit<UseQueryOptions<GetArtifactComponentDependenciesByPurlOkResponse, GetArtifactComponentDependenciesByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactComponentDependenciesByPurlOkResponse, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentDependenciesByPurlQuery.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 getArtifactComponentDependenciesByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/component/dependencies`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the list of parent components and dependencies of a component identified by its PURL
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactComponentDependenciesByPurlQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactComponentDependenciesByPurl',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getArtifactComponentDependenciesByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -45,6 +45,8 @@ export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryO
|
|
|
45
45
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
46
46
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
47
47
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
48
|
+
export type { GetArtifactComponentDependenciesByPurlErrorResponse, GetArtifactComponentDependenciesByPurlOkResponse, GetArtifactComponentDependenciesByPurlProps, GetArtifactComponentDependenciesByPurlQueryPathParams, GetArtifactComponentDependenciesByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentDependenciesByPurlQuery';
|
|
49
|
+
export { getArtifactComponentDependenciesByPurl, useGetArtifactComponentDependenciesByPurlQuery, } from './hooks/useGetArtifactComponentDependenciesByPurlQuery';
|
|
48
50
|
export type { GetArtifactComponentOverviewByPurlErrorResponse, GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlProps, GetArtifactComponentOverviewByPurlQueryPathParams, GetArtifactComponentOverviewByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
49
51
|
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
50
52
|
export type { GetArtifactComponentRemediationByPurlErrorResponse, GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlProps, GetArtifactComponentRemediationByPurlQueryPathParams, GetArtifactComponentRemediationByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
@@ -21,6 +21,7 @@ export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } fro
|
|
|
21
21
|
export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
|
|
22
22
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
23
23
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
24
|
+
export { getArtifactComponentDependenciesByPurl, useGetArtifactComponentDependenciesByPurlQuery, } from './hooks/useGetArtifactComponentDependenciesByPurlQuery';
|
|
24
25
|
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
25
26
|
export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
26
27
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|