@harnessio/react-idp-service-client 0.61.0 → 0.63.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,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { EntityJsonSchemaResponseBodyResponse } from '../responses/EntityJsonSchemaResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetJsonSchemaQueryQueryParams {
6
+ kind?: string;
7
+ }
8
+ export type GetJsonSchemaOkResponse = ResponseWithPagination<EntityJsonSchemaResponseBodyResponse>;
9
+ export type GetJsonSchemaErrorResponse = unknown;
10
+ export interface GetJsonSchemaProps extends Omit<FetcherOptions<GetJsonSchemaQueryQueryParams, unknown>, 'url'> {
11
+ queryParams: GetJsonSchemaQueryQueryParams;
12
+ }
13
+ export declare function getJsonSchema(props: GetJsonSchemaProps): Promise<GetJsonSchemaOkResponse>;
14
+ /**
15
+ * Get Entities Json Schema.
16
+ */
17
+ export declare function useGetJsonSchemaQuery(props: GetJsonSchemaProps, options?: Omit<UseQueryOptions<GetJsonSchemaOkResponse, GetJsonSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetJsonSchemaOkResponse, 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 getJsonSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/json-schema`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Entities Json Schema.
11
+ */
12
+ export function useGetJsonSchemaQuery(props, options) {
13
+ return useQuery(['get-json-schema', props.queryParams], ({ signal }) => getJsonSchema(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -103,6 +103,8 @@ export type { GetIntegrationErrorResponse, GetIntegrationOkResponse, GetIntegrat
103
103
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
104
104
  export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegrationsProps, GetIntegrationsQueryPathParams, GetIntegrationsQueryQueryParams, } from './hooks/useGetIntegrationsQuery';
105
105
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
106
+ export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
107
+ export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
106
108
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
107
109
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
108
110
  export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
@@ -217,6 +219,7 @@ export type { DefaultSaveResponseResponse } from './responses/DefaultSaveRespons
217
219
  export type { EntitiesGroupsResponseBodyResponse } from './responses/EntitiesGroupsResponseBodyResponse';
218
220
  export type { EntityConvertResponseBodyResponse } from './responses/EntityConvertResponseBodyResponse';
219
221
  export type { EntityFiltersResponseBodyListResponse } from './responses/EntityFiltersResponseBodyListResponse';
222
+ export type { EntityJsonSchemaResponseBodyResponse } from './responses/EntityJsonSchemaResponseBodyResponse';
220
223
  export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsResponseBodyResponse';
221
224
  export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
222
225
  export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
@@ -304,6 +307,7 @@ export type { EntitiesGroups } from './schemas/EntitiesGroups';
304
307
  export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
305
308
  export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
306
309
  export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
310
+ export type { EntityJsonSchemaResponse } from './schemas/EntityJsonSchemaResponse';
307
311
  export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
308
312
  export type { EntityRefs } from './schemas/EntityRefs';
309
313
  export type { EntityRequest } from './schemas/EntityRequest';
@@ -50,6 +50,7 @@ export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHa
50
50
  export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
51
51
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
52
52
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
53
+ export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
53
54
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
54
55
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
55
56
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
@@ -0,0 +1,2 @@
1
+ import type { EntityJsonSchemaResponse } from '../schemas/EntityJsonSchemaResponse';
2
+ export type EntityJsonSchemaResponseBodyResponse = EntityJsonSchemaResponse;
@@ -1,4 +1,5 @@
1
1
  import type { EntitiesGroups } from '../schemas/EntitiesGroups';
2
+ import type { EntityResponse } from '../schemas/EntityResponse';
2
3
  /**
3
4
  * Entity Groups Response Body
4
5
  */
@@ -22,15 +23,15 @@ export interface EntitiesGroupsResponse {
22
23
  data?: {
23
24
  account?: {
24
25
  with_group?: EntitiesGroups[];
25
- without_group?: EntitiesGroups[];
26
+ without_group?: EntityResponse[];
26
27
  };
27
28
  org?: {
28
29
  with_group?: EntitiesGroups[];
29
- without_group?: EntitiesGroups[];
30
+ without_group?: EntityResponse[];
30
31
  };
31
32
  project?: {
32
33
  with_group?: EntitiesGroups[];
33
- without_group?: EntitiesGroups[];
34
+ without_group?: EntityResponse[];
34
35
  };
35
36
  };
36
37
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Entity Json Schema response body
3
+ */
4
+ export interface EntityJsonSchemaResponse {
5
+ [key: string]: any;
6
+ }
@@ -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.61.0",
3
+ "version": "0.63.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",