@harnessio/react-ssca-manager-client 0.56.0 → 0.58.0
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/useGetArtifactV2DetailComponentViewQuery.d.ts +4 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.d.ts +1 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.js +2 -2
- package/dist/ssca-manager/src/services/schemas/RemediationArtifactDeploymentsListingResponse.d.ts +4 -0
- package/package.json +1 -1
|
@@ -21,7 +21,10 @@ export interface GetArtifactV2DetailComponentViewQueryQueryParams {
|
|
|
21
21
|
* @default 0
|
|
22
22
|
*/
|
|
23
23
|
page?: number;
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @default "package_name"
|
|
26
|
+
*/
|
|
27
|
+
sort?: 'package_name' | 'package_supplier';
|
|
25
28
|
}
|
|
26
29
|
export interface GetArtifactV2DetailComponentViewQueryHeaderParams {
|
|
27
30
|
'Harness-Account': string;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactV2Overview(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/overview`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources/${props.source}/artifacts/${props.artifact}/overview`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get ArtifactV2 Overview
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactV2OverviewQuery(props, options) {
|
|
13
|
-
return useQuery(['getArtifactV2Overview', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2Overview(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['getArtifactV2Overview', props.org, props.project, props.artifact, props.source], ({ signal }) => getArtifactV2Overview(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|