@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.
- package/dist/idp-service/src/services/hooks/useGetJsonSchemaQuery.d.ts +17 -0
- package/dist/idp-service/src/services/hooks/useGetJsonSchemaQuery.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/EntityJsonSchemaResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityJsonSchemaResponseBodyResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/EntitiesGroupsResponse.d.ts +4 -3
- package/dist/idp-service/src/services/schemas/EntityJsonSchemaResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/EntityJsonSchemaResponse.js +4 -0
- package/package.json +1 -1
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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?:
|
|
26
|
+
without_group?: EntityResponse[];
|
|
26
27
|
};
|
|
27
28
|
org?: {
|
|
28
29
|
with_group?: EntitiesGroups[];
|
|
29
|
-
without_group?:
|
|
30
|
+
without_group?: EntityResponse[];
|
|
30
31
|
};
|
|
31
32
|
project?: {
|
|
32
33
|
with_group?: EntitiesGroups[];
|
|
33
|
-
without_group?:
|
|
34
|
+
without_group?: EntityResponse[];
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
}
|