@harnessio/react-idp-service-client 0.53.0 → 0.54.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.
@@ -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,2 @@
1
+ import type { EntityRefs } from '../schemas/EntityRefs';
2
+ export type EntityRefsResponseResponse = EntityRefs;
@@ -7,5 +7,5 @@ export interface Card {
7
7
  icon_url?: string;
8
8
  identifier: string;
9
9
  title: string;
10
- type: 'CUSTOM_LINK' | 'GITHUB' | 'LEARN_MORE' | 'MARKDOWN' | 'RECENTLY_VISITED' | 'SELF_SERVICE' | 'STARRED_ENTITIES' | 'TOP_VISITED' | 'VIDEO';
10
+ type: 'CUSTOM_LINK' | 'GITHUB' | 'JIRA' | 'LEARN_MORE' | 'MARKDOWN' | 'RECENTLY_VISITED' | 'SELF_SERVICE' | 'STARRED_ENTITIES' | 'TOP_VISITED' | 'VIDEO';
11
11
  }
@@ -0,0 +1,3 @@
1
+ export interface EntityRefs {
2
+ 'entity-refs'?: string[];
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",