@harnessio/react-ssca-manager-client 0.57.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.
@@ -6,6 +6,7 @@ export interface GetArtifactV2OverviewQueryPathParams {
6
6
  org: string;
7
7
  project: string;
8
8
  artifact: string;
9
+ source: string;
9
10
  }
10
11
  export interface GetArtifactV2OverviewQueryHeaderParams {
11
12
  '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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",