@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.
@@ -18,7 +18,7 @@ export interface GetEntityAssociationsQueryQueryParams {
18
18
  sort?: string;
19
19
  search_term?: string;
20
20
  owned_by_me?: boolean;
21
- scopes?: string;
21
+ favorites?: boolean;
22
22
  association_kind?: string;
23
23
  type?: string;
24
24
  owner?: string;
@@ -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
- export type KindCreateRequestBodyRequestBody = unknown;
1
+ import type { KindCreateRequest } from '../schemas/KindCreateRequest';
2
+ export type KindCreateRequestBodyRequestBody = KindCreateRequest;
@@ -1 +1,2 @@
1
- export type KindUpdateRequestBodyRequestBody = unknown;
1
+ import type { KindUpdateRequest } from '../schemas/KindUpdateRequest';
2
+ export type KindUpdateRequestBodyRequestBody = KindUpdateRequest;
@@ -0,0 +1,2 @@
1
+ import type { KindSchemaResponseBody } from '../schemas/KindSchemaResponseBody';
2
+ export type KindSchemaResponseBodyResponse = KindSchemaResponseBody;
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Kind Schema Response Body
3
+ */
4
+ export interface KindSchemaResponseBody {
5
+ schema: string;
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 {};
@@ -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
+ }
@@ -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.95.1",
3
+ "version": "0.96.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",