@harnessio/react-idp-service-client 0.53.0 → 0.53.1
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/useGetEntityRefsQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useGetEntityRefsQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +4 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/responses/EntityRefsResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityRefsResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/EntityRefs.d.ts +3 -0
- package/dist/idp-service/src/services/schemas/EntityRefs.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityRefsResponseResponse } from '../responses/EntityRefsResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityRefsQueryQueryParams {
|
|
6
|
+
search_term?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetEntityRefsQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetEntityRefsOkResponse = ResponseWithPagination<EntityRefsResponseResponse>;
|
|
12
|
+
export type GetEntityRefsErrorResponse = unknown;
|
|
13
|
+
export interface GetEntityRefsProps extends Omit<FetcherOptions<GetEntityRefsQueryQueryParams, unknown, GetEntityRefsQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: GetEntityRefsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getEntityRefs(props: GetEntityRefsProps): Promise<GetEntityRefsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all entityRefs for given search term
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetEntityRefsQuery(props: GetEntityRefsProps, options?: Omit<UseQueryOptions<GetEntityRefsOkResponse, GetEntityRefsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityRefsOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 getEntityRefs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entity-refs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get all entityRefs for given search term
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityRefsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity-refs', props.queryParams], ({ signal }) => getEntityRefs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -71,6 +71,8 @@ export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPoints
|
|
|
71
71
|
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
72
72
|
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
73
73
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
74
|
+
export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
|
|
75
|
+
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
74
76
|
export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, } from './hooks/useGetGroupDetailsQuery';
|
|
75
77
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
76
78
|
export type { GetGroupsYamlErrorResponse, GetGroupsYamlOkResponse, GetGroupsYamlProps, } from './hooks/useGetGroupsYamlQuery';
|
|
@@ -193,6 +195,7 @@ export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSo
|
|
|
193
195
|
export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
|
|
194
196
|
export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
|
|
195
197
|
export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
|
|
198
|
+
export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
|
|
196
199
|
export type { FacetsResponseResponse } from './responses/FacetsResponseResponse';
|
|
197
200
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
198
201
|
export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
|
|
@@ -273,6 +276,7 @@ export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPo
|
|
|
273
276
|
export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
|
|
274
277
|
export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
|
|
275
278
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
279
|
+
export type { EntityRefs } from './schemas/EntityRefs';
|
|
276
280
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
277
281
|
export type { Exports } from './schemas/Exports';
|
|
278
282
|
export type { Facets } from './schemas/Facets';
|
|
@@ -34,6 +34,7 @@ export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, }
|
|
|
34
34
|
export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
|
|
35
35
|
export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
|
|
36
36
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
37
|
+
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
37
38
|
export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
|
|
38
39
|
export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
|
|
39
40
|
export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|