@harnessio/react-idp-service-client 0.95.1 → 0.96.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/useGetEntityAssociationsQuery.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetKindSchemaQuery.d.ts +16 -0
- package/dist/idp-service/src/services/hooks/useGetKindSchemaQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +6 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.d.ts +2 -1
- package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.d.ts +2 -1
- package/dist/idp-service/src/services/responses/KindSchemaResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/KindSchemaResponseBodyResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/KindCreateRequest.d.ts +25 -0
- package/dist/idp-service/src/services/schemas/KindCreateRequest.js +4 -0
- package/dist/idp-service/src/services/schemas/KindSchemaResponseBody.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/KindSchemaResponseBody.js +4 -0
- package/dist/idp-service/src/services/schemas/KindUpdateRequest.d.ts +21 -0
- package/dist/idp-service/src/services/schemas/KindUpdateRequest.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { KindSchemaResponseBodyResponse } from '../responses/KindSchemaResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface GetKindSchemaQueryHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type GetKindSchemaOkResponse = ResponseWithPagination<KindSchemaResponseBodyResponse>;
|
|
9
|
+
export type GetKindSchemaErrorResponse = unknown;
|
|
10
|
+
export interface GetKindSchemaProps extends Omit<FetcherOptions<unknown, unknown, GetKindSchemaQueryHeaderParams>, 'url'> {
|
|
11
|
+
}
|
|
12
|
+
export declare function getKindSchema(props: GetKindSchemaProps): Promise<GetKindSchemaOkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get Kind Schema.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useGetKindSchemaQuery(props: GetKindSchemaProps, options?: Omit<UseQueryOptions<GetKindSchemaOkResponse, GetKindSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindSchemaOkResponse, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
+
export function getKindSchema(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/kinds/schema`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Kind Schema.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetKindSchemaQuery(props, options) {
|
|
13
|
+
return useQuery(['get-kind-schema'], ({ signal }) => getKindSchema(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -155,6 +155,8 @@ export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchema
|
|
|
155
155
|
export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
|
|
156
156
|
export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
|
|
157
157
|
export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
|
|
158
|
+
export type { GetKindSchemaErrorResponse, GetKindSchemaOkResponse, GetKindSchemaProps, } from './hooks/useGetKindSchemaQuery';
|
|
159
|
+
export { getKindSchema, useGetKindSchemaQuery } from './hooks/useGetKindSchemaQuery';
|
|
158
160
|
export type { GetKindsErrorResponse, GetKindsOkResponse, GetKindsProps, GetKindsQueryQueryParams, } from './hooks/useGetKindsQuery';
|
|
159
161
|
export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
|
|
160
162
|
export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
|
|
@@ -348,6 +350,7 @@ export type { IntegrationResponseListResponse } from './responses/IntegrationRes
|
|
|
348
350
|
export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
|
|
349
351
|
export type { KindResponseBodyListResponse } from './responses/KindResponseBodyListResponse';
|
|
350
352
|
export type { KindResponseBodyResponse } from './responses/KindResponseBodyResponse';
|
|
353
|
+
export type { KindSchemaResponseBodyResponse } from './responses/KindSchemaResponseBodyResponse';
|
|
351
354
|
export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
|
|
352
355
|
export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
|
|
353
356
|
export type { OnboardingCdEntitiesCountResponseResponse } from './responses/OnboardingCdEntitiesCountResponseResponse';
|
|
@@ -494,8 +497,11 @@ export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
|
494
497
|
export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
|
|
495
498
|
export type { InputDetails } from './schemas/InputDetails';
|
|
496
499
|
export type { InputValue } from './schemas/InputValue';
|
|
500
|
+
export type { KindCreateRequest } from './schemas/KindCreateRequest';
|
|
497
501
|
export type { KindResponseBody } from './schemas/KindResponseBody';
|
|
502
|
+
export type { KindSchemaResponseBody } from './schemas/KindSchemaResponseBody';
|
|
498
503
|
export type { KindSchemaValidateRequest } from './schemas/KindSchemaValidateRequest';
|
|
504
|
+
export type { KindUpdateRequest } from './schemas/KindUpdateRequest';
|
|
499
505
|
export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
|
|
500
506
|
export type { LayoutRequest } from './schemas/LayoutRequest';
|
|
501
507
|
export type { LayoutResponse } from './schemas/LayoutResponse';
|
|
@@ -76,6 +76,7 @@ export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegratio
|
|
|
76
76
|
export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
|
|
77
77
|
export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
|
|
78
78
|
export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
|
|
79
|
+
export { getKindSchema, useGetKindSchemaQuery } from './hooks/useGetKindSchemaQuery';
|
|
79
80
|
export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
|
|
80
81
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
81
82
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { KindCreateRequest } from '../schemas/KindCreateRequest';
|
|
2
|
+
export type KindCreateRequestBodyRequestBody = KindCreateRequest;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { KindUpdateRequest } from '../schemas/KindUpdateRequest';
|
|
2
|
+
export type KindUpdateRequestBodyRequestBody = KindUpdateRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kind Create Request Body
|
|
3
|
+
*/
|
|
4
|
+
export interface KindCreateRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Description of the kind.
|
|
7
|
+
*/
|
|
8
|
+
description: string;
|
|
9
|
+
/**
|
|
10
|
+
* Icon of the kind.
|
|
11
|
+
*/
|
|
12
|
+
icon?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the kind.
|
|
15
|
+
*/
|
|
16
|
+
identifier: string;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the kind.
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Schema of the kind.
|
|
23
|
+
*/
|
|
24
|
+
schema: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kind Update Request Body
|
|
3
|
+
*/
|
|
4
|
+
export interface KindUpdateRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Description of the kind.
|
|
7
|
+
*/
|
|
8
|
+
description?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Icon of the kind.
|
|
11
|
+
*/
|
|
12
|
+
icon?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the kind.
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Schema of the kind.
|
|
19
|
+
*/
|
|
20
|
+
schema: string;
|
|
21
|
+
}
|