@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.
- package/dist/idp-service/src/services/hooks/useDeleteGroupMutation.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useDeleteGroupMutation.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.js +2 -2
- package/dist/idp-service/src/services/schemas/Group.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
+
return useQuery(['get-group-details', props['group-identifier']], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|