@harnessio/react-idp-service-client 0.51.1 → 0.51.2

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.
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { ResponseWithPagination } from '../helpers';
3
3
  import { FetcherOptions } from '../../../../fetcher/index.js';
4
4
  export interface DeleteGroupMutationPathParams {
5
- 'group-name': string;
5
+ 'group-identifier': string;
6
6
  }
7
7
  export interface DeleteGroupMutationHeaderParams {
8
8
  'Harness-Account'?: string;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteGroup(props) {
7
- return fetcher(Object.assign({ url: `/v1/groups/${props['group-name']}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/groups/${props['group-identifier']}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete a group
@@ -3,7 +3,7 @@ import type { GroupResponseResponse } from '../responses/GroupResponseResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetGroupDetailsQueryPathParams {
6
- 'group-name': string;
6
+ 'group-identifier': string;
7
7
  }
8
8
  export interface GetGroupDetailsQueryHeaderParams {
9
9
  '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 getGroupDetails(props) {
7
- return fetcher(Object.assign({ url: `/v1/groups/${props['group-name']}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/groups/${props['group-identifier']}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Group Details
11
11
  */
12
12
  export function useGetGroupDetailsQuery(props, options) {
13
- return useQuery(['get-group-details', props['group-name']], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-group-details', props['group-identifier']], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -2,7 +2,7 @@ import type { WorkflowsInfo } from '../schemas/WorkflowsInfo';
2
2
  export interface Group {
3
3
  description?: string;
4
4
  icon?: string;
5
- id?: string;
5
+ identifier: string;
6
6
  name: string;
7
7
  order?: number;
8
8
  workflows?: WorkflowsInfo[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.51.1",
3
+ "version": "0.51.2",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",